On 09/26/2011 04:30 PM, Eric Blake wrote:
If fdopen(-1,"r") returns anything besides NULL in the first place, then that is a bug in fdopen().
All right, POSIX states that EBADF is a may fail, rather than a shall fail, in that situation. But do we know of any implementations that actually return a FILE * wrapped around a bogus fd, or do they all fail at fdopen() time?
-- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org