diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libc/stdlib/mktemp.3 | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/lib/libc/stdlib/mktemp.3 b/src/lib/libc/stdlib/mktemp.3 index 83b7c9eb30..a967358164 100644 --- a/src/lib/libc/stdlib/mktemp.3 +++ b/src/lib/libc/stdlib/mktemp.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: mktemp.3,v 1.2 2024/03/01 21:30:40 millert Exp $ | 1 | .\" $OpenBSD: mktemp.3,v 1.4 2025/08/04 14:11:37 schwarze Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1989, 1991, 1993 | 3 | .\" Copyright (c) 1989, 1991, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
@@ -27,17 +27,17 @@ | |||
27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | .\" SUCH DAMAGE. | 28 | .\" SUCH DAMAGE. |
29 | .\" | 29 | .\" |
30 | .Dd $Mdocdate: March 1 2024 $ | 30 | .Dd $Mdocdate: August 4 2025 $ |
31 | .Dt MKTEMP 3 | 31 | .Dt MKTEMP 3 |
32 | .Os | 32 | .Os |
33 | .Sh NAME | 33 | .Sh NAME |
34 | .Nm mktemp , | 34 | .Nm mktemp , |
35 | .Nm mkstemp , | 35 | .Nm mkstemp , |
36 | .Nm mkostemp , | ||
37 | .Nm mkstemps , | 36 | .Nm mkstemps , |
38 | .Nm mkostemps , | ||
39 | .Nm mkdtemp , | 37 | .Nm mkdtemp , |
40 | .Nm mkdtemps | 38 | .Nm mkdtemps , |
39 | .Nm mkostemp , | ||
40 | .Nm mkostemps | ||
41 | .Nd make temporary file name (unique) | 41 | .Nd make temporary file name (unique) |
42 | .Sh SYNOPSIS | 42 | .Sh SYNOPSIS |
43 | .In stdlib.h | 43 | .In stdlib.h |
@@ -119,6 +119,8 @@ system call: | |||
119 | Append on each write. | 119 | Append on each write. |
120 | .It Dv O_CLOEXEC | 120 | .It Dv O_CLOEXEC |
121 | Set the close-on-exec flag on the new file descriptor. | 121 | Set the close-on-exec flag on the new file descriptor. |
122 | .It Dv O_CLOFORK | ||
123 | Set the close-on-fork flag on the new file descriptor. | ||
122 | .It Dv O_SYNC | 124 | .It Dv O_SYNC |
123 | Perform synchronous I/O operations. | 125 | Perform synchronous I/O operations. |
124 | .El | 126 | .El |
@@ -163,8 +165,8 @@ functions return a pointer to the template on success and | |||
163 | on failure. | 165 | on failure. |
164 | The | 166 | The |
165 | .Fn mkstemp , | 167 | .Fn mkstemp , |
166 | .Fn mkostemp , | ||
167 | .Fn mkstemps , | 168 | .Fn mkstemps , |
169 | .Fn mkostemp , | ||
168 | and | 170 | and |
169 | .Fn mkostemps | 171 | .Fn mkostemps |
170 | functions return \-1 if no suitable file could be created. | 172 | functions return \-1 if no suitable file could be created. |
@@ -253,9 +255,9 @@ of | |||
253 | The | 255 | The |
254 | .Fn mktemp , | 256 | .Fn mktemp , |
255 | .Fn mkstemp , | 257 | .Fn mkstemp , |
256 | .Fn mkostemp , | 258 | .Fn mkdtemp , |
257 | and | 259 | and |
258 | .Fn mkdtemp | 260 | .Fn mkostemp |
259 | functions may set | 261 | functions may set |
260 | .Va errno | 262 | .Va errno |
261 | to one of the following values: | 263 | to one of the following values: |
@@ -318,8 +320,8 @@ function. | |||
318 | .Pp | 320 | .Pp |
319 | The | 321 | The |
320 | .Fn mkstemp , | 322 | .Fn mkstemp , |
321 | .Fn mkostemp , | ||
322 | .Fn mkstemps , | 323 | .Fn mkstemps , |
324 | .Fn mkostemp , | ||
323 | and | 325 | and |
324 | .Fn mkostemps | 326 | .Fn mkostemps |
325 | functions may also set | 327 | functions may also set |
@@ -345,18 +347,16 @@ function. | |||
345 | .Xr tmpnam 3 | 347 | .Xr tmpnam 3 |
346 | .Sh STANDARDS | 348 | .Sh STANDARDS |
347 | The | 349 | The |
348 | .Fn mkdtemp | 350 | .Fn mkstemp , |
351 | .Fn mkdtemp , | ||
349 | and | 352 | and |
350 | .Fn mkstemp | 353 | .Fn mkostemp |
351 | functions conform to the | 354 | functions conform to the |
352 | .St -p1003.1-2008 | 355 | .St -p1003.1-2024 |
353 | specification. | 356 | specification. |
354 | The ability to specify more than six | 357 | The ability to specify more than six |
355 | .Em X Ns s | 358 | .Em X Ns s |
356 | is an extension to that standard. | 359 | is an extension to that standard. |
357 | The | ||
358 | .Fn mkostemp | ||
359 | function is expected to conform to a future revision of that standard. | ||
360 | .Pp | 360 | .Pp |
361 | The | 361 | The |
362 | .Fn mktemp | 362 | .Fn mktemp |
@@ -368,9 +368,9 @@ it is no longer a part of the standard. | |||
368 | .Pp | 368 | .Pp |
369 | The | 369 | The |
370 | .Fn mkstemps , | 370 | .Fn mkstemps , |
371 | .Fn mkostemps , | 371 | .Fn mkdtemps , |
372 | and | 372 | and |
373 | .Fn mkdtemps | 373 | .Fn mkostemps |
374 | functions are non-standard and should not be used if portability is required. | 374 | functions are non-standard and should not be used if portability is required. |
375 | .Sh HISTORY | 375 | .Sh HISTORY |
376 | A | 376 | A |
@@ -378,14 +378,14 @@ A | |||
378 | function appeared in | 378 | function appeared in |
379 | .At v7 . | 379 | .At v7 . |
380 | The | 380 | The |
381 | .Fn mkdtemp | ||
382 | function appeared in | ||
383 | .Ox 2.2 . | ||
384 | The | ||
385 | .Fn mkstemp | 381 | .Fn mkstemp |
386 | function appeared in | 382 | function appeared in |
387 | .Bx 4.3 . | 383 | .Bx 4.3 . |
388 | The | 384 | The |
385 | .Fn mkdtemp | ||
386 | function appeared in | ||
387 | .Ox 2.2 . | ||
388 | The | ||
389 | .Fn mkstemps | 389 | .Fn mkstemps |
390 | function appeared in | 390 | function appeared in |
391 | .Ox 2.3 . | 391 | .Ox 2.3 . |