From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2da5d5e41670269 X-Google-Attributes: gidfee84,public From: Dave Butenhof Subject: Re: nanosleep ? Date: 1999/08/23 Message-ID: <37C14023.B0712F05@compaq.com>#1/1 X-Deja-AN: 516151749 Content-Transfer-Encoding: 7bit References: <37BCF41F.1EC5804D@de.ans.thomson-csf.com> <37C0ED14.9560FA43@psi.ch> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Compaq Computer Corporation Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Mark Koennecke wrote: > It is in the man pages as nanosleep for DU4.0D. But for some reason I > call the function as nanosleep_d9. The "_d9" identifies that version of nanosleep with the long-since obsolete "draft 9" of the document that eventually (that is, 6 years ago) became the POSIX 1003.1b-1993 "realtime" standard. You shouldn't be using that obsolete (and undocumented) function, as it may be removed "at any time". The POSIX 1003.1b-1993 nanosleep() function can be found, as someone already said, in the librt library. You must use -lrt when linking any program that uses it. /---------------------------[ Dave Butenhof ]--------------------------\ | Compaq Computer Corporation David.Butenhof@compaq.com | | 110 Spit Brook Rd ZKO2-3/Q18 http://members.aol.com/drbutenhof | | Nashua NH 03062-2698 http://www.awl.com/cseng/titles/0-201-63392-2/ | \-----------------[ Better Living Through Concurrency ]----------------/