tmpfile

TMPFILE(3)                 Linux Programmer's Manual                TMPFILE(3)



åå
       tmpfile - ãã³ãã©ãªãã¡ã¤ã«ãä½æãã

æ¸å¼
       #include <stdio.h>

       FILE *tmpfile(void);

説æ
       tmpfile()  é¢æ°ã¯ã¦ãã¼ã¯ãªãã³ãã©ãªãã¡ã¤ã«ã ãã¤ããªãªã¼ãã©ã¤ãã¢ã¼ã (w+b)
       ã§ãªã¼ãã³ããã ãã®ãã¡ã¤ã«ã¯ã¯ãã¼ãºæã¾ãã¯ããã°ã©ã ã®çµäºæã«èªåçã«åé¤ãããã

è¿ãå¤
       tmpfile()  é¢æ°ã¯ãã¡ã¤ã«ãã¤ã³ã¿ãè¿ããã
       ã¦ãã¼ã¯ãªãã¡ã¤ã«ãä½ããªãã£ãããªã¼ãã³ã§ããªãã£ãå ´å㯠NULL ãè¿ãã
       å¾èã®å ´åãã¨ã©ã¼ã表ã errno ãè¨å®ããã

ã¨ã©ã¼
       EACCES ãã¡ã¤ã«ã®ãããã£ã¬ã¯ããªã«ãµã¼ãã®ã¢ã¯ã»ã¹æ¨© (search permission)
              ããªãã

       EEXIST ã¦ãã¼ã¯ãªãã¡ã¤ã«åãä½æã§ããªãã£ãã

       EINTR  å¼ã³åºããã·ã°ãã«ã«ãã£ã¦ä¸æãããã

       EMFILE 1 ã¤ã®ããã»ã¹ã§ä½¿ç¨å¯è½ãªãã¡ã¤ã«ãã£ã¹ã¯ãªãã¿æ°ãè¶éããã

       ENFILE ã·ã¹ãã å¨ä½ã§ãªã¼ãã³å¯è½ãªãã¡ã¤ã«æ°ãè¶éããã

       ENOSPC ãã£ã¬ã¯ããªã«æ°ãããã¡ã¤ã«ã追å ããããã®ç©ºãé åããªãã

       EROFS  èªã¿ã ãå°ç¨ãã¡ã¤ã«ã·ã¹ãã ã§ããã

æºæ
       SVr4, 4.3BSD, C89, C99, SUSv2, POSIX.1-2001.

注æ
       POSIX.1-2001 ã§ã¯ã ã¹ããªã¼ã ããªã¼ãã³ã§ããªãã£ãå ´åã stdout
       ã«ã¨ã©ã¼ã¡ãã»ã¼ã¸ãæ¸ãåºããããã¨è¦å®ããã¦ããã

       è¦æ ¼ã§ã¯ tmpfile()  ã使ããã£ã¬ã¯ããªã¯æå®ããã¦ããªãã glibc ã§ã¯ <stdio.h>
       ã§å®ç¾©ããã¦ãã P_tmpdir ããã¹ã®åé ã«ä½¿ããã¨ããã ããã失æããå ´åã¯ããã£ã¬ã¯ããª
       /tmp ã使ãã

é¢é£é ç®
       exit(3), mkstemp(3), mktemp(3), tempnam(3), tmpnam(3)

ãã®ææ¸ã«ã¤ãã¦
       ãã® man ãã¼ã¸ã¯ Linux man-pages ããã¸ã§ã¯ãã®ãªãªã¼ã¹ 3.51 ã®ä¸é¨
       ã§ãããããã¸ã§ã¯ãã®èª¬æã¨ãã°å ±åã«é¢ããæå ±ã¯
       http://www.kernel.org/doc/man-pages/ ã«æ¸ããã¦ããã



                                  2008-07-14                        TMPFILE(3)