__errno_location export
Momchil Velikov
velco@fadata.bg
Sun Dec 1 13:40:00 GMT 2002
>>>>> "Jakub" == Jakub Jelinek <jakub@redhat.com> writes:
Jakub> On Sun, Dec 01, 2002 at 10:22:17PM +0200, Momchil Velikov
Jakub> wrote:
>> >>>>> "Jakub" == Jakub Jelinek <jakub@redhat.com> writes:
>>
Jakub> 2002-11-25 Jakub Jelinek <jakub@redhat.com>
>>
Jakub> * include/errno.h (__set_errno): Define as errno = val
Jakub> unconditionally.
>> This way I get undefined references to errno, most probably
>> because of the following in sysdeps/generic/errno.c
Jakub> The above mentioned change has nothing to do with export of
Jakub> errno.
The above change replaces references to ``__errno_location'' with
references to ``erno''. It has much to do with whether ``errno'' is
exported or not.
Jakub> It depends if your port is using __errno_location in
Jakub> bits/errno.h as definition of errno, or not. If yes, then
Jakub> not exporting errno as link time symbol is desirable,
Jakub> otherwise you IMHO shouldn't be using
Jakub> sysdeps/generic/errno.c.
Well then, I guess I should #define errno (*__errno_location ()) in
the port's bits/errno.h.
Thanks,
-velco
More information about the Libc-alpha
mailing list