diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2012-02-22 05:58:24 +0400 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2012-02-22 05:58:24 +0400 |
commit | e587f14b6f60bbf702a1a13c4399446d9654b708 (patch) | |
tree | 9a4817c4093d18a2d8356c171b3533a01b570962 /winsup/cygwin/include | |
parent | de6ebe0e8bf427356df9e3ecd9dc9fa9d2ca8053 (diff) |
* cygwin.din (scandirat): Export.
* posix.sgml (std-gnu): Add scandirat.
* syscalls.cc (scandirat): New function.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* include/sys/dirent.h (scandirat): Declare.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/cygwin/version.h | 3 | ||||
-rw-r--r-- | winsup/cygwin/include/sys/dirent.h | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index 1d73f79d5..be5855843 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -428,12 +428,13 @@ details. */ 257: Export getpt. 258: Export get_current_dir_name. 259: Export pthread_sigqueue. + 260: Export scandirat. */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 259 +#define CYGWIN_VERSION_API_MINOR 260 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible diff --git a/winsup/cygwin/include/sys/dirent.h b/winsup/cygwin/include/sys/dirent.h index 70a9e63b1..aabcd37e4 100644 --- a/winsup/cygwin/include/sys/dirent.h +++ b/winsup/cygwin/include/sys/dirent.h @@ -1,6 +1,6 @@ /* Posix dirent.h for WIN32. - Copyright 2001, 2002, 2003, 2005, 2006, 2007, 2010 Red Hat, Inc. + Copyright 2001, 2002, 2003, 2005, 2006, 2007, 2010, 2012 Red Hat, Inc. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for @@ -69,6 +69,10 @@ int scandir (const char *__dir, int (*select) (const struct dirent *), int (*compar) (const struct dirent **, const struct dirent **)); +int scandirat (int __dirfd, const char *__dir, struct dirent ***__namelist, + int (*select) (const struct dirent *), + int (*compar) (const struct dirent **, const struct dirent **)); + int alphasort (const struct dirent **__a, const struct dirent **__b); #ifdef _DIRENT_HAVE_D_TYPE /* File types for `d_type'. */ |