diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-08-12 02:43:03 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-08-12 05:45:21 +0200 |
| commit | 56dddcbad5a7a8af0ef9bdf7e7deaad92a28795b (patch) | |
| tree | 6916f31fb660cf900dd2237f5b1c40fc47c6a6c9 | |
| parent | 5241f3cce57d826930613949c355a944ec17c409 (diff) | |
| download | man-pages-56dddcbad5a7a8af0ef9bdf7e7deaad92a28795b.tar.gz | |
open.2: Reorder list of cases for 'dirfd' argument of openat()
In preparation for subsequent commits
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man2/open.2 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/man2/open.2 b/man2/open.2 index 0f58a24c2e..a4f774b2c4 100644 --- a/man2/open.2 +++ b/man2/open.2 @@ -934,15 +934,11 @@ argument as follows: .IP * 3 If the pathname given in .I pathname -is relative, then it is interpreted relative to the directory -referred to by the file descriptor +is absolute, then .I dirfd -(rather than relative to the current working directory of -the calling process, as is done by -.BR open () -for a relative pathname). +is ignored. .IP * -If +If the pathname given in .I pathname is relative and .I dirfd @@ -954,11 +950,15 @@ is interpreted relative to the current working directory of the calling process (like .BR open ()). .IP * -If +If the pathname given in .I pathname -is absolute, then +is relative, then it is interpreted relative to the directory +referred to by the file descriptor .I dirfd -is ignored. +(rather than relative to the current working directory of +the calling process, as is done by +.BR open () +for a relative pathname). .\" .SS openat2(2) The |
