Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* nanosleep on Digial Unix 4.0
@ 1998-08-18  4:00 Niel Markwick
  1998-08-19  4:00 ` Jeff Denham
  0 siblings, 1 reply; 2+ messages in thread
From: Niel Markwick @ 1998-08-18  4:00 UTC (permalink / raw)


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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-08-19  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-18  4:00 nanosleep on Digial Unix 4.0 Niel Markwick
1998-08-19  4:00 ` Jeff Denham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox