.\" Modified 990328, aeb
.\" 2008-06-19, mtk, Added mkostemp(); various other changes
.\"
-.TH MKSTEMP 3 2010-06-19 "GNU" "Linux Programmer's Manual"
+.TH MKSTEMP 3 2010-09-26 "GNU" "Linux Programmer's Manual"
.SH NAME
mkstemp, mkostemp \- create a unique temporary file
.SH SYNOPSIS
.in
.sp
.BR mkstemp ():
-_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500
+.ad l
+.RS 4
+.PD 0
+_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
+_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
.br
+|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200112L
+.PD
+.RE
+.ad b
+.PP
.BR mkostemp ():
_GNU_SOURCE
.br
are glibc extensions.
.SH NOTES
The old behavior of creating a file with mode 0666 may be
-a security risk, especially since other Unix flavors use 0600,
+a security risk, especially since other UNIX flavors use 0600,
and somebody might overlook this detail when porting programs.
More generally, the POSIX specification of