improve comments for UT_NAMESIZE

This commit is contained in:
Wolfram Schneider 1996-10-27 18:13:35 +00:00
parent 4ba05f60ea
commit 8c372bd8a2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19211
2 changed files with 7 additions and 3 deletions

View File

@ -34,6 +34,7 @@
* SUCH DAMAGE.
*
* @(#)stdio.h 8.4 (Berkeley) 1/4/94
* $Id$
*/
#ifndef _STDIO_H_
@ -268,8 +269,10 @@ __END_DECLS
* Functions defined in POSIX 1003.1.
*/
#ifndef _ANSI_SOURCE
#define L_cuserid 9 /* size for cuserid(); UT_NAMESIZE + 1 */
#define L_ctermid 1024 /* size for ctermid(); PATH_MAX */
/* size for cuserid(3); UT_NAMESIZE + 1, see <utmp.h> */
#define L_cuserid 9
#define L_ctermid 1024 /* size for ctermid(3); PATH_MAX */
__BEGIN_DECLS
char *ctermid __P((char *));

View File

@ -36,6 +36,7 @@
* SUCH DAMAGE.
*
* @(#)utmp.h 8.2 (Berkeley) 1/21/94
* $Id$
*/
#ifndef _UTMP_H_
@ -45,7 +46,7 @@
#define _PATH_WTMP "/var/log/wtmp"
#define _PATH_LASTLOG "/var/log/lastlog"
#define UT_NAMESIZE 8
#define UT_NAMESIZE 8 /* see MAXLOGNAME in <sys/param.h> */
#define UT_LINESIZE 8
#define UT_HOSTSIZE 16