Loading...
stdio/FreeBSD/tmpnam.3.patch Libc-763.11 Libc-498
--- Libc/Libc-763.11/stdio/FreeBSD/tmpnam.3.patch
+++ Libc/Libc-498/stdio/FreeBSD/tmpnam.3.patch
@@ -1,21 +1,12 @@
---- tmpnam.3.bsdnew	2009-11-11 13:33:17.000000000 -0800
-+++ tmpnam.3	2009-11-11 15:17:16.000000000 -0800
-@@ -32,7 +32,7 @@
- .\"     @(#)tmpnam.3	8.2 (Berkeley) 11/17/93
- .\" $FreeBSD: src/lib/libc/stdio/tmpnam.3,v 1.20 2007/03/16 21:46:24 maxim Exp $
- .\"
--.Dd March 18, 2007
-+.Dd November 12, 2008
- .Dt TMPFILE 3
- .Os
- .Sh NAME
-@@ -45,11 +45,18 @@
+--- _SB/Libc/stdio/FreeBSD/tmpnam.3	2004-11-25 11:38:35.000000000 -0800
++++ _SB/Libc/stdio/FreeBSD/tmpnam.3.edit	2006-06-28 16:55:52.000000000 -0700
+@@ -49,11 +49,18 @@
  .Sh SYNOPSIS
  .In stdio.h
  .Ft FILE *
 -.Fn tmpfile void
 +.Fo tmpfile
-+.Fa "void"
++.Fa void
 +.Fc
  .Ft char *
 -.Fn tmpnam "char *str"
@@ -31,7 +22,7 @@
  .Sh DESCRIPTION
  The
  .Fn tmpfile
-@@ -63,12 +70,13 @@ returns, causing the file to be automati
+@@ -67,12 +74,13 @@
  reference to it is closed.
  The file is opened with the access value
  .Ql w+ .
@@ -49,7 +40,7 @@
  .Pa /tmp .
  .Pp
  The
-@@ -83,7 +91,7 @@ past.
+@@ -87,7 +95,7 @@
  is defined in the include file
  .In stdio.h .
  If the argument
@@ -58,7 +49,7 @@
  is
  .Pf non- Dv NULL ,
  the file name is copied to the buffer it references.
-@@ -93,7 +101,7 @@ In either case,
+@@ -97,7 +105,7 @@
  returns a pointer to the file name.
  .Pp
  The buffer referenced by
@@ -67,28 +58,16 @@
  is expected to be at least
  .Dv L_tmpnam
  bytes in length.
-@@ -109,21 +117,23 @@ is similar to
- but provides the ability to specify the directory which will
- contain the temporary file and the file name prefix.
- .Pp
--The environment variable
--.Ev TMPDIR
--(if set), the argument
+@@ -116,7 +124,7 @@
+ The environment variable
+ .Ev TMPDIR
+ (if set), the argument
 -.Fa tmpdir
-+The argument
 +.Fa dir
  (if
  .Pf non- Dv NULL ) ,
  the directory
- .Dv P_tmpdir ,
--and the directory
-+the environment variable
-+.Ev TMPDIR
-+(if set),
-+the directory
- .Pa /tmp
-+and finally, the current directory,
- are tried, in the listed order, as directories in which to store the
+@@ -127,7 +135,7 @@
  temporary file.
  .Pp
  The argument
@@ -97,16 +76,15 @@
  if
  .Pf non- Dv NULL ,
  is used to specify a file name prefix, which will be the
-@@ -235,6 +245,12 @@ It is strongly suggested that
- be used in place of these functions.
- (See
- the FSA.)
-+.Sh LEGACY DESCRIPTION
-+In legacy mode, the order directories are tried by the
-+.Fn tempnam
-+function is different; the environment variable
-+.Ev TMPDIR
-+(if defined) is used first.
+@@ -229,11 +237,6 @@
  .Sh SEE ALSO
  .Xr mkstemp 3 ,
  .Xr mktemp 3
+-.Rs
+-.%T "The FreeBSD Security Architecture"
+-.Re
+-(See
+-.Pa "/usr/share/doc/{to be determined}" . )
+ .Sh STANDARDS
+ The
+ .Fn tmpfile