From 32f6553e4666fc1712c3985780ac1bde2bae3ccf Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 4 Mar 1997 00:33:56 +0000 Subject: [PATCH] Big usernames fixes --- bin/ps/keyword.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c index e334cc810ad9..71e12d346330 100644 --- a/bin/ps/keyword.c +++ b/bin/ps/keyword.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: keyword.c,v 1.12 1997/02/22 14:05:03 peter Exp $ + * $Id: keyword.c,v 1.13 1997/03/03 08:20:28 ache Exp $ */ #ifndef lint @@ -48,6 +48,7 @@ static char const sccsid[] = "@(#)keyword.c 8.5 (Berkeley) 4/2/94"; #include #include #include +#include #include "ps.h" @@ -83,7 +84,7 @@ int utime(), stime(), ixrss(), idrss(), isrss(); #define UIDLEN 5 #define PIDFMT "d" #define PIDLEN 5 -#define USERLEN 8 +#define USERLEN UT_NAMESIZE VAR var[] = { #ifdef NEWVM @@ -150,7 +151,7 @@ VAR var[] = { NULL, 0, pvar, 8, POFF(p_sigignore), LONG, "x"}, {"sigmask", "BLOCKED", NULL, 0, pvar, 8, POFF(p_sigmask), LONG, "x"}, {"sl", "SL", NULL, 0, pvar, 3, POFF(p_slptime), ULONG, "d"}, - {"start", "STARTED", NULL, LJUST|USER, started, 8}, + {"start", "STARTED", NULL, LJUST|USER, started, 7}, {"stat", "", "state"}, {"state", "STAT", NULL, 0, state, 4}, {"svgid", "SVGID", @@ -236,7 +237,7 @@ VAR var[] = { NULL, 0, pvar, 8, POFF(p_sigignore), LONG, "x"}, {"sigmask", "BLOCKED", NULL, 0, pvar, 8, POFF(p_sigmask), LONG, "x"}, {"sl", "SL", NULL, 0, pvar, 3, POFF(p_slptime), ULONG, "d"}, - {"start", "STARTED", NULL, LJUST|USER, started, 8}, + {"start", "STARTED", NULL, LJUST|USER, started, 7}, {"stat", "", "state"}, {"state", "STAT", NULL, 0, state, 4}, {"svgid", "SVGID",