From 5b59a2cc0d956943b22b8dc6282d69bd06c231d1 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 17 May 2005 20:34:15 +0000 Subject: * fhandler.h (class fhandler_netdrive): Add method rewinddir. * fhandler_netdrive.cc (struct netdriveinf): New structure to store thread arguments. (thread_netdrive): Thread handling all potentially blocking WNet... calls. (create_thread_and_wait): Start and wait for above thread. (fhandler_netdrive::exists): Change to call create_thread_and_wait instead of calling WNet... function. (fhandler_netdrive::readdir): Ditto. Fix error handling. (fhandler_netdrive::rewinddir): New method. --- winsup/cygwin/fhandler.h | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/cygwin/fhandler.h') diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index be7a6c38b..c8e7217fa 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -1222,6 +1222,7 @@ class fhandler_netdrive: public fhandler_virtual struct dirent *readdir (DIR *); _off64_t telldir (DIR *); void seekdir (DIR *, _off64_t); + void rewinddir (DIR *); int closedir (DIR *); int open (int flags, mode_t mode = 0); int __stdcall fstat (struct __stat64 *buf) __attribute__ ((regparm (2))); -- cgit v1.2.3