mkstemp has wrong scope ?

Marco Atzeri marco.atzeri@gmail.com
Fri Aug 28 05:05:36 GMT 2026


Hi,

on /usr/include/stdlib.h

the function mkstemp is defined as

-----------------------------------------------
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809
char *  mkdtemp (char *);
#endif
#if __GNU_VISIBLE
int     mkostemp (char *, int);
int     mkostemps (char *, int, int);
#endif
#if __MISC_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 4
int     mkstemp (char *);
#endif
-----------------------------------------------

but a note on

https://pubs.opengroup.org/onlinepubs/9799919799/functions/mkdtemp.html

says
      The mkstemp() function is moved from the XSI option to the Base.

Regards
Marco





More information about the Cygwin mailing list