]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2/open.2: Simplify STANDARDS, and move part of it to HISTORY
authorAlejandro Colomar <alx@kernel.org>
Sat, 17 May 2025 15:43:45 +0000 (17:43 +0200)
committerAlejandro Colomar <alx@kernel.org>
Sun, 27 Jul 2025 11:12:05 +0000 (13:12 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/open.2

index c47b2ad58702495f4c41fec7fe1dbda5cebe9d64..c31ba6c850defe59353c57fd6fe8081e4b2ad2a5 100644 (file)
@@ -1407,35 +1407,18 @@ but Linux doesn't support it.
 .TQ
 .BR openat ()
 POSIX.1-2008.
-.P
+.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 ()
@@ -1447,6 +1430,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