Skip to main content

Pal

Trait Pal 

Source
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<&timespec>, ) -> 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§

Source

fn faccessat( fd: c_int, path: CStr<'_>, amode: c_int, flags: c_int, ) -> Result<()>

Platform implementation of faccessat() from unistd.h.

Source

unsafe fn brk(addr: *mut c_void) -> Result<*mut c_void>

Platform implementation of brk() from unistd.h.

Source

fn chdir(path: CStr<'_>) -> Result<()>

Platform implementation of chdir() from unistd.h.

Source

fn clock_getres(clk_id: clockid_t, tp: Option<Out<'_, timespec>>) -> Result<()>

Platform implementation of clock_getres() from time.h.

Source

fn clock_gettime(clk_id: clockid_t, tp: Out<'_, timespec>) -> Result<()>

Platform implementation of clock_gettime() from time.h.

Source

unsafe fn clock_settime(clk_id: clockid_t, tp: *const timespec) -> Result<()>

Platform implementation of clock_settime() from time.h.

Source

fn close(fildes: c_int) -> Result<()>

Platform implementation of close() from unistd.h.

Source

fn dup2(fildes: c_int, fildes2: c_int) -> Result<c_int>

Platform implementation of dup2() from unistd.h.

Source

unsafe fn execve( path: CStr<'_>, argv: *const *mut c_char, envp: *const *mut c_char, ) -> Result<()>

Platform implementation of execve() from unistd.h.

Source

unsafe fn fexecve( fildes: c_int, argv: *const *mut c_char, envp: *const *mut c_char, ) -> Result<()>

Platform implementation of fexecve() from unistd.h.

Source

fn exit(status: c_int) -> !

Platform implementation of _Exit() from stdlib.h (or the equivalent _exit() from unistd.h).

Source

unsafe fn exit_thread(stack_base: *mut (), stack_size: usize) -> !

Source

fn fchdir(fildes: c_int) -> Result<()>

Platform implementation of fchdir() from unistd.h.

Source

fn fchmodat( dirfd: c_int, path: Option<CStr<'_>>, mode: mode_t, flags: c_int, ) -> Result<()>

Platform implementation of fchmodat() from sys/stat.h.

Source

fn fchownat( fildes: c_int, path: CStr<'_>, owner: uid_t, group: gid_t, flags: c_int, ) -> Result<()>

Platform implementation of fchownat() from unistd.h.

Source

fn fdatasync(fildes: c_int) -> Result<()>

Platform implementation of fdatasync() from unistd.h.

Source

fn flock(fd: c_int, operation: c_int) -> Result<()>

Platform implementation of flock() from sys/file.h.

Source

fn fstatat( fildes: c_int, path: Option<CStr<'_>>, buf: Out<'_, stat>, flags: c_int, ) -> Result<()>

Platform implementation of fstatat() from sys/stat.h.

Source

fn fstatvfs(fildes: c_int, buf: Out<'_, statvfs>) -> Result<()>

Platform implementation of fstatvfs() from sys/statvfs.h.

Source

fn fcntl(fildes: c_int, cmd: c_int, arg: c_ulonglong) -> Result<c_int>

Platform implementation of fcntl() from fcntl.h.

Source

unsafe fn fork() -> Result<pid_t>

Platform implementation of _Fork() from unistd.h.

Source

fn fpath(fildes: c_int, out: &mut [u8]) -> Result<usize>

Source

fn fsync(fildes: c_int) -> Result<()>

Platform implementation of fsync() from unistd.h.

Source

fn ftruncate(fildes: c_int, length: off_t) -> Result<()>

Platform implementation of ftruncate() from unistd.h.

Source

unsafe fn futex_wait( addr: *mut u32, val: u32, deadline: Option<&timespec>, ) -> Result<()>

Source

unsafe fn futex_wake(addr: *mut u32, num: u32) -> Result<u32>

Source

unsafe fn utimensat( dirfd: c_int, path: CStr<'_>, times: *const timespec, flag: c_int, ) -> Result<()>

Platform implementation of utimensat() (from sys/stat.h.

Source

fn getcwd(buf: Out<'_, [u8]>) -> Result<()>

Platform implementation of getcwd() from unistd.h.

Source

fn getdents(fd: c_int, buf: &mut [u8], opaque_offset: u64) -> Result<usize>

Source

fn dir_seek(fd: c_int, opaque_offset: u64) -> Result<()>

Source

unsafe fn dent_reclen_offset( this_dent: &[u8], offset: usize, ) -> Option<(u16, u64)>

Source

fn getegid() -> gid_t

Platform implementation of getegid() from unistd.h.

Source

fn geteuid() -> uid_t

Platform implementation of geteuid() from unistd.h.

Source

fn getgid() -> gid_t

Platform implementation of getgid() from unistd.h.

Source

fn getgroups(list: Out<'_, [gid_t]>) -> Result<c_int>

Platform implementation of getgroups() from unistd.h.

Source

fn getpagesize() -> usize

Source

fn getpgid(pid: pid_t) -> Result<pid_t>

Platform implementation of getpgid() from unistd.h.

Source

fn getpid() -> pid_t

Platform implementation of getpid() from unistd.h.

Source

fn getppid() -> pid_t

Platform implementation of getppid() from unistd.h.

Source

fn getpriority(which: c_int, who: id_t) -> Result<c_int>

Platform implementation of getpriority() from sys/resource.h.

Source

fn getrandom(buf: &mut [u8], flags: c_uint) -> Result<usize>

Platform implementation of getrandom() from sys/random.h.

Source

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.

Source

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.

Source

fn getrlimit(resource: c_int, rlim: Out<'_, rlimit>) -> Result<()>

Platform implementation of getrlimit() from sys/resource.h.

Source

unsafe fn setrlimit(resource: c_int, rlim: *const rlimit) -> Result<()>

Platform implementation of setrlimit() from sys/resource.h.

Source

fn getrusage(who: c_int, r_usage: Out<'_, rusage>) -> Result<()>

Platform implementation of getrusage() from sys/resource.h.

Source

fn getsid(pid: pid_t) -> Result<pid_t>

Platform implementation of getsid() from unistd.h.

Source

fn gettid() -> pid_t

Platform implementation of gettid() (TODO) from unistd.h.

Source

fn gettimeofday( tp: Out<'_, timeval>, tzp: Option<Out<'_, timezone>>, ) -> Result<()>

Platform implementation of gettimeofday() from sys/time.h.

Source

fn getuid() -> uid_t

Platform implementation of getuid() from unistd.h.

Source

fn linkat( fd1: c_int, oldpath: CStr<'_>, fd2: c_int, newpath: CStr<'_>, flags: c_int, ) -> Result<()>

Platform implementation of linkat() from unistd.h.

Source

fn lseek(fildes: c_int, offset: off_t, whence: c_int) -> Result<off_t>

Platform implementation of lseek() from unistd.h.

Source

fn mkdirat(fildes: c_int, path: CStr<'_>, mode: mode_t) -> Result<()>

Platform implementation of mkdirat() from sys/stat.h.

Source

fn mkfifoat(dir_fd: c_int, path: CStr<'_>, mode: mode_t) -> Result<()>

Platform implementation of mkfifoat() from sys/stat.h.

Source

fn mknodat( fildes: c_int, path: CStr<'_>, mode: mode_t, dev: dev_t, ) -> Result<()>

Platform implementation of mknodat() from sys/stat.h.

Source

unsafe fn mlock(addr: *const c_void, len: usize) -> Result<()>

Platform implementation of mlock() from sys/mman.h.

Source

unsafe fn mlockall(flags: c_int) -> Result<()>

Platform implementation of mlockall() from sys/mman.h.

Source

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.

Source

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.

Source

unsafe fn mprotect(addr: *mut c_void, len: usize, prot: c_int) -> Result<()>

Platform implementation of mprotect() from sys/mman.h.

Source

unsafe fn msync(addr: *mut c_void, len: usize, flags: c_int) -> Result<()>

Platform implementation of msync() from sys/mman.h.

Source

unsafe fn munlock(addr: *const c_void, len: usize) -> Result<()>

Platform implementation of munlock() from sys/mman.h.

Source

unsafe fn madvise(addr: *mut c_void, len: usize, flags: c_int) -> Result<()>

Platform implementation of madvise() from sys/mman.h.

Source

unsafe fn munlockall() -> Result<()>

Platform implementation of munlockall() from sys/mman.h.

Source

unsafe fn munmap(addr: *mut c_void, len: usize) -> Result<()>

Platform implementation of munmap() from sys/mman.h.

Source

unsafe fn nanosleep(rqtp: *const timespec, rmtp: *mut timespec) -> Result<()>

Platform implementation of nanosleep() from time.h.

Source

fn openat( dirfd: c_int, path: CStr<'_>, oflag: c_int, mode: mode_t, ) -> Result<c_int>

Platform implementation of openat() (TODO) from fcntl.h.

Source

fn pipe2(fildes: Out<'_, [c_int; 2]>, flags: c_int) -> Result<()>

Platform implementation of pipe2() from unistd.h.

Source

fn posix_fallocate(fd: c_int, offset: u64, length: NonZeroU64) -> Result<()>

Platform implementation of posix_fallocate() from fcntl.h.

Source

fn posix_getdents(fildes: c_int, buf: &mut [u8]) -> Result<usize>

Platform implementation of posix_getdents() from dirent.h.

Source

unsafe fn rlct_clone( stack: *mut usize, os_specific: &mut OsSpecific, ) -> Result<OsTid, Errno>

Source

unsafe fn rlct_kill(os_tid: OsTid, signal: usize) -> Result<()>

Source

fn current_os_tid() -> OsTid

Source

fn read(fildes: c_int, buf: &mut [u8]) -> Result<usize>

Platform implementation of read() from unistd.h.

Source

fn pread(fildes: c_int, buf: &mut [u8], offset: off_t) -> Result<usize>

Platform implementation of pread() from unistd.h.

Source

fn readlinkat(dirfd: c_int, pathname: CStr<'_>, out: &mut [u8]) -> Result<usize>

Platform implementation of readlinkat() from unistd.h.

Source

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.

Source

fn sched_yield() -> Result<()>

Platform implementation of sched_yield() from sched.h.

Source

unsafe fn setgroups(size: size_t, list: *const gid_t) -> Result<()>

Platform implementation of setgroups() from grp.h.

Source

fn setpgid(pid: pid_t, pgid: pid_t) -> Result<()>

Platform implementation of setpgid() from unistd.h.

Source

fn setpriority(which: c_int, who: id_t, prio: c_int) -> Result<()>

Platform implementation of setpriority() from sys/resource.h.

Source

fn setresgid(rgid: gid_t, egid: gid_t, sgid: gid_t) -> Result<()>

Platform implementation of setresgid() from unistd.h.

Source

fn setresuid(ruid: uid_t, euid: uid_t, suid: uid_t) -> Result<()>

Platform implementation of setresuid() from unistd.h.

Source

fn setsid() -> Result<c_int>

Platform implementation of setsid() from unistd.h.

Source

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>

Source

fn symlinkat(path1: CStr<'_>, fd: c_int, path2: CStr<'_>) -> Result<()>

Platform implementation of symlinkat() from unistd.h.

Source

fn sync() -> Result<()>

Platform implementation of sync() from unistd.h.

Source

fn timer_create( clock_id: clockid_t, evp: &sigevent, timerid: Out<'_, timer_t>, ) -> Result<()>

Platform implementation of timer_create() from time.h.

Source

fn timer_delete(timerid: timer_t) -> Result<()>

Platform implementation of timer_delete() from time.h.

Source

fn timer_gettime(timerid: timer_t, value: Out<'_, itimerspec>) -> Result<()>

Platform implementation of timer_gettime() from time.h.

Source

fn timer_settime( timerid: timer_t, flags: c_int, value: &itimerspec, ovalue: Option<Out<'_, itimerspec>>, ) -> Result<()>

Platform implementation of timer_settime() from time.h.

Source

fn umask(mask: mode_t) -> mode_t

Platform implementation of umask() from sys/stat.h.

Source

fn uname(utsname: Out<'_, utsname>) -> Result<()>

Platform implementation of uname() from sys/utsname.h.

Source

fn unlinkat(fd: c_int, path: CStr<'_>, flags: c_int) -> Result<()>

Platform implementation of unlinkat() from unistd.h.

Source

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.

Source

fn write(fildes: c_int, buf: &[u8]) -> Result<usize>

Platform implementation of write() from unistd.h.

Source

fn pwrite(fildes: c_int, buf: &[u8], offset: off_t) -> Result<usize>

Platform implementation of pwrite() from unistd.h.

Source

fn verify() -> bool

Provided Methods§

Source

fn access(path: CStr<'_>, mode: c_int) -> Result<()>

Platform implementation of access() from unistd.h.

Source

fn chmod(path: CStr<'_>, mode: mode_t) -> Result<()>

Platform implementation of chmod() from sys/stat.h.

Source

fn chown(path: CStr<'_>, owner: uid_t, group: gid_t) -> Result<()>

Platform implementation of chown() from unistd.h.

Source

fn dup(fildes: c_int) -> Result<c_int>

Platform implementation of dup() from unistd.h.

Source

fn fchmod(fildes: c_int, mode: mode_t) -> Result<()>

Platform implementation of fchmod() from sys/stat.h.

Source

fn fchown(fildes: c_int, owner: uid_t, group: gid_t) -> Result<()>

Platform implementation of fchown() from unistd.h.

Source

fn fstat(fildes: c_int, buf: Out<'_, stat>) -> Result<()>

Platform implementation of fstat() from sys/stat.h.

Source

fn lstat(path: CStr<'_>, buf: Out<'_, stat>) -> Result<()>

Platform implementation of lstat() from sys/stat.h.

Source

fn stat(path: CStr<'_>, buf: Out<'_, stat>) -> Result<()>

Platform implementation of stat() from sys/stat.h.

Source

unsafe fn futimens(fd: c_int, times: *const timespec) -> Result<()>

Platform implementation of futimens() from sys/stat.h.

Source

unsafe fn utimens(path: CStr<'_>, times: *const timespec) -> Result<()>

Platform implementation of utimens() (from sys/stat.h. This is an extension of POSIX.

Source

fn lchown(path: CStr<'_>, owner: uid_t, group: gid_t) -> Result<()>

Platform implementation of lchown() from unistd.h.

Platform implementation of link() from unistd.h.

Source

fn mkdir(path: CStr<'_>, mode: mode_t) -> Result<()>

Platform implementation of mkdir() from sys/stat.h.

Source

fn mkfifo(path: CStr<'_>, mode: mode_t) -> Result<()>

Platform implementation of mkfifo() from sys/stat.h.

Source

fn mknod(path: CStr<'_>, mode: mode_t, dev: dev_t) -> Result<()>

Platform implementation of mknod() from sys/stat.h.

Source

fn open(path: CStr<'_>, oflag: c_int, mode: mode_t) -> Result<c_int>

Platform implementation of open() from fcntl.h.

Platform implementation of readlink() from unistd.h.

Source

fn rename(old: CStr<'_>, new: CStr<'_>) -> Result<()>

Platform implementation of rename() from stdio.h.

Source

fn renameat( old_dir: c_int, old_path: CStr<'_>, new_dir: c_int, new_path: CStr<'_>, ) -> Result<()>

Platform implementation of renameat() from stdio.h.

Source

fn rmdir(path: CStr<'_>) -> Result<()>

Platform implementation of rmdir() from unistd.h.

Platform implementation of symlink() from unistd.h.

Platform implementation of unlink() from unistd.h.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Pal for Sys