2013-10-16 23:27:59 +02:00
|
|
|
/* Generated by gensyscalls.py. Do not edit. */
|
|
|
|
|
2013-11-07 19:31:05 +01:00
|
|
|
#include <private/bionic_asm.h>
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2014-08-09 00:19:20 +02:00
|
|
|
.hidden __set_errno
|
|
|
|
|
2013-10-25 07:36:58 +02:00
|
|
|
ENTRY(__exit)
|
2009-03-04 04:28:35 +01:00
|
|
|
pushl %ebx
|
2014-05-30 03:17:09 +02:00
|
|
|
.cfi_def_cfa_offset 8
|
2014-01-07 01:39:10 +01:00
|
|
|
.cfi_rel_offset ebx, 0
|
2009-03-04 04:28:35 +01:00
|
|
|
mov 8(%esp), %ebx
|
|
|
|
movl $__NR_exit, %eax
|
|
|
|
int $0x80
|
2013-03-12 22:57:30 +01:00
|
|
|
cmpl $-MAX_ERRNO, %eax
|
2009-03-04 04:28:35 +01:00
|
|
|
jb 1f
|
|
|
|
negl %eax
|
|
|
|
pushl %eax
|
|
|
|
call __set_errno
|
|
|
|
addl $4, %esp
|
|
|
|
1:
|
|
|
|
popl %ebx
|
|
|
|
ret
|
2013-10-25 07:36:58 +02:00
|
|
|
END(__exit)
|