pub struct Sys;Expand description
Redox syscall implementation of Pal.
Trait Implementations§
Source§impl Pal for Sys
impl Pal for Sys
Source§fn faccessat(fd: c_int, path: CStr<'_>, mode: c_int, flags: c_int) -> Result<()>
fn faccessat(fd: c_int, path: CStr<'_>, mode: c_int, flags: c_int) -> Result<()>
Platform implementation of
faccessat() from unistd.h.Source§fn chmod(path: CStr<'_>, mode: mode_t) -> Result<()>
fn chmod(path: CStr<'_>, mode: mode_t) -> Result<()>
Platform implementation of
chmod() from sys/stat.h.Source§fn clock_getres(clk_id: clockid_t, res: Option<Out<'_, timespec>>) -> Result<()>
fn clock_getres(clk_id: clockid_t, res: Option<Out<'_, timespec>>) -> Result<()>
Platform implementation of
clock_getres() from time.h.Source§fn 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.Source§unsafe 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.Source§unsafe 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<()>
Source§unsafe 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<()>
Source§fn 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.Source§fn 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.Source§fn 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.Source§fn fstatat(
dirfd: c_int,
path: Option<CStr<'_>>,
buf: Out<'_, stat>,
flags: c_int,
) -> Result<()>
fn fstatat( dirfd: 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<()>
fn fstatvfs(fildes: c_int, buf: Out<'_, statvfs>) -> Result<()>
Platform implementation of
fstatvfs() from sys/statvfs.h.Source§fn ftruncate(fd: c_int, len: off_t) -> Result<()>
fn ftruncate(fd: c_int, len: 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>
Source§unsafe 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: u64) -> Result<usize>
fn dir_seek(_fd: c_int, _off: u64) -> Result<()>
unsafe fn dent_reclen_offset( this_dent: &[u8], offset: usize, ) -> Option<(u16, u64)>
Source§fn 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
Source§fn 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.Source§fn 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.Source§fn getresgid(
rgid_out: Option<Out<'_, gid_t>>,
egid_out: Option<Out<'_, gid_t>>,
sgid_out: Option<Out<'_, gid_t>>,
) -> Result<()>
fn getresgid( rgid_out: Option<Out<'_, gid_t>>, egid_out: Option<Out<'_, gid_t>>, sgid_out: Option<Out<'_, gid_t>>, ) -> Result<()>
Platform implementation of
getresgid() from unistd.h.Source§fn getresuid(
ruid_out: Option<Out<'_, uid_t>>,
euid_out: Option<Out<'_, uid_t>>,
suid_out: Option<Out<'_, uid_t>>,
) -> Result<()>
fn getresuid( ruid_out: Option<Out<'_, uid_t>>, euid_out: Option<Out<'_, uid_t>>, suid_out: Option<Out<'_, uid_t>>, ) -> Result<()>
Platform implementation of
getresuid() from unistd.h.Source§fn 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.Source§unsafe 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.Source§fn 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.Source§fn 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.Source§fn 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<()>
Source§fn mkdirat(dir_fd: c_int, path_name: CStr<'_>, mode: mode_t) -> Result<()>
fn mkdirat(dir_fd: c_int, path_name: CStr<'_>, mode: mode_t) -> Result<()>
Platform implementation of
mkdirat() from sys/stat.h.Source§fn mkfifoat(dir_fd: c_int, path_name: CStr<'_>, mode: mode_t) -> Result<()>
fn mkfifoat(dir_fd: c_int, path_name: CStr<'_>, mode: mode_t) -> Result<()>
Platform implementation of
mkfifoat() from sys/stat.h.Source§fn mknodat(
dir_fd: c_int,
path_name: CStr<'_>,
mode: mode_t,
dev: dev_t,
) -> Result<()>
fn mknodat( dir_fd: c_int, path_name: 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<()>
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<()>
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>
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>
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<()>
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<()>
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<()>
unsafe fn munlock(addr: *const c_void, len: usize) -> Result<()>
Platform implementation of
munlock() from sys/mman.h.Source§unsafe fn munlockall() -> Result<()>
unsafe fn munlockall() -> Result<()>
Platform implementation of
munlockall() from sys/mman.h.Source§unsafe 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.Source§unsafe 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.Source§unsafe 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.Source§fn 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.Source§fn 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.Source§fn 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>
unsafe fn rlct_kill(os_tid: OsTid, signal: usize) -> Result<()>
fn current_os_tid() -> OsTid
fn fpath(fildes: c_int, out: &mut [u8]) -> Result<usize>
Source§fn readlinkat(dirfd: c_int, path: CStr<'_>, out: &mut [u8]) -> Result<usize>
fn readlinkat(dirfd: c_int, path: 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<()>
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<()>
fn sched_yield() -> Result<()>
Platform implementation of
sched_yield() from sched.h.Source§unsafe 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.Source§fn 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.Source§fn 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.Source§fn 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>
Source§fn 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.Source§fn 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.Source§fn timer_delete(timerid: timer_t) -> Result<()>
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<()>
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<()>
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 uname(utsname: Out<'_, utsname>) -> Result<(), Errno>
fn uname(utsname: Out<'_, utsname>) -> Result<(), Errno>
Platform implementation of
uname() from sys/utsname.h.Source§fn 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.Source§fn 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
unsafe fn exit_thread(stack_base: *mut (), stack_size: usize) -> !
Source§fn 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.Source§fn 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.Source§fn lstat(path: CStr<'_>, buf: Out<'_, stat>) -> Result<()>
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<()>
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<()>
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<()>
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 mkdir(path: CStr<'_>, mode: mode_t) -> Result<()>
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<()>
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<()>
fn mknod(path: CStr<'_>, mode: mode_t, dev: dev_t) -> Result<()>
Platform implementation of
mknod() from sys/stat.h.Source§fn readlink(pathname: CStr<'_>, out: &mut [u8]) -> Result<usize>
fn readlink(pathname: CStr<'_>, out: &mut [u8]) -> Result<usize>
Platform implementation of
readlink() from unistd.h.Source§fn 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.Source§impl PalEpoll for Sys
impl PalEpoll for Sys
Source§fn epoll_create1(flags: c_int) -> Result<c_int, Errno>
fn epoll_create1(flags: c_int) -> Result<c_int, Errno>
Platform implementation of
epoll_create1() from sys/epoll.h.Source§unsafe fn epoll_ctl(
epfd: c_int,
op: c_int,
fd: c_int,
event: *mut epoll_event,
) -> Result<(), Errno>
unsafe fn epoll_ctl( epfd: c_int, op: c_int, fd: c_int, event: *mut epoll_event, ) -> Result<(), Errno>
Platform implementation of
epoll_ctl() from sys/epoll.h.Source§unsafe fn epoll_pwait(
epfd: c_int,
events: *mut epoll_event,
maxevents: c_int,
timeout: c_int,
sigset: *const sigset_t,
) -> Result<usize, Errno>
unsafe fn epoll_pwait( epfd: c_int, events: *mut epoll_event, maxevents: c_int, timeout: c_int, sigset: *const sigset_t, ) -> Result<usize, Errno>
Platform implementation of
epoll_pwait() from sys/epoll.h.Source§impl PalSignal for Sys
impl PalSignal for Sys
Source§fn getitimer(which: c_int, out: &mut itimerval) -> Result<()>
fn getitimer(which: c_int, out: &mut itimerval) -> Result<()>
Platform implementation of
getitimer() from sys/time.h.Source§fn sigqueue(pid: pid_t, sig: c_int, val: sigval) -> Result<()>
fn sigqueue(pid: pid_t, sig: c_int, val: sigval) -> Result<()>
Platform implementation of
sigqueue() from signal.h.Source§fn setitimer(
which: c_int,
_new: &itimerval,
old: Option<&mut itimerval>,
) -> Result<()>
fn setitimer( which: c_int, _new: &itimerval, old: Option<&mut itimerval>, ) -> Result<()>
Platform implementation of
setitimer() from sys/time.h.Source§fn sigaction(
sig: c_int,
c_act: Option<&sigaction>,
c_oact: Option<&mut sigaction>,
) -> Result<(), Errno>
fn sigaction( sig: c_int, c_act: Option<&sigaction>, c_oact: Option<&mut sigaction>, ) -> Result<(), Errno>
Platform implementation of
sigaction() from signal.h.Source§unsafe fn sigaltstack(
new_c: Option<&stack_t>,
old_c: Option<&mut stack_t>,
) -> Result<(), Errno>
unsafe fn sigaltstack( new_c: Option<&stack_t>, old_c: Option<&mut stack_t>, ) -> Result<(), Errno>
Platform implementation of
sigaltstack() from signal.h.Source§fn sigpending(set: &mut sigset_t) -> Result<(), Errno>
fn sigpending(set: &mut sigset_t) -> Result<(), Errno>
Platform implementation of
sigpending() from signal.h.Source§fn sigprocmask(
how: c_int,
set: Option<&sigset_t>,
oset: Option<&mut sigset_t>,
) -> Result<(), Errno>
fn sigprocmask( how: c_int, set: Option<&sigset_t>, oset: Option<&mut sigset_t>, ) -> Result<(), Errno>
Platform implementation of
sigprocmask() from signal.h.Source§fn sigsuspend(mask: &sigset_t) -> Errno
fn sigsuspend(mask: &sigset_t) -> Errno
Platform implementation of
sigsuspend() from signal.h.Source§impl PalSocket for Sys
impl PalSocket for Sys
Source§unsafe fn accept(
socket: c_int,
address: *mut sockaddr,
address_len: *mut socklen_t,
) -> Result<c_int>
unsafe fn accept( socket: c_int, address: *mut sockaddr, address_len: *mut socklen_t, ) -> Result<c_int>
Platform implementation of
accept() from sys/socket.h.Source§unsafe fn bind(
socket: c_int,
address: *const sockaddr,
address_len: socklen_t,
) -> Result<()>
unsafe fn bind( socket: c_int, address: *const sockaddr, address_len: socklen_t, ) -> Result<()>
Platform implementation of
bind() from sys/socket.h.Source§unsafe fn connect(
socket: c_int,
address: *const sockaddr,
address_len: socklen_t,
) -> Result<c_int>
unsafe fn connect( socket: c_int, address: *const sockaddr, address_len: socklen_t, ) -> Result<c_int>
Platform implementation of
connect() from sys/socket.h.Source§unsafe fn getpeername(
socket: c_int,
address: *mut sockaddr,
address_len: *mut socklen_t,
) -> Result<()>
unsafe fn getpeername( socket: c_int, address: *mut sockaddr, address_len: *mut socklen_t, ) -> Result<()>
Platform implementation of
getpeername() from sys/socket.h.Source§unsafe fn getsockname(
socket: c_int,
address: *mut sockaddr,
address_len: *mut socklen_t,
) -> Result<()>
unsafe fn getsockname( socket: c_int, address: *mut sockaddr, address_len: *mut socklen_t, ) -> Result<()>
Platform implementation of
getsockname() from sys/socket.h.Source§unsafe fn getsockopt(
socket: c_int,
level: c_int,
option_name: c_int,
option_value: *mut c_void,
option_len_ptr: *mut socklen_t,
) -> Result<()>
unsafe fn getsockopt( socket: c_int, level: c_int, option_name: c_int, option_value: *mut c_void, option_len_ptr: *mut socklen_t, ) -> Result<()>
Platform implementation of
getsockopt() from sys/socket.h.Source§fn listen(socket: c_int, backlog: c_int) -> Result<()>
fn listen(socket: c_int, backlog: c_int) -> Result<()>
Platform implementation of
listen() from sys/socket.h.Source§unsafe fn recvfrom(
socket: c_int,
buf: *mut c_void,
len: size_t,
flags: c_int,
address: *mut sockaddr,
address_len: *mut socklen_t,
) -> Result<usize>
unsafe fn recvfrom( socket: c_int, buf: *mut c_void, len: size_t, flags: c_int, address: *mut sockaddr, address_len: *mut socklen_t, ) -> Result<usize>
Platform implementation of
recvfrom() from sys/socket.h.Source§unsafe fn recvmsg(
socket: c_int,
msg: *mut msghdr,
flags: c_int,
) -> Result<usize>
unsafe fn recvmsg( socket: c_int, msg: *mut msghdr, flags: c_int, ) -> Result<usize>
Platform implementation of
recvmsg() from sys/socket.h.Source§unsafe fn sendmsg(
socket: c_int,
msg: *const msghdr,
flags: c_int,
) -> Result<usize>
unsafe fn sendmsg( socket: c_int, msg: *const msghdr, flags: c_int, ) -> Result<usize>
Platform implementation of
sendmsg() from sys/socket.h.Source§unsafe fn sendto(
socket: c_int,
buf: *const c_void,
len: size_t,
flags: c_int,
dest_addr: *const sockaddr,
dest_len: socklen_t,
) -> Result<usize>
unsafe fn sendto( socket: c_int, buf: *const c_void, len: size_t, flags: c_int, dest_addr: *const sockaddr, dest_len: socklen_t, ) -> Result<usize>
Platform implementation of
sendto() from sys/socket.h.Source§unsafe fn setsockopt(
socket: c_int,
level: c_int,
option_name: c_int,
option_value: *const c_void,
option_len: socklen_t,
) -> Result<()>
unsafe fn setsockopt( socket: c_int, level: c_int, option_name: c_int, option_value: *const c_void, option_len: socklen_t, ) -> Result<()>
Platform implementation of
setsockopt() from sys/socket.h.Source§fn shutdown(socket: c_int, how: c_int) -> Result<()>
fn shutdown(socket: c_int, how: c_int) -> Result<()>
Platform implementation of
shutdown() from sys/socket.h.Source§unsafe fn socket(domain: c_int, kind: c_int, protocol: c_int) -> Result<c_int>
unsafe fn socket(domain: c_int, kind: c_int, protocol: c_int) -> Result<c_int>
Platform implementation of
socket() from sys/socket.h.Source§fn socketpair(
domain: c_int,
kind: c_int,
protocol: c_int,
sv: &mut [c_int; 2],
) -> Result<()>
fn socketpair( domain: c_int, kind: c_int, protocol: c_int, sv: &mut [c_int; 2], ) -> Result<()>
Platform implementation of
socketpair() from sys/socket.h.Auto Trait Implementations§
impl Freeze for Sys
impl RefUnwindSafe for Sys
impl Send for Sys
impl Sync for Sys
impl Unpin for Sys
impl UnsafeUnpin for Sys
impl UnwindSafe for Sys
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more