diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-02-16 11:02:05 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-02-16 11:02:05 +0000 |
commit | 9de04619852a9e83433b311e5d7ca60d0587d385 (patch) | |
tree | f5a38797fdce787d787faf582f4891ade56c724b /winsup/cygwin/mount.h | |
parent | fb97e87479ea60a6c3ce21b193b83991a0fc0fc9 (diff) | |
download | newlib-9de04619852a9e83433b311e5d7ca60d0587d385.zip newlib-9de04619852a9e83433b311e5d7ca60d0587d385.tar.gz newlib-9de04619852a9e83433b311e5d7ca60d0587d385.tar.bz2 |
* autoload.cc (NetUseGetInfo): Define.
* fhandler_disk_file.cc (fhandler_cygdrive::opendir): Rename flptst
to drive. Call new get_disk_type function rather than is_floppy and
check SMB drives with the NetUseGetInfo function. Explain why.
* mount.cc (get_disk_type): New function to evaluate disk type from
native NT device name.
(is_floppy): Remove.
* mount.h (enum disk_type): Define.
(get_disk_type): Declare.
* path.h (is_floppy): Drop declaration.
Diffstat (limited to 'winsup/cygwin/mount.h')
-rw-r--r-- | winsup/cygwin/mount.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/winsup/cygwin/mount.h b/winsup/cygwin/mount.h index 606e9f5..1c8a6cd 100644 --- a/winsup/cygwin/mount.h +++ b/winsup/cygwin/mount.h @@ -1,7 +1,7 @@ /* mount.h: mount definitions. Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, - 2006, 2007, 2008, 2009, 2010, 2011 Red Hat, Inc. + 2006, 2007, 2008, 2009, 2010, 2011, 2012 Red Hat, Inc. This file is part of Cygwin. @@ -12,6 +12,18 @@ details. */ #ifndef _MOUNT_H #define _MOUNT_H +enum disk_type +{ + DT_NODISK, + DT_CDROM, + DT_FLOPPY, + DT_HARDDISK, + DT_SHARE_SMB, + DT_SHARE_NFS +}; + +disk_type get_disk_type (LPCWSTR); + enum fs_info_type { none = 0, |