Follow-up Comment #2, bug #64088 (project findutils): [comment #0 original submission:] > ioctl(fd, FS_IOC_GETFLAGS, &flags);
On some other systems, it's easier. FreeBSD, OpenBSD, NetBSD, and macOS (probably all BSDs) have an st_flags field in their stat structure, and these attributes/flags are there. But which flags are available differ between systems. The symbols for them are defined in <sys/stat.h>, and the user-facing names (and some aliases) are listed in the respective manual entries for chflags(1). _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?64088> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/