Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: dblake@popper.ucsf.edu (David T. Blake)
Subject: Re: nanosleep ?
Date: 1999/08/23	[thread overview]
Message-ID: <slrn7s2kjn.886.dblake@popper.ucsf.edu> (raw)
In-Reply-To: 37C14023.B0712F05@compaq.com

Dave Butenhof <David.Butenhof@compaq.com> wrote:
> 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.

I have a question for someone knowledgable on Dec's libc library.
I tried to use the wordexp function in a C program only to have
it fail. I compiled with debugging symbols and ran dbx only to find
the problem. The wordexp function in the c library makes a
call to
ksh -c set -- ~/.Xdef*; echo $#; while [ $# -gt 0 ]; do \
echo "${#1}"; echo "$1"; shift; done 

So that if the environment is not what ksh wants, you get a return
value of zero. What do I need to do in my program to ensure that
the above ksh call works properly ?

On a second note, it is pretty messed up to have your C library 
functions rely on ksh expansions. It really ought to go the other
way.

-- 
Dave Blake
dblake@phy.ucsf.edu



  reply	other threads:[~1999-08-23  4:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-20  4:00 nanosleep ? Andreas Schnorr ATS/AT #47493
1999-08-20  4:00 ` linnartz
1999-08-23  4:00 ` Mark Koennecke
1999-08-23  4:00   ` Dave Butenhof
1999-08-23  4:00     ` David T. Blake [this message]
1999-08-25  4:00       ` wordexp (not Re: nanosleep ?) Daniel S. Riley
1999-08-25  4:00         ` David T. Blake
1999-08-25  4:00           ` David T. Blake
1999-08-26  4:00             ` Peter da Silva
1999-08-26  4:00               ` David T. Blake
1999-08-26  4:00                 ` Peter da Silva
1999-08-25  4:00       ` nanosleep ? Dave Butenhof
1999-08-25  4:00         ` David T. Blake
1999-08-24  4:00     ` Mark Koennecke
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