mkdtemp(3) Library Functions Manual mkdtemp(3) mkdtemp - LIBRARY Standard C library (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 , ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . mkdtemp(3)