|
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:1.9.2.22) 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
[Prev in Thread] | Current Thread | [Next in Thread] |