From: Jeff Denham <jdenham@brighttiger.com>
Subject: Re: nanosleep on Digial Unix 4.0
Date: 1998/08/19 [thread overview]
Message-ID: <35DACB9B.FCE86A12@brighttiger.com> (raw)
In-Reply-To: 35D9B486.2A5999AC@sebb.bel.alcatel.be
The man page should but doesn't say it -- nanosleep() is
in librt. So add -lrt to your build line.
Stay away from the _D9 stuff! It's old cruft from pre-Digital
OSF days and should have been removed ages ago...
Jeff
Niel Markwick wrote:
> 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.
__________________________________________________
Jeff Denham (jdenham@brighttiger.com)
Bright Tiger Technologies
SmartCluster� Software for Distributed Web Servers
http://www.brighttiger.com
125 Nagog Park
Acton, MA 01720
Phone: (978) 263-5455 x177
Fax: (978) 263-5547
prev parent reply other threads:[~1998-08-19 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-18 4:00 nanosleep on Digial Unix 4.0 Niel Markwick
1998-08-19 4:00 ` Jeff Denham [this message]
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