pub trait Pal {
Show 121 methods
// Required methods
fn faccessat(
fd: c_int,
path: CStr<'_>,
amode: c_int,
flags: c_int,
) -> Result<()>;
unsafe fn brk(addr: *mut c_void) -> Result<*mut c_void>;
fn chdir(path: CStr<'_>) -> Result<()>;
fn clock_getres(
clk_id: clockid_t,
tp: Option<Out<'_, timespec>>,
) -> Result<()>;
fn clock_gettime(clk_id: clockid_t, tp: Out<'_, timespec>) -> Result<()>;
unsafe fn clock_settime(
clk_id: clockid_t,
tp: *const timespec,
) -> Result<()>;
fn close(fildes: c_int) -> Result<()>;
fn dup2(fildes: c_int, fildes2: c_int) -> Result<c_int>;
unsafe fn execve(
path: CStr<'_>,
argv: *const *mut c_char,
envp: *const *mut c_char,
) -> Result<()>;
unsafe fn fexecve(
fildes: c_int,
argv: *const *mut c_char,
envp: *const *mut c_char,
) -> Result<()>;
fn exit(status: c_int) -> !;
unsafe fn exit_thread(stack_base: *mut (), stack_size: usize) -> !;
fn fchdir(fildes: c_int) -> Result<()>;
fn fchmodat(
dirfd: c_int,
path: Option<CStr<'_>>,
mode: mode_t,
flags: c_int,
) -> Result<()>;
fn fchownat(
fildes: c_int,
path: CStr<'_>,
owner: uid_t,
group: gid_t,
flags: c_int,
) -> Result<()>;
fn fdatasync(fildes: c_int) -> Result<()>;
fn flock(fd: c_int, operation: c_int) -> Result<()>;
fn fstatat(
fildes: c_int,
path: Option<CStr<'_>>,
buf: Out<'_, stat>,
flags: c_int,
) -> Result<()>;
fn fstatvfs(fildes: c_int, buf: Out<'_, statvfs>) -> Result<()>;
fn fcntl(fildes: c_int, cmd: c_int, arg: c_ulonglong) -> Result<c_int>;
unsafe fn fork() -> Result<pid_t>;
fn fpath(fildes: c_int, out: &mut [u8]) -> Result<usize>;
fn fsync(fildes: c_int) -> Result<()>;
fn ftruncate(fildes: c_int, length: off_t) -> Result<()>;
unsafe fn futex_wait(
addr: *mut u32,
val: u32,
deadline: Option<×pec>,
) -> Result<()>;
unsafe fn futex_wake(addr: *mut u32, num: u32) -> Result<u32>;
unsafe fn utimensat(
dirfd: c_int,
path: CStr<'_>,
times: *const timespec,
flag: c_int,
) -> Result<()>;
fn getcwd(buf: Out<'_, [u8]>) -> Result<()>;
fn getdents(fd: c_int, buf: &mut [u8], opaque_offset: u64) -> Result<usize>;
fn dir_seek(fd: c_int, opaque_offset: u64) -> Result<()>;
unsafe fn dent_reclen_offset(
this_dent: &[u8],
offset: usize,
) -> Option<(u16, u64)>;
fn getegid() -> gid_t;
fn geteuid() -> uid_t;
fn getgid() -> gid_t;
fn getgroups(list: Out<'_, [gid_t]>) -> Result<c_int>;
fn getpagesize() -> usize;
fn getpgid(pid: pid_t) -> Result<pid_t>;
fn getpid() -> pid_t;
fn getppid() -> pid_t;
fn getpriority(which: c_int, who: id_t) -> Result<c_int>;
fn getrandom(buf: &mut [u8], flags: c_uint) -> Result<usize>;
fn getresgid(
rgid: Option<Out<'_, gid_t>>,
egid: Option<Out<'_, gid_t>>,
sgid: Option<Out<'_, gid_t>>,
) -> Result<()>;
fn getresuid(
ruid: Option<Out<'_, uid_t>>,
euid: Option<Out<'_, uid_t>>,
suid: Option<Out<'_, uid_t>>,
) -> Result<()>;
fn getrlimit(resource: c_int, rlim: Out<'_, rlimit>) -> Result<()>;
unsafe fn setrlimit(resource: c_int, rlim: *const rlimit) -> Result<()>;
fn getrusage(who: c_int, r_usage: Out<'_, rusage>) -> Result<()>;
fn getsid(pid: pid_t) -> Result<pid_t>;
fn gettid() -> pid_t;
fn gettimeofday(
tp: Out<'_, timeval>,
tzp: Option<Out<'_, timezone>>,
) -> Result<()>;
fn getuid() -> uid_t;
fn linkat(
fd1: c_int,
oldpath: CStr<'_>,
fd2: c_int,
newpath: CStr<'_>,
flags: c_int,
) -> Result<()>;
fn lseek(fildes: c_int, offset: off_t, whence: c_int) -> Result<off_t>;
fn mkdirat(fildes: c_int, path: CStr<'_>, mode: mode_t) -> Result<()>;
fn mkfifoat(dir_fd: c_int, path: CStr<'_>, mode: mode_t) -> Result<()>;
fn mknodat(
fildes: c_int,
path: CStr<'_>,
mode: mode_t,
dev: dev_t,
) -> Result<()>;
unsafe fn mlock(addr: *const c_void, len: usize) -> Result<()>;
unsafe fn mlockall(flags: c_int) -> Result<()>;
unsafe fn mmap(
addr: *mut c_void,
len: usize,
prot: c_int,
flags: c_int,
fildes: c_int,
off: off_t,
) -> Result<*mut c_void>;
unsafe fn mremap(
addr: *mut c_void,
len: usize,
new_len: usize,
flags: c_int,
args: *mut c_void,
) -> Result<*mut c_void>;
unsafe fn mprotect(addr: *mut c_void, len: usize, prot: c_int) -> Result<()>;
unsafe fn msync(addr: *mut c_void, len: usize, flags: c_int) -> Result<()>;
unsafe fn munlock(addr: *const c_void, len: usize) -> Result<()>;
unsafe fn madvise(addr: *mut c_void, len: usize, flags: c_int) -> Result<()>;
unsafe fn munlockall() -> Result<()>;
unsafe fn munmap(addr: *mut c_void, len: usize) -> Result<()>;
unsafe fn nanosleep(
rqtp: *const timespec,
rmtp: *mut timespec,
) -> Result<()>;
fn openat(
dirfd: c_int,
path: CStr<'_>,
oflag: c_int,
mode: mode_t,
) -> Result<c_int>;
fn pipe2(fildes: Out<'_, [c_int; 2]>, flags: c_int) -> Result<()>;
fn posix_fallocate(fd: c_int, offset: u64, length: NonZeroU64) -> Result<()>;
fn posix_getdents(fildes: c_int, buf: &mut [u8]) -> Result<usize>;
unsafe fn rlct_clone(
stack: *mut usize,
os_specific: &mut OsSpecific,
) -> Result<OsTid, Errno>;
unsafe fn rlct_kill(os_tid: OsTid, signal: usize) -> Result<()>;
fn current_os_tid() -> OsTid;
fn read(fildes: c_int, buf: &mut [u8]) -> Result<usize>;
fn pread(fildes: c_int, buf: &mut [u8], offset: off_t) -> Result<usize>;
fn readlinkat(
dirfd: c_int,
pathname: CStr<'_>,
out: &mut [u8],
) -> Result<usize>;
fn renameat2(
old_dir: c_int,
old_path: CStr<'_>,
new_dir: c_int,
new_path: CStr<'_>,
flags: c_uint,
) -> Result<()>;
fn sched_yield() -> Result<()>;
unsafe fn setgroups(size: size_t, list: *const gid_t) -> Result<()>;
fn setpgid(pid: pid_t, pgid: pid_t) -> Result<()>;
fn setpriority(which: c_int, who: id_t, prio: c_int) -> Result<()>;
fn setresgid(rgid: gid_t, egid: gid_t, sgid: gid_t) -> Result<()>;
fn setresuid(ruid: uid_t, euid: uid_t, suid: uid_t) -> Result<()>;
fn setsid() -> Result<c_int>;
unsafe fn spawn(
program: CStr<'_>,
fac: Option<&posix_spawn_file_actions_t>,
fat: Option<&posix_spawnattr_t>,
argv: NulTerminated<'_, *mut c_char>,
envp: Option<NulTerminated<'_, *mut c_char>>,
) -> Result<pid_t>;
fn symlinkat(path1: CStr<'_>, fd: c_int, path2: CStr<'_>) -> Result<()>;
fn sync() -> Result<()>;
fn timer_create(
clock_id: clockid_t,
evp: &sigevent,
timerid: Out<'_, timer_t>,
) -> Result<()>;
fn timer_delete(timerid: timer_t) -> Result<()>;
fn timer_gettime(timerid: timer_t, value: Out<'_, itimerspec>) -> Result<()>;
fn timer_settime(
timerid: timer_t,
flags: c_int,
value: &itimerspec,
ovalue: Option<Out<'_, itimerspec>>,
) -> Result<()>;
fn umask(mask: mode_t) -> mode_t;
fn uname(utsname: Out<'_, utsname>) -> Result<()>;
fn unlinkat(fd: c_int, path: CStr<'_>, flags: c_int) -> Result<()>;
fn waitpid(
pid: pid_t,
stat_loc: Option<Out<'_, c_int>>,
options: c_int,
) -> Result<pid_t>;
fn write(fildes: c_int, buf: &[u8]) -> Result<usize>;
fn pwrite(fildes: c_int, buf: &[u8], offset: off_t) -> Result<usize>;
fn verify() -> bool;
// Provided methods
fn access(path: CStr<'_>, mode: c_int) -> Result<()> { ... }
fn chmod(path: CStr<'_>, mode: mode_t) -> Result<()> { ... }
fn chown(path: CStr<'_>, owner: uid_t, group: gid_t) -> Result<()> { ... }
fn dup(fildes: c_int) -> Result<c_int> { ... }
fn fchmod(fildes: c_int, mode: mode_t) -> Result<()> { ... }
fn fchown(fildes: c_int, owner: uid_t, group: gid_t) -> Result<()> { ... }
fn fstat(fildes: c_int, buf: Out<'_, stat>) -> Result<()> { ... }
fn lstat(path: CStr<'_>, buf: Out<'_, stat>) -> Result<()> { ... }
fn stat(path: CStr<'_>, buf: Out<'_, stat>) -> Result<()> { ... }
unsafe fn futimens(fd: c_int, times: *const timespec) -> Result<()> { ... }
unsafe fn utimens(path: CStr<'_>, times: *const timespec) -> Result<()> { ... }
fn lchown(path: CStr<'_>, owner: uid_t, group: gid_t) -> Result<()> { ... }
fn link(path1: CStr<'_>, path2: CStr<'_>) -> Result<()> { ... }
fn mkdir(path: CStr<'_>, mode: mode_t) -> Result<()> { ... }
fn mkfifo(path: CStr<'_>, mode: mode_t) -> Result<()> { ... }
fn mknod(path: CStr<'_>, mode: mode_t, dev: dev_t) -> Result<()> { ... }
fn open(path: CStr<'_>, oflag: c_int, mode: mode_t) -> Result<c_int> { ... }
fn readlink(pathname: CStr<'_>, out: &mut [u8]) -> Result<usize> { ... }
fn rename(old: CStr<'_>, new: CStr<'_>) -> Result<()> { ... }
fn renameat(
old_dir: c_int,
old_path: CStr<'_>,
new_dir: c_int,
new_path: CStr<'_>,
) -> Result<()> { ... }
fn rmdir(path: CStr<'_>) -> Result<()> { ... }
fn symlink(path1: CStr<'_>, path2: CStr<'_>) -> Result<()> { ... }
fn unlink(path: CStr<'_>) -> Result<()> { ... }
}Expand description
Platform abstraction layer, a platform-agnostic abstraction over syscalls.
Required Methods§
Sourcefn faccessat(
fd: c_int,
path: CStr<'_>,
amode: c_int,
flags: c_int,
) -> Result<()>
fn faccessat( fd: c_int, path: CStr<'_>, amode: c_int, flags: c_int, ) -> Result<()>
Platform implementation of faccessat() from unistd.h.
Sourcefn clock_getres(clk_id: clockid_t, tp: Option<Out<'_, timespec>>) -> Result<()>
fn clock_getres(clk_id: clockid_t, tp: Option<Out<'_, timespec>>) -> Result<()>
Platform implementation of clock_getres() from time.h.
Sourcefn clock_gettime(clk_id: clockid_t, tp: Out<'_, timespec>) -> Result<()>
fn clock_gettime(clk_id: clockid_t, tp: Out<'_, timespec>) -> Result<()>
Platform implementation of clock_gettime() from time.h.
Sourceunsafe fn clock_settime(clk_id: clockid_t, tp: *const timespec) -> Result<()>
unsafe fn clock_settime(clk_id: clockid_t, tp: *const timespec) -> Result<()>
Platform implementation of clock_settime() from time.h.
Sourceunsafe fn execve(
path: CStr<'_>,
argv: *const *mut c_char,
envp: *const *mut c_char,
) -> Result<()>
unsafe fn execve( path: CStr<'_>, argv: *const *mut c_char, envp: *const *mut c_char, ) -> Result<()>
Sourceunsafe fn fexecve(
fildes: c_int,
argv: *const *mut c_char,
envp: *const *mut c_char,
) -> Result<()>
unsafe fn fexecve( fildes: c_int, argv: *const *mut c_char, envp: *const *mut c_char, ) -> Result<()>
unsafe fn exit_thread(stack_base: *mut (), stack_size: usize) -> !
Sourcefn fchmodat(
dirfd: c_int,
path: Option<CStr<'_>>,
mode: mode_t,
flags: c_int,
) -> Result<()>
fn fchmodat( dirfd: c_int, path: Option<CStr<'_>>, mode: mode_t, flags: c_int, ) -> Result<()>
Platform implementation of fchmodat() from sys/stat.h.
Sourcefn fchownat(
fildes: c_int,
path: CStr<'_>,
owner: uid_t,
group: gid_t,
flags: c_int,
) -> Result<()>
fn fchownat( fildes: c_int, path: CStr<'_>, owner: uid_t, group: gid_t, flags: c_int, ) -> Result<()>
Platform implementation of fchownat() from unistd.h.
Sourcefn fdatasync(fildes: c_int) -> Result<()>
fn fdatasync(fildes: c_int) -> Result<()>
Platform implementation of fdatasync() from unistd.h.
Sourcefn flock(fd: c_int, operation: c_int) -> Result<()>
fn flock(fd: c_int, operation: c_int) -> Result<()>
Platform implementation of flock() from sys/file.h.
Sourcefn fstatat(
fildes: c_int,
path: Option<CStr<'_>>,
buf: Out<'_, stat>,
flags: c_int,
) -> Result<()>
fn fstatat( fildes: c_int, path: Option<CStr<'_>>, buf: Out<'_, stat>, flags: c_int, ) -> Result<()>
Platform implementation of fstatat() from sys/stat.h.
Sourcefn fstatvfs(fildes: c_int, buf: Out<'_, statvfs>) -> Result<()>
fn fstatvfs(fildes: c_int, buf: Out<'_, statvfs>) -> Result<()>
Platform implementation of fstatvfs() from sys/statvfs.h.
fn fpath(fildes: c_int, out: &mut [u8]) -> Result<usize>
Sourcefn ftruncate(fildes: c_int, length: off_t) -> Result<()>
fn ftruncate(fildes: c_int, length: off_t) -> Result<()>
Platform implementation of ftruncate() from unistd.h.
unsafe fn futex_wait( addr: *mut u32, val: u32, deadline: Option<×pec>, ) -> Result<()>
unsafe fn futex_wake(addr: *mut u32, num: u32) -> Result<u32>
Sourceunsafe fn utimensat(
dirfd: c_int,
path: CStr<'_>,
times: *const timespec,
flag: c_int,
) -> Result<()>
unsafe fn utimensat( dirfd: c_int, path: CStr<'_>, times: *const timespec, flag: c_int, ) -> Result<()>
Platform implementation of utimensat() (from sys/stat.h.
fn getdents(fd: c_int, buf: &mut [u8], opaque_offset: u64) -> Result<usize>
fn dir_seek(fd: c_int, opaque_offset: u64) -> Result<()>
unsafe fn dent_reclen_offset( this_dent: &[u8], offset: usize, ) -> Option<(u16, u64)>
Sourcefn getgroups(list: Out<'_, [gid_t]>) -> Result<c_int>
fn getgroups(list: Out<'_, [gid_t]>) -> Result<c_int>
Platform implementation of getgroups() from unistd.h.
fn getpagesize() -> usize
Sourcefn getpriority(which: c_int, who: id_t) -> Result<c_int>
fn getpriority(which: c_int, who: id_t) -> Result<c_int>
Platform implementation of getpriority() from sys/resource.h.
Sourcefn getrandom(buf: &mut [u8], flags: c_uint) -> Result<usize>
fn getrandom(buf: &mut [u8], flags: c_uint) -> Result<usize>
Platform implementation of getrandom() from sys/random.h.
Sourcefn getresgid(
rgid: Option<Out<'_, gid_t>>,
egid: Option<Out<'_, gid_t>>,
sgid: Option<Out<'_, gid_t>>,
) -> Result<()>
fn getresgid( rgid: Option<Out<'_, gid_t>>, egid: Option<Out<'_, gid_t>>, sgid: Option<Out<'_, gid_t>>, ) -> Result<()>
Platform implementation of getresgid() from unistd.h.
Sourcefn getresuid(
ruid: Option<Out<'_, uid_t>>,
euid: Option<Out<'_, uid_t>>,
suid: Option<Out<'_, uid_t>>,
) -> Result<()>
fn getresuid( ruid: Option<Out<'_, uid_t>>, euid: Option<Out<'_, uid_t>>, suid: Option<Out<'_, uid_t>>, ) -> Result<()>
Platform implementation of getresuid() from unistd.h.
Sourcefn getrlimit(resource: c_int, rlim: Out<'_, rlimit>) -> Result<()>
fn getrlimit(resource: c_int, rlim: Out<'_, rlimit>) -> Result<()>
Platform implementation of getrlimit() from sys/resource.h.
Sourceunsafe fn setrlimit(resource: c_int, rlim: *const rlimit) -> Result<()>
unsafe fn setrlimit(resource: c_int, rlim: *const rlimit) -> Result<()>
Platform implementation of setrlimit() from sys/resource.h.
Sourcefn getrusage(who: c_int, r_usage: Out<'_, rusage>) -> Result<()>
fn getrusage(who: c_int, r_usage: Out<'_, rusage>) -> Result<()>
Platform implementation of getrusage() from sys/resource.h.
Sourcefn gettimeofday(
tp: Out<'_, timeval>,
tzp: Option<Out<'_, timezone>>,
) -> Result<()>
fn gettimeofday( tp: Out<'_, timeval>, tzp: Option<Out<'_, timezone>>, ) -> Result<()>
Platform implementation of gettimeofday() from sys/time.h.
Sourcefn linkat(
fd1: c_int,
oldpath: CStr<'_>,
fd2: c_int,
newpath: CStr<'_>,
flags: c_int,
) -> Result<()>
fn linkat( fd1: c_int, oldpath: CStr<'_>, fd2: c_int, newpath: CStr<'_>, flags: c_int, ) -> Result<()>
Sourcefn mkdirat(fildes: c_int, path: CStr<'_>, mode: mode_t) -> Result<()>
fn mkdirat(fildes: c_int, path: CStr<'_>, mode: mode_t) -> Result<()>
Platform implementation of mkdirat() from sys/stat.h.
Sourcefn mkfifoat(dir_fd: c_int, path: CStr<'_>, mode: mode_t) -> Result<()>
fn mkfifoat(dir_fd: c_int, path: CStr<'_>, mode: mode_t) -> Result<()>
Platform implementation of mkfifoat() from sys/stat.h.
Sourcefn mknodat(
fildes: c_int,
path: CStr<'_>,
mode: mode_t,
dev: dev_t,
) -> Result<()>
fn mknodat( fildes: c_int, path: CStr<'_>, mode: mode_t, dev: dev_t, ) -> Result<()>
Platform implementation of mknodat() from sys/stat.h.
Sourceunsafe fn mlock(addr: *const c_void, len: usize) -> Result<()>
unsafe fn mlock(addr: *const c_void, len: usize) -> Result<()>
Platform implementation of mlock() from sys/mman.h.
Sourceunsafe fn mlockall(flags: c_int) -> Result<()>
unsafe fn mlockall(flags: c_int) -> Result<()>
Platform implementation of mlockall() from sys/mman.h.
Sourceunsafe fn mmap(
addr: *mut c_void,
len: usize,
prot: c_int,
flags: c_int,
fildes: c_int,
off: off_t,
) -> Result<*mut c_void>
unsafe fn mmap( addr: *mut c_void, len: usize, prot: c_int, flags: c_int, fildes: c_int, off: off_t, ) -> Result<*mut c_void>
Platform implementation of mmap() from sys/mman.h.
Sourceunsafe fn mremap(
addr: *mut c_void,
len: usize,
new_len: usize,
flags: c_int,
args: *mut c_void,
) -> Result<*mut c_void>
unsafe fn mremap( addr: *mut c_void, len: usize, new_len: usize, flags: c_int, args: *mut c_void, ) -> Result<*mut c_void>
Platform implementation of mremap() from sys/mman.h.
Sourceunsafe fn mprotect(addr: *mut c_void, len: usize, prot: c_int) -> Result<()>
unsafe fn mprotect(addr: *mut c_void, len: usize, prot: c_int) -> Result<()>
Platform implementation of mprotect() from sys/mman.h.
Sourceunsafe fn msync(addr: *mut c_void, len: usize, flags: c_int) -> Result<()>
unsafe fn msync(addr: *mut c_void, len: usize, flags: c_int) -> Result<()>
Platform implementation of msync() from sys/mman.h.
Sourceunsafe fn munlock(addr: *const c_void, len: usize) -> Result<()>
unsafe fn munlock(addr: *const c_void, len: usize) -> Result<()>
Platform implementation of munlock() from sys/mman.h.
Sourceunsafe fn madvise(addr: *mut c_void, len: usize, flags: c_int) -> Result<()>
unsafe fn madvise(addr: *mut c_void, len: usize, flags: c_int) -> Result<()>
Platform implementation of madvise() from sys/mman.h.
Sourceunsafe fn munlockall() -> Result<()>
unsafe fn munlockall() -> Result<()>
Platform implementation of munlockall() from sys/mman.h.
Sourceunsafe fn munmap(addr: *mut c_void, len: usize) -> Result<()>
unsafe fn munmap(addr: *mut c_void, len: usize) -> Result<()>
Platform implementation of munmap() from sys/mman.h.
Sourceunsafe fn nanosleep(rqtp: *const timespec, rmtp: *mut timespec) -> Result<()>
unsafe fn nanosleep(rqtp: *const timespec, rmtp: *mut timespec) -> Result<()>
Platform implementation of nanosleep() from time.h.
Sourcefn openat(
dirfd: c_int,
path: CStr<'_>,
oflag: c_int,
mode: mode_t,
) -> Result<c_int>
fn openat( dirfd: c_int, path: CStr<'_>, oflag: c_int, mode: mode_t, ) -> Result<c_int>
Platform implementation of openat() (TODO) from fcntl.h.
Sourcefn posix_fallocate(fd: c_int, offset: u64, length: NonZeroU64) -> Result<()>
fn posix_fallocate(fd: c_int, offset: u64, length: NonZeroU64) -> Result<()>
Platform implementation of posix_fallocate() from fcntl.h.
Sourcefn posix_getdents(fildes: c_int, buf: &mut [u8]) -> Result<usize>
fn posix_getdents(fildes: c_int, buf: &mut [u8]) -> Result<usize>
Platform implementation of posix_getdents() from dirent.h.
unsafe fn rlct_clone( stack: *mut usize, os_specific: &mut OsSpecific, ) -> Result<OsTid, Errno>
unsafe fn rlct_kill(os_tid: OsTid, signal: usize) -> Result<()>
fn current_os_tid() -> OsTid
Sourcefn readlinkat(dirfd: c_int, pathname: CStr<'_>, out: &mut [u8]) -> Result<usize>
fn readlinkat(dirfd: c_int, pathname: CStr<'_>, out: &mut [u8]) -> Result<usize>
Platform implementation of readlinkat() from unistd.h.
Sourcefn renameat2(
old_dir: c_int,
old_path: CStr<'_>,
new_dir: c_int,
new_path: CStr<'_>,
flags: c_uint,
) -> Result<()>
fn renameat2( old_dir: c_int, old_path: CStr<'_>, new_dir: c_int, new_path: CStr<'_>, flags: c_uint, ) -> Result<()>
Platform implementation of renameat2() from stdio.h.
Sourcefn sched_yield() -> Result<()>
fn sched_yield() -> Result<()>
Platform implementation of sched_yield() from sched.h.
Sourceunsafe fn setgroups(size: size_t, list: *const gid_t) -> Result<()>
unsafe fn setgroups(size: size_t, list: *const gid_t) -> Result<()>
Platform implementation of setgroups() from grp.h.
Sourcefn setpriority(which: c_int, who: id_t, prio: c_int) -> Result<()>
fn setpriority(which: c_int, who: id_t, prio: c_int) -> Result<()>
Platform implementation of setpriority() from sys/resource.h.
Sourcefn setresgid(rgid: gid_t, egid: gid_t, sgid: gid_t) -> Result<()>
fn setresgid(rgid: gid_t, egid: gid_t, sgid: gid_t) -> Result<()>
Platform implementation of setresgid() from unistd.h.
Sourcefn setresuid(ruid: uid_t, euid: uid_t, suid: uid_t) -> Result<()>
fn setresuid(ruid: uid_t, euid: uid_t, suid: uid_t) -> Result<()>
Platform implementation of setresuid() from unistd.h.
unsafe fn spawn( program: CStr<'_>, fac: Option<&posix_spawn_file_actions_t>, fat: Option<&posix_spawnattr_t>, argv: NulTerminated<'_, *mut c_char>, envp: Option<NulTerminated<'_, *mut c_char>>, ) -> Result<pid_t>
Sourcefn symlinkat(path1: CStr<'_>, fd: c_int, path2: CStr<'_>) -> Result<()>
fn symlinkat(path1: CStr<'_>, fd: c_int, path2: CStr<'_>) -> Result<()>
Platform implementation of symlinkat() from unistd.h.
Sourcefn timer_create(
clock_id: clockid_t,
evp: &sigevent,
timerid: Out<'_, timer_t>,
) -> Result<()>
fn timer_create( clock_id: clockid_t, evp: &sigevent, timerid: Out<'_, timer_t>, ) -> Result<()>
Platform implementation of timer_create() from time.h.
Sourcefn timer_delete(timerid: timer_t) -> Result<()>
fn timer_delete(timerid: timer_t) -> Result<()>
Platform implementation of timer_delete() from time.h.
Sourcefn timer_gettime(timerid: timer_t, value: Out<'_, itimerspec>) -> Result<()>
fn timer_gettime(timerid: timer_t, value: Out<'_, itimerspec>) -> Result<()>
Platform implementation of timer_gettime() from time.h.
Sourcefn timer_settime(
timerid: timer_t,
flags: c_int,
value: &itimerspec,
ovalue: Option<Out<'_, itimerspec>>,
) -> Result<()>
fn timer_settime( timerid: timer_t, flags: c_int, value: &itimerspec, ovalue: Option<Out<'_, itimerspec>>, ) -> Result<()>
Platform implementation of timer_settime() from time.h.
Sourcefn uname(utsname: Out<'_, utsname>) -> Result<()>
fn uname(utsname: Out<'_, utsname>) -> Result<()>
Platform implementation of uname() from sys/utsname.h.
Sourcefn unlinkat(fd: c_int, path: CStr<'_>, flags: c_int) -> Result<()>
fn unlinkat(fd: c_int, path: CStr<'_>, flags: c_int) -> Result<()>
Platform implementation of unlinkat() from unistd.h.
Sourcefn waitpid(
pid: pid_t,
stat_loc: Option<Out<'_, c_int>>,
options: c_int,
) -> Result<pid_t>
fn waitpid( pid: pid_t, stat_loc: Option<Out<'_, c_int>>, options: c_int, ) -> Result<pid_t>
Platform implementation of waitpid() from sys/wait.h.
fn verify() -> bool
Provided Methods§
Sourcefn chmod(path: CStr<'_>, mode: mode_t) -> Result<()>
fn chmod(path: CStr<'_>, mode: mode_t) -> Result<()>
Platform implementation of chmod() from sys/stat.h.
Sourcefn fchmod(fildes: c_int, mode: mode_t) -> Result<()>
fn fchmod(fildes: c_int, mode: mode_t) -> Result<()>
Platform implementation of fchmod() from sys/stat.h.
Sourcefn fstat(fildes: c_int, buf: Out<'_, stat>) -> Result<()>
fn fstat(fildes: c_int, buf: Out<'_, stat>) -> Result<()>
Platform implementation of fstat() from sys/stat.h.
Sourcefn lstat(path: CStr<'_>, buf: Out<'_, stat>) -> Result<()>
fn lstat(path: CStr<'_>, buf: Out<'_, stat>) -> Result<()>
Platform implementation of lstat() from sys/stat.h.
Sourcefn stat(path: CStr<'_>, buf: Out<'_, stat>) -> Result<()>
fn stat(path: CStr<'_>, buf: Out<'_, stat>) -> Result<()>
Platform implementation of stat() from sys/stat.h.
Sourceunsafe fn futimens(fd: c_int, times: *const timespec) -> Result<()>
unsafe fn futimens(fd: c_int, times: *const timespec) -> Result<()>
Platform implementation of futimens() from sys/stat.h.
Sourceunsafe fn utimens(path: CStr<'_>, times: *const timespec) -> Result<()>
unsafe fn utimens(path: CStr<'_>, times: *const timespec) -> Result<()>
Platform implementation of utimens() (from sys/stat.h.
This is an extension of POSIX.
Sourcefn mkdir(path: CStr<'_>, mode: mode_t) -> Result<()>
fn mkdir(path: CStr<'_>, mode: mode_t) -> Result<()>
Platform implementation of mkdir() from sys/stat.h.
Sourcefn mkfifo(path: CStr<'_>, mode: mode_t) -> Result<()>
fn mkfifo(path: CStr<'_>, mode: mode_t) -> Result<()>
Platform implementation of mkfifo() from sys/stat.h.
Sourcefn mknod(path: CStr<'_>, mode: mode_t, dev: dev_t) -> Result<()>
fn mknod(path: CStr<'_>, mode: mode_t, dev: dev_t) -> Result<()>
Platform implementation of mknod() from sys/stat.h.
Sourcefn readlink(pathname: CStr<'_>, out: &mut [u8]) -> Result<usize>
fn readlink(pathname: CStr<'_>, out: &mut [u8]) -> Result<usize>
Platform implementation of readlink() from unistd.h.
Sourcefn renameat(
old_dir: c_int,
old_path: CStr<'_>,
new_dir: c_int,
new_path: CStr<'_>,
) -> Result<()>
fn renameat( old_dir: c_int, old_path: CStr<'_>, new_dir: c_int, new_path: CStr<'_>, ) -> Result<()>
Platform implementation of renameat() from stdio.h.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".