utimensat(2) and faccessat(2): man pages do not mention AT_EMPTY_PATH flag
Dear Alejandro,
utimensat and faccessat support the flag AT_EMPTY_PATH since Linux 5.8 but this option is still missing in the man pages.
(actually Linux 5.8 added faccessat2: glibc wrapper for faccessat
uses faccessat2, and faccessat2 does support AT_EMPTY_PATH).
I think the standard text used in many other -at man page could fit for these system calls, too.
AT_EMPTY_PATH (since Linux 5.8)
If pathname is an empty string, operate on the file referred to by dirfd (which may have been obtained using the open(2) O_PATH
flag). In this case, dirfd can refer to any type of file, not
just a directory. If dirfd is AT_FDCWD, the call operates on the current working directory. This flag is Linux-specific; define _GNU_SOURCE to obtain its definition.
All the best,
renzo
Alejandro Colomar
maintainerDear Renzo,
Quoted 11 lines · Renzo Davoli
Dear Alejandro,
utimensat and faccessat support the flag
AT_EMPTY_PATHsince Linux 5.8 but this option is still missing in the man pages.(actually Linux 5.8 added faccessat2: glibc wrapper for faccessat
uses faccessat2, and faccessat2 does supportAT_EMPTY_PATH).I think the standard text used in many other -at man page could fit for these system calls, too.
Quoted 7 lines
AT_EMPTY_PATH(since Linux 5.8)
If pathname is an empty string, operate on the file referred to by dirfd (which may have been obtained using the open(2)O_PATH
flag). In this case, dirfd can refer to any type of file, not
just a directory. If dirfd isAT_FDCWD, the call operates on the current working directory. This flag is Linux-specific; define_GNU_SOURCEto obtain its definition.
Thanks for reporting that. Would you mind preparing a patch updating the page? If you need any help, just ask for it.
Cheers,
Alex
Signature · 1 line
<https://www.alejandro-colomar.es/>
Dear Alex,
Quoted 5 lines · Alejandro Colomar
Quoted 2 lines · Renzo Davoli
utimensat and faccessat support the flag
AT_EMPTY_PATHsince Linux 5.8 but this option is still missing in the man pages.Thanks for reporting that. Would you mind preparing a patch updating the page? If you need any help, just ask for it.
No problem. It is here attached. Let me know if it's okay.
All the Best and Happy Hacking.
ciao
renzo
man2/access.2 +23 -0
@@ -19,6 +19,8 @@ .\" Modified 2002-04-23 by Roger Luethi <[email protected]> .\" Modified 2004-06-23 by Michael Kerrisk .\" 2007-06-10, mtk, various parts rewritten, and added BUGS section. +.\" Modified 2023-12-09 by Renzo Davoli <[email protected]> +.\" add AT_EMPTY_PATH flag .\" .TH access 2 (date) "Linux man-pages (unreleased)" .SH NAME
@@ -155,6 +157,27 @@ By default, uses the real IDs (like .BR access ()). .TP +.BR AT_EMPTY_PATH " (since Linux 5.8)" +If +.I pathname +is an empty string, operate on the file referred to by +.I dirfd +(which may have been obtained using the +.BR open (2) +.B O_PATH +flag). +In this case, +.I dirfd +can refer to any type of file, not just a directory. +If +.I dirfd +is +.BR AT_FDCWD , +the call operates on the current working directory. +This flag is Linux-specific; define +.B _GNU_SOURCE +to obtain its definition. +.TP .B AT_SYMLINK_NOFOLLOW If .I pathname
man2/utimensat.2 +26 -2
@@ -4,6 +4,9 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" +.\" Modified 2023-12-09 by Renzo Davoli <[email protected]> +.\" add AT_EMPTY_PATH flag +.\" .TH utimensat 2 (date) "Linux man-pages (unreleased)" .SH NAME utimensat, futimens \- change file timestamps with nanosecond precision
@@ -182,10 +185,31 @@ is ignored. .P The .I flags -field is a bit mask that may be 0, or include the following constant, -defined in +argument is a bit mask created by ORing together zero or more of +the following values defined in .IR <fcntl.h> : .TP +.BR AT_EMPTY_PATH " (since Linux 5.8)" +If +.I pathname +is an empty string, operate on the file referred to by +.I dirfd +(which may have been obtained using the +.BR open (2) +.B O_PATH +flag). +In this case, +.I dirfd +can refer to any type of file, not just a directory. +If +.I dirfd +is +.BR AT_FDCWD , +the call operates on the current working directory. +This flag is Linux-specific; define +.B _GNU_SOURCE +to obtain its definition. +.TP .B AT_SYMLINK_NOFOLLOW If .I pathname
Alejandro Colomar
maintainerDear Renzo,
Quoted 21 lines · Renzo Davoli
Dear Alex,
Quoted 5 lines · Alejandro Colomar
Quoted 2 lines · Renzo Davoli
utimensat and faccessat support the flag
AT_EMPTY_PATHsince Linux 5.8 but this option is still missing in the man pages.Thanks for reporting that. Would you mind preparing a patch updating the page? If you need any help, just ask for it.
No problem. It is here attached. Let me know if it's okay.
All the Best and Happy Hacking.
ciaorenzo
man2/access.2 +0
-0
man2/access.2 line 23
Quoted 5 lines
man2/access.2 +2
-0@@ -19,6 +19,8 @@ .\" Modified 2002-04-23 by Roger Luethi <[email protected]> .\" Modified 2004-06-23 by Michael Kerrisk .\" 2007-06-10, mtk, various parts rewritten, and added BUGS section. +.\" Modified 2023-12-09 by Renzo Davoli <[email protected]> +.\" add AT_EMPTY_PATH flag
We don't use those anymore. Simply add yourself to Copyright if appropriate, but for knowing what was written by who, git(1) works better.
Quoted 36 lines
man2/access.2 +21
-0.\" .TH access 2 (date) "Linux man-pages (unreleased)" .SH NAME@@ -155,6 +157,27 @@ By default, uses the real IDs (like .BR access ()). .TP +.BR AT_EMPTY_PATH " (since Linux 5.8)" +If +.I pathname +is an empty string, operate on the file referred to by +.I dirfd +(which may have been obtained using the +.BR open (2) +.B O_PATH +flag). +In this case, +.I dirfd +can refer to any type of file, not just a directory. +If +.I dirfd +is +.BR AT_FDCWD , +the call operates on the current working directory. +This flag is Linux-specific; define +.B _GNU_SOURCE +to obtain its definition. +.TP .B AT_SYMLINK_NOFOLLOW If .I pathnameman2/utimensat.2 +0
-0
man2/utimensat.2 line 9
Quoted 6 lines
man2/utimensat.2 +3
-0@@ -4,6 +4,9 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" +.\" Modified 2023-12-09 by Renzo Davoli <[email protected]> +.\" add AT_EMPTY_PATH flag +.\"
Same here.
Quoted 24 lines
man2/utimensat.2 +13
-2.TH utimensat 2 (date) "Linux man-pages (unreleased)" .SH NAME utimensat, futimens \- change file timestamps with nanosecond precision@@ -182,10 +185,31 @@ is ignored. .P The .I flags -field is a bit mask that may be 0, or include the following constant, -defined in +argument is a bit mask created by ORing together zero or more of +the following values defined in .IR <fcntl.h> : .TP +.BR AT_EMPTY_PATH " (since Linux 5.8)" +If +.I pathname +is an empty string, operate on the file referred to by +.I dirfd +(which may have been obtained using the +.BR open (2) +.B O_PATH +flag). +In this case, +.I dirfd
man2/utimensat.2 is ignored. · line 212
Quoted 10 lines
man2/utimensat.2 +10
-0+can refer to any type of file, not just a directory. +If +.I dirfd +is +.BR AT_FDCWD , +the call operates on the current working directory. +This flag is Linux-specific; define +.B _GNU_SOURCE +to obtain its definition. +.TP
LGTM.
Have a lovely night,
Alex
Quoted 3 lines
man2/utimensat.2 +0
-0.B AT_SYMLINK_NOFOLLOW If .I pathname
Signature · 1 line
<https://www.alejandro-colomar.es/>
Quoted 5 lines · Alejandro Colomar
Dear Renzo,
Quoted 1 line
+.\" Modified 2023-12-09 by Renzo Davoli <[email protected]>
We don't use those anymore. Simply add yourself to Copyright if appropriate, but for knowing what was written by who, git(1) works better.
Okay. You'll find here attached the new patch.
ciao
renzo
man2/access.2 +21 -0
@@ -155,6 +155,27 @@ By default, uses the real IDs (like .BR access ()). .TP +.BR AT_EMPTY_PATH " (since Linux 5.8)" +If +.I pathname +is an empty string, operate on the file referred to by +.I dirfd +(which may have been obtained using the +.BR open (2) +.B O_PATH +flag). +In this case, +.I dirfd +can refer to any type of file, not just a directory. +If +.I dirfd +is +.BR AT_FDCWD , +the call operates on the current working directory. +This flag is Linux-specific; define +.B _GNU_SOURCE +to obtain its definition. +.TP .B AT_SYMLINK_NOFOLLOW If .I pathname
man2/utimensat.2 +23 -2
@@ -182,10 +182,31 @@ is ignored. .P The .I flags -field is a bit mask that may be 0, or include the following constant, -defined in +argument is a bit mask created by ORing together zero or more of +the following values defined in .IR <fcntl.h> : .TP +.BR AT_EMPTY_PATH " (since Linux 5.8)" +If +.I pathname +is an empty string, operate on the file referred to by +.I dirfd +(which may have been obtained using the +.BR open (2) +.B O_PATH +flag). +In this case, +.I dirfd +can refer to any type of file, not just a directory. +If +.I dirfd +is +.BR AT_FDCWD , +the call operates on the current working directory. +This flag is Linux-specific; define +.B _GNU_SOURCE +to obtain its definition. +.TP .B AT_SYMLINK_NOFOLLOW If .I pathname
A message that is not in the archive (sent off-list or not yet received): [email protected]
Alejandro Colomar
maintainer[CCing again linux-man@]
Dear Renzo,
Quoted 10 lines · Renzo Davoli
Dear Alex,
Quoted 5 lines · Alejandro Colomar
Quoted 2 lines · Renzo Davoli
utimensat and faccessat support the flag
AT_EMPTY_PATHsince Linux 5.8 but this option is still missing in the man pages.Thanks for reporting that. Would you mind preparing a patch updating the page? If you need any help, just ask for it.
No problem. It is here attached. Let me know if it's okay.
Normally, you should send a patch with a commit message (as formatted by git-format-patch(1)). However, I've written something based on your original mail, so you don't need to do it. I also signed it with your name.
Patch applied here:
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=26cdb3ebb2f6bd5a0c947bcf46e35b7c07759632>
Thanks!
Have a lovely year,
Alex
Quoted 95 lines
All the Best and Happy Hacking.
ciaorenzo
man2/access.2 +23
-0@@ -19,6 +19,8 @@ .\" Modified 2002-04-23 by Roger Luethi <[email protected]> .\" Modified 2004-06-23 by Michael Kerrisk .\" 2007-06-10, mtk, various parts rewritten, and added BUGS section. +.\" Modified 2023-12-09 by Renzo Davoli <[email protected]> +.\" add AT_EMPTY_PATH flag .\" .TH access 2 (date) "Linux man-pages (unreleased)" .SH NAME@@ -155,6 +157,27 @@ By default, uses the real IDs (like .BR access ()). .TP +.BR AT_EMPTY_PATH " (since Linux 5.8)" +If +.I pathname +is an empty string, operate on the file referred to by +.I dirfd +(which may have been obtained using the +.BR open (2) +.B O_PATH +flag). +In this case, +.I dirfd +can refer to any type of file, not just a directory. +If +.I dirfd +is +.BR AT_FDCWD , +the call operates on the current working directory. +This flag is Linux-specific; define +.B _GNU_SOURCE +to obtain its definition. +.TP .B AT_SYMLINK_NOFOLLOW If .I pathnameman2/utimensat.2 +26
-2@@ -4,6 +4,9 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" +.\" Modified 2023-12-09 by Renzo Davoli <[email protected]> +.\" add AT_EMPTY_PATH flag +.\" .TH utimensat 2 (date) "Linux man-pages (unreleased)" .SH NAME utimensat, futimens \- change file timestamps with nanosecond precision@@ -182,10 +185,31 @@ is ignored. .P The .I flags -field is a bit mask that may be 0, or include the following constant, -defined in +argument is a bit mask created by ORing together zero or more of +the following values defined in .IR <fcntl.h> : .TP +.BR AT_EMPTY_PATH " (since Linux 5.8)" +If +.I pathname +is an empty string, operate on the file referred to by +.I dirfd +(which may have been obtained using the +.BR open (2) +.B O_PATH +flag). +In this case, +.I dirfd +can refer to any type of file, not just a directory. +If +.I dirfd +is +.BR AT_FDCWD , +the call operates on the current working directory. +This flag is Linux-specific; define +.B _GNU_SOURCE +to obtain its definition. +.TP .B AT_SYMLINK_NOFOLLOW If .I pathname
Signature · 2 lines
<https://www.alejandro-colomar.es/> Looking for a remote C programming job at the moment.
Hi Alex,
great. thank you.
I wish you have a happy new year to you, too.
renzo
Quoted 28 lines · Alejandro Colomar
[CCing again linux-man@]
Dear Renzo,
Quoted 10 lines · Renzo Davoli
Dear Alex,
Quoted 5 lines · Alejandro Colomar
Quoted 2 lines · Renzo Davoli
utimensat and faccessat support the flag
AT_EMPTY_PATHsince Linux 5.8 but this option is still missing in the man pages.Thanks for reporting that. Would you mind preparing a patch updating the page? If you need any help, just ask for it.
No problem. It is here attached. Let me know if it's okay.
Normally, you should send a patch with a commit message (as formatted by git-format-patch(1)). However, I've written something based on your original mail, so you don't need to do it. I also signed it with your name.
Patch applied here:
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=26cdb3ebb2f6bd5a0c947bcf46e35b7c07759632>Thanks!
Have a lovely year,
Alex