Add the POSIX sanctioned "LOGIN_NAME_MAX" -- Maximum length of a login name.

Minimum Acceptable Value: _POSIX_LOGIN_NAME_MAX.
The comments at the bottom of this file claim sysconf(3) provides this value,
but it seems sysconf(3) hasn't implemented this yet.
This commit is contained in:
David E. O'Brien 2003-01-06 04:33:47 +00:00
parent ea4c7ada01
commit 9e0fd32c0b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108766

View File

@ -52,6 +52,7 @@
#define CHILD_MAX 40 /* max simultaneous processes */
#endif
#define LINK_MAX 32767 /* max file link count */
#define LOGIN_NAME_MAX 17 /* max login name length (incl. NUL) */
#define MAX_CANON 255 /* max bytes in term canon input line */
#define MAX_INPUT 255 /* max bytes in terminal input */
#define NAME_MAX 255 /* max bytes in a file name */
@ -68,7 +69,6 @@
* assume conservative values or call sysconf() to get the current value.
*
* HOST_NAME_MAX
* LOGIN_NAME_MAX
*
* (We should do this for most of the values currently defined here,
* but many programs are not prepared to deal with this yet.)