diff options
| author | Alejandro Colomar <alx@kernel.org> | 2025-10-29 12:27:06 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2025-10-29 12:27:06 +0100 |
| commit | 0b2d9bd664822e5dd8affa0583c533a9fac45027 (patch) | |
| tree | 6fd4fe1f8ad589066404d041d3874038e2230662 /man/man2/open.2 | |
| parent | 1411f78d518e043fbbc761409313db3be4bc038b (diff) | |
| parent | 429fd8f39add390a2be28d8d4dee68e4d9897a32 (diff) | |
| download | man-pages-posix24.tar.gz | |
man/: Update some APIs for POSIX.1-2024posix24
This work is incomplete, but waiting until all pages have been updated
would unnecessarily delay publishing these changes, which are already
useful.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man2/open.2')
| -rw-r--r-- | man/man2/open.2 | 44 |
1 files changed, 17 insertions, 27 deletions
diff --git a/man/man2/open.2 b/man/man2/open.2 index 12bf4452f8..eb29c77f31 100644 --- a/man/man2/open.2 +++ b/man/man2/open.2 @@ -1418,36 +1418,19 @@ but Linux doesn't support it. .BR creat () .TQ .BR openat () -POSIX.1-2008. -.P +POSIX.1-2024. +.TP .BR openat2 (2) Linux. -.P -The -.BR O_DIRECT , -.BR O_NOATIME , -.BR O_PATH , -and +.TP +.B O_DIRECT +.TQ +.B O_NOATIME +.TQ +.B O_PATH +.TQ .B O_TMPFILE -flags are Linux-specific. -One must define -.B _GNU_SOURCE -to obtain their definitions. -.P -The -.BR O_CLOEXEC , -.BR O_DIRECTORY , -and -.B O_NOFOLLOW -flags are not specified in POSIX.1-2001, -but are specified in POSIX.1-2008. -Since glibc 2.12, one can obtain their definitions by defining either -.B _POSIX_C_SOURCE -with a value greater than or equal to 200809L or -.B _XOPEN_SOURCE -with a value greater than or equal to 700. -In glibc 2.11 and earlier, one obtains the definitions by defining -.BR _GNU_SOURCE . +Linux. .SH HISTORY .TP .BR open () @@ -1459,6 +1442,13 @@ SVr4, 4.3BSD, POSIX.1-2001. POSIX.1-2008. Linux 2.6.16, glibc 2.4. +.TP +.B O_CLOEXEC +.TQ +.B O_DIRECTORY +.TQ +.B O_NOFOLLOW +POSIX.1-2008. .SH NOTES Under Linux, the .B O_NONBLOCK |
