Email list hosting service & mailing list manager

Operations on file descriptors in addition to pathnames Lassi Kortela (11 Dec 2019 12:43 UTC)
Re: Operations on file descriptors in addition to pathnames Lassi Kortela (12 Dec 2019 12:59 UTC)
Re: Operations on file descriptors in addition to pathnames Lassi Kortela (12 Dec 2019 13:21 UTC)
Re: Operations on file descriptors in addition to pathnames Lassi Kortela (12 Dec 2019 13:27 UTC)
Re: Operations on file descriptors in addition to pathnames Lassi Kortela (18 Dec 2019 20:52 UTC)

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