[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fdopen on MSVC

From: Eric Blake
Subject: Re: fdopen on MSVC
Date: Mon, 26 Sep 2011 16:33:52 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110906 Fedora/3.1.14-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.14

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   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]