diff options
author | Christopher Faylor <me@cgf.cx> | 2005-08-24 08:38:39 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-08-24 08:38:39 +0400 |
commit | 14c4d65ef1240b1c18db06c3030b4e0830b0c701 (patch) | |
tree | 0a651de83d4520bb1c08dd334792733560733975 /winsup/cygwin/devices.in | |
parent | db7f135b03afa5f8ee870f87d1727d69dade30ce (diff) |
* cygheap.h (cygheap_types): Add HEAP_COMMUNE.
* fhandler_proc.cc: Use cygheap rather than user heap for allocation of filebuf
throughout.
* fhandler_registry.cc: Ditto.
* fhandler_virtual.cc: Ditto.
* fhandler_process.cc: Ditto.
(get_mem_values): Use malloc/realloc/free rather than new.
* pinfo.cc (_pinfo::commune_send): Allocate on cygwin heap rather than user
heap. Avoid calling ReadFile when correct number of characters have been read
or suffer buffer corruption.
(_pinfo::fd): Allocate on cygwin heap rather than user heap.
(_pinfo::fds): Ditto.
(_pinfo::root): Ditto.
(_pinfo::cwd): Ditto.
(_pinfo::cmdline): Ditto.
* devices.h (FH_DEV): New define.
* devices.in: Detect lone /dev.
* devices.cc: Regenerate.
* path.cc (path_conv::check): Treat FH_DEV as a special case.
Diffstat (limited to 'winsup/cygwin/devices.in')
-rw-r--r-- | winsup/cygwin/devices.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/devices.in b/winsup/cygwin/devices.in index c2750f95c..326e5526e 100644 --- a/winsup/cygwin/devices.in +++ b/winsup/cygwin/devices.in @@ -24,6 +24,11 @@ const device dev_proc_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}, ""}; @@ -82,6 +87,7 @@ const device dev_bad_storage = "/dev/sd%{a-z}s", BRACK(FH_SD{uc $1}), "\\Device\\Harddisk{ord($1) - ord('a')}\\Partition0" "/dev/sd%{a-z}s%(1-15)d", BRACK(FH_SD{uc $1} | {$2}), "\\Device\\Harddisk{ord($1) - ord('a')}\\Partition{$2 % 16}" "/dev/kmsg", BRACK(FH_KMSG), "\\\\.\\mailslot\\cygwin\\dev\\kmsg" +"/dev", BRACK(FH_DEV), "/dev" %other {return NULL;} %% #undef BRACK |