platform_bionic/libc/arch-arm/syscalls
David 'Digit' Turner 95d751feac libc: Add ftruncate64 and improve 64-bit parameter syscall handling.
This patch improves the handling of 64-bit parameters in syscalls on ARM.
The ARM EABI mandates that 64-bit quantities be passed in even/odd register
pairs, which requires special treatment.

This allows us to simplify our implementations of pread() and pwrite()
and remove the C stubs for pread64() and pwrite64().

Also add ftruncate64() to <unistd.h>

Change-Id: I407e2fd223ba0093dd2d0b04c6152fadfc9ce3ef

Bug 3107933
2010-12-16 17:04:41 +01:00
..
__brk.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__fcntl.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__fcntl64.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__fork.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__fstatfs64.S libc: fix fstatfs() implementation. 2010-07-08 16:52:27 -07:00
__getcpu.S <sched.h>: Add sched_getcpu() and cpu_set_t 2010-12-06 13:42:54 +01:00
__getcwd.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__getpriority.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__ioctl.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__llseek.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__mmap2.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__open.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__openat.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__ptrace.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__reboot.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__rt_sigaction.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__rt_sigprocmask.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__rt_sigtimedwait.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__sched_getaffinity.S <sched.h>: Add sched_getcpu() and cpu_set_t 2010-12-06 13:42:54 +01:00
__set_tls.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__setresuid.S bonic: libc: cpuacct support for setuid functions 2010-03-02 18:18:04 -08:00
__setreuid.S bonic: libc: cpuacct support for setuid functions 2010-03-02 18:18:04 -08:00
__setuid.S bonic: libc: cpuacct support for setuid functions 2010-03-02 18:18:04 -08:00
__sigsuspend.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__statfs64.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__sys_clone.S Implement clone() C library function properly. 2010-01-25 11:18:30 -08:00
__syslog.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__timer_create.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__timer_delete.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__timer_getoverrun.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__timer_gettime.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__timer_settime.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__wait4.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__waitid.S libc: Add missing waitid() implementation. 2010-09-28 09:18:26 +02:00
_exit.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
_exit_thread.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
accept.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
access.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
acct.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
bind.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
cacheflush.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
capget.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
capset.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
chdir.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
chmod.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
chown.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
chroot.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
clock_getres.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
clock_gettime.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
clock_nanosleep.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
clock_settime.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
close.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
connect.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
delete_module.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
dup.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
dup2.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
epoll_create.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
epoll_ctl.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
epoll_wait.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
eventfd.S libc: add <sys/eventfd.h> and corresponding implementations. 2010-09-28 09:20:37 +02:00
execve.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fchdir.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fchmod.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fchmodat.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fchown.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fchownat.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fdatasync.S libc: Add missing fdatasync() implementation 2010-09-28 09:17:17 +02:00
flock.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fstat.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fstatat.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fsync.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ftruncate.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ftruncate64.S libc: Add ftruncate64 and improve 64-bit parameter syscall handling. 2010-12-16 17:04:41 +01:00
futex.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getdents.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getegid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
geteuid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getgid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getgroups.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getitimer.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getpeername.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getpgid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getpid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getppid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getresgid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getresuid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getrlimit.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getrusage.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getsockname.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getsockopt.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
gettid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
gettimeofday.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
getuid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
init_module.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
inotify_add_watch.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
inotify_init.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
inotify_rm_watch.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ioprio_get.S bionic: syscalls: Add ioprio_set/ioprio_get syscall wrappers 2010-02-23 15:55:29 -08:00
ioprio_set.S bionic: syscalls: Add ioprio_set/ioprio_get syscall wrappers 2010-02-23 15:55:29 -08:00
klogctl.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
lchown.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
link.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
listen.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
lseek.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
lstat.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
madvise.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
mincore.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
mkdir.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
mkdirat.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
mknod.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
mlock.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
mount.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
mprotect.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
mremap.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
msync.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
munlock.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
munmap.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
nanosleep.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
pause.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
pipe.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
pipe2.S libc: Add missing pipe2() declaration and implementation. 2010-09-27 17:33:08 +02:00
poll.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
prctl.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
pread64.S libc: Add ftruncate64 and improve 64-bit parameter syscall handling. 2010-12-16 17:04:41 +01:00
pwrite64.S libc: Add ftruncate64 and improve 64-bit parameter syscall handling. 2010-12-16 17:04:41 +01:00
read.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
readlink.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
readv.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
recvfrom.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
recvmsg.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
rename.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
renameat.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
rmdir.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sched_get_priority_max.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sched_get_priority_min.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sched_getparam.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sched_getscheduler.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sched_rr_get_interval.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sched_setaffinity.S <sched.h>: Add sched_getcpu() and cpu_set_t 2010-12-06 13:42:54 +01:00
sched_setparam.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sched_setscheduler.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sched_yield.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
select.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sendfile.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sendmsg.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sendto.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setgid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setgroups.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setitimer.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setpgid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setpriority.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setregid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setresgid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setrlimit.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setsid.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setsockopt.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
settimeofday.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
shutdown.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sigaction.S Revert "Set SA_RESTORER in sigaction()" 2010-07-29 19:12:04 -07:00
sigaltstack.S add sigaltstack syscall 2010-03-02 11:43:24 +00:00
sigpending.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sigprocmask.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
socket.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
socketpair.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
stat.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
symlink.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sync.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sysinfo.S Add missing sysinfo() implementation (already declared in <sys/sysinfo.h>) - DO NOT MERGE 2010-06-09 13:12:15 -07:00
times.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
truncate.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
umask.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
umount2.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
uname.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
unlink.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
unlinkat.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
utimes.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
vfork.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
write.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
writev.S auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00