pub enum BsdSyscall {
Show 78 variants
Exit,
Fork,
Vfork,
Wait4,
Execve,
Dup2,
Setsid,
Setpgid,
Getpgrp,
Kill,
Read,
Write,
Open,
Close,
Getpid,
Getppid,
Getuid,
Geteuid,
Getgid,
Getegid,
Access,
Issetugid,
Munmap,
Mprotect,
Mmap,
Msync,
Dup,
Fcntl,
Lseek,
Pread,
Pwrite,
Stat,
Fstat,
Lstat,
Unlink,
Link,
Symlink,
Readlink,
Mkdir,
Rmdir,
Chdir,
Getcwd,
Rename,
Ftruncate,
Fchmod,
Fsync,
Openat,
Fstatat,
Gettimeofday,
ClockGettime,
Sysctl,
Sysctlbyname,
Sigprocmask,
Sigaction,
BsdthreadCreate,
BsdthreadTerminate,
BsdthreadRegister,
ThreadSelfid,
Pipe,
Socket,
Socketpair,
Connect,
Bind,
Listen,
Accept,
Setsockopt,
Getsockopt,
Shutdown,
Sendto,
Recvfrom,
Sendmsg,
Recvmsg,
Send,
Recv,
Poll,
Select,
Getsockname,
Getpeername,
}Expand description
Known BSD syscalls we dispatch (subset of XNU syscalls.master).
Variants§
Exit
exit.
Fork
fork.
Vfork
vfork (translator: same as fork).
Wait4
wait4 / waitpid.
Execve
execve.
Dup2
dup2.
Setsid
setsid.
Setpgid
setpgid.
Getpgrp
getpgrp.
Kill
kill.
Read
read.
Write
write.
Open
open.
Close
close.
Getpid
getpid.
Getppid
getppid.
Getuid
getuid.
Geteuid
geteuid.
Getgid
getgid.
Getegid
getegid.
Access
access.
Issetugid
issetugid.
Munmap
munmap.
Mprotect
mprotect.
Mmap
mmap.
Msync
msync.
Dup
dup.
Fcntl
fcntl.
Lseek
lseek.
Pread
pread.
Pwrite
pwrite.
Stat
stat / stat64.
Fstat
fstat / fstat64.
Lstat
lstat / lstat64.
Unlink
unlink.
Link
link (hard link).
Symlink
symlink.
Readlink
readlink.
Mkdir
mkdir.
Rmdir
rmdir.
Chdir
chdir.
Getcwd
__getcwd (fills absolute path buffer).
Rename
rename.
Ftruncate
ftruncate.
Fchmod
fchmod.
Fsync
fsync.
Openat
openat.
Fstatat
fstatat / fstatat64.
Gettimeofday
gettimeofday.
ClockGettime
clock_gettime.
Sysctl
sysctl.
Sysctlbyname
sysctlbyname.
Sigprocmask
sigprocmask.
Sigaction
sigaction.
BsdthreadCreate
bsdthread_create.
BsdthreadTerminate
bsdthread_terminate.
BsdthreadRegister
bsdthread_register.
ThreadSelfid
thread_selfid.
Pipe
pipe.
Socket
socket.
Socketpair
socketpair.
Connect
connect.
Bind
bind.
Listen
listen.
Accept
accept.
Setsockopt
setsockopt.
Getsockopt
getsockopt.
Shutdown
shutdown.
Sendto
sendto.
Recvfrom
recvfrom.
Sendmsg
sendmsg.
Recvmsg
recvmsg.
Send
send (often libc → sendto).
Recv
recv.
Poll
poll.
Select
select.
Getsockname
getsockname.
Getpeername
getpeername.
Implementations§
Trait Implementations§
Source§impl Clone for BsdSyscall
impl Clone for BsdSyscall
impl Copy for BsdSyscall
Source§impl Debug for BsdSyscall
impl Debug for BsdSyscall
impl Eq for BsdSyscall
Source§impl Hash for BsdSyscall
impl Hash for BsdSyscall
Source§impl PartialEq for BsdSyscall
impl PartialEq for BsdSyscall
impl StructuralPartialEq for BsdSyscall
Auto Trait Implementations§
impl Freeze for BsdSyscall
impl RefUnwindSafe for BsdSyscall
impl Send for BsdSyscall
impl Sync for BsdSyscall
impl Unpin for BsdSyscall
impl UnsafeUnpin for BsdSyscall
impl UnwindSafe for BsdSyscall
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.