summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/mktemp.3
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-04-04 21:15:37 +0000
committerimp <imp@FreeBSD.org>1999-04-04 21:15:37 +0000
commitd2a62e16376e5dfc38a2356fa706c28f86eba414 (patch)
treee193c586a21279aeb2b75ba809d5dbe9fb0f5729 /lib/libc/stdio/mktemp.3
parent9c9c4fe46a1f8145607172776b42890cdfcd51e3 (diff)
downloadFreeBSD-src-d2a62e16376e5dfc38a2356fa706c28f86eba414.zip
FreeBSD-src-d2a62e16376e5dfc38a2356fa706c28f86eba414.tar.gz
Add mkstemps to the man page, and create a link for it.
Obtained from: OpenBSD Poked in the eye about committing new functions without a manpage: obrien
Diffstat (limited to 'lib/libc/stdio/mktemp.3')
-rw-r--r--lib/libc/stdio/mktemp.312
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libc/stdio/mktemp.3 b/lib/libc/stdio/mktemp.3
index 50d7de4..b6048ce 100644
--- a/lib/libc/stdio/mktemp.3
+++ b/lib/libc/stdio/mktemp.3
@@ -43,6 +43,8 @@
.Fn mktemp "char *template"
.Ft int
.Fn mkstemp "char *template"
+.Ft int
+.Fn mkstemps "char *template, int suffixlen"
.Ft char *
.Fn mkdtemp "char *template"
.Sh DESCRIPTION
@@ -82,6 +84,16 @@ This avoids the race between testing for a file's existence and opening it
for use.
.Pp
The
+.Fn mkstemps
+function acts the same as
+.Fn mkstemp ,
+except it permits a suffix to exist in the template. The template
+should be of the form
+.Pa /tmp/tmpXXXXXXsuffix .
+.Fn mkstemps
+is told the length of the suffix string, ie. strlen("suffix");
+.Pp
+The
.Fn mkdtemp
function makes the same replacement to the template as in
.Xr mktemp 3
OpenPOWER on IntegriCloud