Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-08-20 10:19:55 +0400
committerChristopher Faylor <me@cgf.cx>2005-08-20 10:19:55 +0400
commitd9a227643589484cfccd75174482a7f2e96f49d5 (patch)
tree9538a97eb6010b3ddca0b89e6bec28be2351258a /winsup/cygwin/fhandler.h
parent683ef953925b1d05e49bd9e75147ebc02e9cb82c (diff)
* 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/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 1728c1a39..f371ee0ce 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -354,7 +354,7 @@ class fhandler_base
virtual int mkdir (mode_t mode);
virtual int rmdir ();
virtual DIR *opendir ();
- virtual dirent *readdir (DIR *);
+ virtual int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
virtual _off64_t telldir (DIR *);
virtual void seekdir (DIR *, _off64_t);
virtual void rewinddir (DIR *);
@@ -674,7 +674,7 @@ class fhandler_disk_file: public fhandler_base
int mkdir (mode_t mode);
int rmdir ();
DIR *opendir ();
- struct dirent *readdir (DIR *);
+ int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
_off64_t telldir (DIR *);
void seekdir (DIR *, _off64_t);
void rewinddir (DIR *);
@@ -692,7 +692,7 @@ class fhandler_cygdrive: public fhandler_disk_file
public:
fhandler_cygdrive ();
DIR *opendir ();
- struct dirent *readdir (DIR *);
+ int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
void rewinddir (DIR *);
int closedir (DIR *);
int __stdcall fstat (struct __stat64 *buf) __attribute__ ((regparm (2)));
@@ -1202,7 +1202,7 @@ class fhandler_proc: public fhandler_virtual
public:
fhandler_proc ();
int exists();
- struct dirent *readdir (DIR *);
+ int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
static DWORD get_proc_fhandler(const char *path);
int open (int flags, mode_t mode = 0);
@@ -1215,7 +1215,7 @@ class fhandler_netdrive: public fhandler_virtual
public:
fhandler_netdrive ();
int exists();
- struct dirent *readdir (DIR *);
+ int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
void seekdir (DIR *, _off64_t);
void rewinddir (DIR *);
int closedir (DIR *);
@@ -1230,7 +1230,7 @@ class fhandler_registry: public fhandler_proc
public:
fhandler_registry ();
int exists();
- struct dirent *readdir (DIR *);
+ int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
_off64_t telldir (DIR *);
void seekdir (DIR *, _off64_t);
void rewinddir (DIR *);
@@ -1250,7 +1250,7 @@ class fhandler_process: public fhandler_proc
fhandler_process ();
int exists();
DIR *opendir ();
- struct dirent *readdir (DIR *);
+ int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
int open (int flags, mode_t mode = 0);
int __stdcall fstat (struct __stat64 *buf) __attribute__ ((regparm (2)));
bool fill_filebuf ();