summaryrefslogtreecommitdiffstats
path: root/src/basic/fileio.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-03-31 10:59:33 +0200
committerVito Caputo <vcaputo@pengaru.com>2020-03-31 15:48:03 +0200
commitf61457b0fee7326ead5b2cd8df8515a814d922e0 (patch)
treed89cdd47357cf40164e3fac43440a61447d3db38 /src/basic/fileio.h
parent*: convert amenable fdopen calls to take_fdopen (diff)
downloadsystemd-f61457b0fee7326ead5b2cd8df8515a814d922e0.tar.xz
systemd-f61457b0fee7326ead5b2cd8df8515a814d922e0.zip
fileio: add take_fdopendir() variant
fdopendir() wrapper analogous to take_fdopen()
Diffstat (limited to '')
-rw-r--r--src/basic/fileio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/fileio.h b/src/basic/fileio.h
index 525f6ac814..58daabaa8f 100644
--- a/src/basic/fileio.h
+++ b/src/basic/fileio.h
@@ -41,6 +41,7 @@ int fopen_unlocked(const char *path, const char *options, FILE **ret);
int fdopen_unlocked(int fd, const char *options, FILE **ret);
int take_fdopen_unlocked(int *fd, const char *options, FILE **ret);
FILE* take_fdopen(int *fd, const char *options);
+DIR* take_fdopendir(int *dfd);
FILE* open_memstream_unlocked(char **ptr, size_t *sizeloc);
FILE* fmemopen_unlocked(void *buf, size_t size, const char *mode);