b42c08d3c4
- Use queue(3) -- not some homegrown implementation of linked lists. - Rename structures to _entry, as they are entries in the linked list -- not the lists themselves. - Don't store entire copies of struct utmpx in utmpx_entry, but only the members we're interested in. Large fields such as hostnames are not needed during the execution of the program. - Give structure members useful names, instead of `name'. - While there, use struct timevals instead of time_t's internally. This is not strictly useful, but while we're at it... - Mark stuff static. - Add missing const keywords. - Remove unneeded prototypes. - Remove workaround for sparc64-specific utmp problems. These don't apply to utmpx. - Don't discard entries when timestamps are not monotone. This shouldn't ever happen with utmpx, but discarding them is a bit too harsh. - Remove debug code. We nowadays have `getent utmpx', which can be used to analyze logfiles in depth. - Use proper uppercasing/periods in comments. - Print output of `ac -p' sorted alphabetically, instead of first occurrence. - Properly check against pts/* instead of tty[PQRSpqrs]* to determine whether a TTY is a pseudo-terminal. MFC after: 1 month
19 lines
614 B
Makefile
19 lines
614 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= ac
|
|
MAN= ac.8
|
|
|
|
# If "CONSOLE_TTY" is not defined, this program is compatible with the
|
|
# traditional implementation (using SunOS 4.x as the sample traditional
|
|
# implementation). This is the default.
|
|
#
|
|
# If "CONSOLE_TTY" is defined, it must be defined to the appropriate
|
|
# console name, e.g. "vga". Additionally, the various commented-out
|
|
# sections of the man page should be uncommented. This is not the
|
|
# default because of the inability to detect the proper console name
|
|
# easily, especially on m68k systems, which can share binaries.
|
|
#
|
|
#CFLAGS+=-DCONSOLE_TTY=\"vga\"
|
|
|
|
.include <bsd.prog.mk>
|