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 + + * 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 * 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 +2011-04-19 Jon TURNEY * 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 = 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_PROC_MAX_MINOR = FHDEV (0, 255), - FH_PROC_MIN_MINOR = FHDEV (0,200), + FH_PROC = FHDEV (0, 255), + 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), /* 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 #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)