diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2012-03-22 01:13:41 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2012-03-22 01:13:41 +0000 |
commit | 5355e6d8a9a2671b309e00cfdc851fb980d3a108 (patch) | |
tree | 5c816bcef13dbccca44509af8a074e8395120eb5 /include/dirent.h | |
parent | fed1f899d0cef05aa0cc7a96d5e12ba1a53ee484 (diff) |
Add dirfd() as a function to libc per POSIX requirement; dirfd() macro
to be pruned later when DIR is made an opaque type.
ok guenther@; prodding by brad@ for VLC and other ports
Diffstat (limited to 'include/dirent.h')
-rw-r--r-- | include/dirent.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/dirent.h b/include/dirent.h index 6e6cf55f847..c59fc1e0461 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dirent.h,v 1.24 2011/07/18 17:29:49 matthew Exp $ */ +/* $OpenBSD: dirent.h,v 1.25 2012/03/22 01:13:40 matthew Exp $ */ /* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */ /*- @@ -119,6 +119,9 @@ int scandir(const char *, struct dirent ***, int (*)(struct dirent *), int (*)(const void *, const void *)); int alphasort(const void *, const void *); #endif +#if __POSIX_VISIBLE >= 200809 || __XPG_VISIBLE > 600 +int (dirfd)(DIR *); +#endif __END_DECLS #endif /* !_KERNEL */ |