summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-08-18 20:11:34 +0000
committerpjd <pjd@FreeBSD.org>2013-08-18 20:11:34 +0000
commitb717fb9f083afdfbc50a14ced6ddc971ca583f02 (patch)
tree37987e56c42c803d239a91e0492707926feb0d7a /include
parentab20de7f07aa70c9e4f011a7080d656e3bbc7397 (diff)
downloadFreeBSD-src-b717fb9f083afdfbc50a14ced6ddc971ca583f02.zip
FreeBSD-src-b717fb9f083afdfbc50a14ced6ddc971ca583f02.tar.gz
Implement fdclosedir(3) function, which is equivalent to the closedir(3)
function, but returns directory file descriptor instead of closing it. Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> Sponsored by: Google Summer of Code 2013
Diffstat (limited to 'include')
-rw-r--r--include/dirent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dirent.h b/include/dirent.h
index 941a977..d0b0a9a 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -79,6 +79,7 @@ int dirfd(DIR *);
#endif
#if __BSD_VISIBLE
DIR *__opendir2(const char *, int);
+int fdclosedir(DIR *);
int getdents(int, char *, int);
int getdirentries(int, char *, int, long *);
#endif
OpenPOWER on IntegriCloud