talk session

Guy Harris guy at auspex.auspex.com
Mon May 13 06:15:11 AEST 1991


>:Actually usleep(3) is going away in System V Release 4 (SVr4)
>:so you can use select(2):
>
>Am I missing something here, or why can't you just make a usleep out
>of setitimer?  You could even use ITIMER_REAL.

Funny, that's just what Berkeley did when they did "usleep()" in the
first place....

And yes, you could do that in S5R4; in fact, that's probably what the
"usleep()" in the BSD compatibility package in S5R4 (see "UNIX(R) System
V Release 4 BSD/XENIX(R) Compatibility Guide) does (in fact, they may
well just have lifted the BSD code...).

I don't know what "usleep(3) is going away in S5R4" means; it wasn't
*in* any S5 releases prior to that, so it's not as if S5R4 got rid of
it.  It's not in the "mainstream" C library, but the manual referred to
in the previous paragraph indicates that it's in the BSD compatibility
code.



More information about the Comp.unix.wizards mailing list