Next: fclose
, Previous: fchown
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
fchownat
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchownat.html
Gnulib module: fchownat
Portability problems fixed by Gnulib:
lchown
is unsupported, or fail altogether if
chown
is unsupported.
<sys/stat.h>
, not in <unistd.h>
,
on some platforms:
Android 4.3.
fchown(dir,"link-to-file/",uid,gid,flag)
:
Solaris 9.
AT_SYMLINK_NOFOLLOW
:
Linux kernel 2.6.17.
Portability problems not fixed by Gnulib:
EACCES
when the failure is
due to lack of appropriate privileges (EPERM
), not to
search permission denied on the file name prefix (EACCES
):
Linux kernel 5.15 with glibc 2.35 and a CIFS v1 file system
(see https://bugs.gnu.org/65599).