Browse Source

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@
OPENBSD_3_9
millert 19 years ago
parent
commit
36cc33b104
1 changed files with 4 additions and 7 deletions
  1. +4
    -7
      src/include/limits.h

+ 4
- 7
src/include/limits.h View File

@ -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 $ */ /* $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 #define _POSIX2_RE_DUP_MAX _POSIX_RE_DUP_MAX
#if __POSIX_VISIBLE >= 200112 #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 */ #endif /* __POSIX_VISIBLE */
#if __XPG_VISIBLE #if __XPG_VISIBLE


Loading…
Cancel
Save