summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-03-04 00:33:56 +0000
committerache <ache@FreeBSD.org>1997-03-04 00:33:56 +0000
commit264293aa5ca5c0592ef60c0494f4643b6030fb56 (patch)
tree76990ebc1b92aec19cfc9917aecdbfe48e82f646 /bin/ps
parentb51638da3718df1e5b9612ee47dd0c8bbe799d98 (diff)
downloadFreeBSD-src-264293aa5ca5c0592ef60c0494f4643b6030fb56.zip
FreeBSD-src-264293aa5ca5c0592ef60c0494f4643b6030fb56.tar.gz
Big usernames fixes
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/keyword.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index e334cc8..71e12d3 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <utmp.h>
#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",
OpenPOWER on IntegriCloud