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:
authorCorinna Vinschen <corinna@vinschen.de>2012-03-29 22:02:54 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-03-29 22:02:54 +0400
commit9ca7bca3c381d4affa78b450bd7284da9a68ec9b (patch)
treeb411492e1997760f201f1bac335296211e5ddec3 /winsup/cygwin/devices.cc
parentd46ed263afc680ce6a7f84114a3014b84e447987 (diff)
* Makefile.in (DLL_OFILES): Add fhandler_dev.o.
* devices.h (DEV_DEV_MAJOR): Define. (FH_DEV): Redefine in terms of DEV_DEV_MAJOR. (ext_dev_storage): Declare. (dev_storage_size): Declare. (dev_dev_storage): Declare. (dev_dev): Define. (isdev_dev): Define. * devices.in (dev_dev_storage): Activate. (ext_dev_storage): Define as externally available pointer to dev_storage. (dev_storage_size): Define to contain number of dev_storage elements. * dir.cc (rmdir): Handle /dev as always not empty. * dtable.cc (fh_alloc): Handle DEV_DEV_MAJOR. * fhandler.h (fhandler_dev): New class, derived from fhandler_disk_file. (fhandler_union): Add fhandler_dev member. * fhandler_disk_file.cc (class __DIR_mounts): Handle /dev directory to make sure it always exists. * fhandler_dev.cc: New file implementing /dev. * globals.cc (ro_u_dev): New R/O unicode string. * path.cc (path_conv::check): Handle FH_DEV device.
Diffstat (limited to 'winsup/cygwin/devices.cc')
-rw-r--r--winsup/cygwin/devices.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/devices.cc b/winsup/cygwin/devices.cc
index 432f3359d..bfd4bcf89 100644
--- a/winsup/cygwin/devices.cc
+++ b/winsup/cygwin/devices.cc
@@ -33,10 +33,8 @@ const device dev_procsysvipc_storage =
const device dev_netdrive_storage =
{"", {FH_NETDRIVE}, ""};
-#if 0
const device dev_dev_storage =
{"/dev", {FH_DEV}, "/dev"};
-#endif
const device dev_registry_storage =
{"", {FH_REGISTRY}, ""};
@@ -46531,6 +46529,10 @@ return NULL;
#undef BRACK
+
+const device *ext_dev_storage = dev_storage;
+const size_t dev_storage_size = sizeof dev_storage / sizeof dev_storage[0];
+
void
device::parse (const char *s)
{