Docs.rs
libc-0.2.159
libc 0.2.159
Permalink
Docs.rs crate page
MIT OR Apache-2.0
Links
Homepage
Documentation
Repository
crates.io
Source
Owners
alexcrichton
huonw
github:rust-lang:libs
joshtriplett
gnzlbg
rust-lang-owner
JohnTitor
github:rust-lang:libc
Dependencies
rustc-std-workspace-core ^1.0.0
normal
optional
Versions
100%
of the crate is documented
Platform
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
libc
0.2.159
All Items
Crate Items
Structs
Enums
Constants
Functions
Type Aliases
Crate
libc
Copy item path
source
·
[
−
]
Expand description
libc - Raw FFI bindings to platforms’ system libraries
Structs
§
sockaddr
stat
timespec
timeval
tm
utimbuf
Enums
§
FILE
c_void
Equivalent to C’s
void
type when used as a [pointer].
fpos_t
timezone
Constants
§
BUFSIZ
E2BIG
EACCES
EADDRINUSE
EADDRNOTAVAIL
EAFNOSUPPORT
EAGAIN
EALREADY
EBADF
EBADMSG
EBUSY
ECANCELED
ECHILD
ECONNABORTED
ECONNREFUSED
ECONNRESET
EDEADLK
EDEADLOCK
EDESTADDRREQ
EDOM
EEXIST
EFAULT
EFBIG
EHOSTUNREACH
EIDRM
EILSEQ
EINPROGRESS
EINTR
EINVAL
EIO
EISCONN
EISDIR
ELOOP
EMFILE
EMLINK
EMSGSIZE
ENAMETOOLONG
ENETDOWN
ENETRESET
ENETUNREACH
ENFILE
ENOBUFS
ENODATA
ENODEV
ENOENT
ENOEXEC
ENOLCK
ENOLINK
ENOMEM
ENOMSG
ENOPROTOOPT
ENOSPC
ENOSR
ENOSTR
ENOSYS
ENOTCONN
ENOTDIR
ENOTEMPTY
ENOTRECOVERABLE
ENOTSOCK
ENOTSUP
ENOTTY
ENXIO
EOF
EOPNOTSUPP
EOTHER
EOVERFLOW
EOWNERDEAD
EPERM
EPIPE
EPROTO
EPROTONOSUPPORT
EPROTOTYPE
ERANGE
EROFS
ESPIPE
ESRCH
ETIME
ETIMEDOUT
ETXTBSY
EWOULDBLOCK
EXDEV
EXIT_
FAILURE
EXIT_
SUCCESS
FILENAM
E_
MAX
FOPE
N_
MAX
INT_MAX
INT_MIN
LC_ALL
LC_
COLLATE
LC_
CTYPE
LC_
MONETARY
LC_
NUMERIC
LC_TIME
L_
tmpnam
NSIG
O_
APPEND
O_
BINARY
O_CREAT
O_EXCL
O_
NOINHERIT
O_
RANDOM
O_RAW
O_
RDONLY
O_RDWR
O_
SEQUENTIAL
O_
TEMPORARY
O_TEXT
O_TRUNC
O_
WRONLY
RAND_
MAX
SEEK_
CUR
SEEK_
END
SEEK_
SET
SIGABRT
SIGFPE
SIGILL
SIGINT
SIGSEGV
SIGTERM
SIG_ACK
SIG_DFL
SIG_ERR
SIG_GET
SIG_IGN
SIG_SGE
STRUNCATE
S_IEXEC
S_IFCHR
S_IFDIR
S_IFMT
S_IFREG
S_IREAD
S_
IWRITE
TMP_MAX
_IOFBF
_IOLBF
_IONBF
_O_
OBTAI
N_
DIR
_O_
SHOR
T_
LIVED
_O_
U8TEXT
_O_
U16TEXT
_O_
WTEXT
Functions
§
_exit
⚠
_msize
⚠
abort
⚠
abs
⚠
accept
⚠
access
⚠
aligned_
free
⚠
aligned_
malloc
⚠
atexit
⚠
atof
⚠
atoi
⚠
atol
⚠
atoll
⚠
bind
⚠
calloc
⚠
chdir
⚠
chmod
⚠
close
⚠
commit
⚠
connect
⚠
creat
⚠
dup
⚠
dup2
⚠
execl
⚠
execle
⚠
execlp
⚠
execlpe
⚠
execv
⚠
execve
⚠
execvp
⚠
execvpe
⚠
exit
⚠
fclose
⚠
fdopen
⚠
feof
⚠
ferror
⚠
fflush
⚠
fgetc
⚠
fgetpos
⚠
fgets
⚠
fileno
⚠
fopen
⚠
fprintf
⚠
fputc
⚠
fputs
⚠
fread
⚠
free
⚠
freopen
⚠
fseek
⚠
fsetpos
⚠
fstat
⚠
ftell
⚠
fwrite
⚠
get_
osfhandle
⚠
getchar
⚠
getcwd
⚠
getenv
⚠
getpeername
⚠
getpid
⚠
getsockname
⚠
getsockopt
⚠
gmtime_
s
⚠
isalnum
⚠
isalpha
⚠
isatty
⚠
isblank
⚠
iscntrl
⚠
isdigit
⚠
isgraph
⚠
islower
⚠
isprint
⚠
ispunct
⚠
isspace
⚠
isupper
⚠
isxdigit
⚠
labs
⚠
listen
⚠
localtime_
s
⚠
lseek
⚠
lseek64
⚠
malloc
⚠
memccpy
⚠
memchr
⚠
memcmp
⚠
memcpy
⚠
memmove
⚠
memset
⚠
mkdir
⚠
open
⚠
open_
osfhandle
⚠
pclose
⚠
perror
⚠
pipe
⚠
popen
⚠
printf
⚠
putchar
⚠
putenv
⚠
putenv_
s
⚠
puts
⚠
raise
⚠
rand
⚠
read
⚠
realloc
⚠
recvfrom
⚠
remove
⚠
rename
⚠
rewind
⚠
rmdir
⚠
sendto
⚠
setbuf
⚠
setlocale
⚠
setsockopt
⚠
setvbuf
⚠
signal
⚠
socket
⚠
srand
⚠
stat
⚠
strcat
⚠
strchr
⚠
strcmp
⚠
strcoll
⚠
strcpy
⚠
strcspn
⚠
strdup
⚠
strerror
⚠
stricmp
⚠
strlen
⚠
strncat
⚠
strncmp
⚠
strncpy
⚠
strnicmp
⚠
strnlen
⚠
strpbrk
⚠
strrchr
⚠
strspn
⚠
strstr
⚠
strtod
⚠
strtof
⚠
strtok
⚠
strtol
⚠
strtoll
⚠
strtoul
⚠
strtoull
⚠
strxfrm
⚠
system
⚠
time
⚠
tmpfile
⚠
tolower
⚠
toupper
⚠
ungetc
⚠
unlink
⚠
wchmod
⚠
wcslen
⚠
wcstombs
⚠
wexecl
⚠
wexecle
⚠
wexeclp
⚠
wexeclpe
⚠
wexecv
⚠
wexecve
⚠
wexecvp
⚠
wexecvpe
⚠
wopen
⚠
wputenv
⚠
wputenv_
s
⚠
write
⚠
wrmdir
⚠
wsetlocale
⚠
wstat
⚠
wutime
⚠
Type Aliases
§
SOCKET
c_char
c_
double
c_float
c_int
c_long
c_
longlong
c_schar
c_short
c_uchar
c_uint
c_ulong
c_
ulonglong
c_
ushort
clock_t
dev_t
errno_t
ino_t
int8_t
Deprecated
int16_t
Deprecated
int32_t
Deprecated
int64_t
Deprecated
intmax_
t
intptr_
t
off_t
ptrdiff_
t
sighandler_
t
size_t
ssize_t
time64_
t
time_t
uint8_t
Deprecated
uint16_
t
Deprecated
uint32_
t
Deprecated
uint64_
t
Deprecated
uintmax_
t
uintptr_
t
wchar_t