file_permissions(3)

DESCRIPTION

Represents the low 12 permission bits of a kernel filesystem mode. Construction masks the value to 07777; raw(), owner(), group(), and other() expose the stored value and its three permission fields. owner_allows(), group_allows(), and other_allows() test read, write, or execute bits.

SYNOPSIS

#include <astia/fs.hpp>

class file_permissions;

RETURN VALUE

  • The constexpr accessors return the requested permission value or Boolean decision.

ERRORS

No runtime errors are produced by this value type.

NOTES

This is a kernel C++ API, not a POSIX mode_t object. It does not carry the file type bits.