Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2003 19:58:31 -0500 (EST)
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        eischen@pcnet1.pcnet.com
Cc:        arch@FreeBSD.org
Subject:   Re: _REENTRANT in math.h & libm oddities.
Message-ID:  <200301240058.h0O0wVt3052922@khavrinen.lcs.mit.edu>
In-Reply-To: <Pine.GSO.4.10.10301231601440.12720-100000@pcnet1.pcnet.com>
References:  <20030123.101335.95024590.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.GSO.4.10.10301231601440.12720-100000@pcnet1.pcnet.com> you write:
>The gcc manpage is wrong.  It should state _REENTRANT instead of
>_THREAD_SAFE.  POSIX specifies that _REENTRANT be defined to get
>these functions.

Obsolete versions of POSIX might say that.  The current version of
POSIX says nothing of the kind: it says that functions of that sort
*shall be declared*, unconditionally.

As I noted elsewhere, the functions in question (lgamma_r() etc.) are
not standard functions at all and POSIX doesn't give a whoop about
when they are declared, provided that they are NOT declared when
_POSIX_C_SOURCE == 200112L.

-GAWollman

-- 
Garrett A. Wollman   | [G]enes make enzymes, and enzymes control the rates of
wollman@lcs.mit.edu  | chemical processes.  Genes do not make ``novelty-
Opinions not those of| seeking'' or any other complex and overt behavior.
MIT, LCS, CRS, or NSA|         - Stephen Jay Gould (1941-2002)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301240058.h0O0wVt3052922>