By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,805 Members | 1,427 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,805 IT Pros & Developers. It's quick & easy.

extracting file from the file descriptor

P: n/a
I am using Linux gcc 4.1.1 version
I have a file descriptor and I want to have a FILE* pointer to the
file from the file descriptor.

OR

if I can have the file name using the file descriptor..

Please help..

Jun 14 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On 14 Juni, 12:38, aka...@rediffmail.com wrote:
I am using Linux gcc 4.1.1 version
I have a file descriptor and I want to have a FILE* pointer to the
file from the file descriptor.
man 3 fopen

--
Erik Wikström

Jun 14 '07 #2

P: n/a
Erik Wikström wrote:
On 14 Juni, 12:38, aka...@rediffmail.com wrote:
>I am using Linux gcc 4.1.1 version
I have a file descriptor and I want to have a FILE* pointer to the
file from the file descriptor.

man 3 fopen
perhaps fdopen() ?
Jun 14 '07 #3

P: n/a
Gianni Mariani wrote:
Erik Wikström wrote:
>On 14 Juni, 12:38, aka...@rediffmail.com wrote:
>>I am using Linux gcc 4.1.1 version
I have a file descriptor and I want to have a FILE* pointer to the
file from the file descriptor.

man 3 fopen

perhaps fdopen() ?
Perhaps, but there's no such thing as a filedescriptor or fdopen in
standard C and C++. Try POSIX.
Jun 15 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.