| Index: sysdeps/nacl/sysdep.h
|
| diff --git a/sysdeps/nacl/sysdep.h b/sysdeps/nacl/sysdep.h
|
| index 644cee90bc10496d0c9e0d05db3033da4e66427a..9cbfeb97c661d6414dc1836934ae90a1cc36b4c7 100644
|
| --- a/sysdeps/nacl/sysdep.h
|
| +++ b/sysdeps/nacl/sysdep.h
|
| @@ -11,10 +11,10 @@
|
| arguments and allows to intercept each call in user code.
|
| TODO(khim): implement the interception logic. */
|
|
|
| -#define INTERNAL_SYSCALL(name, err, nr, args...) \
|
| +# define INTERNAL_SYSCALL(name, err, nr, args...) \
|
| INTERNAL_SYSCALL_ ## name ## _ ## nr (&err , ## args)
|
|
|
| -#define INTERNAL_SYSCALL_NCS(name, err, nr, args...) \
|
| +# define INTERNAL_SYSCALL_NCS(name, err, nr, args...) \
|
| INTERNAL_SYSCALL_NCS_ ## nr (name, &err , ## args)
|
|
|
| __extern_always_inline int
|
| @@ -32,6 +32,71 @@ INTERNAL_SYSCALL_access_2 (int *err, const char *pathname, int mode)
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_acct_1 (int *err, const char *filename)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_adjtimex_1 (int *err, struct timex *buf)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_arch_prctl_2 (int *err, int code,
|
| + union __attribute__ ((__transparent_union__))
|
| + {
|
| + long *parg;
|
| + long larg;
|
| + int iarg;
|
| + } addr)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_bdflush_2 (int *err, int func,
|
| + union __attribute__ ((__transparent_union__))
|
| + {
|
| + long *parg;
|
| + long larg;
|
| + int iarg;
|
| + } data)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +struct __user_cap_header_struct;
|
| +struct __user_cap_data_struct;
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_capget_2 (int *err, struct __user_cap_header_struct *hdrp,
|
| + struct __user_cap_data_struct *datap)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_capset_2 (int *err, struct __user_cap_header_struct *hdrp,
|
| + const struct __user_cap_data_struct *datap)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_chdir_1 (int *err, const char *path)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_chmod_2 (int *err, const char *path, mode_t mode)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| @@ -55,6 +120,13 @@ INTERNAL_SYSCALL_chown32_3 (int *err, const char *path,
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_chroot_1 (int *err, const char *path)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_clock_getres_2 (int *err, clockid_t clk_id,
|
| struct timespec *res)
|
| {
|
| @@ -87,6 +159,24 @@ INTERNAL_SYSCALL_clock_settime_2 (int *err, clockid_t clk_id,
|
| return 0;
|
| }
|
|
|
| +struct pthread;
|
| +__extern_always_inline pid_t
|
| +INTERNAL_SYSCALL_clone_7 (int *err, int (*fn)(void *), void *child_stack,
|
| + int flags, void *arg, pid_t *ptid,
|
| + struct pthread *tls, pid_t *ctid)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline pid_t
|
| +INTERNAL_SYSCALL_clone_4(int *err, int (*fn)(void *), void *child_stack,
|
| + int flags, void *arg)
|
| +{
|
| + return INTERNAL_SYSCALL_clone_7 (err, fn, child_stack, flags, arg,
|
| + NULL, NULL, NULL);
|
| +}
|
| +
|
| __extern_always_inline int
|
| INTERNAL_SYSCALL_close_1 (int *err, unsigned int fd)
|
| {
|
| @@ -94,6 +184,53 @@ INTERNAL_SYSCALL_close_1 (int *err, unsigned int fd)
|
| return 0;
|
| }
|
|
|
| +__extern_always_inline __caddr_t
|
| +INTERNAL_SYSCALL_create_module_2 (int *err, const char *name, size_t size)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_delete_module_4 (int *err, const char *name_user,
|
| + unsigned int flags,
|
| + const struct timespec *rqtp,
|
| + struct timespec *rmtp)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_dup_1 (int *err, int oldfd)
|
| +{
|
| + int newfd;
|
| + *err = __nacl_irt_dup (oldfd, &newfd);
|
| + return newfd;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_dup2_2 (int *err, int oldfd, int newfd)
|
| +{
|
| + *err = __nacl_irt_dup2 (oldfd, newfd);
|
| + return newfd;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_epoll_create_1 (int *err, int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_epoll_ctl_4 (int *err, int epfd, int op, int fd,
|
| + struct epoll_event *event)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| __extern_always_inline int
|
| INTERNAL_SYSCALL_epoll_pwait_6 (int *err, int epfd, struct epoll_event *events,
|
| int maxevents, int timeout,
|
| @@ -112,6 +249,14 @@ INTERNAL_SYSCALL_execve_3 (int *err, const char *filename, char *const argv[],
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_epoll_wait_4 (int *err, int epfd, struct epoll_event *events,
|
| + int maxevents, int timeout)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_eventfd2_2 (int *err, unsigned int initval, int flags)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| @@ -121,7 +266,7 @@ INTERNAL_SYSCALL_eventfd2_2 (int *err, unsigned int initval, int flags)
|
| __extern_always_inline int
|
| INTERNAL_SYSCALL_eventfd_1 (int *err, unsigned int initval)
|
| {
|
| - return INTERNAL_SYSCALL_eventfd2_2(err, initval, 0);
|
| + return INTERNAL_SYSCALL_eventfd2_2 (err, initval, 0);
|
| }
|
|
|
| __extern_always_inline int
|
| @@ -133,6 +278,13 @@ INTERNAL_SYSCALL_faccessat_3 (int *err, int dirfd, const char *pathname,
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_fchdir_1 (int *err, int fd)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_fchmod_2 (int *err, int fd, mode_t mode)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| @@ -182,8 +334,6 @@ __extern_always_inline int
|
| INTERNAL_SYSCALL_fcntl64_3 (int *err, int fd, int cmd,
|
| union __attribute__ ((__transparent_union__))
|
| {
|
| - unsigned long long ullarg;
|
| - long long llarg;
|
| unsigned long ularg;
|
| long larg;
|
| unsigned int uiarg;
|
| @@ -195,6 +345,57 @@ INTERNAL_SYSCALL_fcntl64_3 (int *err, int fd, int cmd,
|
| return 0;
|
| }
|
|
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_fdatasync_1 (int *err, int fd)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_flock_2 (int *err, int fd, int operation)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_fgetxattr_4 (int *err, int filedes, const char *name,
|
| + void *value, size_t size)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline ssize_t
|
| +INTERNAL_SYSCALL_flistxattr_3 (int *err, int filedes, char *list, size_t size)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_fremovexattr_2 (int *err, int filedes, const char *name)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_fsetxattr_5 (int *err, int filedes, const char *name,
|
| + const void *value, size_t size, int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_fsync_1 (int *err, int fd)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| __errordecl (__futex_emulation_unknown_operation,
|
| "unknown futex operation or argument");
|
|
|
| @@ -344,6 +545,14 @@ INTERNAL_SYSCALL_futimesat_3 (int *err, int dirfd, const char *pathname,
|
| return 0;
|
| }
|
|
|
| +struct kernel_sym;
|
| +__extern_always_inline ssize_t
|
| +INTERNAL_SYSCALL_get_kernel_syms_1 (int *err, struct kernel_sym *table)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| __extern_always_inline int
|
| INTERNAL_SYSCALL_getcpu_3 (int *err, unsigned *cpu, unsigned *node,
|
| struct getcpu_cache *tcache)
|
| @@ -420,6 +629,13 @@ INTERNAL_SYSCALL_getgroups32_2 (int *err, int size, gid_t *list)
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_getitimer_2 (int *err, int which, struct itimerval *curr_value)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_getmsg_4 (int *err, int fildes, const struct strbuf *ctlptr,
|
| const struct strbuf *dataptr, int *pflags)
|
| {
|
| @@ -427,6 +643,27 @@ INTERNAL_SYSCALL_getmsg_4 (int *err, int fildes, const struct strbuf *ctlptr,
|
| return 0;
|
| }
|
|
|
| +__extern_always_inline pid_t
|
| +INTERNAL_SYSCALL_getpgid_1 (int *err, pid_t pid)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline pid_t
|
| +INTERNAL_SYSCALL_getpgrp_0 (int *err)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline pid_t
|
| +INTERNAL_SYSCALL_getpid_0 (int *err)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| __extern_always_inline int
|
| INTERNAL_SYSCALL_getpmsg_5 (int *err, int fildes, const struct strbuf *ctlptr,
|
| const struct strbuf *dataptr, int *pband, int *pflags)
|
| @@ -435,6 +672,13 @@ INTERNAL_SYSCALL_getpmsg_5 (int *err, int fildes, const struct strbuf *ctlptr,
|
| return 0;
|
| }
|
|
|
| +__extern_always_inline pid_t
|
| +INTERNAL_SYSCALL_getppid_0 (int *err)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| /* The return value of getpriority syscall is biased by this value
|
| to avoid returning negative values. */
|
| __extern_always_inline int
|
| @@ -474,6 +718,20 @@ INTERNAL_SYSCALL_getresuid32_3 (int *err, uid_t *ruid, uid_t *euid, uid_t *ugid)
|
| return 0;
|
| }
|
|
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_getrusage_2 (int *err, int who, struct rusage *usage)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline pid_t
|
| +INTERNAL_SYSCALL_getsid_1 (int *err, pid_t pid)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| __extern_always_inline __kernel_uid_t
|
| INTERNAL_SYSCALL_getuid_0 (int *err)
|
| {
|
| @@ -488,7 +746,15 @@ INTERNAL_SYSCALL_getuid32_0 (int *err)
|
| return 0;
|
| }
|
|
|
| -__extern_always_inline uid_t
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_getxattr_4 (int *err, const char *path, const char *name,
|
| + void *value, size_t size)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_open_3 (int *err, const char *pathname, int flags, mode_t mode)
|
| {
|
| int newfd;
|
| @@ -496,7 +762,7 @@ INTERNAL_SYSCALL_open_3 (int *err, const char *pathname, int flags, mode_t mode)
|
| return newfd;
|
| }
|
|
|
| -__extern_always_inline uid_t
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_openat_4 (int *err, int dirfd, const char *pathname,
|
| int flags, mode_t mode)
|
| {
|
| @@ -505,11 +771,45 @@ INTERNAL_SYSCALL_openat_4 (int *err, int dirfd, const char *pathname,
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_init_module_3 (int *err, void *umod, unsigned long len,
|
| + const char *uargs)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_inotify_add_watch_3 (int *err, int fd, const char *pathname,
|
| + uint32_t mask)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_inotify_init1_1 (int *err, int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_inotify_init_0 (int * err)
|
| +{
|
| + return INTERNAL_SYSCALL_inotify_init1_1 (err, 0);
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_inotify_rm_watch_2 (int *err, int fd, uint32_t wd)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_ioctl_3 (int *err, int d, int request,
|
| union __attribute__ ((__transparent_union__))
|
| {
|
| - unsigned long long ullarg;
|
| - long long llarg;
|
| unsigned long ularg;
|
| long larg;
|
| unsigned int uiarg;
|
| @@ -522,6 +822,21 @@ INTERNAL_SYSCALL_ioctl_3 (int *err, int d, int request,
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_ioperm_3 (int *err, unsigned long from, unsigned long num,
|
| + int turn_on)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_iopl_1 (int *err, int level)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_ipc_6 (int *err, unsigned int call, int first, int second,
|
| int third, void *ptr, long fifth)
|
| {
|
| @@ -568,6 +883,14 @@ INTERNAL_SYSCALL_lchown32_3 (int *err, const char *path,
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_lgetxattr_4 (int *err, const char *path, const char *name,
|
| + void *value, size_t size)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_link_2 (int *err, const char *oldpath, const char *newpath)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| @@ -582,6 +905,37 @@ INTERNAL_SYSCALL_linkat_5 (int *err, int olddfd, const char *oldname,
|
| return 0;
|
| }
|
|
|
| +__extern_always_inline ssize_t
|
| +INTERNAL_SYSCALL_listxattr_3 (int *err, const char *path, char *list,
|
| + size_t size)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline ssize_t
|
| +INTERNAL_SYSCALL_llistxattr_3 (int *err, const char *path, char *list,
|
| + size_t size)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_lremovexattr_2 (int *err, const char *path, const char *name)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_lsetxattr_5 (int *err, const char *path, const char *name,
|
| + const void *value, size_t size, int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| __extern_always_inline int
|
| INTERNAL_SYSCALL_madvise_3 (int *err, void *addr, size_t length, int advice)
|
| {
|
| @@ -590,6 +944,14 @@ INTERNAL_SYSCALL_madvise_3 (int *err, void *addr, size_t length, int advice)
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_mincore_3 (int *err, void *addr, size_t length,
|
| + unsigned char *vec)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_mkdir_2 (int *err, const char *pathname, mode_t mode)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| @@ -620,8 +982,46 @@ INTERNAL_SYSCALL_mknodat_4 (int *err, int dirfd, const char *pathname,
|
| return 0;
|
| }
|
|
|
| -struct mq_attr;
|
| -__extern_always_inline int/*mqd_t*/
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_mlock_2 (int *err, const void *addr, size_t len)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_mlockall_1 (int *err, int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline ssize_t
|
| +INTERNAL_SYSCALL_modify_ldt_3 (int *err, int func, void *ptr,
|
| + unsigned long bytecount)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_mprotect_3 (int *err, const void *addr, size_t len, int prot)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +#if !defined (_LIBC) || defined(IS_IN_librt)
|
| +__extern_always_inline mqd_t
|
| +INTERNAL_SYSCALL_mq_getsetattr_3 (int *err, mqd_t mqdes,
|
| + struct mq_attr *newattr,
|
| + struct mq_attr *oldattr)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline mqd_t
|
| INTERNAL_SYSCALL_mq_open_4 (int *err, const char *name, int oflag, mode_t mode,
|
| struct mq_attr *attr)
|
| {
|
| @@ -630,38 +1030,205 @@ INTERNAL_SYSCALL_mq_open_4 (int *err, const char *name, int oflag, mode_t mode,
|
| }
|
|
|
| __extern_always_inline int
|
| -INTERNAL_SYSCALL_mq_notify_2 (int *err, int/*mqd_t*/ mqdes,
|
| +INTERNAL_SYSCALL_mq_notify_2 (int *err, mqd_t mqdes,
|
| const struct sigevent *notification)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| return 0;
|
| }
|
|
|
| +__extern_always_inline ssize_t
|
| +INTERNAL_SYSCALL_mq_timedreceive_5 (int *err, mqd_t mqdes, char *msg_ptr,
|
| + size_t msg_len, unsigned *msg_prio,
|
| + const struct timespec *abs_timeout)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline mqd_t
|
| +INTERNAL_SYSCALL_mq_timedsend_5 (int *err, mqd_t mqdes, const char *msg_ptr,
|
| + size_t msg_len, unsigned msg_prio,
|
| + const struct timespec *abs_timeout)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_mq_unlink_1 (int *err, const char *name)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +#endif
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_mount_5 (int *err, const char *source, const char *target,
|
| + const char *filesystemtype, unsigned long mountflags,
|
| + const void *data)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline void*
|
| +INTERNAL_SYSCALL_mremap_5 (int *err, void *old_address, size_t old_size,
|
| + size_t new_size, int flags, void *new_address)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return NULL;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_msgctl_3 (int *err, int msqid, int cmd, struct msqid_ds *buf)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_msgget_2 (int *err, key_t key, int msgflg)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline ssize_t
|
| +INTERNAL_SYSCALL_msgrcv_5 (int *err, int msqid, void *msgp, size_t msgsz,
|
| + long msgtyp, int msgflg)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_msgsnd_4 (int *err, int msqid, const void *msgp, size_t msgsz,
|
| + int msgflg)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_msync_3 (int *err, void *addr, size_t length, int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_munlock_2 (int *err, const void *addr, size_t len)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_munlockall_0 (int *err)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_munmap_2 (int *err, void *addr, size_t length)
|
| +{
|
| + *err = __nacl_irt_munmap(addr, length);
|
| + return 0;
|
| +}
|
| +
|
| +struct nfsctl_arg;
|
| +union nfsctl_res;
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_nfsservctl_3 (int *err, int cmd, struct nfsctl_arg *argp,
|
| + union nfsctl_res *resp)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_quotactl_4 (int *err, int cmd, const char *special, int id,
|
| + __caddr_t addr)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_query_module_5 (int *err, const char *name, int which,
|
| + void *buf, size_t bufsize, size_t *ret)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_pause_0 (int *err)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline long
|
| +INTERNAL_SYSCALL_personality_1 (int *err, unsigned long persona)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_pipe2_2 (int *err, int pipefd[2], int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_pipe_1 (int *err, int pipefd[2])
|
| +{
|
| + return INTERNAL_SYSCALL_pipe2_2 (err, pipefd, 0);
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_pivot_root_2 (int *err, const char *new_root,
|
| + const char *put_old)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| __extern_always_inline int
|
| -INTERNAL_SYSCALL_mq_unlink_1 (int *err, const char *name)
|
| +INTERNAL_SYSCALL_poll_3 (int *err, struct pollfd *fds, nfds_t nfds, int timeout)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| return 0;
|
| }
|
|
|
| __extern_always_inline int
|
| -INTERNAL_SYSCALL_munmap_2 (int *err, void *addr, size_t length)
|
| +INTERNAL_SYSCALL_ppoll_5 (int *err, struct pollfd *fds, nfds_t nfds,
|
| + const struct timespec *timeout,
|
| + const sigset_t *sigmask, size_t sigsetsize)
|
| {
|
| - *err = __nacl_irt_munmap(addr, length);
|
| + *err = (38 /* ENOSYS */);
|
| return 0;
|
| }
|
|
|
| __extern_always_inline int
|
| -INTERNAL_SYSCALL_poll_3 (int *err, struct pollfd *fds, nfds_t nfds, int timeout)
|
| +INTERNAL_SYSCALL_prctl_5 (int *err, int option, unsigned long arg2,
|
| + unsigned long arg3, unsigned long arg4,
|
| + unsigned long arg5)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| return 0;
|
| }
|
|
|
| __extern_always_inline int
|
| -INTERNAL_SYSCALL_ppoll_5 (int *err, struct pollfd *fds, nfds_t nfds,
|
| - const struct timespec *timeout,
|
| - const sigset_t *sigmask, size_t sigsetsize)
|
| +INTERNAL_SYSCALL_pselect6_6 (int *err, int nfds, fd_set *readfds,
|
| + fd_set *writefds, fd_set *exceptfds,
|
| + const struct timespec *timeout,
|
| + void *sigmask)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| return 0;
|
| @@ -691,16 +1258,20 @@ INTERNAL_SYSCALL_putpmsg_5 (int *err, int fildes, const struct strbuf *ctlptr,
|
| return 0;
|
| }
|
|
|
| -__extern_always_inline int
|
| +__extern_always_inline ssize_t
|
| +INTERNAL_SYSCALL_readahead_3 (int *err, int fd, __off64_t offset, size_t count)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline ssize_t
|
| INTERNAL_SYSCALL_readahead_4 (int *err, int fd,
|
| __LONG_LONG_PAIR(long offset_high,
|
| long offset_low), size_t count)
|
| {
|
| -#if 0
|
| - off64_t offset = ((off64_t)offset_high) << 32 | offset_low;
|
| -#endif
|
| - *err = (38 /* ENOSYS */);
|
| - return 0;
|
| + __off64_t offset = ((__off64_t)offset_high) << 32 | offset_low;
|
| + return INTERNAL_SYSCALL_readahead_3 (err, fd, offset, count);
|
| }
|
|
|
| __extern_always_inline ssize_t
|
| @@ -741,6 +1312,21 @@ INTERNAL_SYSCALL_reboot_3 (int *err, int magic1, int magic2, int howto)
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_remap_file_pages_5 (int *err, void *addr, size_t size,
|
| + int prot, ssize_t pgoff, int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_removexattr_2 (int *err, const char *path, const char *name)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_rename_2 (int *err, const char *oldpath, const char *newpath)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| @@ -763,7 +1349,7 @@ INTERNAL_SYSCALL_rmdir_1 (int *err, const char *pathname)
|
| }
|
|
|
| __extern_always_inline int
|
| -INTERNAL_SYSCALL_rt_sigpending_2(int *err, sigset_t *set, size_t sigsetsize)
|
| +INTERNAL_SYSCALL_rt_sigpending_2 (int *err, sigset_t *set, size_t sigsetsize)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| return 0;
|
| @@ -841,6 +1427,14 @@ INTERNAL_SYSCALL_sched_getscheduler_1 (int *err, pid_t pid)
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_sched_rr_get_interval_2 (int *err, pid_t pid,
|
| + struct timespec * tp)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_sched_setaffinity_3 (int *err, pid_t pid, size_t cpusetsize,
|
| const cpu_set_t *mask)
|
| {
|
| @@ -864,6 +1458,59 @@ INTERNAL_SYSCALL_sched_setscheduler_3 (int *err, pid_t pid, int policy,
|
| return 0;
|
| }
|
|
|
| +#ifdef __i386__
|
| +#define INTERNAL_SYSCALL_select_5 INTERNAL_SYSCALL__newselect_5
|
| +#endif
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_select_5 (int *err, int nfds, fd_set *readfds,
|
| + fd_set *writefds, fd_set *exceptfds,
|
| + const struct timeval *timeout)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_semctl_4 (int *err, int semid, int semnum, int cmd,
|
| +#ifdef _SEM_SEMUN_UNDEFINED
|
| + int semun)
|
| +#else
|
| + union semun semun)
|
| +#endif
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_semget_3 (int *err, key_t key, int nsems, int semflg)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_semtimedop_4 (int *err, int semid, struct sembuf *sops,
|
| + unsigned nsops, struct timespec *timeout)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_semop_3 (int *err, int semid, struct sembuf *sops,
|
| + unsigned nsops)
|
| +{
|
| + return INTERNAL_SYSCALL_semtimedop_4 (err, semid, sops, nsops, NULL);
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_setdomainname_2 (int *err, const char *name, size_t len)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| __extern_always_inline int
|
| INTERNAL_SYSCALL_setfsgid_1 (int *err, __kernel_gid_t gid)
|
| {
|
| @@ -921,6 +1568,29 @@ INTERNAL_SYSCALL_setgroups32_2 (int *err, int size, const gid_t *list)
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_sethostname_2 (int *err, const char *name, size_t len)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_setitimer_3 (int *err, int which,
|
| + const struct itimerval *new_value,
|
| + struct itimerval *old_value)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_setpgid_2 (int *err, pid_t pid, pid_t pgid)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_setpriority_3 (int *err, int which, int who, int prio)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| @@ -986,6 +1656,14 @@ INTERNAL_SYSCALL_setreuid32_2 (int *err, uid_t ruid, uid_t euid)
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_settimeofday_2 (int *err, const struct timeval *tv,
|
| + const struct timezone *tz)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_set_robust_list_2 (int *err, struct robust_list_head *head,
|
| size_t len)
|
| {
|
| @@ -993,6 +1671,13 @@ INTERNAL_SYSCALL_set_robust_list_2 (int *err, struct robust_list_head *head,
|
| return 0;
|
| }
|
|
|
| +__extern_always_inline pid_t
|
| +INTERNAL_SYSCALL_setsid_0 (int *err)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| __extern_always_inline int
|
| INTERNAL_SYSCALL_setuid_1 (int *err, __kernel_uid_t uid)
|
| {
|
| @@ -1008,6 +1693,49 @@ INTERNAL_SYSCALL_setuid32_1 (int *err, uid_t uid)
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_setxattr_5 (int *err, const char *path, const char *name,
|
| + const void *value, size_t size, int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline void*
|
| +INTERNAL_SYSCALL_shmat_3 (int *err, int shmid, const void *shmaddr, int shmflg)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_shmctl_3 (int *err, int shmid, int cmd, struct shmid_ds *buf)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_shmdt_1 (int *err, const void *shmaddr)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_shmget_3 (int *err, key_t key, size_t size, int shmflg)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_sigaltstack_2 (int *err, const stack_t *ss, stack_t *oss)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_signalfd4_4 (int *err, int fd, const sigset_t *mask,
|
| size_t sigsetsize, int flags)
|
| {
|
| @@ -1023,6 +1751,42 @@ INTERNAL_SYSCALL_signalfd_3 (int *err, int fd, const sigset_t *mask,
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_socket_3 (int *err, int domain, int type, int protocol)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline ssize_t
|
| +INTERNAL_SYSCALL_splice_6 (int *err, int fd_in, loff_t *off_in, int fd_out,
|
| + loff_t *off_out, size_t len, unsigned int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_stime_1 (int *err, time_t *t)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_swapoff_1 (int *err, const char *path)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_swapon_2 (int *err, const char *path, int swapflags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_symlink_2 (int *err, const char *oldpath, const char *newpath)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| @@ -1038,6 +1802,13 @@ INTERNAL_SYSCALL_symlinkat_3 (int *err, const char *oldpath,
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_sync_0 (int *err)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_sync_file_range_6 (int *err, int fd,
|
| __LONG_LONG_PAIR(long offset_high,
|
| long offset_low),
|
| @@ -1046,8 +1817,8 @@ INTERNAL_SYSCALL_sync_file_range_6 (int *err, int fd,
|
| unsigned int flags)
|
| {
|
| #if 0
|
| - off64_t offset = ((off64_t)offset_high) << 32 | offset_low;
|
| - off64_t nbytes = ((off64_t)nbytes_high) << 32 | nbytes_low;
|
| + __off64_t offset = ((__off64_t)offset_high) << 32 | offset_low;
|
| + __off64_t nbytes = ((__off64_t)nbytes_high) << 32 | nbytes_low;
|
| #endif
|
| *err = (38 /* ENOSYS */);
|
| return 0;
|
| @@ -1061,6 +1832,28 @@ INTERNAL_SYSCALL__sysctl_1 (int *err, struct __sysctl_args *args)
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_sysinfo_1 (int *err, struct sysinfo *info)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline ssize_t
|
| +INTERNAL_SYSCALL_tee_4 (int *err, int fd_in, int fd_out, size_t len,
|
| + unsigned int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline ssize_t
|
| +INTERNAL_SYSCALL_syslog_3 (int *err, int type, char *bufp, int len)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_tgkill_3 (int *err, gid_t tgid, pid_t tid, int sig)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| @@ -1121,6 +1914,33 @@ INTERNAL_SYSCALL_tkill_2 (int *err, pid_t tid, int sig)
|
| return 0;
|
| }
|
|
|
| +__extern_always_inline mode_t
|
| +INTERNAL_SYSCALL_umask_1 (int *err, mode_t mask)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_umount2_2 (int *err, const char *target, int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_umount_1 (int *err, const char *target)
|
| +{
|
| + return INTERNAL_SYSCALL_umount2_2 (err, target, 0);
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_uname_1 (int *err, struct utsname *buf)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| __extern_always_inline int
|
| INTERNAL_SYSCALL_unlink_1 (int *err, const char *pathname)
|
| {
|
| @@ -1137,6 +1957,20 @@ INTERNAL_SYSCALL_unlinkat_3 (int *err, int dirfd, const char *pathname,
|
| }
|
|
|
| __extern_always_inline int
|
| +INTERNAL_SYSCALL_unshare_1 (int *err, int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_uselib_1 (int *err, const char *library)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| INTERNAL_SYSCALL_ustat_2 (int *err, dev_t dev, struct ustat *ubuf)
|
| {
|
| *err = (38 /* ENOSYS */);
|
| @@ -1167,6 +2001,38 @@ INTERNAL_SYSCALL_utimensat_4 (int *err, int dirfd, const char *pathname,
|
| return 0;
|
| }
|
|
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_vhangup_0 (int *err)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +#ifdef __i386__
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_vm86_2 (int *err, unsigned long fn,
|
| + struct vm86plus_struct *v86)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| +__extern_always_inline int
|
| +INTERNAL_SYSCALL_vm86old_1 (int *err, struct vm86_struct *info)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +#endif
|
| +
|
| +__extern_always_inline ssize_t
|
| +INTERNAL_SYSCALL_vmsplice_4 (int *err, int fd, const struct iovec *iov,
|
| + unsigned long nr_segs, unsigned int flags)
|
| +{
|
| + *err = (38 /* ENOSYS */);
|
| + return 0;
|
| +}
|
| +
|
| __extern_always_inline pid_t
|
| INTERNAL_SYSCALL_wait3_3 (int *err, int *status, int options,
|
| struct rusage *rusage)
|
| @@ -1230,13 +2096,13 @@ INTERNAL_SYSCALL_set_tid_address_1 (int *err, volatile int *tidptr)
|
| #endif
|
|
|
| #undef INTERNAL_SYSCALL_DECL
|
| -#define INTERNAL_SYSCALL_DECL(err) int err
|
| +# define INTERNAL_SYSCALL_DECL(err) int err
|
|
|
| #undef INTERNAL_SYSCALL_ERRNO
|
| -#define INTERNAL_SYSCALL_ERRNO(val, err) (err)
|
| +# define INTERNAL_SYSCALL_ERRNO(val, err) (err)
|
|
|
| #undef INTERNAL_SYSCALL_ERROR_P
|
| -#define INTERNAL_SYSCALL_ERROR_P(val, err) (err)
|
| +# define INTERNAL_SYSCALL_ERROR_P(val, err) (err)
|
|
|
| /* Define a macro which expands inline into the wrapper code for a IRT
|
| call. */
|
| @@ -1253,16 +2119,12 @@ INTERNAL_SYSCALL_set_tid_address_1 (int *err, volatile int *tidptr)
|
| (long int) resultvar; })
|
|
|
| #undef INTERNAL_VSYSCALL
|
| -#define INTERNAL_VSYSCALL INTERNAL_SYSCALL
|
| +# define INTERNAL_VSYSCALL INTERNAL_SYSCALL
|
|
|
| /* Nacl uses AT_SYSINFO for IRT. Thus sysinfo can never be usable
|
| and it's safe to disable this machinery. */
|
| #undef NEED_DL_SYSINFO
|
|
|
| -#undef __NR_fallocate
|
| -#undef __NR_pselect6
|
| -#undef __NR_rt_sigaction
|
| -
|
| #ifndef __x86_64__
|
| #undef PSEUDO
|
| #define PSEUDO(name, syscall_name, args) \
|
|
|