.\" Based on mkstemp(3), Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\" and GNU libc documentation
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
-.TH MKDTEMP 3 2008-08-21 "GNU" "Linux Programmer's Manual"
+.\" %%%LICENSE_END
+.TH MKDTEMP 3 2010-09-26 "GNU" "Linux Programmer's Manual"
.SH NAME
mkdtemp \- create a unique temporary directory
.SH SYNOPSIS
.in
.sp
.BR mkdtemp ():
+.br
+.ad l
+.RS 4
+.PD 0
_BSD_SOURCE
+.br
+|| /* Since glibc 2.10: */
+.RS 4
+(_POSIX_C_SOURCE\ >=\ 200809L || _XOPEN_SOURCE\ >=\ 700)
+.ad
+.PD
+.RE
+.RE
.SH DESCRIPTION
The
.BR mkdtemp ()
Since it will be modified,
.I template
must not be a string constant, but should be declared as a character array.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
The
.BR mkdtemp ()
function returns a pointer to the modified template
for other possible values for \fIerrno\fP.
.SH VERSIONS
Available since glibc 2.1.91.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
POSIX.1-2008.
This function is present on the BSDs.
.\" As at 2006, this function is being considered for a revision of POSIX.1
.\" Also in NetBSD 1.4.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR mkdir (2),
.BR mkstemp (3),
.BR mktemp (3),
.BR tempnam (3),
.BR tmpfile (3),
.BR tmpnam (3)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.