summaryrefslogtreecommitdiff
path: root/src/basic/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-17 01:21:19 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-22 16:30:24 +0200
commited0d40229bc536c424fad481e56afcaa1d0e38db (patch)
treeb0d311194508bf75059da687169f139706364d9d /src/basic/util.h
parentf6d9c616b6cccd561fa1db5f58106cbd534b9e34 (diff)
util: add safe_closedir() similar to safe_fclose()
Diffstat (limited to 'src/basic/util.h')
-rw-r--r--src/basic/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/util.h b/src/basic/util.h
index 8abaa740b2..db5dd74770 100644
--- a/src/basic/util.h
+++ b/src/basic/util.h
@@ -151,6 +151,7 @@ void close_many(const int fds[], unsigned n_fd);
int fclose_nointr(FILE *f);
FILE* safe_fclose(FILE *f);
+DIR* safe_closedir(DIR *f);
int parse_size(const char *t, uint64_t base, uint64_t *size);