This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __errno_location export


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]