musl/src/linux
Rich Felker d00ff2950e overhaul syscall interface
this commit shuffles around the location of syscall definitions so
that we can make a syscall() library function with both SYS_* and
__NR_* style syscall names available to user applications, provides
the syscall() library function, and optimizes the code that performs
the actual inline syscalls in the library itself.

previously on i386 when built as PIC (shared library), syscalls were
incurring bus lock (lock prefix) overhead at entry and exit, due to
the way the ebx register was being loaded (xchg instruction with a
memory operand). now the xchg takes place between two registers.

further cleanup to arch/$(ARCH)/syscall.h is planned.
2011-03-19 18:51:42 -04:00
..
brk.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
chroot.c remove standalone syscall cruft 2011-02-15 14:39:02 -05:00
daemon.c make daemon try the operations that might fail before fork rather than after 2011-02-17 10:30:00 -05:00
epoll_create.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
epoll_create1.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
epoll_ctl.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
epoll_pwait.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
epoll_wait.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getdtablesize.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
gethostid.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getopt_long.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getpagesize.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getpass.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
initgroups.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
inotify_add_watch.c add syscall wrappers for inotify 2011-02-19 02:52:29 -05:00
inotify_init.c add syscall wrappers for inotify 2011-02-19 02:52:29 -05:00
inotify_init1.c add syscall wrappers for inotify 2011-02-19 02:52:29 -05:00
inotify_rm_watch.c add syscall wrappers for inotify 2011-02-19 02:52:29 -05:00
klogctl.c remove standalone syscall cruft 2011-02-15 14:39:02 -05:00
mntent.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
mount.c remove standalone syscall cruft 2011-02-15 14:39:02 -05:00
prctl.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
reboot.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
sbrk.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
sendfile.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
setgroups.c cleaning up syscalls in preparation for x86_64 port 2011-02-13 22:45:42 -05:00
sethostname.c remove standalone syscall cruft 2011-02-15 14:39:02 -05:00
settimeofday.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
signalfd.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
sincos.c workaround gcc bug 46926 by providing a dumb sincos implementation 2011-02-19 17:56:57 -05:00
stime.c depends on settimeofday which needs _GNU_SOURCE feature test 2011-03-01 11:57:19 -05:00
swapoff.c remove standalone syscall cruft 2011-02-15 14:39:02 -05:00
swapon.c remove standalone syscall cruft 2011-02-15 14:39:02 -05:00
syscall.c overhaul syscall interface 2011-03-19 18:51:42 -04:00
sysinfo.c remove standalone syscall cruft 2011-02-15 14:39:02 -05:00
umount.c use umount2 syscall for umount (new targets lack old 1-arg umount) 2011-02-13 21:28:43 -05:00
umount2.c syscall cleanup for umount2 2011-02-13 21:29:36 -05:00
utimes.c remove standalone syscall cruft 2011-02-15 14:39:02 -05:00
wait3.c cleanup cruft left from when kernel and user time_t disagreed 2011-02-19 02:28:42 -05:00
wait4.c cleanup cruft left from when kernel and user time_t disagreed 2011-02-19 02:28:42 -05:00