]> git.saurik.com Git - apple/libc.git/blob - stdio/FreeBSD/tmpnam.3.patch
Libc-498.tar.gz
[apple/libc.git] / stdio / FreeBSD / tmpnam.3.patch
1 --- _SB/Libc/stdio/FreeBSD/tmpnam.3 2004-11-25 11:38:35.000000000 -0800
2 +++ _SB/Libc/stdio/FreeBSD/tmpnam.3.edit 2006-06-28 16:55:52.000000000 -0700
3 @@ -49,11 +49,18 @@
4 .Sh SYNOPSIS
5 .In stdio.h
6 .Ft FILE *
7 -.Fn tmpfile void
8 +.Fo tmpfile
9 +.Fa void
10 +.Fc
11 .Ft char *
12 -.Fn tmpnam "char *str"
13 +.Fo tmpnam
14 +.Fa "char *s"
15 +.Fc
16 .Ft char *
17 -.Fn tempnam "const char *tmpdir" "const char *prefix"
18 +.Fo tempnam
19 +.Fa "const char *dir"
20 +.Fa "const char *pfx"
21 +.Fc
22 .Sh DESCRIPTION
23 The
24 .Fn tmpfile
25 @@ -67,12 +74,13 @@
26 reference to it is closed.
27 The file is opened with the access value
28 .Ql w+ .
29 -The file is created in the directory determined by the environment variable
30 +If the environment variable
31 .Ev TMPDIR
32 -if set.
33 -The default location if
34 +is defined,
35 +the file is created in the specified directory.
36 +The default location, if
37 .Ev TMPDIR
38 -is not set is
39 +is not set, is
40 .Pa /tmp .
41 .Pp
42 The
43 @@ -87,7 +95,7 @@
44 is defined in the include file
45 .In stdio.h .
46 If the argument
47 -.Fa str
48 +.Fa s
49 is
50 .Pf non- Dv NULL ,
51 the file name is copied to the buffer it references.
52 @@ -97,7 +105,7 @@
53 returns a pointer to the file name.
54 .Pp
55 The buffer referenced by
56 -.Fa str
57 +.Fa s
58 is expected to be at least
59 .Dv L_tmpnam
60 bytes in length.
61 @@ -116,7 +124,7 @@
62 The environment variable
63 .Ev TMPDIR
64 (if set), the argument
65 -.Fa tmpdir
66 +.Fa dir
67 (if
68 .Pf non- Dv NULL ) ,
69 the directory
70 @@ -127,7 +135,7 @@
71 temporary file.
72 .Pp
73 The argument
74 -.Fa prefix ,
75 +.Fa pfx ,
76 if
77 .Pf non- Dv NULL ,
78 is used to specify a file name prefix, which will be the
79 @@ -229,11 +237,6 @@
80 .Sh SEE ALSO
81 .Xr mkstemp 3 ,
82 .Xr mktemp 3
83 -.Rs
84 -.%T "The FreeBSD Security Architecture"
85 -.Re
86 -(See
87 -.Pa "/usr/share/doc/{to be determined}" . )
88 .Sh STANDARDS
89 The
90 .Fn tmpfile