diff --git a/man2/openat2.2 b/man2/openat2.2 index 467fedbad..ee625e5e1 100644 --- a/man2/openat2.2 +++ b/man2/openat2.2 @@ -291,22 +291,6 @@ includes all of the errors returned by .BR openat (2), as well as the following additional errors: .TP -.B EINVAL -An unknown flag or invalid value was specified in -.IR how . -.TP -.B EINVAL -.I mode -is non-zero, but -.I flags -does not contain -.BR O_CREAT " or " O_TMPFILE . -.TP -.B EINVAL -.I size -was smaller than any known version of -.IR "struct open_how" . -.TP .B E2BIG An extension was specified in .IR how , @@ -325,17 +309,21 @@ Callers may choose to retry the .BR openat2 () call. .TP -.B EXDEV -.I resolve -contains either -.BR RESOLVE_IN_ROOT " or " RESOLVE_BENEATH , -and an escape from the root during path resolution was detected. +.B EINVAL +An unknown flag or invalid value was specified in +.IR how . .TP -.B EXDEV -.I resolve -contains -.BR RESOLVE_NO_XDEV , -and a path component attempted to cross a mount point. +.B EINVAL +.I mode +is non-zero, but +.I flags +does not contain +.BR O_CREAT " or " O_TMPFILE . +.TP +.B EINVAL +.I size +was smaller than any known version of +.IR "struct open_how" . .TP .B ELOOP .I resolve @@ -348,6 +336,18 @@ and one of the path components was a symbolic link (or magic link). contains .BR RESOLVE_NO_MAGICLINKS , and one of the path components was a magic link. +.TP +.B EXDEV +.I resolve +contains either +.BR RESOLVE_IN_ROOT " or " RESOLVE_BENEATH , +and an escape from the root during path resolution was detected. +.TP +.B EXDEV +.I resolve +contains +.BR RESOLVE_NO_XDEV , +and a path component attempted to cross a mount point. .SH VERSIONS .BR openat2 () first appeared in Linux 5.6.