bionic/libc/arch-x86/syscalls
Elliott Hughes 15a0456d0b Remove unnecessary instructions from x86/x86_64 syscalls.
__set_errno returns -1 exactly so that callers don't need to bother.
The other architectures were already taking advantage of this, but
no one had ever fixed x86 and x86_64.

Change-Id: Ie131494be664f6c4a1bbf8c61bbbed58eac56122
2014-06-05 17:24:30 -07:00
..
__accept4.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__brk.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__connect.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__epoll_pwait.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__exit.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__fcntl64.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__fstatfs64.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__getcpu.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__getcwd.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__getpriority.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__ioctl.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__llseek.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__mmap2.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__openat.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__ppoll.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__pselect6.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__ptrace.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__reboot.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__rt_sigaction.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__rt_sigpending.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__rt_sigprocmask.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__rt_sigsuspend.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__rt_sigtimedwait.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__sched_getaffinity.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__set_thread_area.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__set_tid_address.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__sigaction.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__signalfd4.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__socket.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__statfs64.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__timer_create.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__timer_delete.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__timer_getoverrun.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__timer_gettime.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__timer_settime.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
__waitid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
_exit.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
acct.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
bind.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
capget.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
capset.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
chdir.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
chroot.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
clock_getres.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
clock_gettime.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
clock_nanosleep.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
clock_settime.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
close.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
delete_module.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
dup3.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
dup.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
epoll_create1.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
epoll_ctl.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
eventfd.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
execve.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
faccessat.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fallocate64.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fchdir.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fchmod.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fchmodat.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fchown.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fchownat.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fdatasync.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fgetxattr.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
flistxattr.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
flock.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fremovexattr.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fsetxattr.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fstat64.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fstatat64.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
fsync.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
ftruncate64.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
ftruncate.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getdents.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getegid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
geteuid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getgid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getgroups.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getitimer.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getpeername.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getpgid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getpid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getppid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getresgid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getresuid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getrlimit.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getrusage.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getsid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getsockname.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getsockopt.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
gettimeofday.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getuid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
getxattr.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
init_module.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
inotify_add_watch.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
inotify_init1.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
inotify_rm_watch.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
ioprio_get.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
ioprio_set.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
kill.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
klogctl.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
lgetxattr.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
linkat.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
listen.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
listxattr.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
llistxattr.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
lremovexattr.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
lseek.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
lsetxattr.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
madvise.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
mincore.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
mkdirat.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
mknodat.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
mlock.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
mlockall.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
mount.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
mprotect.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
mremap.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
msync.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
munlock.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
munlockall.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
munmap.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
nanosleep.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
personality.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
pipe2.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
prctl.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
pread64.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
prlimit64.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
pwrite64.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
read.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
readahead.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
readlinkat.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
readv.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
recvfrom.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
recvmmsg.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
recvmsg.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
removexattr.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
renameat.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sched_get_priority_max.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sched_get_priority_min.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sched_getparam.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sched_getscheduler.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sched_rr_get_interval.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sched_setaffinity.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sched_setparam.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sched_setscheduler.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sched_yield.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sendfile64.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sendfile.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sendmmsg.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sendmsg.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sendto.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setgid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setgroups.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setitimer.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setns.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setpgid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setpriority.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setregid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setresgid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setresuid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setreuid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setrlimit.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setsid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setsockopt.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
settimeofday.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setuid.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
setxattr.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
shutdown.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sigaltstack.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
socketpair.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
swapoff.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
swapon.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
symlinkat.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sync.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
sysinfo.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
tgkill.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
timerfd_create.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
timerfd_gettime.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
timerfd_settime.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
times.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
truncate64.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
truncate.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
umask.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
umount2.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
uname.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
unlinkat.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
unshare.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
utimensat.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
wait4.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
write.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00
writev.S Remove unnecessary instructions from x86/x86_64 syscalls. 2014-06-05 17:24:30 -07:00