1 --- mktemp.3.orig 2010-04-28 23:38:47.000000000 -0700
2 +++ mktemp.3 2010-04-29 11:05:28.000000000 -0700
11 .Nd make temporary file name (unique)
17 -.Fn mktemp "char *template"
22 -.Fn mkstemp "char *template"
29 -.Fn mkstemps "char *template" "int suffixlen"
34 -.Fn mkdtemp "char *template"
41 @@ -133,7 +146,7 @@ The pathname portion of the template is
50 @@ -167,7 +180,7 @@ A common problem that results in a core
51 passes in a read-only string to
58 This is common with programs that were developed before
59 @@ -186,12 +199,19 @@ so that it will store string constants i
64 +.Fd #include <unistd.h>
68 +is necessary and sufficient for all functions.
80 @@ -242,10 +262,3 @@ and the return status of the call should
81 This will ensure that the program does not continue blindly
82 in the event that an attacker has already created the file
83 with the intention of manipulating or reading its contents.
85 -The implementation of these functions calls
87 -which is not reentrant.
88 -You must provide your own locking around this and other consumers of the