chiark / gitweb /
nspawn: use automatic cleanup for umask
[elogind.git] / src / shared / macro.h
index eb9a8c0a72c1233247b875cd8e8617b093864bfd..c7ce7c87d096079fdc1ff0f6c3a60582a2407197 100644 (file)
@@ -190,5 +190,7 @@ static inline size_t IOVEC_INCREMENT(struct iovec *i, unsigned n, size_t k) {
 #define _cleanup_free_ __attribute__((cleanup(freep)))
 #define _cleanup_fclose_ __attribute__((cleanup(fclosep)))
 #define _cleanup_close_ __attribute__((cleanup(closep)))
+#define _cleanup_closedir_ __attribute__((cleanup(closedirp)))
+#define _cleanup_umask_ __attribute__((cleanup(umaskp)))
 
 #include "log.h"