Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!rbj From: rbj@uunet.UU.NET (Root Boy Jim) Newsgroups: comp.unix.wizards Subject: Re: usleep under Vax/Ultrix Message-ID: <126500@uunet.UU.NET> Date: 26 Mar 91 05:13:27 GMT References: <2171@estevax.UUCP> Organization: UUNET Communications Services, Falls Church, VA Lines: 25 In article <2171@estevax.UUCP> iain@estevax.UUCP (Hr Iain Lea) writes: ?I could not find the function usleep(). ?Checked the man pages but could not find it. ?Also did a nm on libc.a and that was negative. ?Checked a Vax/BSD machine and that has it. Try extracting usleep.o from BSD's libc.a and using it under Ultrix! Or get the source and recompile. ?I thought Ultrix used BSD as its porting base, so what happened ? Probably 4.2 vs 4.3. ?Anyway can someone tell me what to use on Ultrix and probably SysV ?in place of usleep() ? Usleep is just a wrapper around setitimer. The key word is "just", as it must coexist with any previous use of itimers. You can also use select with a subsecond sleep. I don't think System V Release 3 has a subsecond sleep. Probably in SVR4. -- [rbj@uunet 1] stty sane unknown mode: sane