Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Base the definition of MAXLOGNAME on LOGIN_NAME_MAX.



details:   https://anonhg.NetBSD.org/src/rev/dd5367280172
branches:  trunk
changeset: 477019:dd5367280172
user:      kleink <kleink%NetBSD.org@localhost>
date:      Wed Oct 06 18:53:55 1999 +0000

description:
Base the definition of MAXLOGNAME on LOGIN_NAME_MAX.

diffstat:

 sys/sys/param.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 532c18b2c485 -r dd5367280172 sys/sys/param.h
--- a/sys/sys/param.h   Wed Oct 06 18:24:00 1999 +0000
+++ b/sys/sys/param.h   Wed Oct 06 18:53:55 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.71 1999/08/18 01:34:27 wrstuden Exp $      */
+/*     $NetBSD: param.h,v 1.72 1999/10/06 18:53:55 kleink Exp $        */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -101,7 +101,8 @@
 
 #define        MAXCOMLEN       16              /* max command name remembered */
 #define        MAXINTERP       64              /* max interpreter file name length */
-#define        MAXLOGNAME      16              /* max login name length */
+/* DEPRECATED: use LOGIN_NAME_MAX instead. */
+#define        MAXLOGNAME      (LOGIN_NAME_MAX - 1) /* max login name length */
 #define        NCARGS          ARG_MAX         /* max bytes for an exec function */
 #define        NGROUPS         NGROUPS_MAX     /* max number groups */
 #define        NOFILE          OPEN_MAX        /* max open files per process */



Home | Main Index | Thread Index | Old Index