Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ps limit session to 6 chars. from Geoff Wing <gcw@pobox...



details:   https://anonhg.NetBSD.org/src/rev/06c1a4eca68e
branches:  trunk
changeset: 472581:06c1a4eca68e
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon May 03 00:17:30 1999 +0000

description:
limit session to 6 chars.  from Geoff Wing <gcw%pobox.com@localhost> and fixes his PR#7506

diffstat:

 bin/ps/keyword.c |  6 +++---
 bin/ps/print.c   |  7 +++++--
 bin/ps/ps.h      |  3 ++-
 3 files changed, 10 insertions(+), 6 deletions(-)

diffs (72 lines):

diff -r 6e36bf258a57 -r 06c1a4eca68e bin/ps/keyword.c
--- a/bin/ps/keyword.c  Sun May 02 23:19:49 1999 +0000
+++ b/bin/ps/keyword.c  Mon May 03 00:17:30 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: keyword.c,v 1.18 1999/04/16 13:34:32 christos Exp $    */
+/*     $NetBSD: keyword.c,v 1.19 1999/05/03 00:17:30 mrg Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)keyword.c  8.5 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: keyword.c,v 1.18 1999/04/16 13:34:32 christos Exp $");
+__RCSID("$NetBSD: keyword.c,v 1.19 1999/05/03 00:17:30 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -153,7 +153,7 @@
        {"rsz", "RSZ", NULL, 0, rssize, 4},
        UID("ruid", "RUID", evar, EOFF(e_pcred.p_ruid)),
        {"ruser", "RUSER", NULL, LJUST, runame, USERLEN},
-       {"sess", "SESS", NULL, 0, evar, 6, EOFF(e_sess), KPTR, "x"},
+       {"sess", "SESS", NULL, 0, evar, 6, EOFF(e_sess), KPTR24, "x"},
        PID("sid", "SID", evar, EOFF(e_sid)),
        {"sig", "PENDING",
            NULL, 0, pvar, SIGWIDTH, POFF(p_siglist), SIGLIST, "s"},
diff -r 6e36bf258a57 -r 06c1a4eca68e bin/ps/print.c
--- a/bin/ps/print.c    Sun May 02 23:19:49 1999 +0000
+++ b/bin/ps/print.c    Mon May 03 00:17:30 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.40 1999/04/16 13:34:32 christos Exp $      */
+/*     $NetBSD: print.c,v 1.41 1999/05/03 00:17:30 mrg Exp $   */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)print.c    8.6 (Berkeley) 4/16/94";
 #else
-__RCSID("$NetBSD: print.c,v 1.40 1999/04/16 13:34:32 christos Exp $");
+__RCSID("$NetBSD: print.c,v 1.41 1999/05/03 00:17:30 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -724,6 +724,9 @@
        case KPTR:
                (void)printf(ofmt, v->width, GET(u_long));
                break;
+       case KPTR24:
+               (void)printf(ofmt, v->width, GET(u_long) & 0xffffff);
+               break;
        case SIGLIST:
                {
                        sigset_t *s = (sigset_t *)(void *)bp;
diff -r 6e36bf258a57 -r 06c1a4eca68e bin/ps/ps.h
--- a/bin/ps/ps.h       Sun May 02 23:19:49 1999 +0000
+++ b/bin/ps/ps.h       Mon May 03 00:17:30 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ps.h,v 1.13 1999/04/16 13:34:32 christos Exp $ */
+/*     $NetBSD: ps.h,v 1.14 1999/05/03 00:17:31 mrg Exp $      */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -37,6 +37,7 @@
 
 #define        UNLIMITED       0       /* unlimited terminal width */
 enum type {
+       CHAR, UCHAR, SHORT, USHORT, INT, UINT, LONG, ULONG, KPTR, KPTR24,
        CHAR, UCHAR, SHORT, USHORT, INT, UINT, LONG, ULONG, KPTR,
        INT32, UINT32, SIGLIST
 };



Home | Main Index | Thread Index | Old Index