tmpfile(3) Library Functions Manual tmpfile(3) tmpfile - Standard C library (libc, -lc) #include FILE *tmpfile(void); tmpfile() / (w+b). , . tmpfile() NULL, . errno . EACCES , . EEXIST . EINTR - . signal(7). EMFILE . ENFILE . ENOSPC , . EROFS Read-only filesystem. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |tmpfile() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ The standard does not specify the directory that tmpfile() will use. glibc will try the path prefix P_tmpdir defined in , and if that fails, then the directory /tmp. C11, POSIX.1-2008. POSIX.1-2001, C89, SVr4, 4.3BSD, SUSv2. POSIX.1-2001 : stdout, . exit(3), mkstemp(3), mktemp(3), tempnam(3), tmpnam(3) () Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux man-pages 6.12 23 2024 . tmpfile(3)