Annotated edit history of
tmpfile(3) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
TMPFILE |
|
|
2 |
!!!TMPFILE |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
ERRORS |
|
|
8 |
CONFORMING TO |
|
|
9 |
SEE ALSO |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
tmpfile - create a temporary file |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__#include |
|
|
19 |
__ |
|
|
20 |
!!DESCRIPTION |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
The __tmpfile()__ function generates a unique temporary |
|
|
24 |
filename using the path prefix ''P_tmpdir'' defined in |
|
|
25 |
''''. The temporary file is then opened in |
|
|
26 |
binary read/write (w+b) mode. The file will be automatically |
|
|
27 |
deleted when it is closed or the program |
|
|
28 |
terminates. |
|
|
29 |
!!RETURN VALUE |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
The __tmpfile()__ function returns a stream descriptor, |
|
|
33 |
or NULL if a unique filename cannot be generated or the |
|
|
34 |
unique file cannot be opened. |
|
|
35 |
!!ERRORS |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
__EACCES__ |
|
|
39 |
|
|
|
40 |
|
|
|
41 |
Search permission denied for directory in file's path |
|
|
42 |
prefix. |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
__EEXIST__ |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
Unable to generate a unique filename. |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
__EMFILE__ |
|
|
52 |
|
|
|
53 |
|
|
|
54 |
Too many file descriptors in use by process. |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
__ENFILE__ |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
Too many files open in system. |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
__EROFS__ |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
Read-only filesystem. |
|
|
67 |
!!CONFORMING TO |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
SVID 3, POSIX, BSD 4.3, ISO 9899, SUSv2 |
|
|
71 |
!!SEE ALSO |
|
|
72 |
|
|
|
73 |
|
|
|
74 |
mktemp(3), mkstemp(3), tmpnam(3), |
|
|
75 |
tempnam(3) |
|
|
76 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.