int semtimedop (int semid, struct sembuf *sops, size_t nsops, const struct timespec *timeout) { #ifdef __ASSUME_DIRECT_SYSVIPC_SYSCALLS return INLINE_SYSCALL_CALL (semtimedop, semid, sops, nsops, timeout); #else return INLINE_SYSCALL_CALL (ipc, IPCOP_semtimedop, semid, nsops, 0, sops, timeout); #endif }
ssize_t __readahead (int fd, off64_t offset, size_t count) { return INLINE_SYSCALL_CALL (readahead, fd, __ALIGNMENT_ARG SYSCALL_LL64 (offset), count); }
int __open64_nocancel (const char *file, int oflag, ...) { int mode = 0; if (__OPEN_NEEDS_MODE (oflag)) { va_list arg; va_start (arg, oflag); mode = va_arg (arg, int); va_end (arg); } return INLINE_SYSCALL_CALL (openat, AT_FDCWD, file, oflag | EXTRA_OPEN_FLAGS, mode); }
int statx (int fd, const char *path, int flags, unsigned int mask, struct statx *buf) { #ifdef __NR_statx int ret = INLINE_SYSCALL_CALL (statx, fd, path, flags, mask, buf); # ifdef __ASSUME_STATX return ret; # else if (ret == 0 || errno != ENOSYS) /* Preserve non-error/non-ENOSYS return values. */ return ret; # endif #endif #ifndef __ASSUME_STATX return statx_generic (fd, path, flags, mask, buf); #endif }
/* Truncate PATH to LENGTH bytes. */ int __truncate64 (const char *path, off64_t length) { return INLINE_SYSCALL_CALL (truncate64, path, __ALIGNMENT_ARG SYSCALL_LL64 (length)); }