From owner-freebsd-ports Wed Mar 24 15:53:35 1999 Delivered-To: freebsd-ports@freebsd.org Received: from gershwin.tera.com (unknown [207.224.230.28]) by hub.freebsd.org (Postfix) with ESMTP id 8EEEA14F3C for ; Wed, 24 Mar 1999 15:53:34 -0800 (PST) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (tao.tera.com [207.108.223.55]) by gershwin.tera.com (8.8.8/8.8.8) with ESMTP id PAA04813; Wed, 24 Mar 1999 15:53:13 -0800 (PST) Received: (from kline@localhost) by tao.thought.org (8.8.8/8.7.3) id PAA17150; Wed, 24 Mar 1999 15:53:03 -0800 (PST) From: Gary Kline Message-Id: <199903242353.PAA17150@tao.thought.org> Subject: Re: xflame missing nanosleep in 2.2.8 In-Reply-To: <199903242121.GAA12980@dune2.infonia.ne.jp> from OKAZAKI Tetsurou at "Mar 25, 99 06:16:46 am" To: okazaki@be.to (OKAZAKI Tetsurou) Date: Wed, 24 Mar 1999 15:53:02 -0800 (PST) Cc: freebsd-ports@freebsd.org Organization: <> thought.org: public service Unix since 1986... <> X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org According to OKAZAKI Tetsurou: > Hi, > > At Wed, 24 Mar 1999 09:31:06 -0800 (PST), > Gary Kline wrote: > > Does anybody know if we are missing a nanosleep() library call in > > FBSD-2.2.8? Is this in 3.X, or is nanosleep() a Linuxism? A new > > X11R6 addition? > > The nanosleep() function is a POSIXism:-). Online man page says that > 3.X and 4.0-current both provide nanosleep() as a system call function. > > In 2.2.8, nanosleep() is implemented in the libc_r though undocumented: Hmm. A recursive grep finds it is libc/gen, #ifdef THREAD_SAFE. The call is, yes, is libc_r. .... > > bash$ uname -r > 2.2.8-RELEASE > bash$ locate nanosleep > /usr/src/lib/libc_r/uthread/uthread_nanosleep.c > > So maybe you have to pass the flag '-pthread' to the compiler. > No, because it (nanosleep()) is missing from existing libraries. I could back-port this, but that's too much mousing around-- cutting and pasting. :-) I generally argree with things-POSIX, but this time it's irksome. thanks for the insight, gary > -- Gary D. Kline kline@tao.thought.org Public service uNix To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message