print.c (50471) | print.c (65557) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94"; 37#endif 38static const char rcsid[] = | 1/*- 2 * Copyright (c) 1990, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94"; 37#endif 38static const char rcsid[] = |
39 "$FreeBSD: head/bin/ps/print.c 50471 1999-08-27 23:15:48Z peter $"; | 39 "$FreeBSD: head/bin/ps/print.c 65557 2000-09-07 01:33:02Z jasone $"; |
40#endif /* not lint */ 41 42#include <sys/param.h> 43#include <sys/time.h> 44#include <sys/resource.h> 45#include <sys/proc.h> 46#include <sys/stat.h> 47 --- 132 unchanged lines hidden (view full) --- 180 181 switch (p->p_stat) { 182 183 case SSTOP: 184 *cp = 'T'; 185 break; 186 187 case SSLEEP: | 40#endif /* not lint */ 41 42#include <sys/param.h> 43#include <sys/time.h> 44#include <sys/resource.h> 45#include <sys/proc.h> 46#include <sys/stat.h> 47 --- 132 unchanged lines hidden (view full) --- 180 181 switch (p->p_stat) { 182 183 case SSTOP: 184 *cp = 'T'; 185 break; 186 187 case SSLEEP: |
188 if (flag & P_SINTR) /* interuptable (long) */ | 188 if (flag & P_SINTR) /* interruptable (long) */ |
189 *cp = p->p_slptime >= MAXSLP ? 'I' : 'S'; 190 else 191 *cp = 'D'; 192 break; 193 194 case SRUN: 195 case SIDL: 196 *cp = 'R'; 197 break; 198 | 189 *cp = p->p_slptime >= MAXSLP ? 'I' : 'S'; 190 else 191 *cp = 'D'; 192 break; 193 194 case SRUN: 195 case SIDL: 196 *cp = 'R'; 197 break; 198 |
199 case SWAIT: 200 *cp = 'W'; 201 break; 202 203 case SMTX: 204 *cp = 'M'; 205 break; 206 |
|
199 case SZOMB: 200 *cp = 'Z'; 201 break; 202 203 default: 204 *cp = '?'; 205 } 206 cp++; --- 524 unchanged lines hidden --- | 207 case SZOMB: 208 *cp = 'Z'; 209 break; 210 211 default: 212 *cp = '?'; 213 } 214 cp++; --- 524 unchanged lines hidden --- |