Mono Class Library: Mono.Unix.Native Namespace

Mono.Unix.Native.Errno Enumeration

Error values. [Edit]
public enum Errno

See Also

Stdlib.GetLastError
NativeConvert.FromErrno
NativeConvert.ToErrno

Remarks

Various error numbers that can be signaled by Mono.Unix.Native.Syscall methods. The most recent error can be retrieved from Stdlib.GetLastError.

The value of these members may not match the actual errno value used by your operating system. Use Mono.Unix.Native.NativeConvert to convert between the native errno value and an Mono.Unix.Native.Errno value.

[Edit]

Members

Member NameDescription
E2BIGArgument list too long. The number of bytes used for the argument and environment list of the new process exceeded the current limit of 65536 bytes (NCARGS in sys/param.h). [Edit]
EACCESPermission denied. An attempt was made to access a file in a way forbidden by its file access permissions. [Edit]
EADDRINUSEAddress already in use. Only one usage of each address is normally permitted. [Edit]
EADDRNOTAVAILCannot assign requested address. Normally results from an attempt to create a socket with an address not on this machine. [Edit]
EADVDocumentation for this section has not yet been entered. [Edit]
EAFNOSUPPORTAddress family not supported by protocol family. An address incompatible with the requested protocol was used. For example, you shouldn’t necessarily expect to be able to use NS addresses with ARPA Internet protocols. [Edit]
EAGAINResource temporarily unavailable. This is a temporary condition and later calls to the same routine may complete normally. [Edit]
EALREADYOperation already in progress. An operation was attempted on a non-blocking object that already had an operation in progress. [Edit]
EBADEDocumentation for this section has not yet been entered. [Edit]
EBADFBad file descriptor. A file descriptor argument was out of range, referred to no open file, or a read (write) request was made to a file that was only open for writing (reading). [Edit]
EBADFDBad file descriptor. A file descriptor argument was out of range, referred to no open file, or a read (write) request was made to a file that was only open for writing (reading). [Edit]
EBADMSGDocumentation for this section has not yet been entered. [Edit]
EBADRDocumentation for this section has not yet been entered. [Edit]
EBADRQCDocumentation for this section has not yet been entered. [Edit]
EBADSLTDocumentation for this section has not yet been entered. [Edit]
EBFONTDocumentation for this section has not yet been entered. [Edit]
EBUSYDevice busy. An attempt to use a system resource which was in use at the time in a manner which would have conflicted with the request. [Edit]
ECHILDNo child processes. A Syscall.wait(2) or Syscall.waitpid(2) function was executed by a process that had no existing or unwaited-for child processes. [Edit]
ECHRNGDocumentation for this section has not yet been entered. [Edit]
ECOMMDocumentation for this section has not yet been entered. [Edit]
ECONNABORTEDSoftware caused connection abort. A connection abort was caused internal to your host machine. [Edit]
ECONNREFUSEDConnection refused. No connection could be made because the target machine actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host. [Edit]
ECONNRESETConnection reset by peer. A connection was forcibly closed by a peer. This normally results from a loss of the connection on the remote socket due to a timeout or a reboot. [Edit]
EDEADLKResource deadlock avoided. An attempt was made to lock a system resource that would have resulted in a deadlock situation [Edit]
EDEADLOCKDocumentation for this section has not yet been entered. [Edit]
EDESTADDRREQDestination address required. A required address was omitted from an operation on a socket. [Edit]
EDOMNumerical argument out of domain. A numerical input argument was outside the defined domain of the mathematical function. [Edit]
EDOTDOTDocumentation for this section has not yet been entered. [Edit]
EDQUOTDisc quota exceeded. A Syscall.write(2) to an ordinary file, the creation of a directory or symbolic link, or the creation of a directory entry failed because the user’s quota of disk blocks was exhausted, or the allocation of an inode for a newly created file failed because the user’s quota of inodes was exhausted. [Edit]
EEXISTFile exists. An existing file was mentioned in an inappropriate context, for instance, as the new link name in a Syscall.link(2) system call [Edit]
EFAULTBad address. The system detected an invalid address in attempting to use an argument of a call. [Edit]
EFBIGFile too large. The size of a file exceeded the maximum. [Edit]
EHOSTDOWNHost is down. A socket operation failed because the destination host was down. [Edit]
EHOSTUNREACHNo route to host. A socket operation was attempted to an unreachable host. [Edit]
EIDRMIdentifier removed. An IPC identifier was removed while the current process was waiting on it. [Edit]
EILSEQIllegal byte sequence. While decoding a multibyte character the function came along an invalid or an incomplete sequence of bytes or the given wide character is invalid. [Edit]
EINPROGRESSOperation now in progress. An operation that takes a long time to complete (such as a Syscall.connect(2)) was attempted on a non-blocking object (see Syscall.fcntl(2)). [Edit]
EINTRInterrupted system call. An asynchronous signal (such as Signum.SIGINT or Signum.SIGQUIT) was caught by the process during the execution of an interruptible function. If the signal handler performs a normal return, the interrupted system call will seem to have returned the error condition. [Edit]
EINVALInvalid argument. Some invalid argument was supplied. (For example, specifying an undefined signal to a Stdlib.signal(3) function or a Syscall.kill(2) system call). [Edit]
EIOInput/output error. Some physical input or output error occurred. This error will not be reported until a subsequent operation on the same file descriptor and may be lost (over written) by any subsequent errors. [Edit]
EISCONNSocket is already connected. A Syscall.connect(2) request was made on an already connected socket; or, a Syscall.sendto(2) or Syscall.sendmsg(2) request on a connected socket specified a destination when already connected. [Edit]
EISDIRIs a directory. An attempt was made to open a directory with write mode specified. [Edit]
EISNAMDocumentation for this section has not yet been entered. [Edit]
EL2HLTDocumentation for this section has not yet been entered. [Edit]
EL2NSYNCDocumentation for this section has not yet been entered. [Edit]
EL3HLTDocumentation for this section has not yet been entered. [Edit]
EL3RSTDocumentation for this section has not yet been entered. [Edit]
ELIBACCDocumentation for this section has not yet been entered. [Edit]
ELIBBADDocumentation for this section has not yet been entered. [Edit]
ELIBEXECDocumentation for this section has not yet been entered. [Edit]
ELIBMAXDocumentation for this section has not yet been entered. [Edit]
ELIBSCNDocumentation for this section has not yet been entered. [Edit]
ELNRNGDocumentation for this section has not yet been entered. [Edit]
ELOOPToo many levels of symbolic links. A path name lookup involved more than 32 (MAXSYMLINKS) symbolic links [Edit]
EMEDIUMTYPEDocumentation for this section has not yet been entered. [Edit]
EMFILEToo many open files. [Edit]
Too many links. Maximum allowable hard links to a single file has been exceeded. [Edit]
EMSGSIZEMessage too long. A message sent on a socket was larger than the internal message buffer or some other network limit. [Edit]
EMULTIHOPDocumentation for this section has not yet been entered. [Edit]
ENAMETOOLONGFile name too long. A component of a path name exceeded {NAME_MAX} characters, or an entire path name exceeded {PATH_MAX} characters. (See also the description of PathConf._PC_NO_TRUNC in Syscall.pathconf(2).) [Edit]
ENAVAILDocumentation for this section has not yet been entered. [Edit]
ENETDOWNNetwork is down. A socket operation encountered a dead network. [Edit]
ENETRESETNetwork dropped connection on reset. The host you were connected to crashed and rebooted. [Edit]
ENETUNREACHNetwork is unreachable. A socket operation was attempted to an unreachable network. [Edit]
ENFILEToo many open files in system. Maximum number of file descriptors allowable on the system has been reached and a requests for an open cannot be satisfied until at least one has been closed. [Edit]
ENOANODocumentation for this section has not yet been entered. [Edit]
ENOBUFSNo buffer space available. An operation on a socket or pipe was not performed because the system lacked sufficient buffer space or because a queue was full. [Edit]
ENOCSIDocumentation for this section has not yet been entered. [Edit]
ENODATADocumentation for this section has not yet been entered. [Edit]
ENODEVOperation not supported by device. An attempt was made to apply an inappropriate function to a device, for example, trying to read a write-only device such as a printer. [Edit]
ENOENTNo such file or directory. A component of a specified pathname did not exist, or the pathname was an empty string. [Edit]
ENOEXECExec format error. A request was made to execute a file that, although it has the appropriate permissions, was not in the format required for an executable file. [Edit]
ENOLCKNo locks available. A system-imposed limit on the number of simultaneous file locks was reached. [Edit]
No locks available. A system-imposed limit on the number of simultaneous file locks was reached. [Edit]
ENOMEDIUMDocumentation for this section has not yet been entered. [Edit]
ENOMEMCannot allocate memory. The new process image required more memory than was allowed by the hardware or by system-imposed memory management constraints. A lack of swap space is normally temporary; however, a lack of core is not. Soft limits may be increased to their corresponding hard limits. [Edit]
ENOMSGNo message of desired type. An IPC message queue does not contain a message of the desired type, or a message catalog does not contain the requested message. [Edit]
ENONETDocumentation for this section has not yet been entered. [Edit]
ENOPKGDocumentation for this section has not yet been entered. [Edit]
ENOPROTOOPTProotocol not available. A bad option or level was specified in a Syscall.getsockopt(2) or Syscall.setsockopt(2) call. [Edit]
ENOSPCNo space left on device. A Syscall.write(2) to an ordinary file, the creation of a directory or symbolic link, or the creation of a directory entry failed because no more disk blocks were available on the file system, or the allocation of an inode for a newly created file failed because no more inodes were available on the file system. [Edit]
ENOSRDocumentation for this section has not yet been entered. [Edit]
ENOSTRDocumentation for this section has not yet been entered. [Edit]
ENOSYSFunction not implemented. Attempted a system call that is not available on this system. [Edit]
ENOTBLKBlock device required. A block device operation was attempted on a non-block device or file. [Edit]
ENOTCONNSocket is not connected. An request to send or receive data was disallowed because the socket was not connected and (when sending on a datagram socket) no address was supplied. [Edit]
ENOTDIRNot a directory. A component of the specified pathname existed, but it was not a directory, when a directory was expected. [Edit]
ENOTEMPTYDirectory not empty. A directory with entries other than ‘.’ and ‘..’ was supplied to a remove directory or rename call. [Edit]
ENOTNAMDocumentation for this section has not yet been entered. [Edit]
ENOTSOCKSocket operation on non-socket. Self-explanatory [Edit]
ENOTTYInappropriate ioctl for device. A control function (see Syscall.ioctl(2)) was attempted for a file or special device for which the operation was inappropriate. [Edit]
ENOTUNIQDocumentation for this section has not yet been entered. [Edit]
ENXIODevice not configured. Input or output on a special file referred to a device that did not exist, or made a request beyond the limits of the device. This error may also occur when, for example, a tape drive is not online or no disk pack is loaded on a drive. [Edit]
EOPNOTSUPPOperation not supported. The attempted operation is not supported for the type of object referenced. Usually this occurs when a file descriptor refers to a file or socket that cannot support this operation, for example, trying to accept a connection on a datagram socket. [Edit]
EOVERFLOWValue too large to be stored in data type. A numerical result of the function was too large to be stored in the caller provided space. [Edit]
EPERMOperation not permitted. An attempt was made to perform an operation limited to processes with appropriate privileges or to the owner of a file or other resources. [Edit]
EPFNOSUPPORTProtocol family not supported. The protocol family has not been configured into the system or no implementation for it exists. [Edit]
EPIPEBroken pipe. A write on a pipe, socket or FIFO for which there is no process to read the data. [Edit]
EPROTODocumentation for this section has not yet been entered. [Edit]
EPROTONOSUPPORTProtocol not supported. The protocol has not been configured into the system or no implementation for it exists. [Edit]
EPROTOTYPEProtocol wrong type for socket. A protocol was specified that does not support the semantics of the socket type requested. For example, you cannot use the ARPA Internet UDP protocol with type SOCK_STREAM. [Edit]
ERANGEResult too large. A numerical result of the function was too large to fit in the available space (perhaps exceeded precision) [Edit]
EREMCHGDocumentation for this section has not yet been entered. [Edit]
EREMOTEDocumentation for this section has not yet been entered. [Edit]
EREMOTEIODocumentation for this section has not yet been entered. [Edit]
ERESTARTDocumentation for this section has not yet been entered. [Edit]
EROFSRead-only file system. An attempt was made to modify a file or directory on a file system that was read-only at the time. [Edit]
ESHUTDOWNCannot send after socket shutdown. A request to send data was disallowed because the socket had already been shut down with a previous Syscall.shutdown(2) call. [Edit]
ESOCKTNOSUPPORTSocket type not supported. The support for the socket type has not been configured into the system or no implementation for it exists. [Edit]
ESPIPEIllegal seek. An Syscall.lseek(2) system call was issued on a socket, pipe or FIFO. [Edit]
ESRCHNo such process. No process could be found corresponding to that specified by the given process ID. [Edit]
ESRMNTDocumentation for this section has not yet been entered. [Edit]
ESTALEStale NFS file handle. An attempt was made to access an open file (on an NFS file system) which is now unavailable as referenced by the file descriptor. This may indicate the file was deleted on the NFS server or some other catastrophic event occurred. [Edit]
ESTRPIPEDocumentation for this section has not yet been entered. [Edit]
ETIMEDocumentation for this section has not yet been entered. [Edit]
ETIMEDOUTOperation timed out. A Syscall.connect(2) or Syscall.send(2) request failed because the connected party did not properly respond after a period of time. (The timeout period is dependent on the communication protocol.) [Edit]
ETOOMANYREFSDocumentation for this section has not yet been entered. [Edit]
ETXTBSYText file busy. The new process was a pure procedure (shared text) file which was open for writing by another process, or while the pure procedure file was being executed an Syscall.open(2) call requested write access. [Edit]
EUCLEANDocumentation for this section has not yet been entered. [Edit]
EUNATCHDocumentation for this section has not yet been entered. [Edit]
EUSERSToo many users. The quota system ran out of table entries. [Edit]
EWOULDBLOCKDocumentation for this section has not yet been entered. [Edit]
EXDEVCross-device link. A hard link to a file on another file system was attempted. [Edit]
EXFULLDocumentation for this section has not yet been entered. [Edit]

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0