Linux错误号(errno)对应错误一览
可以在SHELL下通过perror这个命令来显示,对应的程序API也有perror这个函数。
view plainprint?
i=1;
while [ $i -le 152 ];
do
perror $i;
let i=i+1;
done;
我所在内核只定义到152,如下表所示:
OS error code 1: Operation not permitted
OS error code 2: No such file or directory
OS error code 3: No such process
OS error code 4: Interrupted system call
OS error code 5: Input/output error
OS error code 6: No such device or address
OS error code 7: Argument list too long
OS error code 8: Exec format error
OS error code 9: Bad file descriptor
OS error code 10: No child processes
OS error code 11: Resource temporarily unavailable
OS error code 12: Cannot allocate memory
OS error code 13: Permission denied
OS error code 14: Bad address
OS error code 15: Block device required
OS error code 16: Device or resource busy
OS error code 17: File exists
OS error code 18: Invalid cross-device link
OS error code 19: No such device
OS error code 20: Not a directory
OS error code 21: Is a directory
OS error code 22: Invalid argument
OS error code 23: Too many open files in system
OS error code 24: Too many open files
OS error code 25: Inappropriate ioctl for device
OS error code 26: Text file busy
OS error code 27: File too large
OS error code 28: No space left on device
OS error code 29: Illegal seek
OS error code 30: Read-only file system
OS error code 31: Too many links
OS error code 32: Broken pipe
OS error code 33: Numerical argument out of domain
OS error code 34: Numerical result out of range
OS error code 35: Resource deadlock avoided
OS error code 36: File name too long
OS error code 37: No locks available
OS error code 38: Function not implemented
OS error code 39: Directory not empty
OS error code 40: Too many levels of symbolic links
Illegal error code: 41
OS error code 42: No message of desired type
OS error code 43: Identifier removed
OS error code 44: Channel number out of range
OS error code 45: Level 2 not synchronized
OS error code 46: Level 3 halted
OS error code 47: Level 3 reset
OS error code 48: Link number out of range
OS error code 49: Protocol driver not attached
OS error code 50: No CSI structure available
OS error code 51: Level 2 halted
OS error code 52: Invalid exchange
OS error code 53: Invalid request descriptor
OS error code 54: Exchange full
OS error code 55: No anode
OS error code 56: Invalid request code
OS error code 57: Invalid slot
Illegal error code: 58
OS error code 59: Bad font file format
OS error code 60: Device not a stream
OS error code 61: No data available
OS error code 62: Timer expired
OS error code 63: Out of streams resources
OS error code 64: Machine is not on the network
OS error code 65: Package not installed
OS error code 66: Object is remote
OS error code 67: Link has been severed
OS error code 68: Advertise error
OS error code 69: Srmount error
OS error code 70: Communication error on send
OS error code 71: Protocol error
OS error code 72: Multihop attempted
OS error code 73: RFS specific error
OS error code 74: Bad message
OS error code 75: Value too large for defined data type
OS error code 76: Name not unique on network
OS error code 77: File descriptor in bad state
OS error code 78: Remote address changed
OS error code 79: Can not access a needed shared library
OS error code 80: Accessing a corrupted shared library
OS error code 81: .lib section in a.out corrupted
OS error code 82: Attempting to link in too many shared libraries
OS error code 83: Cannot exec a shared library directly
OS error code 84: Invalid or incomplete multibyte or wide character
OS error code 85: Interrupted system call should be restarted
OS error code 86: Streams pipe error
OS error code 87: Too many users
OS error code 88: Socket operation on non-socket
OS error code 89: Destination address required
OS error code 90: Message too long
OS error code 91: Protocol wrong type for socket
OS error code 92: Protocol not available
OS error code 93: Protocol not supported
OS error code 94: Socket type not supported
OS error code 95: Operation not supported
OS error code 96: Protocol family not supported
OS error code 97: Address family not supported by protocol
OS error code 98: Address already in use
OS error code 99: Cannot assign requested address
OS error code 100: Network is down
OS error code 101: Network is unreachable
OS error code 102: Network dropped connection on reset
OS error code 103: Software caused connection abort
OS error code 104: Connection reset by peer
OS error code 105: No buffer space available
OS error code 106: Transport endpoint is already connected
OS error code 107: Transport endpoint is not connected
OS error code 108: Cannot send after transport endpoint shutdown
OS error code 109: Too many references: cannot splice
OS error code 110: Connection timed out
OS error code 111: Connection refused
OS error code 112: Host is down
OS error code 113: No route to host
OS error code 114: Operation already in progress
OS error code 115: Operation now in progress
OS error code 116: Stale NFS file handle
OS error code 117: Structure needs cleaning
OS error code 118: Not a XENIX named type file
OS error code 119: No XENIX semaphores available
OS error code 120: Is a named type file
OS error code 121: Remote I/O error
OS error code 122: Disk quota exceeded
OS error code 123: No medium found
OS error code 124: Wrong medium type
OS error code 125: Operation canceled
OS error code 126: Required key not available
OS error code 127: Key has expired
OS error code 128: Key has been revoked
OS error code 129: Key was rejected by service
OS error code 130: Owner died
OS error code 131: State not recoverable
MySQL error code 132: Old database file
MySQL error code 133: No record read before update
MySQL error code 134: Record was already deleted (or record file crashed)
MySQL error code 135: No more room in record file
MySQL error code 136: No more room in index file
MySQL error code 137: No more records (read after end of file)
MySQL error code 138: Unsupported extension used for table
MySQL error code 139: Too big row
MySQL error code 140: Wrong create options
MySQL error code 141: Duplicate unique key or constraint on write or update
MySQL error code 142: Unknown character set used
MySQL error code 143: Conflicting table definitions in sub-tables of MERGE table
MySQL error code 144: Table is crashed and last repair failed
MySQL error code 145: Table was marked as crashed and should be repaired
MySQL error code 146: Lock timed out; Retry transaction
MySQL error code 147: Lock table is full; Restart program with a larger locktabl
MySQL error code 148: Updates are not allowed under a read only transactions
MySQL error code 149: Lock deadlock; Retry transaction
MySQL error code 150: Foreign key constraint is incorrectly formed
MySQL error code 151: Cannot add a child row
MySQL error code 152: Cannot delete a parent row
- 浏览: 719688 次
- 性别:
- 来自: 无锡
最新评论
-
275553385:
#anonymous_enable=YESanonymous_ ...
Linux下FTP服务器架设 -
275553385:
Available statsrequest Response ...
Tsung报告的名称解释 -
275553385:
当使用php 5.4时,安装xhprof可能会遇到麻烦,详情见 ...
linux下xhprof安装 -
275553385:
dot png 等依赖
linux下xhprof安装 -
275553385:
yum -y install wget make vim in ...
MySQL5.5.34安装
相关推荐
linux错误码 errno值 #define EPERM 1/* Not super-user */ #define ENOENT 2 /* No such file or directory */ #define ESRCH 3/* No such process */ #define EINTR 4/* Interrupted system call */ #...
errno.h 文件是 Linux 系统中一个非常重要的头文件,它定义了一系列的错误号,每个错误号对应着一个特定的错误信息。了解这些错误号对于 Linux 系统的开发和调试至关重要。 在 Linux 系统中,errno.h 文件包含了多...
### Linux系统调用错误代码(Errno)详解 在Linux操作系统中,系统调用是应用程序与内核交互的重要方式之一。当系统调用失败时,通常会返回一个负数,并将具体的错误码存储在全局变量`errno`中。了解这些错误码对于...
这些错误码是通过 errno 变量来表示的,当 Linux C API 函数发生异常时, errno 变量将被赋予一个整数值,该值对应不同的错误类型。 在 Linux 系统中,错误码被定义在多个头文件中,其中包括 errno-base.h 和 errno...
例如,errno 的值可能是 EACCES、EINVAL、EFAULT 等,每个值都对应着不同的错误信息。 为了方便地获取错误信息,有多种方法可以使用: 1. 使用 perror 函数:perror 函数可以将上一个函数发生错误的原因输出到标准...
Linux系统则使用errno机制来报告错误,errno是一个全局变量,它包含了最近一次系统调用或库函数失败的原因。在Linux中,错误码是整数,如EPERM(1)表示“无权操作”,这通常意味着当前用户没有执行该操作所需的权限...
它接受一个字符串参数,通常是函数名或其他描述性文本,然后在其后添加冒号、空格以及与`errno`对应的错误消息,最后打印一个换行符。如果参数为空指针,`perror`将仅输出错误消息。在示例代码中,`perror("sqrt ...
当linux系统函数出错时,通常会返回一个负值,而且整型变量errno通常被设置为具有特定信息的值。例如,open 函数如果成功执行 则返回一个非负文件描述符,如出错则返回−1。在 open出错时,有大约15种不同的errno值(文件...
通过perror()函数,我们可以将errno对应的错误信息转化为可读的字符串输出,而strerror()函数则可以直接获取错误信息字符串。 三、返回值检查 大多数系统调用和标准库函数在成功执行时会返回非负值,失败时返回...
Linux FTP 服务器上传文件夹时提示 550 错误问题解决方法 Linux FTP 服务器上传文件夹时提示 550 错误问题解决方法是指在 Linux 操作系统中,使用 FTP 服务器上传文件夹时,遇到 550 错误的问题解决方法。该问题是...
网络编程Socket错误一览表Socket错误一览表
解释linux系统errno的值,如果你不明白errno对应的错误信息,这篇文档将帮助你
通过errno全局变量获取错误码,使用perror和strerror将错误码转化为人类可读的错误信息。 10. **标准库和头文件**:熟悉unistd.h、sys/types.h、sys/socket.h、sys/wait.h、pthread.h等头文件,了解它们提供的常量...
另外,如果出现 EINTR 错误,即 errno 为 4,错误描述为 Interrupted system call,操作也应该继续。如果 recv 的返回值为 0,那表明连接已经断开,接收操作也应该结束。 ETIMEOUT ETIMEOUT 错误码的值为 110,...
### LINUX SOCKET错误分析 在LINUX网络编程过程中,开发者经常会遇到一些特定的错误码,比如EINTR、ETIMEOUT、EAGAIN等。这些错误码对于理解网络编程中的异常情况至关重要。下面我们将详细介绍这些错误码的含义及其...
外部变量errno保存库程序中实现定义的错误码,通常被定义为errno.h中以E开头的宏, 所有错误码都是正整数,如下例子 # define EDOM 33 /* Math argument out of domain of function. */ EDOM的意思是参数不在数学...
在Linux系统中,`errno11`通常与`EAGAIN`或`EWOULDBLOCK`错误代码关联,这是在进行非阻塞I/O操作时常见的一个错误。当我们使用非阻塞模式的socket进行数据传输时,可能会遇到这种错误。 在发送数据时,如果你尝试...
另外,Linux系统编程中还包括了对标准库函数的使用,如stdio.h中的perror()函数用于打印错误信息,中的strerror_r()函数将错误号转换为错误消息字符串等。在进行文件操作时,open()函数用于打开文件并返回文件描述符...