From e587f14b6f60bbf702a1a13c4399446d9654b708 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 22 Feb 2012 01:58:24 +0000 Subject: * 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. --- winsup/cygwin/include/cygwin/version.h | 3 ++- winsup/cygwin/include/sys/dirent.h | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/include') 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'. */ -- cgit v1.2.3