Source-Changes-HG archive

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

[src/trunk]: src/bin/ps Make printing of lwp flags similar to the process one...



details:   https://anonhg.NetBSD.org/src/rev/4bfcc5b84d37
branches:  trunk
changeset: 761288:4bfcc5b84d37
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 22 20:55:58 2011 +0000

description:
Make printing of lwp flags similar to the process one, identifying (O)nproc
(K)ernel threads and scheduler (a)ctivations.

diffstat:

 bin/ps/print.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 99dc8e8d6801 -r 4bfcc5b84d37 bin/ps/print.c
--- a/bin/ps/print.c    Sat Jan 22 20:54:43 2011 +0000
+++ b/bin/ps/print.c    Sat Jan 22 20:55:58 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.115 2010/07/28 17:39:54 njoly Exp $        */
+/*     $NetBSD: print.c,v 1.116 2011/01/22 20:55:58 christos Exp $     */
 
 /*
  * Copyright (c) 2000, 2007 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
 #if 0
 static char sccsid[] = "@(#)print.c    8.6 (Berkeley) 4/16/94";
 #else
-__RCSID("$NetBSD: print.c,v 1.115 2010/07/28 17:39:54 njoly Exp $");
+__RCSID("$NetBSD: print.c,v 1.116 2011/01/22 20:55:58 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -598,6 +598,8 @@
                *cp = '?';
        }
        cp++;
+       if (flag & P_SYSTEM)
+               *cp++ = 'K';
        if (flag & L_DETACHED)
                *cp++ = '-';
        *cp = '\0';



Home | Main Index | Thread Index | Old Index