summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-11-16 14:43:33 +0000
committerEd Schouten <ed@FreeBSD.org>2008-11-16 14:43:33 +0000
commitd47e6e6bd1828468161b7dbb648696eb480d7c87 (patch)
tree72943ade1d243fc64c6d4a40fd5dbe60be41e2c0 /include
parent5d09484b2aba0a034a81f168becefb9ea4e1b674 (diff)
Notes
Diffstat (limited to 'include')
-rw-r--r--include/utmp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/utmp.h b/include/utmp.h
index bdf137be93e8..1b57bb8d9159 100644
--- a/include/utmp.h
+++ b/include/utmp.h
@@ -46,6 +46,13 @@
#define _PATH_WTMP "/var/log/wtmp"
#define _PATH_LASTLOG "/var/log/lastlog"
+/*
+ * XXX: These values are too low, but cannot be changed without breaking
+ * the file format. Right now pts(4) is limited to 1000 instances,
+ * because /dev/pts/1000 would require UT_LINESIZE to be bigger.
+ * UT_HOSTSIZE is also too small to hold most common hostnames or IPv6
+ * addresses.
+ */
#define UT_NAMESIZE 16 /* see MAXLOGNAME in <sys/param.h> */
#define UT_LINESIZE 8
#define UT_HOSTSIZE 16