From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c2df9037e786eac,start X-Google-Attributes: gidfee84,public From: Niel Markwick Subject: nanosleep on Digial Unix 4.0 Date: 1998/08/18 Message-ID: <35D9B486.2A5999AC@sebb.bel.alcatel.be>#1/1 X-Deja-AN: 382349498 Content-Transfer-Encoding: 7bit Organization: Alcatel Bell Kontich Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 I am porting a program from Solaris to Dec Unix and had some problems with the nanosleep function. At first, the program would not link - it claimed nanosleep was an undefined symbol. A search of libc.a revealed that there was no `nanosleep' symbol, but there was a nanosleep_d9. An examination of /usr/include/timers.h reveals that if the macro POSIX_4D9 is defined, a further macro is defined, renaming nanosleep to nanosleep_d9. but the POSIX_4D9 macro is never defined, nor is it used in any other include file. My program will now compile and link, but when run, nanosleep() does nothing - except return with -1 and set errno to 78 (Function not implemented). So what is going on here? I have a man page for nanosleep, that suggests that it is implemented... I did a Dejanews search to find if any one else has had this problem, only to find a thread from last December where it was stated that nanosleep has beem implemented for ages on Dec Unix: news:348C4CE1.C0F99586@zko.dec.com http://www.dejanews.com/[ST_chan=cpu]/getdoc.xp?AN=296355420 I have worked around the problem, but I am just a bit curious about what has happened to nanosleep! Thanks, Niel. PS: Digital UNIX V4.0D (Rev. 878) -- Niel Markwick Alcatel Bell Telecom, Work Email: markwicn@sebb.bel.alcatel.be Kontich, Belgium.