public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: devices: drop MAX_CONSOLES and fix FH_CONS_MAX
@ 2019-11-04  9:36 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2019-11-04  9:36 UTC (permalink / raw)
  To: cygwin-cvs

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),


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-04  9:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-04  9:36 [newlib-cygwin] Cygwin: devices: drop MAX_CONSOLES and fix FH_CONS_MAX Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).