Is there a portable way to get a filename from a file descriptor?
No. There may not even be any name for a file descriptor:Quote:> Is there a portable way to get a filename from a file descriptor?
>> Is there a portable way to get a filename from a file descriptor?
>No. There may not even be any name for a file descriptor:
>think socket, pipe, terminal ...
- Logan
--
"In order to be prepared to hope in what does not deceive,
we must first lose hope in everything that deceives."
Georges Bernanos
I don't believe so...Once you have the file descriptor you shouldn't need theQuote:> Is there a portable way to get a filename from a file descriptor?
--
-wiseguy
slummin it in Colorado ski country, while watching the IT industry move
to India, and thinking about retraining as a Sanitation Engineer
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
> > Is there a portable way to get a filename from a file descriptor?
> No. There may not even be any name for a file descriptor:
> think socket, pipe, terminal ...
> > Is there a portable way to get a filename from a file descriptor?
> I don't believe so...Once you have the file descriptor you shouldn't need the
> filename. Obviously, you had the filename when you opened the descriptor,
> right?
Quote:> --
> -wiseguy
> slummin it in Colorado ski country, while watching the IT industry move
> to India, and thinking about retraining as a Sanitation Engineer
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----== Over 80,000 Newsgroups - 16 Different Servers! =-----
> Is there a portable way to get a filename from a file descriptor?
Frank
--
A lawyer is someone who writes an eighty-page document and calls it
a brief. - Alfred E. Neuman
Is there a way to get the pid's of all process that
have a given fd or path-name open? (Actually it's
a named-pipe.)
E-mail responses would be appreciated. Thanks in advance.
--
2. Progress/SCO printing on AppleTalk laser
3. read(fd, buf, size) after shutdown(fd, SHUT_RD) implementation-defined
4. Looking for commercial Source Code Control System
5. Is /dev/fd redundant to /proc/self/fd ?
7. 1.3.43: reading from /proc/self/fd/xx never gets EOF?
8. Linux on the Mac: newbie suggestion
10. g++ fd.getline() and msvc fd.getline()??
12. fd 0 == fd 1 when running under inetd?
13. Getting it right- passing fd from child to parent processes- Linux