chiark / gitweb /
machined: use the FS_IMMUTABLE_FL file flag, if available, to implement a "read-only...
[elogind.git] / src / shared / util.h
index 850019ab9d46e45a61c771519078bd750bab7a2a..5d9637efc0a3604fd2d9e38594c239e3a5c440b2 100644 (file)
@@ -1074,7 +1074,10 @@ int fd_getcrtime_at(int dirfd, const char *name, usec_t *usec, int flags);
 
 int same_fd(int a, int b);
 
-int chattr_fd(int fd, bool b, int mask);
-int chattr_path(const char *p, bool b, int mask);
+int chattr_fd(int fd, bool b, unsigned mask);
+int chattr_path(const char *p, bool b, unsigned mask);
+
+int read_attr_fd(int fd, unsigned *ret);
+int read_attr_path(const char *p, unsigned *ret);
 
 #define RLIMIT_MAKE_CONST(lim) ((struct rlimit) { lim, lim })