[libvirt] [PATCH 01/15] gnulib: Add usleep for MinGW builds

Eric Blake eblake at redhat.com
Mon Mar 22 16:15:35 UTC 2010


On 03/22/2010 08:54 AM, Daniel P. Berrange wrote:
> On Mon, Mar 22, 2010 at 02:25:31AM +0100, Matthias Bolte wrote:
>> ---
>>  bootstrap.conf |    1 +
>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/bootstrap.conf b/bootstrap.conf
>> index 157092f..fb862ad 100644
>> --- a/bootstrap.conf
>> +++ b/bootstrap.conf
>> @@ -56,6 +56,7 @@ strsep
>>  sys_stat
>>  time_r
>>  useless-if-before-free
>> +usleep
>>  vasprintf
>>  verify
>>  vc-list-files
>> -- 
> 
> ACK

POSIX 2008 delisted usleep as an obsolete interface; it has some
usability issues when compared to nanosleep.  While gnulib at least
fixes the worst of the portability problems (namely, the fact that
usleep is not required to sleep longer than 1 second, even though it can
sleep over 4000 seconds on glibc), I'm wondering if we should instead be
converting all existing uses of usleep to a more modern interface.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 323 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100322/074af78a/attachment-0001.sig>


More information about the libvir-list mailing list