diff options
author | Christopher Faylor <me@cgf.cx> | 2005-08-20 06:19:55 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-08-20 06:19:55 +0000 |
commit | d9a227643589484cfccd75174482a7f2e96f49d5 (patch) | |
tree | 9538a97eb6010b3ddca0b89e6bec28be2351258a /winsup/cygwin/include | |
parent | 683ef953925b1d05e49bd9e75147ebc02e9cb82c (diff) | |
download | newlib-d9a227643589484cfccd75174482a7f2e96f49d5.zip newlib-d9a227643589484cfccd75174482a7f2e96f49d5.tar.gz newlib-d9a227643589484cfccd75174482a7f2e96f49d5.tar.bz2 |
* cygerrno.h (geterrno_from_win_error): Change declaration to default to using
GetLastError and EACCESS.
* cygwin.din: Export readdir_r.
* include/cygwin/version.h: Bump API version number to 138.
* syscalls.cc (readdir_worker): New function, renamed from old readdir()
function.
(readdir): Use readdir_worker.
(readdir_r): New function.
* fhandler.h (fhandler_base::readdir): Accommodate second argument indicating
dirent buffer.
(fhandler_disk_file::readdir): Ditto.
(fhandler_cygdrive::readdir): Ditto.
(fhandler_proc::readdir): Ditto.
(fhandler_netdrive::readdir): Ditto.
(fhandler_registry::readdir): Ditto.
(fhandler_process::readdir): Ditto.
* fhandler.cc (fhandler_base::readdir): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Ditto.
* fhandler_cygdrive.cc (fhandler_cygdrive::readdir): Ditto.
* fhandler_proc.cc (fhandler_proc::readdir): Ditto.
* fhandler_netdrive.cc (fhandler_netdrive::readdir): Ditto.
* fhandler_registry.cc (fhandler_registry::readdir): Ditto.
* fhandler_process.cc (fhandler_process::readdir): Ditto.
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 | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index d5e9795..7984df7 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -265,12 +265,13 @@ details. */ 136: Add TIOCMBIS/TIOCMBIC ioctl codes. 137: fts_children, fts_close, fts_get_clientptr, fts_get_stream, fts_open, fts_read, fts_set, fts_set_clientptr, ftw, nftw. + 138: Export readdir_r. */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 137 +#define CYGWIN_VERSION_API_MINOR 138 /* 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 996b1ee..5eafbc2 100644 --- a/winsup/cygwin/include/sys/dirent.h +++ b/winsup/cygwin/include/sys/dirent.h @@ -68,6 +68,7 @@ typedef struct __DIR DIR *opendir (const char *); struct dirent *readdir (DIR *); +int readdir_r (DIR *, struct dirent *, struct dirent **); void rewinddir (DIR *); int closedir (DIR *); |