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 */
あったあった・・・