summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.h
diff options
context:
space:
mode:
authorPierre Humblet <phumblet@phumblet.no-ip.org>2005-05-09 02:39:34 +0000
committerPierre Humblet <phumblet@phumblet.no-ip.org>2005-05-09 02:39:34 +0000
commitadef8db0ae5ed1eb6f8edb88b2685ea6316ea35f (patch)
tree0f8051216bf246b6b091c948b3ad3e0042ba0712 /winsup/cygwin/fhandler.h
parentf991d0e53ebed74e93a7d0ff4c878ed0f37f2742 (diff)
downloadcygnal-adef8db0ae5ed1eb6f8edb88b2685ea6316ea35f.tar.gz
cygnal-adef8db0ae5ed1eb6f8edb88b2685ea6316ea35f.tar.bz2
cygnal-adef8db0ae5ed1eb6f8edb88b2685ea6316ea35f.zip
2005-05-09 Pierre Humblet <pierre.humblet@ieee.org>
* fhandler.h (class fhandler_netdrive): New class. * fhandler_netdrive.cc (fhandler_netdrive::fhandler_netdrive): New constructor. (fhandler_netdrive::exists): New method. (fhandler_netdrive::fstat): Ditto. (fhandler_netdrive::readdir): Ditto. (fhandler_netdrive::open): Ditto. * dtable.cc (build_fh_pc): Handle case FH_NETDRIVE. * path.cc (isvirtual_dev): Add FH_NETDRIVE. (mount_info::conv_to_win32_path): Detect netdrive device and bypass mount search for network paths.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 04c5d399b..b8cdfd0fe 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -1203,6 +1203,16 @@ class fhandler_proc: public fhandler_virtual
bool fill_filebuf ();
};
+class fhandler_netdrive: public fhandler_virtual
+{
+ public:
+ fhandler_netdrive ();
+ int exists();
+ struct dirent *readdir (DIR *);
+ int open (int flags, mode_t mode = 0);
+ int __stdcall fstat (struct __stat64 *buf) __attribute__ ((regparm (2)));
+};
+
class fhandler_registry: public fhandler_proc
{
private: