tmpnam.3 (89138) | tmpnam.3 (108037) |
---|---|
1.\" Copyright (c) 1988, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the American National Standards Committee X3, on Information 6.\" Processing Systems. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)tmpnam.3 8.2 (Berkeley) 11/17/93 | 1.\" Copyright (c) 1988, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the American National Standards Committee X3, on Information 6.\" Processing Systems. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)tmpnam.3 8.2 (Berkeley) 11/17/93 |
37.\" $FreeBSD: head/lib/libc/stdio/tmpnam.3 89138 2002-01-09 14:01:22Z ru $ | 37.\" $FreeBSD: head/lib/libc/stdio/tmpnam.3 108037 2002-12-18 12:45:11Z ru $ |
38.\" 39.Dd November 17, 1993 40.Dt TMPFILE 3 41.Os 42.Sh NAME 43.Nm tempnam , 44.Nm tmpfile , 45.Nm tmpnam --- 81 unchanged lines hidden (view full) --- 127temporary file. 128.Pp 129The argument 130.Fa prefix , 131if 132.Pf non- Dv NULL , 133is used to specify a file name prefix, which will be the 134first part of the created file name. | 38.\" 39.Dd November 17, 1993 40.Dt TMPFILE 3 41.Os 42.Sh NAME 43.Nm tempnam , 44.Nm tmpfile , 45.Nm tmpnam --- 81 unchanged lines hidden (view full) --- 127temporary file. 128.Pp 129The argument 130.Fa prefix , 131if 132.Pf non- Dv NULL , 133is used to specify a file name prefix, which will be the 134first part of the created file name. |
135.Fn Tempnam | 135The 136.Fn tempnam 137function |
136allocates memory in which to store the file name; the returned pointer 137may be used as a subsequent argument to 138.Xr free 3 . 139.Sh RETURN VALUES 140The 141.Fn tmpfile 142function 143returns a pointer to an open file stream on success, and a --- 99 unchanged lines hidden --- | 138allocates memory in which to store the file name; the returned pointer 139may be used as a subsequent argument to 140.Xr free 3 . 141.Sh RETURN VALUES 142The 143.Fn tmpfile 144function 145returns a pointer to an open file stream on success, and a --- 99 unchanged lines hidden --- |