talk session

Sean Eric Fagan sef at kithrup.COM
Thu May 9 03:57:40 AEST 1991


In article <1991May7.102219.25557 at ssd.kodak.com> weimer at ssd.kodak.com writes:
>Mmmm, my man page doesn't tell me how to sleep for less than 1 second...

SunOS:  usleep()
Xenix:  nap() (note also present in SysVr3.2 and later)
SysVr3.[01]:  use poll(); this might not be present in your version of
	SysVr3.[01]
SysVr2.x:  use read on a tty device, with min=1 time=<x>, where <x> is the
	number of 1/10ths of a second you wish to delay
4.[23]BSD:  use select() (similar to poll() above, but more portable)

All of thse are (or should be 8-)) documented.  The problem is that, except
for usleep() and nap(), none of them was intended to be used soley as a
sleep-call.

-- 
Sean Eric Fagan  | "I made the universe, but please don't blame me for it;
sef at kithrup.COM  |  I had a bellyache at the time."
-----------------+           -- The Turtle (Stephen King, _It_)
Any opinions expressed are my own, and generally unpopular with others.



More information about the Comp.unix.wizards mailing list