LoginSignup
8
4

More than 5 years have passed since last update.

ENOENT とか ENOMEM とか errno.h のどこにあるねんってなったのでメモ

Posted at

include

するのはいいんだけど
/usr/include/errno.h に見つからない。
じゃあどこにあるねん!ってなったのでメモ

/usr/include/ の中を漁っていると・・・
errno.h
bits/error.h
linux/errno.h
asm/errno.h
asm-generic/errno.h
asm-generic/errno-base.h ← ここにあります。

$ vi -R /usr/include/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 */

あったあった・・・

8
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
4