Operations on file descriptors in addition to pathnames
Lassi Kortela 11 Dec 2019 12:43 UTC
Should we include these?
fd = open("/some/dir", O_RDONLY);
openat(fd, path_under_that_dir, ...);
fstatat(fd, path_under_that_dir, ...);
fchmodat(fd, path_under_that_dir, mode, ...);
fchownat(fd, path_under_that_dir, uid, gid, ...);
unlinkat(fd, path_under_that_dir, ...);
renameat(from_fd, from_path, to_fd, to_path);
fchdir(fd);
fdopendir(fd);
fchmod(fd, mode);
fchown(fd, uid, gid);
futimes(fd, timespecs...);
maybe more