X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=klibc%2Fklibc%2FSYSCALLS.def;h=b78919b1345763b30edee692f858b387a011576f;hp=dbd7dc8434a659dd3682653d82e6a7a2c0cc3643;hb=accff726856a0b3258a413d823a534f4f437e6b2;hpb=a0622777688ad84ef3d789e0171cfb0ca3dc21d2 diff --git a/klibc/klibc/SYSCALLS.def b/klibc/klibc/SYSCALLS.def index dbd7dc843..b78919b13 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) @@ -109,6 +114,9 @@ int lchown32,lchown::lchown(const char *, uid_t, gid_t) int getcwd::__getcwd(char *, size_t) int utime(const char *, const struct utimbuf *) int utimes(const char *, const struct timeval *) + int inotify_init(void) + int inotify_add_watch(int, const char *, __u32) + int inotify_rm_watch(int, __u32) ; ; I/O operations @@ -123,7 +131,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 *) @@ -139,15 +148,29 @@ ssize_t pwrite64,pwrite::pwrite(int, void *, size_t, off_t) ; ; Signal operations ; +; We really should get rid of the non-rt_* of these, but that takes +; sanitizing for all architectures, sigh. +#ifdef __NR_sigaction +int sigaction::__sigaction(int, const struct sigaction *, struct sigaction *) +#else +int rt_sigaction::__rt_sigaction(int, const struct sigaction *, struct sigaction *, size_t) +#endif +#ifdef __NR_sigsuspend +int sigsuspend(const sigset_t *) +#else +int rt_sigsuspend::__rt_sigsuspend(const sigset_t *, size_t) +#endif +#ifdef __NR_sigpending +int sigpending(sigset_t *) +#else +int rt_sigpending::__rt_sigpending(sigset_t *, size_t) +#endif +#ifdef __NR_sigprocmask +int sigprocmask(int, const sigset_t *, sigset_t *) +#else +int rt_sigprocmask::__rt_sigprocmask(int, const sigset_t *, sigset_t *, size_t) +#endif int kill(pid_t, int) - 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 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 *) int setitimer(int, const struct itimerval *, struct itimerval *) @@ -170,7 +193,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)