Fix _exit for Linux

Alexandre Oliva aoliva@redhat.com
Tue Sep 24 21:55:00 GMT 2002


On Sep 25, 2002, Roland McGrath <roland@redhat.com> wrote:

>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> 
>> Roland McGrath wrote:
>> > I think you can just add the alias to sysdeps/unix/_exit.S instead.
>> 
>> No.  MIPS is one of the platforms without a functioning INLINE_SYSCALL
>> implementation.  They need __syscall_* entry points.

> Yes, they need a __syscall_exit alias for _exit.

Such that _exit calls itself recursively? (this was my first reading)

I don't see any useful code in sysdeps/unix/_exit.S.  Certainly not
anything that resembles an actual system call.  What do you mean?
Perhaps that the syscall code generated by syscalls.list should define
_exit as an alias to __syscall_exit?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer



More information about the Libc-hacker mailing list