Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-01-06 21:31:35 +0300
committerChristopher Faylor <me@cgf.cx>2008-01-06 21:31:35 +0300
commiteaf70af08a7d71178a15b949613e53bdf1ff539a (patch)
treedfc262781e263d9b9d26125c776c350caefdee5e
parent277723722fd1f69cdaa1d660d6c6284b02a646d7 (diff)
* include/limits.h (TTY_NAME_MAX): Increase size to same as linux to allow for
(at least) null terminating byte for "/dev/console".
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/include/limits.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 77300ede9..52a10ada7 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * include/limits.h (TTY_NAME_MAX): Increase size to same as linux to
+ allow for (at least) null terminating byte for "/dev/console".
+
2008-01-01 Christopher Faylor <me+cygwin@cgf.cx>
* tty.cc: Update copyright.
diff --git a/winsup/cygwin/include/limits.h b/winsup/cygwin/include/limits.h
index 6dcf9caa1..7d829db72 100644
--- a/winsup/cygwin/include/limits.h
+++ b/winsup/cygwin/include/limits.h
@@ -289,7 +289,7 @@ details. */
/* Maximum number of characters in a tty name. */
#undef TTY_NAME_MAX
-#define TTY_NAME_MAX 12
+#define TTY_NAME_MAX 32
/* Maximum number of bytes supported for the name of a timezone (not of the TZ variable). Not implemented. */
#undef TZNAME_MAX