[libvirt] [PATCH 1/6] Add API for duplicating a socket/client file descriptor

Eric Blake eblake at redhat.com
Mon Aug 15 13:15:57 UTC 2011


On 08/15/2011 06:57 AM, Jiri Denemark wrote:
>> Except you missed one change I had pointed out there: bootstrap.conf
>> needs to list 'fcntl' in the list of gnulib modules (without it, gnulib
>> doesn't guarantee that F_DUPFD_CLOEXEC will work on mingw).
>
> Hmm, I saw fcntl-h in bootstrap.conf, is that something else?

fcntl-h: provides replacement <fcntl.h>, which guarantees definitions 
for several useful O_* constants.

fcntl: depends on fcntl-h, and additionally provides replacement 
fcntl(), F_*, and FD_* constants that can be portably implemented (not 
all F_* flags can be ported to mingw - F_GETFL being a notable omission, 
unfortunately).

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list