From: Niel Markwick <markwicn@sebb.bel.alcatel.be>
Subject: nanosleep on Digial Unix 4.0
Date: 1998/08/18 [thread overview]
Message-ID: <35D9B486.2A5999AC@sebb.bel.alcatel.be> (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.
next reply other threads:[~1998-08-18 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-18 4:00 Niel Markwick [this message]
1998-08-19 4:00 ` nanosleep on Digial Unix 4.0 Jeff Denham
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox