Expand description
Rust FFI bindings for POSIX and Linux system APIs.
Generated by bnd-linux-gen — do not edit src/libc/ manually.
§POSIX modules (libc::posix::*)
- [
libc::posix::dirent] — Directory entries (opendir,readdir,closedir,DT_*constants) - [
libc::posix::dl] — Dynamic loading (dlopen,dlclose,dlsym,dlerror,RTLD_*constants) - [
libc::posix::errno] — Error codes (__errno_location,E*constants) - [
libc::posix::fcntl] — File control (creat,lockf,O_*constants) - [
libc::posix::inet] — Internet addresses (inet_pton,htons,sockaddr_in,IPPROTO_*) - [
libc::posix::mmap] — Memory mapping (mmap,munmap,mprotect,MAP_*/PROT_*constants) - [
libc::posix::netdb] — Network database (getaddrinfo,gethostbyname,addrinfo,AI_*) - [
libc::posix::pthread] — POSIX threads (pthread_create,pthread_mutex_lock,PTHREAD_*constants) - [
libc::posix::sched] — Scheduling (sched_yield,sched_setscheduler,SCHED_*constants) - [
libc::posix::signal] — Signal handling (signal,sigaction,kill,raise,SIG*/SA_*) - [
libc::posix::socket] — Sockets (socket,bind,listen,accept,sockaddr,AF_*/SOCK_*) - [
libc::posix::stat] — File status (stat,chmod,mkdir,struct stat) - [
libc::posix::stdio] — Standard I/O (fopen,fclose,fread,fwrite) - [
libc::posix::time] — Time functions (clock_gettime,nanosleep,gmtime,CLOCK_*constants) - [
libc::posix::types] — Shared POSIX types (uid_t,pid_t,mode_t,off_t,gid_t, …) - [
libc::posix::unistd] — POSIX standard (read,write,close,fork, …)
§Linux modules (libc::linux::*)
- [
libc::linux::epoll] — I/O event notification (epoll_create1,epoll_ctl,epoll_wait) - [
libc::linux::eventfd] — Event file descriptors (eventfd,eventfd_read,eventfd_write) - [
libc::linux::inotify] — File system events (inotify_init1,inotify_add_watch) - [
libc::linux::mount] — Mount operations (mount,umount,MS_*flags) - [
libc::linux::sendfile] — Zero-copy file transfer (sendfile) - [
libc::linux::signalfd] — Signal file descriptors (signalfd,struct signalfd_siginfo) - [
libc::linux::timerfd] — Timer file descriptors (timerfd_create,timerfd_settime) - [
libc::linux::types] — Linux-specific types (__be16,__be32,__le*) - [
libc::linux::xattr] — Extended attributes (setxattr,getxattr,listxattr)
§Safety
All function bindings are unsafe — they call directly into libc.