Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 1998 21:37:41 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        lada@ws2301.gud.siemens.at
Cc:        hackers@FreeBSD.ORG, kaleb@opengroup.org
Subject:   Re: symbols in libc_r not in libc
Message-ID:  <199802272137.OAA24755@usr05.primenet.com>
In-Reply-To: <199802271257.NAA24819@ws6423.gud.siemens.at> from "marino.ladavac@siemens.at" at Feb 27, 98 01:57:56 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> As far as I can understand weak symbols, you can add your own version of
> __error() in Xlib, as a weak symbol.  That way, the programs that do not
> use libc_r get the __error() from Xlib, and the ones that do from libc_r
> (I take it that the libc_r __error() is a strong symbol).  This should 
> give you exactly what you need exactly where you need it.
> 
> The Xlib implementation of __error() should naturally just return the
> address of errno.  Don't forget to undefine errno when you implement
> the Xlib __error().
> 
> Hope I didn't miss anything.

How about "FreeBSD headers should not be variant based on the
manifest constant 'THREAD_SAFE'"?

The libc is the correct place to put libc_r compatabilities...


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

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



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