Fix _exit for Linux

Ulrich Drepper drepper@redhat.com
Mon Sep 16 10:14:00 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jakub Jelinek wrote:

> There is a difference between libc_hidden_def in .S files and in .c files.
> In .S files it will work even if libc_hidden_proto () was not declared
> in header files (usually the assembly doesn't even include those headers),
> while if you use libc_hidden_{def,weak} without previous libc_hidden_proto,
> things will break badly...

Anyway, the _exit code can now be hidden.  The implementation in glibc 
itself is now correct if compiled with the new kernel headers so there 
is no need to allow it to be overwritten.  Let's change include/unistd.h 
and add hidden everywhere for _exit.

- -- 
- ---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9hhGA2ijCOnn/RHQRAodIAKDGKsw02EoXxh2IKij3axJlDlb80ACgtfNr
bj9Y/7TEIN7bdij2o/pIUfU=
=/JH9
-----END PGP SIGNATURE-----



More information about the Libc-hacker mailing list