â [UNIX] malloc failure (ãã®ï¼) ãããããmalloc failureã·ãªã¼ãºãæçµåãååä½æãã malloc_null.c ã¯ãã©ã¤ãã©ãªä¸ã® malloc ããã¤ã¸ã£ãã¯ããã¼ããå¼ã³åºãå ã«è¿ãã ãã§ããããä»åã¯æ¬æ¥ã® malloc ãå é¨ã§å¼ã³åºããã¡ã¢ãªå²ãå½ã¦ãå®è¡ã§ãã wrapper function ã«ææ¦ãã¦ã¿ã¾ãããã Wrapper function ãå®è£ ããããã«ã¯ãmalloc ã©ã¤ãã©ãªé¢æ°ã®ã¨ã³ããªã¢ãã¬ã¹ã®åå¾ãªã©åæåå¦çãå¿ è¦ã«ãªãã¾ããä¸è¬ã®ã¢ããªã±ã¼ã·ã§ã³ã§ããã°ãå¦çã®åå¾ã§åæåã»çµäºå¦çãè¡ããã¨ã¯ç°¡åã§ãããå ±æãªãã¸ã§ã¯ãã§å®ç¾ããã¨ãªãã¨ãã¯ã¦ã¨æ©ãã§ãã¾ãã¾ãã å®ã¯ãGCCã«ã¯ãã®ãããªå ´åã®ããã«ãç¹å¥ãªä»æããç¨æããã¦ããã®ã§ãã __attribute__((constructor)),
{{#tags}}- {{label}}
{{/tags}}