From a43573507b0845a19ee63a619d470b31531f7df0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 15 Jul 2004 09:09:24 +0000 Subject: Cleanup a few of the more egregiously broken sysconf values to actually match reality. In particular, _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX were causing us problems with programs such as libglib, since they were always returning -1, which is a bit smaller than the actual passwd and group max buffer sizes. -Erik --- libc/termios/ttyname.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/termios') diff --git a/libc/termios/ttyname.c b/libc/termios/ttyname.c index abd1beb95..7b937fb0b 100644 --- a/libc/termios/ttyname.c +++ b/libc/termios/ttyname.c @@ -21,6 +21,8 @@ * However, there is no need to waste space and support non-standard * tty names either. So we compromise and use the following buffer * length. (Erik and Manuel agreed that 32 was more than reasonable.) + * + * If you change this, also change _SC_TTY_NAME_MAX in libc/unistd/sysconf.c */ #define TTYNAME_BUFLEN 32 -- cgit v1.2.3