History log of /freebsd-10-stable/contrib/top/username.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 301836 12-Jun-2016 ngie

MFC r300395:

Silence top(1) compiler warnings

The contrib/top code is no longer maintained upstream (last pulled 16 years
ago). The K&R-style followed by the code spews -Wimplicit-int and -Wreturn-type
warnings, amongst others. This silences 131 warnings with as little modification
as possible by adding necessary return types, definitions, headers, and header
guards, and missing header includes.

The 5 warnings that remain are due to undeclared ncurses references. I didn't
include curses.h and term.h because there are several local functions and macros
that conflict with those definitions.


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 200979 25-Dec-2009 ed

Let top(1) use MAXLOGNAME instead of UT_NAMESIZE.

The maximum user login length should have nothing to do with <utmp.h>.


# 98069 09-Jun-2002 mike

Don't depend on <pwd.h> to bogusly include <sys/types.h>.


# 25076 21-Apr-1997 ache

Use UT_NAMESIZE instead of hardcoded user names length


# 24140 23-Mar-1997 joerg

This commit was generated by cvs2svn to compensate for changes in r24139,
which included commits to RCS files with non-trunk default branches.


# 24139 23-Mar-1997 joerg

This is the long-awaited import of top into the base system (actually,
the src/contrib/top part right now). This tools is simply too system-
dependant to maintain it in the ports collection.