errno.hã追跡ãã¦ãããã²ã©ãç®ã«ãã£ã
ã¨ã©ã¼ã³ã¼ã12ãä½ãªã®ã調ã¹ããã¨ãã¦æ°è»½ã«ãless /usr/include/errno.hãã¨ããã¨ãããå®ã¯ãã®ãã¡ã¤ã«ã«ã¯ã¨ã©ã¼çªå·ã®å®ç¾©ã¯ãªããã¨ãçºè¦ããããããããããããincludeããã¦ãã
/* Get the error number constants from the system-specific file. This file will test __need_Emath and _ERRNO_H. */ #include <bits/errno.h>
ãã®bits/errno.hãè¦ã¦ã¿ãã¨ããããããã«ããªãã
#ifdef _ERRNO_H # undef EDOM # undef EILSEQ # undef ERANGE # include <linux/errno.h>
æ´ã«ãlinux/errno.hãã¤ã³ã¯ã«ã¼ãããã¦ããã®ã§ãããã®ããã ãä¸ãè¦ã¦ã¿ãã¨
#ifndef _LINUX_ERRNO_H #define _LINUX_ERRNO_H #include <asm/errno.h> #endif
ããããããã®ã¨ãããããããã asm/errno.hã«ã¨ã¤ãªã¢ã¹ãã¦ããã ããä»åº¦ãããã¨æããããã¾ãã...
#include <asm-generic/errno.h>
ã¨ããããã§asm-generic/errno.hãè¦ã¦ã¿ãã¨ãéã«ã¨ã©ã¼çªå·ãããå®ç¾©ã!!
ã§ããããã«ã12ã¯ãªããã©ããããã¤ãã¯asm-generic/errno-base.hããæ¥ã¦ãããããã
#define ENOMEM 12 /* Out of memory */
ã¨ããããã§ãããããå®ç¾©ãè¦ã¤ãã£ãã
ãããããããã ããCã¯ãã£ã¦ãããªããã