Liste des Groupes | Revenir à l c |
Bonita Montero <Bonita.Montero@gmail.com> writes:That would be much nicer with a lambda which can take the contextAm 03.06.2025 um 20:25 schrieb Scott Lurndal:Personally, I'd use nftw to iterate over a path.>>The fchownat() function shall be equivalent to the chown() and lchown()>
functions except in the case where path specifies a relative path. In
this case the file to be changed is determined relative to the directory
associated with the file descriptor fd instead of the current working
directory. If the access mode of the open file description associated
with the file descriptor is not O_SEARCH, the function shall check
whether directory searches are permitted using the current permissions
of the directory underlying the file descriptor. If the access mode is
O_SEARCH, the function shall not perform the check.
And why is this relevant for directory_iterator or
recursive_directory_iterator ?
Why are you asking this question on comp.lang.c?
Because you can have it easier than with opendir() / readdir().
https://pubs.opengroup.org/onlinepubs/9799919799/functions/nftw.html
Les messages affichés proviennent d'usenet.