]> sourceware.org Git - glibc.git/commit
hurd: Avoid file_check_access () RPC for access (F_OK)
authorSergey Bugaev <bugaevc@gmail.com>
Thu, 19 Sep 2024 10:14:39 +0000 (13:14 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 19 Sep 2024 12:18:39 +0000 (14:18 +0200)
commit45246705456aa06df70b30233db3bf99ee008f58
tree712c15228376981776af5ffbcfc6333cd8ca6dd3
parente64a1e81aadf6c401174ac9471ced0f0125c2912
hurd: Avoid file_check_access () RPC for access (F_OK)

A common use case of access () / faccessat () is checking for file
existence, not any specific access permissions.  In that case, we can
avoid doing the file_check_access () RPC; whether the given path had
been successfully resolved to a file is all we need to know to answer.

This is prompted by GLib switching to use faccessat (F_OK) to implement
g_file_query_exists () for local files.
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4272

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-ID: <20240919101439.179663-1-bugaevc@gmail.com>
sysdeps/mach/hurd/faccessat.c
This page took 0.036797 seconds and 5 git commands to generate.