From owner-freebsd-hackers Fri Feb 27 11:31:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA10434 for freebsd-hackers-outgoing; Fri, 27 Feb 1998 11:31:39 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA10379 for ; Fri, 27 Feb 1998 11:31:30 -0800 (PST) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.8.5/8.8.7) id GAA17357; Sat, 28 Feb 1998 06:32:47 +1100 (EST) (envelope-from jb) From: John Birrell Message-Id: <199802271932.GAA17357@cimlogic.com.au> Subject: Re: symbols in libc_r not in libc In-Reply-To: <34F70843.2781E494@opengroup.org> from "Kaleb S. KEITHLEY" at "Feb 27, 98 01:38:59 pm" To: kaleb@opengroup.org Date: Sat, 28 Feb 1998 06:32:47 +1100 (EST) Cc: hackers@FreeBSD.ORG 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-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kaleb S. KEITHLEY wrote: > Well, just that Xlib isn't in the business of providing libc functions > or putting a band-aid over a broken libc. > > The weak __error() function belongs in libc. The cerror in libc needs to call __error() instead of just referencing the global "int errno". It does this when compiled into libc_r, but that won't support kernel threads (which will use libc + libpthread instead of libc_r). I'd like to change errno.h to define errno as *__error() all the time so that you don't have to do anthing special to compile a thread-aware library (like Xlib). I've been running with a complete 'make world' under -current with this errno implementation for some time. I guess I should ask for the go-ahead to commit this to -current. I'd like to see 3rd-party libraries (like Xlib) come thread-aware out-of-the-box. -- John Birrell - jb@cimlogic.com.au; jb@netbsd.org; jb@freebsd.org CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message