X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fmacro.h;h=c7ce7c87d096079fdc1ff0f6c3a60582a2407197;hb=25ea79fe0756c3c46a16c0c19bf3380a30382a1c;hp=eb9a8c0a72c1233247b875cd8e8617b093864bfd;hpb=e67f47e55b850c2a3a52c550726b1fd7394f9276;p=elogind.git diff --git a/src/shared/macro.h b/src/shared/macro.h index eb9a8c0a7..c7ce7c87d 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -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"