bin@primate.wisc.edu (Brain in Neutral) (06/11/90)
My M/120 (RISC/os 4.01) has a usleep(3-BSD) man page, but I can't find the function itself in any of the libraries. Where is it? Is it a ghost? Paul DuBois dubois@primate.wisc.edu
jay@mips.COM (Jay McCauley) (06/11/90)
In article <2588@uakari.primate.wisc.edu> bin@primate.wisc.edu (Brain in Neutral) writes: >My M/120 (RISC/os 4.01) has a usleep(3-BSD) man page, but I can't find >the function itself in any of the libraries. Where is it? Is it a ghost? > >Paul DuBois >dubois@primate.wisc.edu The usleep function was not supplied in 4.0x and derivitives (4.10, 4.20 and 4.30). It is available in 4.50. We had a number of mismatches btw the man pages and the code in 4.0x that we (mostly Tech Pubs) worked hard to resolve. I've been doing this stuff too long to claim perfection, but it is noticeably improved. 4.50 should be available very soon. Stay tuned. -- Jay McCauley MIPS Computer Systems, 928 E. Arques, Sunnyvale, CA 94086 (408)524-8211 {decwrl,pyramid,ames}!mips!jay jay@mips.com
richard@aiai.ed.ac.uk (Richard Tobin) (06/12/90)
>>My M/120 (RISC/os 4.01) has a usleep(3-BSD) man page, but I can't find >>the function itself in any of the libraries. Where is it? Is it a ghost? >The usleep function was not supplied in 4.0x and derivitives For many purposes, this is an adequate replacement: #include <sys/types.h> #include <sys/time.h> void usleep(usecs) unsigned usecs; { struct timeval to; to.tv_usec = usecs % 1000000; to.tv_sec = usecs / 1000000; select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &to); } -- Richard -- Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin
rr@mips.COM (Robert "Bob" Rodriguez) (06/13/90)
In article <2588@uakari.primate.wisc.edu>, bin@primate.wisc.edu (Brain in Neutral) writes: > My M/120 (RISC/os 4.01) has a usleep(3-BSD) man page, but I can't find > the function itself in any of the libraries. Where is it? Is it a ghost? > > Paul DuBois > dubois@primate.wisc.edu Look in /bsd43/lib/libc.a on 4.50 RISC/os Use -systype bsd43 on your compiles..... -- Robert Rodriguez rr@mips.com hi-ho, hi-ho, it's off to workstations I go.....
rosalia@max.physics.sunysb.edu (Mark Galassi) (06/14/90)
In article <2588@uakari.primate.wisc.edu> bin@primate.wisc.edu (Brain in Neutral) writes: >My M/120 (RISC/os 4.01) has a usleep(3-BSD) man page, but I can't find >the function itself in any of the libraries. Where is it? Is it a ghost? usleep is indeed an insidious ghost. several X programs will not compile because it is missing. it is quite frustrating. Has anyone exorcised the other bad ghost on the MIPS and SGI machines (and, really, all system V machines with looser "most BSD" stuff) which is the different pseudo tty scheme? I would LLLLOOOOVVVVEEEE it if someone were to post a port of "screen" to the MIPS and SGI machines. -- {These opinions are mine, and should be everybody else's :-)} Mark Galassi rosalia@dirac.physics.sunysb.edu rosalia@mozart.UUCP rosalia@sunysbnp.BITNET
meissner@osf.org (Michael Meissner) (06/15/90)
In article <1990Jun14.062921.10336@max.physics.sunysb.edu> rosalia@max.physics.sunysb.edu (Mark Galassi) writes: | In article <2588@uakari.primate.wisc.edu> bin@primate.wisc.edu (Brain in Neutral) writes: | >My M/120 (RISC/os 4.01) has a usleep(3-BSD) man page, but I can't find | >the function itself in any of the libraries. Where is it? Is it a ghost? | | usleep is indeed an insidious ghost. several X programs will not compile | because it is missing. it is quite frustrating. However it shouldn't take more than about 5 minutes tops for somebody to code a usleep using select (hint -- have the fd ptrs all point to null words, select something like 32 for the # fd's, and fill in the appropriate time structure). | Has anyone exorcised the other bad ghost on the MIPS and SGI machines | (and, really, all system V machines with looser "most BSD" stuff) which | is the different pseudo tty scheme? | | I would LLLLOOOOVVVVEEEE it if someone were to post a port of "screen" | to the MIPS and SGI machines. | -- | {These opinions are mine, and should be everybody else's :-)} | Mark Galassi rosalia@dirac.physics.sunysb.edu | rosalia@mozart.UUCP rosalia@sunysbnp.BITNET -- Michael Meissner email: meissner@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA Catproof is an oxymoron, Childproof is nearly so