You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by ma...@apache.org on 1999/10/13 05:49:18 UTC

Re: general/5135: fd and fd_in of BUFF api are dead

[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]


Synopsis: fd and fd_in of BUFF api are dead

State-Changed-From-To: open-closed
State-Changed-By: marc
State-Changed-When: Tue Oct 12 20:49:17 PDT 1999
State-Changed-Why:
You can't just muck with internal fields of a structure
and expect them to magically do what you want.  There is
no API for getting a file descriptor out of a BUFF.

If you want to know exactly why fdopen is failing, you
should print the value of the descriptor you are trying
to fdopen and the errno when it fails.  But regardless
of why it fails, BUFFs are _not_ just some way of hiding
a file descriptor.  You can't just think "hey, they use a
file descriptor so I can just yank it out.".