doc
only.Expand description
Functions which need access to libc internals are out of scope for rustix.
Most Rust programs have a libc present, and when a libc is present, it
expects to be the only thing in the process that can do certain operations.
For example, there can be only one atexit
list in a process, only one
pthread_atfork
list in a process, only one implementation of pthreads in
a process, and so on, and libc expects to own the one of each of those
things. And libc implementations may expect to be involved in signal
handling. So, these functions are believed to be out of scope for rustix.
This module contains an incomplete list of such functions.
It would be possible to make a rust library which provides safe or ergonomic wrappers around these libc functions, however that is out of scope for rustix itself.
If you would like to write a Rust program which does not use a libc, and which does provide APIs for some of these functions, Eyra and origin are two libraries which may be useful, and which provide public interfaces for some of this functionality.
If you are otherwise writing Rust code which you know will not share a process with a libc, perhaps because you are writing a libc or similar yourself, rustix’s codebase does include experimental implementations of the primitives needed to implement most of these functions.
Functions§
- brk
- See the module comment.
- clone
- See the module comment.
- clone3
- See the module comment.
- exit
- See the module comment.
- fork
- See the module comment.
- pthread_
atfork - See the module comment.
- pthread_
attr_ destroy - See the module comment.
- pthread_
attr_ getaffinity_ np - See the module comment.
- pthread_
attr_ getdetachstate - See the module comment.
- pthread_
attr_ getguardsize - See the module comment.
- pthread_
attr_ getinheritsched - See the module comment.
- pthread_
attr_ getschedparam - See the module comment.
- pthread_
attr_ getschedpolicy - See the module comment.
- pthread_
attr_ getscope - See the module comment.
- pthread_
attr_ getsigmask_ np - See the module comment.
- pthread_
attr_ getstack - See the module comment.
- pthread_
attr_ getstackaddr - See the module comment.
- pthread_
attr_ getstacksize - See the module comment.
- pthread_
attr_ init - See the module comment.
- pthread_
attr_ setaffinity_ np - See the module comment.
- pthread_
attr_ setdetachstate - See the module comment.
- pthread_
attr_ setguardsize - See the module comment.
- pthread_
attr_ setinheritsched - See the module comment.
- pthread_
attr_ setschedparam - See the module comment.
- pthread_
attr_ setschedpolicy - See the module comment.
- pthread_
attr_ setscope - See the module comment.
- pthread_
attr_ setsigmask_ np - See the module comment.
- pthread_
attr_ setstack - See the module comment.
- pthread_
attr_ setstackaddr - See the module comment.
- pthread_
attr_ setstacksize - See the module comment.
- pthread_
barrier_ destroy - See the module comment.
- pthread_
barrier_ wait - See the module comment.
- pthread_
barrierattr_ destroy - See the module comment.
- pthread_
barrierattr_ getpshared - See the module comment.
- pthread_
barrierattr_ init - See the module comment.
- pthread_
barrierattr_ setpshared - See the module comment.
- pthread_
cancel - See the module comment.
- pthread_
cleanup_ pop - See the module comment.
- pthread_
cleanup_ pop_ restore_ np - See the module comment.
- pthread_
cleanup_ push - See the module comment.
- pthread_
cleanup_ push_ defer_ np - See the module comment.
- pthread_
cond_ broadcast - See the module comment.
- pthread_
cond_ destroy - See the module comment.
- pthread_
cond_ signal - See the module comment.
- pthread_
cond_ timedwait - See the module comment.
- pthread_
condattr_ destroy - See the module comment.
- pthread_
condattr_ getclock - See the module comment.
- pthread_
condattr_ getpshared - See the module comment.
- pthread_
condattr_ init - See the module comment.
- pthread_
condattr_ setclock - See the module comment.
- pthread_
condattr_ setpshared - See the module comment.
- pthread_
create - See the module comment.
- pthread_
detach - See the module comment.
- pthread_
equal - See the module comment.
- pthread_
exit - See the module comment.
- pthread_
getaffinity_ np - See the module comment.
- pthread_
getattr_ default_ np - See the module comment.
- pthread_
getattr_ np - See the module comment.
- pthread_
getconcurrency - See the module comment.
- pthread_
getcpuclockid - See the module comment.
- pthread_
getname_ np - See the module comment.
- pthread_
getschedparam - See the module comment.
- pthread_
getspecific - See the module comment.
- pthread_
join - See the module comment.
- pthread_
key_ create - See the module comment.
- pthread_
key_ delete - See the module comment.
- pthread_
kill - See the module comment.
- pthread_
kill_ other_ threads_ np - See the module comment.
- pthread_
mutex_ consistent - See the module comment.
- pthread_
mutex_ consistent_ np - See the module comment.
- pthread_
mutex_ destroy - See the module comment.
- pthread_
mutex_ getprioceiling - See the module comment.
- pthread_
mutex_ init - See the module comment.
- pthread_
mutex_ lock - See the module comment.
- pthread_
mutex_ setprioceiling - See the module comment.
- pthread_
mutex_ timedlock - See the module comment.
- pthread_
mutex_ trylock - See the module comment.
- pthread_
mutexattr_ destroy - See the module comment.
- pthread_
mutexattr_ getprioceiling - See the module comment.
- pthread_
mutexattr_ getprotocol - See the module comment.
- pthread_
mutexattr_ getpshared - See the module comment.
- pthread_
mutexattr_ getrobust - See the module comment.
- pthread_
mutexattr_ getrobust_ np - See the module comment.
- pthread_
mutexattr_ gettype - See the module comment.
- pthread_
mutexattr_ init - See the module comment.
- pthread_
mutexattr_ setprioceiling - See the module comment.
- pthread_
mutexattr_ setprotocol - See the module comment.
- pthread_
mutexattr_ setpshared - See the module comment.
- pthread_
mutexattr_ setrobust - See the module comment.
- pthread_
mutexattr_ setrobust_ np - See the module comment.
- pthread_
mutexattr_ settype - See the module comment.
- pthread_
once - See the module comment.
- pthread_
rwlock_ destroy - See the module comment.
- pthread_
rwlock_ rdlock - See the module comment.
- pthread_
rwlock_ timedrdlock - See the module comment.
- pthread_
rwlock_ timedwrlock - See the module comment.
- pthread_
rwlock_ tryrdlock - See the module comment.
- pthread_
rwlock_ trywrlock - See the module comment.
- pthread_
rwlock_ unlock - See the module comment.
- pthread_
rwlock_ wrlock - See the module comment.
- pthread_
rwlockattr_ destroy - See the module comment.
- pthread_
rwlockattr_ getkind_ np - See the module comment.
- pthread_
rwlockattr_ getpshared - See the module comment.
- pthread_
rwlockattr_ init - See the module comment.
- pthread_
rwlockattr_ setkind_ np - See the module comment.
- pthread_
rwlockattr_ setpshared - See the module comment.
- pthread_
self - See the module comment.
- pthread_
setaffinity_ np - See the module comment.
- pthread_
setattr_ default_ np - See the module comment.
- pthread_
setcancelstate - See the module comment.
- pthread_
setcanceltype - See the module comment.
- pthread_
setconcurrency - See the module comment.
- pthread_
setname_ np - See the module comment.
- pthread_
setschedparam - See the module comment.
- pthread_
setschedprio - See the module comment.
- pthread_
setspecific - See the module comment.
- pthread_
sigmask - See the module comment.
- pthread_
sigqueue - See the module comment.
- pthread_
spin_ destroy - See the module comment.
- pthread_
spin_ init - See the module comment.
- pthread_
spin_ lock - See the module comment.
- pthread_
spin_ trylock - See the module comment.
- pthread_
spin_ unlock - See the module comment.
- pthread_
testcancel - See the module comment.
- pthread_
timedjoin_ np - See the module comment.
- pthread_
tryjoin_ np - See the module comment.
- pthread_
yield - See the module comment.
- rseq
- See the module comment.
- sched_
setscheduler - See the module comment.
- set_
thread_ area - See the module comment.
- set_
tid_ address - See the module comment.
- setegid
- See the module comment.
- seteuid
- See the module comment.
- setgid
- See the module comment.
- setgroups
- See the module comment.
- setregid
- See the module comment.
- setresgid
- See the module comment.
- setresuid
- See the module comment.
- setreuid
- See the module comment.
- setuid
- See the module comment.
- sigaction
- See the module comment.
- sigaltstack
- See the module comment.
- sigprocmask
- See the module comment.
- sigtimedwait
- See the module comment.
- sigwait
- See the module comment.
- sigwaitinfo
- See the module comment.
- tkill
- See the module comment.