(__sysconf): Test for LOGIN_NAME_MAX and TTY_NAME_MAX and not the
authordrepper <drepper>
Tue, 18 Feb 2003 03:45:47 +0000 (03:45 +0000)
committerdrepper <drepper>
Tue, 18 Feb 2003 03:45:47 +0000 (03:45 +0000)
_POSIX_* minimal value macros.

sysdeps/posix/sysconf.c

index 1700ed0..7ad8ac7 100644 (file)
@@ -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