[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: _POSIX_THREAD_SAFE_FUNCTIONS and *_r functions
From: "Kaleb S. KEITHLEY" <k.keithley () opengroup ! org>
Date: 1998-02-27 19:22:51
[Download RAW message or body]
John Birrell wrote:
>
> Kaleb S. KEITHLEY wrote:
> > That means that if you don't have the Thread Safe Functions, then you
> > can't define _POSIX_THREAD_SAFE_FUNCTIONS. (And therefore you can't
> > define _POSIX_THREADS, which is sort of the reverse of the claim that if
> > you define _POSIX_THREADS then you must define
> > _POSIX_THREAD_SAFE_FUNCTIONS.)
>
> Hmm, I've always read the "otherwise" case as making these functions
> optional, but now you've made me reread the clauses, I think I
> agree that _POSIX_THREAD_SAFE_FUNCTIONS means these functions should
> be there. I think they should be in libc, not just libc_r.
Yup, the rationale says they're "useful even for non-threaded programs"
so you can have _POSIX_THREAD_SAFE_FUNCTIONS but not _POSIX_THREADS, to
indicate that the functions exist.
--
Kaleb
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic