diff options
author | pjd <pjd@FreeBSD.org> | 2013-08-18 20:11:34 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2013-08-18 20:11:34 +0000 |
commit | b717fb9f083afdfbc50a14ced6ddc971ca583f02 (patch) | |
tree | 37987e56c42c803d239a91e0492707926feb0d7a /include | |
parent | ab20de7f07aa70c9e4f011a7080d656e3bbc7397 (diff) | |
download | FreeBSD-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.h | 1 |
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 |