Deleted Added
full compact
machine.c (92922) machine.c (102412)
1/*
2 * top - a top users display for Unix
3 *
4 * SYNOPSIS: For FreeBSD-2.x and later
5 *
6 * DESCRIPTION:
7 * Originally written for BSD4.4 system by Christos Zoulas.
8 * Ported to FreeBSD 2.x by Steven Wallace && Wolfram Schneider

--- 6 unchanged lines hidden (view full) ---

15 *
16 * LIBS: -lkvm
17 *
18 * AUTHOR: Christos Zoulas <christos@ee.cornell.edu>
19 * Steven Wallace <swallace@freebsd.org>
20 * Wolfram Schneider <wosch@FreeBSD.org>
21 * Thomas Moestl <tmoestl@gmx.net>
22 *
1/*
2 * top - a top users display for Unix
3 *
4 * SYNOPSIS: For FreeBSD-2.x and later
5 *
6 * DESCRIPTION:
7 * Originally written for BSD4.4 system by Christos Zoulas.
8 * Ported to FreeBSD 2.x by Steven Wallace && Wolfram Schneider

--- 6 unchanged lines hidden (view full) ---

15 *
16 * LIBS: -lkvm
17 *
18 * AUTHOR: Christos Zoulas <christos@ee.cornell.edu>
19 * Steven Wallace <swallace@freebsd.org>
20 * Wolfram Schneider <wosch@FreeBSD.org>
21 * Thomas Moestl <tmoestl@gmx.net>
22 *
23 * $FreeBSD: head/usr.bin/top/machine.c 92922 2002-03-22 01:42:45Z imp $
23 * $FreeBSD: head/usr.bin/top/machine.c 102412 2002-08-25 13:23:09Z charnier $
24 */
25
26
27#include <sys/time.h>
28#include <sys/types.h>
29#include <sys/signal.h>
30#include <sys/param.h>
31

--- 507 unchanged lines hidden (view full) ---

539 break;
540 }
541 /* fall through */
542 case SSLEEP:
543 if (pp->ki_wmesg != NULL) {
544 sprintf(status, "%.6s", pp->ki_wmesg);
545 break;
546 }
24 */
25
26
27#include <sys/time.h>
28#include <sys/types.h>
29#include <sys/signal.h>
30#include <sys/param.h>
31

--- 507 unchanged lines hidden (view full) ---

539 break;
540 }
541 /* fall through */
542 case SSLEEP:
543 if (pp->ki_wmesg != NULL) {
544 sprintf(status, "%.6s", pp->ki_wmesg);
545 break;
546 }
547 /* fall through */
547 /* FALLTHROUGH */
548 default:
549
550 if (state >= 0 &&
551 state < sizeof(state_abbrev) / sizeof(*state_abbrev))
552 sprintf(status, "%.6s", state_abbrev[(unsigned char) state]);
553 else
554 sprintf(status, "?%5d", state);
555 break;

--- 323 unchanged lines hidden ---
548 default:
549
550 if (state >= 0 &&
551 state < sizeof(state_abbrev) / sizeof(*state_abbrev))
552 sprintf(status, "%.6s", state_abbrev[(unsigned char) state]);
553 else
554 sprintf(status, "?%5d", state);
555 break;

--- 323 unchanged lines hidden ---