chiark / gitweb /
dbus1-generator: fix array sentinal
[elogind.git] / src / shared / util.h
index a131a3c0f127190489a306951fff084c1cb6a003..3b3035a1c7beefa14dc5a482b244165742f2a677 100644 (file)
@@ -1069,3 +1069,10 @@ int fd_setcrtime(int fd, usec_t usec);
 int fd_getcrtime(int fd, usec_t *usec);
 int path_getcrtime(const char *p, usec_t *usec);
 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);
+
+#define RLIMIT_MAKE_CONST(lim) ((struct rlimit) { lim, lim })