Use the kernel's MAX_ERRNO in the syscall stubs.

Bug: http://code.google.com/p/android/issues/detail?id=53104
Change-Id: Iaabf7025b153e96dc5eca231a33a32d4cb7d8116
This commit is contained in:
Elliott Hughes
2013-03-12 14:57:30 -07:00
parent 94a34010c1
commit 9aceab5015
412 changed files with 1459 additions and 847 deletions

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(__brk)
mov 8(%esp), %ebx
movl $__NR_brk, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(__fcntl)
mov 24(%esp), %edx
movl $__NR_fcntl, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(__fcntl64)
mov 24(%esp), %edx
movl $__NR_fcntl64, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(__fork)
mov 8(%esp), %ebx
movl $__NR_fork, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(__fstatfs64)
mov 24(%esp), %edx
movl $__NR_fstatfs64, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(__getcpu)
mov 24(%esp), %edx
movl $__NR_getcpu, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(__getcwd)
mov 16(%esp), %ecx
movl $__NR_getcwd, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(__getpriority)
mov 16(%esp), %ecx
movl $__NR_getpriority, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(__ioctl)
mov 24(%esp), %edx
movl $__NR_ioctl, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -15,7 +16,7 @@ ENTRY(__llseek)
mov 40(%esp), %edi
movl $__NR__llseek, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -17,7 +18,7 @@ ENTRY(__mmap2)
mov 48(%esp), %ebp
movl $__NR_mmap2, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(__open)
mov 24(%esp), %edx
movl $__NR_open, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(__openat)
mov 32(%esp), %esi
movl $__NR_openat, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(__ptrace)
mov 32(%esp), %esi
movl $__NR_ptrace, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(__reboot)
mov 32(%esp), %esi
movl $__NR_reboot, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(__rt_sigaction)
mov 32(%esp), %esi
movl $__NR_rt_sigaction, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(__rt_sigprocmask)
mov 32(%esp), %esi
movl $__NR_rt_sigprocmask, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(__rt_sigtimedwait)
mov 32(%esp), %esi
movl $__NR_rt_sigtimedwait, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(__sched_getaffinity)
mov 24(%esp), %edx
movl $__NR_sched_getaffinity, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(__set_thread_area)
mov 8(%esp), %ebx
movl $__NR_set_thread_area, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(__setresuid)
mov 24(%esp), %edx
movl $__NR_setresuid32, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(__setreuid)
mov 16(%esp), %ecx
movl $__NR_setreuid32, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(__setuid)
mov 8(%esp), %ebx
movl $__NR_setuid32, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(__sigsuspend)
mov 24(%esp), %edx
movl $__NR_sigsuspend, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(__statfs64)
mov 24(%esp), %edx
movl $__NR_statfs64, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -15,7 +16,7 @@ ENTRY(__sys_clone)
mov 40(%esp), %edi
movl $__NR_clone, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(__syslog)
mov 24(%esp), %edx
movl $__NR_syslog, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(__timer_create)
mov 24(%esp), %edx
movl $__NR_timer_create, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(__timer_delete)
mov 8(%esp), %ebx
movl $__NR_timer_delete, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(__timer_getoverrun)
mov 8(%esp), %ebx
movl $__NR_timer_getoverrun, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(__timer_gettime)
mov 16(%esp), %ecx
movl $__NR_timer_gettime, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(__timer_settime)
mov 32(%esp), %esi
movl $__NR_timer_settime, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(__wait4)
mov 32(%esp), %esi
movl $__NR_wait4, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -15,7 +16,7 @@ ENTRY(__waitid)
mov 40(%esp), %edi
movl $__NR_waitid, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(_exit)
mov 8(%esp), %ebx
movl $__NR_exit_group, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(_exit_thread)
mov 8(%esp), %ebx
movl $__NR_exit, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(_waitpid)
mov 32(%esp), %esi
movl $__NR_waitpid, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -10,7 +11,7 @@ ENTRY(accept)
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(access)
mov 16(%esp), %ecx
movl $__NR_access, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(acct)
mov 8(%esp), %ebx
movl $__NR_acct, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -10,7 +11,7 @@ ENTRY(bind)
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(capget)
mov 16(%esp), %ecx
movl $__NR_capget, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(capset)
mov 16(%esp), %ecx
movl $__NR_capset, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(chdir)
mov 8(%esp), %ebx
movl $__NR_chdir, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(chmod)
mov 16(%esp), %ecx
movl $__NR_chmod, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(chown)
mov 24(%esp), %edx
movl $__NR_chown32, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(chroot)
mov 8(%esp), %ebx
movl $__NR_chroot, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(clock_getres)
mov 16(%esp), %ecx
movl $__NR_clock_getres, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(clock_gettime)
mov 16(%esp), %ecx
movl $__NR_clock_gettime, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(clock_nanosleep)
mov 32(%esp), %esi
movl $__NR_clock_nanosleep, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(clock_settime)
mov 16(%esp), %ecx
movl $__NR_clock_settime, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(close)
mov 8(%esp), %ebx
movl $__NR_close, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -10,7 +11,7 @@ ENTRY(connect)
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(delete_module)
mov 16(%esp), %ecx
movl $__NR_delete_module, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(dup)
mov 8(%esp), %ebx
movl $__NR_dup, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(dup2)
mov 16(%esp), %ecx
movl $__NR_dup2, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(epoll_create)
mov 8(%esp), %ebx
movl $__NR_epoll_create, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(epoll_ctl)
mov 32(%esp), %esi
movl $__NR_epoll_ctl, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(epoll_wait)
mov 32(%esp), %esi
movl $__NR_epoll_wait, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(eventfd)
mov 16(%esp), %ecx
movl $__NR_eventfd2, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(execve)
mov 24(%esp), %edx
movl $__NR_execve, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(faccessat)
mov 32(%esp), %esi
movl $__NR_faccessat, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(fchdir)
mov 8(%esp), %ebx
movl $__NR_fchdir, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(fchmod)
mov 16(%esp), %ecx
movl $__NR_fchmod, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(fchmodat)
mov 32(%esp), %esi
movl $__NR_fchmodat, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(fchown)
mov 24(%esp), %edx
movl $__NR_fchown32, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -15,7 +16,7 @@ ENTRY(fchownat)
mov 40(%esp), %edi
movl $__NR_fchownat, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(fdatasync)
mov 8(%esp), %ebx
movl $__NR_fdatasync, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(fgetxattr)
mov 32(%esp), %esi
movl $__NR_fgetxattr, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(flistxattr)
mov 24(%esp), %edx
movl $__NR_flistxattr, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(flock)
mov 16(%esp), %ecx
movl $__NR_flock, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(fremovexattr)
mov 16(%esp), %ecx
movl $__NR_fremovexattr, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -15,7 +16,7 @@ ENTRY(fsetxattr)
mov 40(%esp), %edi
movl $__NR_fsetxattr, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(fstat)
mov 16(%esp), %ecx
movl $__NR_fstat64, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(fstatat)
mov 32(%esp), %esi
movl $__NR_fstatat64, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(fsync)
mov 8(%esp), %ebx
movl $__NR_fsync, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(ftruncate)
mov 16(%esp), %ecx
movl $__NR_ftruncate, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(ftruncate64)
mov 24(%esp), %edx
movl $__NR_ftruncate64, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -17,7 +18,7 @@ ENTRY(futex)
mov 48(%esp), %ebp
movl $__NR_futex, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(getdents)
mov 24(%esp), %edx
movl $__NR_getdents64, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,11 +1,12 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(getegid)
movl $__NR_getegid32, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,11 +1,12 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(geteuid)
movl $__NR_geteuid32, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,11 +1,12 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(getgid)
movl $__NR_getgid32, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(getgroups)
mov 16(%esp), %ecx
movl $__NR_getgroups32, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(getitimer)
mov 16(%esp), %ecx
movl $__NR_getitimer, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -10,7 +11,7 @@ ENTRY(getpeername)
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(getpgid)
mov 8(%esp), %ebx
movl $__NR_getpgid, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,11 +1,12 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(getpid)
movl $__NR_getpid, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,11 +1,12 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(getppid)
movl $__NR_getppid, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(getresgid)
mov 24(%esp), %edx
movl $__NR_getresgid32, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -11,7 +12,7 @@ ENTRY(getresuid)
mov 24(%esp), %edx
movl $__NR_getresuid32, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(getrlimit)
mov 16(%esp), %ecx
movl $__NR_ugetrlimit, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(getrusage)
mov 16(%esp), %ecx
movl $__NR_getrusage, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -7,7 +8,7 @@ ENTRY(getsid)
mov 8(%esp), %ebx
movl $__NR_getsid, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -10,7 +11,7 @@ ENTRY(getsockname)
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -10,7 +11,7 @@ ENTRY(getsockopt)
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,11 +1,12 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(gettid)
movl $__NR_gettid, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(gettimeofday)
mov 16(%esp), %ecx
movl $__NR_gettimeofday, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,11 +1,12 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(getuid)
movl $__NR_getuid32, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

View File

@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -13,7 +14,7 @@ ENTRY(getxattr)
mov 32(%esp), %esi
movl $__NR_getxattr, %eax
int $0x80
cmpl $-129, %eax
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax

Some files were not shown because too many files have changed in this diff Show More