From 5241f3cce57d826930613949c355a944ec17c409 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 12 Aug 2021 02:38:55 +0200 Subject: [PATCH] open.2: Minor reworking of the description of the 'dirfd' argument of openat() Signed-off-by: Michael Kerrisk --- man2/open.2 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/man2/open.2 b/man2/open.2 index 1bcd995f4..0f58a24c2 100644 --- a/man2/open.2 +++ b/man2/open.2 @@ -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 -- 2.11.4.GIT