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

Julien Fischer jfischer at opturion.com
Sun Mar 15 14:35:34 AEDT 2020


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.

Julien.


More information about the users mailing list