This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add linux implementation of POSIX fchmodat function.
ClosedPublic

Authored by sivachandra on Aug 23 2022, 10:47 PM.

Diff Detail

Event Timeline

sivachandra created this revision.Aug 23 2022, 10:47 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 23 2022, 10:47 PM
sivachandra requested review of this revision.Aug 23 2022, 10:47 PM

Move fchmodat declaration to fcntl.h. It was previously, incorrectly placed
in sys/stat.h.

This revision is now accepted and ready to land.Aug 24 2022, 10:34 AM

Move the functions back to sys/stat.h. The POSIX documentation confused
me: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchmodat.html
But, it is actually clear here https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/basedefs/sys_stat.h.html#tag_13_62,
where it says that fchmodat should be declared in sys/stat.h.

This revision was landed with ongoing or failed builds.Aug 24 2022, 11:46 AM
This revision was automatically updated to reflect the committed changes.