Getting the pathname from a FILE*.
Wayne Mesard
mesard at bbn.com
Fri Jul 22 00:08:30 AEST 1988
>From article <49 at minya.UUCP>, by jc at minya.UUCP (John Chambers):
> There are lots of uses. Consider a problem I am having on a current
> project: A program running on a Sun is running out of files. My code
> opens maybe 6 or 8 files at the most. So where do the others come from?
> Easy - they are opened by library subroutines. My code can't remember
> the names of those files; my code didn't open them. This makes debugging
> very difficult.
This isn't by any chance a SunView program is it? Since SunView windows
are actually devices, client programs access them via file descriptors.
It's amazing how fast 4.2BSD's limit of 30 can get eaten up in a
fair-sized [full-screen] application.
--
unsigned *Wayne_Mesard(); MESARD at BBN.COM BBN, Cambridge, MA
"When Martin Sheen visited me, he was smoking again after his heart
attack, and I asked why. He said, 'It is my friend it is always there
and doesn't pass judgment.' I said, 'Your friend is going to kill you.'"
- Larry King
More information about the Comp.unix.wizards
mailing list