/third_party/rust/crates/rustix/src/backend/linux_raw/fs/ |
D | syscalls.rs | 60 ret_owned_fd(syscall_readonly!(__NR_open, filename, flags, mode)) in open() 67 ret_owned_fd(syscall_readonly!(__NR_open, filename, flags, mode)) in open() 80 ret_owned_fd(syscall_readonly!(__NR_openat, dirfd, filename, flags, mode)) in openat() 84 ret_owned_fd(syscall_readonly!(__NR_openat, dirfd, filename, flags, mode)) in openat() 98 ret_owned_fd(syscall_readonly!( in openat2() 112 ret_owned_fd(syscall_readonly!( in openat2() 129 ret(syscall_readonly!( in chmod() 140 unsafe { ret(syscall_readonly!(__NR_fchmodat, dirfd, filename, mode)) } in chmodat() 145 unsafe { ret(syscall_readonly!(__NR_fchmod, fd, mode)) } in fchmod() 158 ret(syscall_readonly!( in chownat() [all …]
|
/third_party/rust/crates/rustix/src/backend/linux_raw/process/ |
D | syscalls.rs | 33 unsafe { ret(syscall_readonly!(__NR_chdir, filename)) } in chdir() 38 unsafe { ret(syscall_readonly!(__NR_fchdir, fd)) } in fchdir() 89 let pid: i32 = ret_usize_infallible(syscall_readonly!(__NR_getpid)) as __kernel_pid_t; in getpid() 98 let ppid: i32 = ret_usize_infallible(syscall_readonly!(__NR_getppid)) as __kernel_pid_t; in getppid() 107 ret_usize(syscall_readonly!(__NR_getpgid, c_uint(Pid::as_raw(pid))))? as __kernel_pid_t; in getpgid() 119 let pgid: i32 = ret_usize_infallible(syscall_readonly!(__NR_getpgrp)) as __kernel_pid_t; in getpgrp() 128 ret_usize_infallible(syscall_readonly!(__NR_getpgid, c_uint(0))) as __kernel_pid_t; in getpgrp() 139 (ret_usize_infallible(syscall_readonly!(__NR_getgid32)) as __kernel_gid_t).into(); in getgid() 144 let gid = ret_usize_infallible(syscall_readonly!(__NR_getgid)) as __kernel_gid_t; in getgid() 154 (ret_usize_infallible(syscall_readonly!(__NR_getegid32)) as __kernel_gid_t).into(); in getegid() [all …]
|
/third_party/rust/crates/rustix/src/backend/linux_raw/io/ |
D | syscalls.rs | 171 unsafe { ret_usize(syscall_readonly!(__NR_write, fd, buf_addr, buf_len)) } in write() 184 ret_usize(syscall_readonly!( in pwrite() 199 ret_usize(syscall_readonly!( in pwrite() 210 ret_usize(syscall_readonly!( in pwrite() 224 unsafe { ret_usize(syscall_readonly!(__NR_writev, fd, bufs_addr, bufs_len)) } in writev() 233 ret_usize(syscall_readonly!( in pwritev() 244 ret_usize(syscall_readonly!( in pwritev() 265 ret_usize(syscall_readonly!( in pwritev2() 277 ret_usize(syscall_readonly!( in pwritev2() 297 syscall_readonly!(__NR_close, raw_fd(fd)).decode_void(); in close() [all …]
|
/third_party/rust/crates/rustix/src/backend/linux_raw/runtime/ |
D | syscalls.rs | 26 let pid = ret_c_uint(syscall_readonly!( in fork() 45 ret_error(syscall_readonly!( in execveat() 60 ret_error(syscall_readonly!(__NR_execve, path, args, env_vars)) in execve() 77 ret(syscall_readonly!(__ARM_NR_set_tls, data)) in arm_set_tls() 83 ret_infallible(syscall_readonly!( in set_fs() 93 ret_usize_infallible(syscall_readonly!(__NR_set_tid_address, data)) as __kernel_pid_t; in set_tid_address() 100 ret(syscall_readonly!(__NR_prctl, c_uint(PR_SET_NAME), name)) in set_thread_name()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/net/ |
D | syscalls.rs | 43 ret_owned_fd(syscall_readonly!(__NR_socket, family, type_, protocol)) in socket() 47 ret_owned_fd(syscall_readonly!( in socket() 68 ret_owned_fd(syscall_readonly!( in socket_with() 77 ret_owned_fd(syscall_readonly!( in socket_with() 131 let fd = ret_owned_fd(syscall_readonly!(__NR_accept, fd, zero(), zero()))?; in accept() 136 let fd = ret_owned_fd(syscall_readonly!( in accept() 149 let fd = ret_owned_fd(syscall_readonly!(__NR_accept4, fd, zero(), zero(), flags))?; in accept_with() 154 let fd = ret_owned_fd(syscall_readonly!( in accept_with() 246 ret(syscall_readonly!( in shutdown() 254 ret(syscall_readonly!( in shutdown() [all …]
|
/third_party/rust/crates/rustix/src/backend/linux_raw/thread/ |
D | syscalls.rs | 104 ret(syscall_readonly!( in clock_nanosleep_absolute() 123 ret(syscall_readonly!( in clock_nanosleep_absolute() 139 ret(syscall_readonly!( in clock_nanosleep_absolute_old() 211 let tid: i32 = ret_usize_infallible(syscall_readonly!(__NR_gettid)) as __kernel_pid_t; in gettid() 289 unsafe { ret_c_int(syscall_readonly!(__NR_setns, fd, c_int(nstype))) } in setns() 295 unsafe { ret(syscall_readonly!(__NR_unshare, c_uint(flags.bits()))) } in unshare()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/termios/ |
D | syscalls.rs | 71 ret(syscall_readonly!( in tcsetattr() 82 unsafe { ret(syscall_readonly!(__NR_ioctl, fd, c_uint(TCSBRK), c_uint(0))) } in tcsendbreak() 87 unsafe { ret(syscall_readonly!(__NR_ioctl, fd, c_uint(TCSBRK), c_uint(1))) } in tcdrain() 93 ret(syscall_readonly!( in tcflush() 105 ret(syscall_readonly!( in tcflow()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/io_uring/ |
D | syscalls.rs | 33 ret(syscall_readonly!( in io_uring_register()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/mm/ |
D | syscalls.rs | 213 ret_owned_fd(syscall_readonly!(__NR_userfaultfd, flags)) in userfaultfd()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/arch/ |
D | mod.rs | 136 macro_rules! syscall_readonly { macro
|