diff options
author | davidn <davidn@FreeBSD.org> | 1997-02-07 10:41:41 +0000 |
---|---|---|
committer | davidn <davidn@FreeBSD.org> | 1997-02-07 10:41:41 +0000 |
commit | 2ee2d0c1f6ef42dfd3c8948d2917c8452a6ae0ae (patch) | |
tree | 853166fa04e29ba2ecc74cde91333948f8e34099 /sys | |
parent | 963a0fcad9b890d1acb1d505863525238a958802 (diff) | |
download | FreeBSD-src-2ee2d0c1f6ef42dfd3c8948d2917c8452a6ae0ae.zip FreeBSD-src-2ee2d0c1f6ef42dfd3c8948d2917c8452a6ae0ae.tar.gz |
Correct comments relating to MAXLOGNAME.
MAXLOGNAME includes NUL terminator.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/param.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/param.h b/sys/sys/param.h index 9fb35d2..f4271e9 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -59,13 +59,14 @@ * Redefined constants are from POSIX 1003.1 limits file. * * MAXCOMLEN should be >= sizeof(ac_comm) (see <acct.h>) - * MAXLOGNAME should be >= UT_NAMESIZE (see <utmp.h>) + * MAXLOGNAME should be > max login_name + 1 + * (see also UT_NAMESIZE (see <utmp.h>)) */ #include <sys/syslimits.h> #define MAXCOMLEN 16 /* max command name remembered */ #define MAXINTERP 32 /* max interpreter file name length */ -#define MAXLOGNAME 16 /* max login name length */ +#define MAXLOGNAME 16 /* max login name length (incl. NUL) */ #define MAXUPRC CHILD_MAX /* max simultaneous processes */ #define NCARGS ARG_MAX /* max bytes for an exec function */ #define NGROUPS NGROUPS_MAX /* max number groups */ |