From owner-freebsd-hackers Fri Feb 27 11:22:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA06989 for freebsd-hackers-outgoing; Fri, 27 Feb 1998 11:22:16 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from postman.opengroup.org (postman.opengroup.org [130.105.1.152]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA06976 for ; Fri, 27 Feb 1998 11:22:09 -0800 (PST) (envelope-from k.keithley@opengroup.org) Received: from benway (benway.camb.opengroup.org [130.105.9.33]) by postman.opengroup.org (8.8.6/8.8.6) with SMTP id OAA23178 for ; Fri, 27 Feb 1998 14:21:38 -0500 (EST) Message-ID: <34F7128B.106D@opengroup.org> Date: Fri, 27 Feb 1998 14:22:51 -0500 From: "Kaleb S. KEITHLEY" Organization: The Open Group X-Mailer: Mozilla 3.04Gold (X11; I; HP-UX B.10.20 9000/715) MIME-Version: 1.0 To: hackers@FreeBSD.ORG Subject: Re: _POSIX_THREAD_SAFE_FUNCTIONS and *_r functions References: <199802271919.GAA17326@cimlogic.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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