#define<TAB>

This commit is contained in:
simonb 2004-03-27 14:09:10 +00:00
parent c89c679638
commit a6b219ed94
4 changed files with 18 additions and 18 deletions

View File

@ -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. * Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -70,7 +70,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)nlist.c 8.4 (Berkeley) 4/2/94"; static char sccsid[] = "@(#)nlist.c 8.4 (Berkeley) 4/2/94";
#else #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
#endif /* not lint */ #endif /* not lint */
@ -111,7 +111,7 @@ int fscale; /* kernel _fscale variable */
int maxslp; /* kernel _maxslp variable */ int maxslp; /* kernel _maxslp variable */
int uspace; /* kernel USPACE value */ 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) kvm_read(kd, psnl[x].n_value, (char *)&v, sizeof v) != sizeof(v)
int int

View File

@ -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. * Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -70,7 +70,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94"; static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
#else #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
#endif /* not lint */ #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 void
vsize(void *arg, VARENT *ve, int mode) vsize(void *arg, VARENT *ve, int mode)
@ -1212,7 +1212,7 @@ printval(bp, v, mode)
{ {
sigset_t *s = (sigset_t *)(void *)bp; sigset_t *s = (sigset_t *)(void *)bp;
size_t i; 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]; char buf[SIGSETSIZE * 8 + 1];
for (i = 0; i < SIGSETSIZE; i++) for (i = 0; i < SIGSETSIZE; i++)

View File

@ -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. * Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -75,7 +75,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993, 1994\n\
#if 0 #if 0
static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94"; static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94";
#else #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
#endif /* not lint */ #endif /* not lint */
@ -564,14 +564,14 @@ pscomp(const void *a, const void *b)
struct varent *ve; struct varent *ve;
sigset_t *sa, *sb; sigset_t *sa, *sb;
#define V_SIZE(k) (k->p_vm_dsize + k->p_vm_ssize + k->p_vm_tsize) #define V_SIZE(k) (k->p_vm_dsize + k->p_vm_ssize + k->p_vm_tsize)
#define RDIFF_N(t, n) \ #define RDIFF_N(t, n) \
if (((t *)((char *)ka + v->off))[n] > ((t *)((char *)kb + v->off))[n]) \ if (((t *)((char *)ka + v->off))[n] > ((t *)((char *)kb + v->off))[n]) \
return 1; \ return 1; \
if (((t *)((char *)ka + v->off))[n] < ((t *)((char *)kb + v->off))[n]) \ if (((t *)((char *)ka + v->off))[n] < ((t *)((char *)kb + v->off))[n]) \
return -1; 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) { for (ve = sorthead; ve != NULL; ve = ve->next) {
v = ve->var; v = ve->var;

View File

@ -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 * Copyright (c) 1990, 1993
@ -33,8 +33,8 @@
#define UNLIMITED 0 /* unlimited terminal width */ #define UNLIMITED 0 /* unlimited terminal width */
#define PRINTMODE 0 /* print values */ #define PRINTMODE 0 /* print values */
#define WIDTHMODE 1 /* determine width of column */ #define WIDTHMODE 1 /* determine width of column */
enum type { enum type {
UNSPECIFIED, UNSPECIFIED,
@ -55,8 +55,8 @@ typedef struct var {
#define COMM 0x01 /* needs exec arguments and environment (XXX) */ #define COMM 0x01 /* needs exec arguments and environment (XXX) */
#define LJUST 0x02 /* left adjust on output (trailing blanks) */ #define LJUST 0x02 /* left adjust on output (trailing blanks) */
#define INF127 0x04 /* 127 = infinity: if > 127, print 127. */ #define INF127 0x04 /* 127 = infinity: if > 127, print 127. */
#define LWP 0x08 /* dispatch to kinfo_lwp routine */ #define LWP 0x08 /* dispatch to kinfo_lwp routine */
#define UAREA 0x10 /* need to check p_uvalid */ #define UAREA 0x10 /* need to check p_uvalid */
#define ALIAS 0x20 /* entry is alias for 'header' */ #define ALIAS 0x20 /* entry is alias for 'header' */
u_int flag; u_int flag;
/* output routine */ /* output routine */
@ -79,7 +79,7 @@ typedef struct var {
double longestnd; /* longest negative double */ double longestnd; /* longest negative double */
} VAR; } VAR;
#define OUTPUT(vent, ki, kl, mode) do { \ #define OUTPUT(vent, ki, kl, mode) do { \
if ((vent)->var->flag & LWP) \ if ((vent)->var->flag & LWP) \
((vent)->var->oproc)((void *)(kl), (vent), (mode)); \ ((vent)->var->oproc)((void *)(kl), (vent), (mode)); \
else \ else \