Crate lx

Source
Expand description

Provides constants and types derived from Linux without requiring libc.

Structs§

DirEntry
A directory entry returned by LxFile::read_dir.
Error
Wraps a Linux error code in a strongly-typed struct.
LxStr
A borrowed reference to a string that may or may not be valid utf-8.
LxString
An owned string that may or may not be valid utf-8.
Stat
A Linux stat structure.
StatFs
Timespec
A Linux timespec structure.

Constants§

AT_REMOVEDIR
DT_BLK
DT_CHR
DT_DIR
DT_FIFO
DT_LNK
DT_REG
DT_SOCK
DT_UNK
DT_WHT
E2BIG
EACCES
EADDRINUSE
EADDRNOTAVAIL
EAFNOSUPPORT
EAGAIN
EALREADY
EBADF
EBUSY
ECHILD
ECONNABORTED
ECONNREFUSED
ECONNRESET
EDEADLK
EDESTADDRREQ
EEXIST
EFAULT
EFBIG
EHOSTDOWN
EHOSTUNREACH
EIDRM
EINPROGRESS
EINTR
EINVAL
EIO
EISCONN
EISDIR
ELOOP
EMEDIUMTYPE
EMFILE
EMLINK
EMSGSIZE
ENAMETOOLONG
ENETUNREACH
ENFILE
ENOBUFS
ENODATA
ENODEV
ENOENT
ENOEXEC
ENOKEY
ENOLCK
ENOMEDIUM
ENOMEM
ENOPROTOOPT
ENOSPC
ENOSYS
ENOTCONN
ENOTDIR
ENOTEMPTY
ENOTSOCK
ENOTSUP
ENOTTY
ENXIO
EOVERFLOW
EPERM
EPIPE
EPROTO
EPROTONOSUPPORT
EPROTOTYPE
ERANGE
EROFS
ESOCKTNOSUPPORT
ESPIPE
ESRCH
ETIMEDOUT
EUSERS
EXDEV
GID_INVALID
MODE_INVALID
MODE_VALID_BITS
O_ACCESS_MASK
O_APPEND
O_CREAT
O_DIRECTORY
O_EXCL
O_NOACCESS
O_NOATIME
O_NOFOLLOW
O_RDONLY
O_RDWR
O_TRUNC
O_WRONLY
S_IFBLK
S_IFCHR
S_IFDIR
S_IFIFO
S_IFLNK
S_IFMT
S_IFREG
S_IFSOCK
S_ISGID
S_ISUID
S_IXGRP
UID_INVALID
XATTR_CREATE
XATTR_REPLACE

Functions§

major32
major64
make_dev
make_major32
make_major64
make_minor
minor
s_isblk
s_ischr
s_isdir
s_isfifo
s_islnk
s_isreg
s_issock
str_error
Returns a string representation of the error.

Type Aliases§

Result
A specialized Result type for operations that return Linux error codes.
dev_t
gid_t
ino_t
mode_t
off_t
uid_t