Linux errno

Linux errno,number of last error.

Linux/include/uapi/asm-generic/errno-base.h

ifndef _ASM_GENERIC_ERRNO_BASE_H

define _ASM_GENERIC_ERRNO_BASE_H

define EPERM 1 / Operation not permitted /

define ENOENT 2 / No such file or directory /

define ESRCH 3 / No such process /

define EINTR 4 / Interrupted system call /

define EIO 5 / I/O error /

define ENXIO 6 / No such device or address /

define E2BIG 7 / Argument list too long /

define ENOEXEC 8 / Exec format error /

define EBADF 9 / Bad file number /

define ECHILD 10 / No child processes /

define EAGAIN 11 / Try again /

define ENOMEM 12 / Out of memory /

define EACCES 13 / Permission denied /

define EFAULT 14 / Bad address /

define ENOTBLK 15 / Block device required /

define EBUSY 16 / Device or resource busy /

define EEXIST 17 / File exists /

define EXDEV 18 / Cross-device link /

define ENODEV 19 / No such device /

define ENOTDIR 20 / Not a directory /

define EISDIR 21 / Is a directory /

define EINVAL 22 / Invalid argument /

define ENFILE 23 / File table overflow /

define EMFILE 24 / Too many open files /

define ENOTTY 25 / Not a typewriter /

define ETXTBSY 26 / Text file busy /

define EFBIG 27 / File too large /

define ENOSPC 28 / No space left on device /

define ESPIPE 29 / Illegal seek /

define EROFS 30 / Read-only file system /

define EMLINK 31 / Too many links /

define EPIPE 32 / Broken pipe /

define EDOM 33 / Math argument out of domain of func /

define ERANGE 34 / Math result not representable /

endif

Linux/include/uapi/asm-generic/errno.h

ifndef _ASM_GENERIC_ERRNO_H

define _ASM_GENERIC_ERRNO_H

include

define EDEADLK 35 / Resource deadlock would occur /

define ENAMETOOLONG 36 / File name too long /

define ENOLCK 37 / No record locks available /

/*
* This error code is special: arch syscall entry code will return
* -ENOSYS if users try to call a syscall that doesn’t exist. To keep
* failures of syscalls that really do exist distinguishable from
* failures due to attempts to use a nonexistent syscall, syscall
* implementations should refrain from returning -ENOSYS.

*/

define ENOSYS 38 / Invalid system call number /

define ENOTEMPTY 39 / Directory not empty /

define ELOOP 40 / Too many symbolic links encountered /

define EWOULDBLOCK EAGAIN / Operation would block /

define ENOMSG 42 / No message of desired type /

define EIDRM 43 / Identifier removed /

define ECHRNG 44 / Channel number out of range /

define EL2NSYNC 45 / Level 2 not synchronized /

define EL3HLT 46 / Level 3 halted /

define EL3RST 47 / Level 3 reset /

define ELNRNG 48 / Link number out of range /

define EUNATCH 49 / Protocol driver not attached /

define ENOCSI 50 / No CSI structure available /

define EL2HLT 51 / Level 2 halted /

define EBADE 52 / Invalid exchange /

define EBADR 53 / Invalid request descriptor /

define EXFULL 54 / Exchange full /

define ENOANO 55 / No anode /

define EBADRQC 56 / Invalid request code /

define EBADSLT 57 / Invalid slot /

define EDEADLOCK EDEADLK

define EBFONT 59 / Bad font file format /

define ENOSTR 60 / Device not a stream /

define ENODATA 61 / No data available /

define ETIME 62 / Timer expired /

define ENOSR 63 / Out of streams resources /

define ENONET 64 / Machine is not on the network /

define ENOPKG 65 / Package not installed /

define EREMOTE 66 / Object is remote /

define ENOLINK 67 / Link has been severed /

define EADV 68 / Advertise error /

define ESRMNT 69 / Srmount error /

define ECOMM 70 / Communication error on send /

define EPROTO 71 / Protocol error /

define EMULTIHOP 72 / Multihop attempted /

define EDOTDOT 73 / RFS specific error /

define EBADMSG 74 / Not a data message /

define EOVERFLOW 75 / Value too large for defined data type /

define ENOTUNIQ 76 / Name not unique on network /

define EBADFD 77 / File descriptor in bad state /

define EREMCHG 78 / Remote address changed /

define ELIBACC 79 / Can not access a needed shared library /

define ELIBBAD 80 / Accessing a corrupted shared library /

define ELIBSCN 81 / .lib section in a.out corrupted /

define ELIBMAX 82 / Attempting to link in too many shared libraries /

define ELIBEXEC 83 / Cannot exec a shared library directly /

define EILSEQ 84 / Illegal byte sequence /

define ERESTART 85 / Interrupted system call should be restarted /

define ESTRPIPE 86 / Streams pipe error /

define EUSERS 87 / Too many users /

define ENOTSOCK 88 / Socket operation on non-socket /

define EDESTADDRREQ 89 / Destination address required /

define EMSGSIZE 90 / Message too long /

define EPROTOTYPE 91 / Protocol wrong type for socket /

define ENOPROTOOPT 92 / Protocol not available /

define EPROTONOSUPPORT 93 / Protocol not supported /

define ESOCKTNOSUPPORT 94 / Socket type not supported /

define EOPNOTSUPP 95 / Operation not supported on transport endpoint /

define EPFNOSUPPORT 96 / Protocol family not supported /

define EAFNOSUPPORT 97 / Address family not supported by protocol /

define EADDRINUSE 98 / Address already in use /

define EADDRNOTAVAIL 99 / Cannot assign requested address /

define ENETDOWN 100 / Network is down /

define ENETUNREACH 101 / Network is unreachable /

define ENETRESET 102 / Network dropped connection because of reset /

define ECONNABORTED 103 / Software caused connection abort /

define ECONNRESET 104 / Connection reset by peer /

define ENOBUFS 105 / No buffer space available /

define EISCONN 106 / Transport endpoint is already connected /

define ENOTCONN 107 / Transport endpoint is not connected /

define ESHUTDOWN 108 / Cannot send after transport endpoint shutdown /

define ETOOMANYREFS 109 / Too many references: cannot splice /

define ETIMEDOUT 110 / Connection timed out /

define ECONNREFUSED 111 / Connection refused /

define EHOSTDOWN 112 / Host is down /

define EHOSTUNREACH 113 / No route to host /

define EALREADY 114 / Operation already in progress /

define EINPROGRESS 115 / Operation now in progress /

define ESTALE 116 / Stale file handle /

define EUCLEAN 117 / Structure needs cleaning /

define ENOTNAM 118 / Not a XENIX named type file /

define ENAVAIL 119 / No XENIX semaphores available /

define EISNAM 120 / Is a named type file /

define EREMOTEIO 121 / Remote I/O error /

define EDQUOT 122 / Quota exceeded /

define ENOMEDIUM 123 / No medium found /

define EMEDIUMTYPE 124 / Wrong medium type /

define ECANCELED 125 / Operation Canceled /

define ENOKEY 126 / Required key not available /

define EKEYEXPIRED 127 / Key has expired /

define EKEYREVOKED 128 / Key has been revoked /

define EKEYREJECTED 129 / Key was rejected by service /

/ for robust mutexes /

define EOWNERDEAD 130 / Owner died /

define ENOTRECOVERABLE 131 / State not recoverable /

define ERFKILL 132 / Operation not possible due to RF-kill /

define EHWPOISON 133 / Memory page has hardware error /

endif

Linux/include/linux/errno.h

ifndef _LINUX_ERRNO_H

define _LINUX_ERRNO_H

include

/
* These should never be seen by user programs. To return one of ERESTART

* codes, signal_pending() MUST be set. Note that ptrace can observe these
* at syscall exit tracing, but they will never be left for the debugged user
* process to see.

*/

define ERESTARTSYS 512

define ERESTARTNOINTR 513

define ERESTARTNOHAND 514 / restart if no handler.. /

define ENOIOCTLCMD 515 / No ioctl command /

define ERESTART_RESTARTBLOCK 516 / restart by calling sys_restart_syscall /

define EPROBE_DEFER 517 / Driver requests probe retry /

define EOPENSTALE 518 / open found a stale dentry /

/ Defined for the NFSv3 protocol /

define EBADHANDLE 521 / Illegal NFS file handle /

define ENOTSYNC 522 / Update synchronization mismatch /

define EBADCOOKIE 523 / Cookie is stale /

define ENOTSUPP 524 / Operation is not supported /

define ETOOSMALL 525 / Buffer or request is too small /

define ESERVERFAULT 526 / An untranslatable error occurred /

define EBADTYPE 527 / Type not supported by server /

define EJUKEBOX 528 / Request initiated, but will not complete before timeout /

define EIOCBQUEUED 529 / iocb queued, will get completion event /

define ERECALLCONFLICT 530 / conflict with recalled state /

endif

Original: https://www.cnblogs.com/we-hjb/p/6798279.html
Author: sunrain_hjb
Title: Linux errno

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/582186/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

  • 服务管理与通信,基础原理分析

    涉及轻微的源码展示,可放心参考; 一、基础简介 服务注册发现是微服务架构中最基础的能力,下面将从源码层面分析实现逻辑和原理,在这之前要先来看下依赖工程的基础结构,涉及如下几个核心组…

    Linux 2023年6月14日
    0135
  • 【论文笔记】(FGSM)Explaining and Harnessing Adversarial Examples

    本文发表于 ICLR 2015,提出了经典的攻击方法 – FGSM(Fast Gradient Sign Method),这篇博客的第1-5节为重点部分,包括原文第5节…

    Linux 2023年6月7日
    0102
  • 内部类

    内部类:将一个类的定义放在另一个类的定义内部。内部类机制可以把逻辑相关的类组织在一起,并控制位于内部的类的可视性。 内部类与组合是完全不同的概念。 内部类不仅是一种代码隐藏机制(将…

    Linux 2023年6月8日
    096
  • windows下使用route添加路由

    404. 抱歉,您访问的资源不存在。 可能是网址有误,或者对应的内容被删除,或者处于私有状态。 代码改变世界,联系邮箱 contact@cnblogs.com 园子的商业化努力-困…

    Linux 2023年6月7日
    099
  • 路由黑洞和黑洞路由

    路由黑洞: 路由黑洞一般是在网络边界做汇总回程路由的时候产生的一种不太愿意出现的现象,就是汇总的时候有时会有一些网段并不在内网中存在,但是又包含在汇总后的网段中,如果在这个汇总的边…

    Linux 2023年6月14日
    0102
  • Android recovery支持adb shell

    Android recovery支持adb shell 近期开发过程注意到recovery不支持adb shell。为了便于调试方便,决定添加此功能。 刚開始我们採用的是user版…

    Linux 2023年5月28日
    097
  • Java多线程volatile、ThreadLocal、线程池、atomic

    404. 抱歉,您访问的资源不存在。 可能是网址有误,或者对应的内容被删除,或者处于私有状态。 代码改变世界,联系邮箱 contact@cnblogs.com 园子的商业化努力-困…

    Linux 2023年6月11日
    090
  • SQL中连接(JOIN)子句介绍

    本文主要介绍 SQL(Structured Query Language)中连接(JOIN)子句的相关知识,同时通过用法示例介绍连接的常见用法。 说明:本文的用法示例是面向 MyS…

    Linux 2023年6月13日
    073
  • Linux入门命令

    命令入门 命令提示符详解 find cut sort wc sed aws [root@localhost ~]# # /root [lilei@node1 ~]$ #/home/…

    Linux 2023年6月11日
    083
  • 庐山真面目之十三微服务架构中如何在Docker上使用Redis缓存

    一、介绍 1、开始说明在微服务器架构中,有一个组件是不能少的,那就是缓存组件。其实来说,缓存组件,这个叫法不是完全正确,因为除了缓存功能,它还能完成其他很多功能。我就不隐瞒了,今天…

    Linux 2023年5月28日
    075
  • Redis深入浅出

    bash;gutter:true; RDB持久化是指在指定的时间间隔内将内存中的数据集快照写入磁盘,实际操作过程是fork一个子进程,先将数据集写入临时文件,写入成功后,再替换之前…

    Linux 2023年5月28日
    0101
  • 模板层

    过滤器 语法结构 {{ 数据对象|过滤器名称:参数 }} 过滤器最多只能额外传输一个参数 常见过滤器 标签 注意事项 在django模板语法中写标签的时候,只需要写关键字然后tab…

    Linux 2023年6月7日
    088
  • 如何分析redis中的慢查询

    慢查询只记录命令执行时间,并不包括命令排队和网络传输时间。因此客户端执行命令的时间会大于命令实际执行时间。因为命令执行排队机制,慢查询会导致其他命令级联阻塞,因此当客户端出现请求超…

    Linux 2023年5月28日
    086
  • Canal实时解析mysql binlog数据实战

    一、说明 通过canal实时监听mysql binlog日志文件的变化,并将数据解析出来 二、环境准备 1、创建maven项目并修改pom.xml配置文件 com.alibaba….

    Linux 2023年6月13日
    074
  • 操作系统实现-loader

    博客网址:www.shicoder.top微信:18223081347欢迎加群聊天 :452380935 大家好呀,终于我们到了操作系统的loader部分了,loader也是操作系…

    Linux 2023年6月13日
    066
  • 深入Go Map的使用技巧

    原文链接:https://www.zhoubotong.site/post/60.html之前写过一篇文章,Go map定义的几种方式以及修改技巧,今天发现还可以深入探讨下开发中容…

    Linux 2023年6月6日
    0116
亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球