[newlib-cygwin] Cygwin: devices: drop MAX_CONSOLES and fix FH_CONS_MAX
Corinna Vinschen
corinna@sourceware.org
Mon Nov 4 09:36:00 GMT 2019
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7a26e19d4f43f71b4f6940ef9219589d7d5e7c05
commit 7a26e19d4f43f71b4f6940ef9219589d7d5e7c05
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Mon Nov 4 10:34:14 2019 +0100
Cygwin: devices: drop MAX_CONSOLES and fix FH_CONS_MAX
FH_CONS_MAX should refelect the fact that we allow 128 consoles, even if
it's unused.
Suggested-by: Achim Gratz <Stromeko@nexgo.de>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/devices.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/winsup/cygwin/devices.h b/winsup/cygwin/devices.h
index 47156f2..5a077c2 100644
--- a/winsup/cygwin/devices.h
+++ b/winsup/cygwin/devices.h
@@ -19,7 +19,6 @@ typedef unsigned short _minor_t;
#include <dirent.h>
#include "cygheap_malloc.h"
-#define MAX_CONSOLES 63
enum fh_devices
{
DEV_TTY_MAJOR = 5,
@@ -31,7 +30,7 @@ enum fh_devices
DEV_CONS_MAJOR = 3,
FH_CONS = FHDEV (DEV_CONS_MAJOR, 0),
- FH_CONS_MAX = FHDEV (DEV_CONS_MAJOR, MAX_CONSOLES),
+ FH_CONS_MAX = FHDEV (DEV_CONS_MAJOR, 127),
DEV_PTYM_MAJOR = 128,
FH_PTYM = FHDEV (DEV_PTYM_MAJOR, 0),
More information about the Cygwin-cvs
mailing list