summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-04-20 07:29:10 +0000
committerCorinna Vinschen <corinna@vinschen.de>2011-04-20 07:29:10 +0000
commit12c0f2d90957a684a0fae570a9f06adddade287b (patch)
treee7a1b8809d53a20f7ce9a50c27ef50d560aa72f2
parentf59c2998a13ab002d959ce7f27d44516fc8cbdd8 (diff)
downloadcygnal-12c0f2d90957a684a0fae570a9f06adddade287b.tar.gz
cygnal-12c0f2d90957a684a0fae570a9f06adddade287b.tar.bz2
cygnal-12c0f2d90957a684a0fae570a9f06adddade287b.zip
* devices.h: Renumber internal devices so that FH_PROCESS is part of
the /proc family of virtual devices. (FH_PROC_MAX_MINOR): Define. * path.h (isproc_dev): Use FH_PROC_MAX_MINOR rather than FH_PROC.
-rw-r--r--winsup/cygwin/ChangeLog9
-rw-r--r--winsup/cygwin/devices.h22
-rw-r--r--winsup/cygwin/path.h2
3 files changed, 21 insertions, 12 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index d7748490b..a3508d38c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,10 +1,17 @@
+2011-04-20 Corinna Vinschen <corinna@vinschen.de>
+
+ * devices.h: Renumber internal devices so that FH_PROCESS is part of
+ the /proc family of virtual devices.
+ (FH_PROC_MAX_MINOR): Define.
+ * path.h (isproc_dev): Use FH_PROC_MAX_MINOR rather than FH_PROC.
+
2011-04-19 Peter Rosin <peda@lysator.liu.se>
* select.cc (pipe_cleanup): Make sure that device_specific_pipe is
always deleted regardless of whether it has a unique thread associated
with it.
-2011-04-02 Jon TURNEY <jon.turney@dronecode.org.uk>
+2011-04-19 Jon TURNEY <jon.turney@dronecode.org.uk>
* thread.cc (semaphore::init): We cannot reliably infer anything from
the existing contents of sem, so merely warn rather than return EBUSY
diff --git a/winsup/cygwin/devices.h b/winsup/cygwin/devices.h
index 882ee51ce..b4927f1ba 100644
--- a/winsup/cygwin/devices.h
+++ b/winsup/cygwin/devices.h
@@ -40,24 +40,26 @@ enum fh_devices
FH_CLIPBOARD=FHDEV (13, 254),
/* begin /proc directories */
+ FH_PROC_MAX_MINOR = FHDEV (0, 255),
+
FH_PROC = FHDEV (0, 255),
- FH_REGISTRY= FHDEV (0, 254),
- FH_PROCNET = FHDEV (0, 253),
- FH_PROCESSFD = FHDEV (0, 252),
- FH_PROCSYS = FHDEV (0, 251),
- FH_PROCSYSVIPC = FHDEV (0,250),
+ FH_PROCESS = FHDEV (0, 254),
+ FH_REGISTRY= FHDEV (0, 253),
+ FH_PROCNET = FHDEV (0, 252),
+ FH_PROCESSFD = FHDEV (0, 251),
+ FH_PROCSYS = FHDEV (0, 250),
+ FH_PROCSYSVIPC = FHDEV (0, 249),
- FH_PROC_MIN_MINOR = FHDEV (0,200),
+ FH_PROC_MIN_MINOR = FHDEV (0, 200),
/* end /proc directories */
FH_PIPE = FHDEV (0, 199),
FH_PIPER = FHDEV (0, 198),
FH_PIPEW = FHDEV (0, 197),
FH_FIFO = FHDEV (0, 196),
- FH_PROCESS = FHDEV (0, 195),
- FH_FS = FHDEV (0, 194), /* filesystem based device */
- FH_NETDRIVE= FHDEV (0, 193),
- FH_DEV = FHDEV (0, 192),
+ FH_FS = FHDEV (0, 195), /* filesystem based device */
+ FH_NETDRIVE= FHDEV (0, 194),
+ FH_DEV = FHDEV (0, 193),
DEV_FLOPPY_MAJOR = 2,
FH_FLOPPY = FHDEV (DEV_FLOPPY_MAJOR, 0),
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index d2fc778e5..adba7067d 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -18,7 +18,7 @@ details. */
#include <fcntl.h>
#define isproc_dev(devn) \
- (devn >= FH_PROC_MIN_MINOR && devn <= FH_PROC)
+ (devn >= FH_PROC_MIN_MINOR && devn <= FH_PROC_MAX_MINOR)
#define isprocsys_dev(devn) (devn == FH_PROCSYS)