public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* utimensat(2) and faccessat(2): man pages do not mention AT_EMPTY_PATH flag
@ 2023-12-06 11:04 Renzo Davoli
  2023-12-09 12:00 ` Alejandro Colomar
  0 siblings, 1 reply; 7+ messages in thread
From: Renzo Davoli @ 2023-12-06 11:04 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 794 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-01-01 15:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-06 11:04 utimensat(2) and faccessat(2): man pages do not mention AT_EMPTY_PATH flag Renzo Davoli
2023-12-09 12:00 ` Alejandro Colomar
2023-12-09 16:38   ` Renzo Davoli
2023-12-09 21:36     ` Alejandro Colomar
2023-12-10  8:07       ` Renzo Davoli
     [not found]   ` <ZXSXwZMWbojebpH1@cs.unibo.it>
2024-01-01 11:43     ` Alejandro Colomar
2024-01-01 15:48       ` Renzo Davoli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox