pub struct LINUX_ERRNO;
linux
only.Expand description
Linux sys/errno.h
constants.
Implementations§
Source§impl LINUX_ERRNO
impl LINUX_ERRNO
Sourcepub const EPERM: isize = 1isize
pub const EPERM: isize = 1isize
“Operation not permitted.”
Only the owner of the file (or other resource) or processes with special privileges can perform the operation.
Sourcepub const ENOENT: isize = 2isize
pub const ENOENT: isize = 2isize
“No such file or directory.”
This is a “file doesn’t exist” error for ordinary files that are referenced in contexts where they are expected to already exist.
Sourcepub const ESRCH: isize = 3isize
pub const ESRCH: isize = 3isize
“No such process.”
No process matches the specified process ID.
Sourcepub const EINTR: isize = 4isize
pub const EINTR: isize = 4isize
“Interrupted system call.”
An asynchronous signal occurred and prevented completion of the call. When this happens, you should try the call again.
You can choose to have functions resume after a signal that is handled,
rather than failing with EINTR
.
Sourcepub const EIO: isize = 5isize
pub const EIO: isize = 5isize
“Input/output error.”
Usually used for physical read or write errors.
Sourcepub const ENXIO: isize = 6isize
pub const ENXIO: isize = 6isize
“No such device or address.”
The system tried to use the device represented by a file you specified, and it couldn’t find the device. This can mean that the device file was installed incorrectly, or that the physical device is missing or not correctly attached to the computer.
Sourcepub const E2BIG: isize = 7isize
pub const E2BIG: isize = 7isize
“Argument list too long.”
Used when the arguments passed to a new program being executed with one of the exec functions (see Executing a File) occupy too much memory space. This condition never arises on GNU/Hurd systems.
Sourcepub const ENOEXEC: isize = 8isize
pub const ENOEXEC: isize = 8isize
“Exec format error.”
Invalid executable file format. This condition is detected by the exec functions.
Sourcepub const EBADF: isize = 9isize
pub const EBADF: isize = 9isize
“Bad file descriptor.”
For example, I/O on a descriptor that has been closed or reading from a descriptor open only for writing (or vice versa).
Sourcepub const ECHILD: isize = 10isize
pub const ECHILD: isize = 10isize
“No child processes.”
This error happens on operations that are supposed to manipulate child processes, when there aren’t any processes to manipulate.
Sourcepub const EAGAIN: isize = 11isize
pub const EAGAIN: isize = 11isize
“Resource temporarily unavailable.”
The call might work if you try again later. The constant
EWOULDBLOCK
is another name for EAGAIN
.
Sourcepub const ENOMEM: isize = 12isize
pub const ENOMEM: isize = 12isize
“Cannot allocate memory.”
The system cannot allocate more virtual memory because its capacity is full.
Sourcepub const EACCES: isize = 13isize
pub const EACCES: isize = 13isize
“Permission denied.”
The file permissions do not allow the attempted operation.
Sourcepub const EFAULT: isize = 14isize
pub const EFAULT: isize = 14isize
“Bad address.”
An invalid pointer was detected. On GNU/Hurd systems, this error never happens; you get a signal instead.
Sourcepub const ENOTBLK: isize = 15isize
pub const ENOTBLK: isize = 15isize
“Block device required.”
A file that isn’t a block special file was given in a situation that requires one. For example, trying to mount an ordinary file as a file system in Unix gives this error.
Sourcepub const EBUSY: isize = 16isize
pub const EBUSY: isize = 16isize
“Device or resource busy.”
A system resource that can’t be shared is already in use. For example, if you try to delete a file that is the root of a currently mounted filesystem, you get this error.
Sourcepub const EEXIST: isize = 17isize
pub const EEXIST: isize = 17isize
“File exists.”
An existing file was specified in a context where it only makes sense to specify a new file.
Sourcepub const EXDEV: isize = 18isize
pub const EXDEV: isize = 18isize
“Invalid cross-device link.”
An attempt to make an improper link across file systems was detected. This happens not only when you use link (see Hard Links) but also when you rename a file with rename (see Renaming Files).
Sourcepub const ENODEV: isize = 19isize
pub const ENODEV: isize = 19isize
“No such device.”
The wrong type of device was given to a function that expects a particular sort of device.
Sourcepub const ENOTDIR: isize = 20isize
pub const ENOTDIR: isize = 20isize
“Not a directory.”
A file that isn’t a directory was specified when a directory is required.
Sourcepub const EISDIR: isize = 21isize
pub const EISDIR: isize = 21isize
“Is a directory.”
You cannot open a directory for writing, or create or remove hard links to it.
Sourcepub const EINVAL: isize = 22isize
pub const EINVAL: isize = 22isize
“Invalid argument.”
This is used to indicate various kinds of problems with passing the wrong argument to a library function.
Sourcepub const ENFILE: isize = 23isize
pub const ENFILE: isize = 23isize
“Too many open files in system.”
There are too many distinct file openings in the entire system. Note that any number of linked channels count as just one file opening; see Linked Channels. This error never occurs on GNU/Hurd systems.
Sourcepub const EMFILE: isize = 24isize
pub const EMFILE: isize = 24isize
“Too many open files.”
The current process has too many files open and can’t open any more. Duplicate descriptors do count toward this limit.
Sourcepub const ENOTTY: isize = 25isize
pub const ENOTTY: isize = 25isize
“Inappropriate ioctl for device.”
Inappropriate I/O control operation, such as trying to set terminal modes on an ordinary file.
Sourcepub const ETXTBSY: isize = 26isize
pub const ETXTBSY: isize = 26isize
“Text file busy.”
An attempt to execute a file that is currently open for writing, or write to a file that is currently being executed. Often using a debugger to run a program is considered having it open for writing and will cause this error. (The name stands for “text file busy”.) This is not an error on GNU/Hurd systems; the text is copied as necessary.
Sourcepub const EFBIG: isize = 27isize
pub const EFBIG: isize = 27isize
“File too large.”
The size of a file would be larger than allowed by the system.
Sourcepub const ENOSPC: isize = 28isize
pub const ENOSPC: isize = 28isize
“No space left on device.”
Write operation on a file failed because the disk is full.
Sourcepub const EROFS: isize = 30isize
pub const EROFS: isize = 30isize
“Read-only file system.”
An attempt was made to modify something on a read-only file system.
Sourcepub const EMLINK: isize = 31isize
pub const EMLINK: isize = 31isize
“Too many links.”
The link count of a single file would become too large. rename can cause this error if the file being renamed already has as many links as it can take.
Sourcepub const EPIPE: isize = 32isize
pub const EPIPE: isize = 32isize
“Broken pipe.”
There is no process reading from the other end of a pipe. Every library
function that returns this error code also generates a SIGPIPE
signal; this
signal terminates the program if not handled or blocked. Thus, your program
will never actually see EPIPE
unless it has handled or blocked SIGPIPE
.
Sourcepub const EDOM: isize = 33isize
pub const EDOM: isize = 33isize
“Numerical argument out of domain.”
Used by mathematical functions when an argument value does not fall into the domain over which the function is defined.
Sourcepub const ERANGE: isize = 34isize
pub const ERANGE: isize = 34isize
“Numerical result out of range.”
Used by mathematical functions when the result value is not representable because of overflow or underflow.
Sourcepub const EWOULDBLOCK: isize = 11isize
pub const EWOULDBLOCK: isize = 11isize
“Operation would block.”
In the GNU C Library, this is another name for EAGAIN
.
The values are always the same, on every operating system.
C libraries in many older Unix systems have EWOULDBLOCK as a separate error code.
pub const EDEADLK: isize = 35isize
pub const ENAMETOOLONG: isize = 36isize
pub const ENOLCK: isize = 37isize
pub const ENOSYS: isize = 38isize
pub const ENOTEMPTY: isize = 39isize
pub const ELOOP: isize = 40isize
pub const ENOMSG: isize = 42isize
pub const EIDRM: isize = 43isize
pub const ECHRNG: isize = 44isize
pub const EL2NSYNC: isize = 45isize
pub const EL3HLT: isize = 46isize
pub const EL3RST: isize = 47isize
pub const ELNRNG: isize = 48isize
pub const EUNATCH: isize = 49isize
pub const ENOCSI: isize = 50isize
pub const EL2HLT: isize = 51isize
pub const EBADE: isize = 52isize
pub const EBADR: isize = 53isize
pub const EXFULL: isize = 54isize
pub const ENOANO: isize = 55isize
pub const EBADRQC: isize = 56isize
pub const EBADSLT: isize = 57isize
pub const EMULTIHOP: isize = 72isize
pub const EOVERFLOW: isize = 75isize
pub const ENOTUNIQ: isize = 76isize
pub const EBADFD: isize = 77isize
pub const EBADMSG: isize = 74isize
pub const EREMCHG: isize = 78isize
pub const ELIBACC: isize = 79isize
pub const ELIBBAD: isize = 80isize
pub const ELIBSCN: isize = 81isize
pub const ELIBMAX: isize = 82isize
pub const ELIBEXEC: isize = 83isize
pub const EILSEQ: isize = 84isize
pub const ERESTART: isize = 85isize
pub const ESTRPIPE: isize = 86isize
pub const EUSERS: isize = 87isize
pub const ENOTSOCK: isize = 88isize
pub const EDESTADDRREQ: isize = 89isize
pub const EMSGSIZE: isize = 90isize
pub const EPROTOTYPE: isize = 91isize
pub const ENOPROTOOPT: isize = 92isize
pub const EPROTONOSUPPORT: isize = 93isize
pub const ESOCKTNOSUPPORT: isize = 94isize
pub const EOPNOTSUPP: isize = 95isize
pub const EPFNOSUPPORT: isize = 96isize
pub const EAFNOSUPPORT: isize = 97isize
pub const EADDRINUSE: isize = 98isize
pub const EADDRNOTAVAIL: isize = 99isize
pub const ENETDOWN: isize = 100isize
pub const ENETUNREACH: isize = 101isize
pub const ENETRESET: isize = 102isize
pub const ECONNABORTED: isize = 103isize
pub const ECONNRESET: isize = 104isize
pub const ENOBUFS: isize = 105isize
pub const EISCONN: isize = 106isize
pub const ENOTCONN: isize = 107isize
pub const ESHUTDOWN: isize = 108isize
pub const ETOOMANYREFS: isize = 109isize
pub const ETIMEDOUT: isize = 110isize
pub const ECONNREFUSED: isize = 111isize
pub const EHOSTDOWN: isize = 112isize
pub const EHOSTUNREACH: isize = 113isize
pub const EALREADY: isize = 114isize
pub const EINPROGRESS: isize = 115isize
pub const ESTALE: isize = 116isize
pub const EDQUOT: isize = 122isize
pub const ENOMEDIUM: isize = 123isize
pub const EMEDIUMTYPE: isize = 124isize
pub const ECANCELED: isize = 125isize
pub const ENOKEY: isize = 126isize
pub const EKEYEXPIRED: isize = 127isize
pub const EKEYREVOKED: isize = 128isize
pub const EKEYREJECTED: isize = 129isize
pub const EOWNERDEAD: isize = 130isize
pub const ENOTRECOVERABLE: isize = 131isize
pub const EHWPOISON: isize = 133isize
pub const ERFKILL: isize = 132isize
Auto Trait Implementations§
impl Freeze for LINUX_ERRNO
impl RefUnwindSafe for LINUX_ERRNO
impl Send for LINUX_ERRNO
impl Sync for LINUX_ERRNO
impl Unpin for LINUX_ERRNO
impl UnwindSafe for LINUX_ERRNO
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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> ByteSized for T
impl<T> ByteSized for T
Source§const BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
Source§fn byte_align(&self) -> usize ⓘ
fn byte_align(&self) -> usize ⓘ
Source§fn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Source§impl<T, R> Chain<R> for Twhere
T: ?Sized,
impl<T, R> Chain<R> for Twhere
T: ?Sized,
Source§impl<T> ExtAny for T
impl<T> ExtAny for T
Source§fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Source§impl<T> ExtMem for Twhere
T: ?Sized,
impl<T> ExtMem for Twhere
T: ?Sized,
Source§const NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Source§fn mem_align_of_val(&self) -> usize ⓘ
fn mem_align_of_val(&self) -> usize ⓘ
Source§fn mem_size_of_val(&self) -> usize ⓘ
fn mem_size_of_val(&self) -> usize ⓘ
Source§fn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true
if dropping values of this type matters. Read moreSource§fn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
self
without running its destructor. Read moreSource§fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Source§unsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
unsafe_layout
only.T
represented by the all-zero byte-pattern. Read moreSource§unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe_layout
only.T
represented by the all-zero byte-pattern. Read moreSource§fn mem_as_bytes(&self) -> &[u8] ⓘ
fn mem_as_bytes(&self) -> &[u8] ⓘ
unsafe_slice
only.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Hook for T
impl<T> Hook for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError> ⓘ
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError> ⓘ
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out
indicating that a T
is niched.