summaryrefslogtreecommitdiffstats
path: root/libc/termios
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-07-15 09:09:24 +0000
committerEric Andersen <andersen@codepoet.org>2004-07-15 09:09:24 +0000
commita43573507b0845a19ee63a619d470b31531f7df0 (patch)
tree39deb8f71ce55c3e7b56d61871bac67d9a0505c3 /libc/termios
parenta4b98042e64a172e9a595b7df9ff9a160604255a (diff)
downloaduClibc-alpine-a43573507b0845a19ee63a619d470b31531f7df0.tar.bz2
uClibc-alpine-a43573507b0845a19ee63a619d470b31531f7df0.tar.xz
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
Diffstat (limited to 'libc/termios')
-rw-r--r--libc/termios/ttyname.c2
1 files changed, 2 insertions, 0 deletions
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