bug-hurd
[Top][All Lists]
Advanced

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

nanosleep modifying second parameter on success


From: Simon Josefsson
Subject: nanosleep modifying second parameter on success
Date: Thu, 04 Aug 2011 12:10:43 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)

As reported as 2) in this mail:

https://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00027.html

it seems the nanosleep function modifies the second parameter on
success.

This behaviour doesn't seem consistent with the specification at

http://pubs.opengroup.org/onlinepubs/9699919799/functions/nanosleep.html

It seems the second parameter should not be modified unless the call
fails with EINTR, right?

/Simon



reply via email to

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