mkdtemp(3) Library Functions Manual mkdtemp(3) mkdtemp - C (libc, -lc) #include char *mkdtemp(char *template); glibc (. feature_test_macros(7)): mkdtemp(): /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc 2.19 and earlier: */ _BSD_SOURCE || /* Since glibc 2.10: */ _POSIX_C_SOURCE >= 200809L mkdtemp() template. template XXXXXX; , . 0700. template , , . The mkdtemp() function returns a pointer to the modified template string on success, and NULL on failure, in which case errno is set to indicate the error. EINVAL template XXXXXX. template . . mkdir(2) errno. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |mkdtemp() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. glibc 2.1.91. NetBSD 1.4. POSIX.1-2008. mktemp(1), mkdir(2), mkstemp(3), mktemp(3), tempnam(3), tmpfile(3), tmpnam(3) () aereiae , Alexey , Azamat Hackimov , Dmitriy S. Seregin , Dmitry Bolkhovskikh , ITriskTI , Max Is , Yuri Kozlov , , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . mkdtemp(3)