summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1996-10-27 18:13:35 +0000
committerwosch <wosch@FreeBSD.org>1996-10-27 18:13:35 +0000
commit86907d3e57b7292b7628f44459a0b521163899f5 (patch)
treed5c75bba488725560df33c6a040ea4dee2859a05
parent3c7e2f54595d33d97e6d59b107e9d7d28d4c9647 (diff)
downloadFreeBSD-src-86907d3e57b7292b7628f44459a0b521163899f5.zip
FreeBSD-src-86907d3e57b7292b7628f44459a0b521163899f5.tar.gz
improve comments for UT_NAMESIZE
-rw-r--r--include/stdio.h7
-rw-r--r--include/utmp.h3
2 files changed, 7 insertions, 3 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 71d23d4..a238301 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -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 *));
diff --git a/include/utmp.h b/include/utmp.h
index 15c4e4f..74df997 100644
--- a/include/utmp.h
+++ b/include/utmp.h
@@ -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
OpenPOWER on IntegriCloud