Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 May 1997 13:01:28 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG, peter@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libc/gen usleep.c
Message-ID:  <199705180301.NAA20270@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified files:
>    lib/libc/gen         usleep.c 
>  Log:
>  if nanosleep returns too early, loop.  usleep() does not have a return
>  value, it appears as though the semantics of usleep are that it doesn't
>  return early.  (only in the nanosleep code - the setitimer code does this
>  already)

Where do those semantics appear?  The old behaviour was to return
early.  The man page said otherwise, but so does the BSD4.4-Lite man
page for sleep(3).  usleep.3 is a clone of sleep.3 in in BSD4.4-Lite.
Someone fixed the worst bugs in sleep.3 but didn't change usleep.3.
The actual behaviour hasn't changed since 386BSD.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705180301.NAA20270>