]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
open.2: Minor reworking of the description of the 'dirfd' argument of openat()
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 12 Aug 2021 00:38:55 +0000 (02:38 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 12 Aug 2021 03:45:16 +0000 (05:45 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/open.2

index 1bcd995f4846cfa5eca084a014d8ba540b438a37..0f58a24c2e8c06dacd76271ee3d8780a90b34f3c 100644 (file)
@@ -926,6 +926,12 @@ system call operates in exactly the same way as
 .BR open (),
 except for the differences described here.
 .PP
+The
+.I dirfd
+argument is used in conjunction with the
+.I pathname
+argument as follows:
+.IP * 3
 If the pathname given in
 .I pathname
 is relative, then it is interpreted relative to the directory
@@ -935,7 +941,7 @@ referred to by the file descriptor
 the calling process, as is done by
 .BR open ()
 for a relative pathname).
-.PP
+.IP *
 If
 .I pathname
 is relative and
@@ -947,7 +953,7 @@ then
 is interpreted relative to the current working
 directory of the calling process (like
 .BR open ()).
-.PP
+.IP *
 If
 .I pathname
 is absolute, then