about summary refs log tree commit diff
path: root/sysdeps/posix/sysconf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-18 03:46:54 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-18 03:46:54 +0000
commit46d7e2ba2235768df3d633109451fd2bee5f9291 (patch)
treea5add2d0cab28324e2c97f855959143dd9374ae9 /sysdeps/posix/sysconf.c
parenta5e34e047dcc6709d994949389eb6e91709b3266 (diff)
downloadglibc-46d7e2ba2235768df3d633109451fd2bee5f9291.tar.gz
glibc-46d7e2ba2235768df3d633109451fd2bee5f9291.tar.xz
glibc-46d7e2ba2235768df3d633109451fd2bee5f9291.zip
Update.
2003-02-17  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
	TTY_NAME_MAX and not the _POSIX_* minimal value macros.
	* sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
	and LOGIN_NAME_MAX.
Diffstat (limited to 'sysdeps/posix/sysconf.c')
-rw-r--r--sysdeps/posix/sysconf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
index 1700ed0b87..7ad8ac7891 100644
--- a/sysdeps/posix/sysconf.c
+++ b/sysdeps/posix/sysconf.c
@@ -515,15 +515,15 @@ __sysconf (name)
       return NSS_BUFLEN_PASSWD;
 
     case _SC_LOGIN_NAME_MAX:
-#ifdef	_POSIX_LOGIN_NAME_MAX
-      return _POSIX_LOGIN_NAME_MAX;
+#ifdef	LOGIN_NAME_MAX
+      return LOGIN_NAME_MAX;
 #else
       return -1;
 #endif
 
     case _SC_TTY_NAME_MAX:
-#ifdef	_POSIX_TTY_NAME_MAX
-      return _POSIX_TTY_NAME_MAX;
+#ifdef	TTY_NAME_MAX
+      return TTY_NAME_MAX;
 #else
       return -1;
 #endif