mkostemp ¶POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/mkostemp.html
Documentation:
man mkostemp
Portability problems fixed by Gnulib:
<unistd.h> instead of <stdlib.h>
on some platforms:
macOS 14.
off_t is a 32-bit type, mkostemp may not work
correctly to create files larger than 2 GB. (Cf. AC_SYS_LARGEFILE.)
Portability problems not fixed by Gnulib:
The gnulib module clean-temp can create temporary files that will not
be left behind after signals such as SIGINT.