From 36cc33b1041311ca624f0515c7b20bf59aeeb700 Mon Sep 17 00:00:00 2001 From: millert <> Date: Sat, 31 Dec 2005 19:29:38 +0000 Subject: [PATCH] Move TTY_NAME_MAX and LOGIN_NAME_MAX to sys/syslimits.h Use correct values for _POSIX_TTY_NAME_MAX and _POSIX_LOGIN_NAME_MAX Define MAXLOGNAME in terms of LOGIN_NAME_MAX OK krw@ --- src/include/limits.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/include/limits.h b/src/include/limits.h index 938b64a4..df2c776e 100644 --- a/src/include/limits.h +++ b/src/include/limits.h @@ -1,4 +1,4 @@ -/* $OpenBSD: limits.h,v 1.12 2005/12/13 00:35:22 millert Exp $ */ +/* $OpenBSD: limits.h,v 1.13 2005/12/31 19:29:38 millert Exp $ */ /* $NetBSD: limits.h,v 1.7 1994/10/26 00:56:00 cgd Exp $ */ /* @@ -65,12 +65,9 @@ #define _POSIX2_RE_DUP_MAX _POSIX_RE_DUP_MAX #if __POSIX_VISIBLE >= 200112 -#define _POSIX_TTY_NAME_MAX 260 -#define _POSIX_LOGIN_NAME_MAX MAXLOGNAME - -#define TTY_NAME_MAX _POSIX_TTY_NAME_MAX -#define LOGIN_NAME_MAX MAXLOGNAME -#endif +#define _POSIX_TTY_NAME_MAX 9 /* includes trailing NUL */ +#define _POSIX_LOGIN_NAME_MAX 9 /* includes trailing NUL */ +#endif /* __POSIX_VISIBLE >= 200112 */ #endif /* __POSIX_VISIBLE */ #if __XPG_VISIBLE