#define<TAB>
This commit is contained in:
parent
c89c679638
commit
a6b219ed94
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nlist.c,v 1.22 2004/03/27 12:09:28 simonb Exp $ */
|
||||
/* $NetBSD: nlist.c,v 1.23 2004/03/27 14:09:10 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
@ -70,7 +70,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)nlist.c 8.4 (Berkeley) 4/2/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: nlist.c,v 1.22 2004/03/27 12:09:28 simonb Exp $");
|
||||
__RCSID("$NetBSD: nlist.c,v 1.23 2004/03/27 14:09:10 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -111,7 +111,7 @@ int fscale; /* kernel _fscale variable */
|
||||
int maxslp; /* kernel _maxslp variable */
|
||||
int uspace; /* kernel USPACE value */
|
||||
|
||||
#define kread(x, v) \
|
||||
#define kread(x, v) \
|
||||
kvm_read(kd, psnl[x].n_value, (char *)&v, sizeof v) != sizeof(v)
|
||||
|
||||
int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: print.c,v 1.85 2004/03/27 12:59:25 simonb Exp $ */
|
||||
/* $NetBSD: print.c,v 1.86 2004/03/27 14:09:10 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
@ -70,7 +70,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: print.c,v 1.85 2004/03/27 12:59:25 simonb Exp $");
|
||||
__RCSID("$NetBSD: print.c,v 1.86 2004/03/27 14:09:10 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -847,7 +847,7 @@ wchan(void *arg, VARENT *ve, int mode)
|
||||
}
|
||||
}
|
||||
|
||||
#define pgtok(a) (((a)*getpagesize())/1024)
|
||||
#define pgtok(a) (((a)*getpagesize())/1024)
|
||||
|
||||
void
|
||||
vsize(void *arg, VARENT *ve, int mode)
|
||||
@ -1212,7 +1212,7 @@ printval(bp, v, mode)
|
||||
{
|
||||
sigset_t *s = (sigset_t *)(void *)bp;
|
||||
size_t i;
|
||||
#define SIGSETSIZE (sizeof(s->__bits) / sizeof(s->__bits[0]))
|
||||
#define SIGSETSIZE (sizeof(s->__bits) / sizeof(s->__bits[0]))
|
||||
char buf[SIGSETSIZE * 8 + 1];
|
||||
|
||||
for (i = 0; i < SIGSETSIZE; i++)
|
||||
|
10
bin/ps/ps.c
10
bin/ps/ps.c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ps.c,v 1.53 2004/03/27 12:44:08 simonb Exp $ */
|
||||
/* $NetBSD: ps.c,v 1.54 2004/03/27 14:09:10 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
@ -75,7 +75,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993, 1994\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: ps.c,v 1.53 2004/03/27 12:44:08 simonb Exp $");
|
||||
__RCSID("$NetBSD: ps.c,v 1.54 2004/03/27 14:09:10 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -564,14 +564,14 @@ pscomp(const void *a, const void *b)
|
||||
struct varent *ve;
|
||||
sigset_t *sa, *sb;
|
||||
|
||||
#define V_SIZE(k) (k->p_vm_dsize + k->p_vm_ssize + k->p_vm_tsize)
|
||||
#define RDIFF_N(t, n) \
|
||||
#define V_SIZE(k) (k->p_vm_dsize + k->p_vm_ssize + k->p_vm_tsize)
|
||||
#define RDIFF_N(t, n) \
|
||||
if (((t *)((char *)ka + v->off))[n] > ((t *)((char *)kb + v->off))[n]) \
|
||||
return 1; \
|
||||
if (((t *)((char *)ka + v->off))[n] < ((t *)((char *)kb + v->off))[n]) \
|
||||
return -1;
|
||||
|
||||
#define RDIFF(type) RDIFF_N(type, 0); continue
|
||||
#define RDIFF(type) RDIFF_N(type, 0); continue
|
||||
|
||||
for (ve = sorthead; ve != NULL; ve = ve->next) {
|
||||
v = ve->var;
|
||||
|
12
bin/ps/ps.h
12
bin/ps/ps.h
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ps.h,v 1.22 2004/03/27 12:09:28 simonb Exp $ */
|
||||
/* $NetBSD: ps.h,v 1.23 2004/03/27 14:09:10 simonb Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -33,8 +33,8 @@
|
||||
|
||||
#define UNLIMITED 0 /* unlimited terminal width */
|
||||
|
||||
#define PRINTMODE 0 /* print values */
|
||||
#define WIDTHMODE 1 /* determine width of column */
|
||||
#define PRINTMODE 0 /* print values */
|
||||
#define WIDTHMODE 1 /* determine width of column */
|
||||
|
||||
enum type {
|
||||
UNSPECIFIED,
|
||||
@ -55,8 +55,8 @@ typedef struct var {
|
||||
#define COMM 0x01 /* needs exec arguments and environment (XXX) */
|
||||
#define LJUST 0x02 /* left adjust on output (trailing blanks) */
|
||||
#define INF127 0x04 /* 127 = infinity: if > 127, print 127. */
|
||||
#define LWP 0x08 /* dispatch to kinfo_lwp routine */
|
||||
#define UAREA 0x10 /* need to check p_uvalid */
|
||||
#define LWP 0x08 /* dispatch to kinfo_lwp routine */
|
||||
#define UAREA 0x10 /* need to check p_uvalid */
|
||||
#define ALIAS 0x20 /* entry is alias for 'header' */
|
||||
u_int flag;
|
||||
/* output routine */
|
||||
@ -79,7 +79,7 @@ typedef struct var {
|
||||
double longestnd; /* longest negative double */
|
||||
} VAR;
|
||||
|
||||
#define OUTPUT(vent, ki, kl, mode) do { \
|
||||
#define OUTPUT(vent, ki, kl, mode) do { \
|
||||
if ((vent)->var->flag & LWP) \
|
||||
((vent)->var->oproc)((void *)(kl), (vent), (mode)); \
|
||||
else \
|
||||
|
Loading…
Reference in New Issue
Block a user