X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=klibc%2Fklibc%2FSYSCALLS.def;h=e8b9a7f176670b5f67d965de19621422fa32588a;hb=6b493a20e1dbf90a4e54d3be37027fa906220c31;hp=dbd7dc8434a659dd3682653d82e6a7a2c0cc3643;hpb=a0622777688ad84ef3d789e0171cfb0ca3dc21d2;p=elogind.git diff --git a/klibc/klibc/SYSCALLS.def b/klibc/klibc/SYSCALLS.def index dbd7dc843..e8b9a7f17 100644 --- a/klibc/klibc/SYSCALLS.def +++ b/klibc/klibc/SYSCALLS.def @@ -11,10 +11,12 @@ ; #include +#include ; ; Process-related syscalls ; + void _exit,exit::_exit(int) pid_t clone::__clone(unsigned long, void *) pid_t clone::__clone2(unsigned long, void *, void *) pid_t fork() @@ -65,7 +67,7 @@ int setresuid32,setresuid::setresuid(int, uid_t, uid, uid_t) int mount(const char *, const char *, const char *, unsigned long, const void *) int umount2(const char *, int) int umount::umount2(const char *, int) - int pivot_root(const char *, const char *) + int pivot_root(const char *, const char *) int sync() #ifdef __NR_statfs64 int statfs64::__statfs64(const char *, size_t, struct statfs *) @@ -99,9 +101,12 @@ mode_t umask(mode_t) int chroot(const char *) int symlink(const char *, const char *) int readlink(const char *, char *, size_t) -int stat64,stat::stat(const char *, struct stat *) -int lstat64,lstat::lstat(const char *, struct stat *) -int fstat64,fstat::fstat(int, struct stat *) + int stat64,stat::stat(const char *, struct stat *) + int lstat64,lstat::lstat(const char *, struct stat *) + int fstat64,fstat::fstat(int, struct stat *) + int stat::stat(const char *, struct stat *) + int lstat::lstat(const char *, struct stat *) + int fstat::fstat(int, struct stat *) int getdents64,getdents::getdents(unsigned int, struct dirent *, unsigned int) int chown32,chown::chown(const char *, uid_t, gid_t) int fchown32,fchown::fchown(int, uid_t, gid_t) @@ -123,7 +128,8 @@ int close(int) int dup(int) int dup2(int, int) int fcntl64@varadic::fcntl(int, int, unsigned long) - int fcntl64,fcntl::fcntl(int, int, unsigned long) + int fcntl(int, int, unsigned long) + int fcntl64,fcntl::fcntl(int, int, unsigned long) int ioctl(int, int, void *) int flock(int, int) int _newselect,select::select(int, fd_set *, fd_set *, fd_set *, struct timeval *) @@ -140,13 +146,15 @@ ssize_t pwrite64,pwrite::pwrite(int, void *, size_t, off_t) ; Signal operations ; int kill(pid_t, int) +; We really should get rid of the non-rt_* of these, but that takes +; sanitizing for all architectures, sigh... int sigaction(int, const struct sigaction *, struct sigaction *) -int rt_sigaction(int, const struct sigaction *, struct sigaction *, size_t) int sigsuspend(const sigset_t *) + int sigpending(sigset_t *) + int sigprocmask(int, const sigset_t *, sigset_t *) +int rt_sigaction(int, const struct sigaction *, struct sigaction *, size_t) int rt_sigsuspend(const sigset_t *, size_t) - int sigpending(sigset_t) int rt_sigpending(sigset_t *, size_t) - int sigprocmask(int, const sigset_t *, sigset_t *) int rt_sigprocmask(int, const sigset_t *, sigset_t *, size_t) unsigned int alarm(unsigned int) int getitimer(int, struct itimerval *) @@ -170,7 +178,8 @@ int munmap(void *, size_t) void * mremap(void *, size_t, size_t, unsigned long) int msync(const void *, size_t, int) int mprotect(const void *, size_t, int) -#if (BITSIZE == 32 && defined(__NR_mmap2)) || (BITSIZE == 64 && !defined(__NR_mmap)) +#if (_BITSIZE == 32 && defined(__NR_mmap2)) || \ + (_BITSIZE == 64 && !defined(__NR_mmap)) void * mmap2::__mmap2(void *, size_t, int, int, int, long) #else void * mmap(void *, size_t, int, int, int, long)