[m-users.] sleep(3) for the posix library

Volker Wysk post at volker-wysk.de
Sun Mar 15 17:52:50 AEDT 2020


Am Sonntag, den 15.03.2020, 14:35 +1100 schrieb Julien Fischer:
> Hi Volker,
> 
> On Sat, 14 Mar 2020, Volker Wysk wrote:
> 
> > Here's another small piece for the posix library: the sleep(3)
> > library
> > call.
> 
> That doesn't wrap the sleep() function as POSIX describes it:
> <https://pubs.opengroup.org/onlinepubs/009695399/functions/sleep.html
> >
> 
> You completely ignore the return value for one thing.  If you're
> using
> Mercury 20.01 or later it would probaby be worth changing the
> argument
> that gives the number seconds to an unsigned type as well.

Oh, you're right. I was rash. Sorry for this. I'll do it right and post
in the mercury reviews mailing list.

Volker




More information about the users mailing list