version 1.17, 1998/12/19 06:34:22 |
version 1.18, 1999/06/16 10:18:30 |
|
|
#include <utmp.h> |
#include <utmp.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
#if defined(i386) |
#if defined(__i386__) |
#define _KERNEL |
#define _KERNEL |
#include <machine/psl.h> |
#include <machine/psl.h> |
#undef _KERNEL |
#undef _KERNEL |
|
|
{ "_intrcnt" }, |
{ "_intrcnt" }, |
#define X_EINTRCNT 7 |
#define X_EINTRCNT 7 |
{ "_eintrcnt" }, |
{ "_eintrcnt" }, |
#if defined(i386) |
#if defined(__i386__) |
#define X_INTRHAND 8 |
#define X_INTRHAND 8 |
{ "_intrhand" }, |
{ "_intrhand" }, |
#endif |
#endif |
|
|
#undef allocate |
#undef allocate |
} |
} |
if (nintr == 0) { |
if (nintr == 0) { |
#if defined(i386) |
#if defined(__i386__) |
struct intrhand *intrhand[16], *ihp, ih; |
struct intrhand *intrhand[16], *ihp, ih; |
char iname[16]; |
char iname[16]; |
int namelen, n; |
int namelen, n; |
|
|
int mib[2]; |
int mib[2]; |
size_t size; |
size_t size; |
extern int errno; |
extern int errno; |
#if defined(i386) |
#if defined(__i386__) |
struct intrhand *intrhand[16], *ihp, ih; |
struct intrhand *intrhand[16], *ihp, ih; |
int i, n; |
int i, n; |
#endif |
#endif |
|
|
NREAD(X_CPTIME, s->time, sizeof s->time); |
NREAD(X_CPTIME, s->time, sizeof s->time); |
NREAD(X_CNT, &s->Cnt, sizeof s->Cnt); |
NREAD(X_CNT, &s->Cnt, sizeof s->Cnt); |
NREAD(X_NCHSTATS, &s->nchstats, sizeof s->nchstats); |
NREAD(X_NCHSTATS, &s->nchstats, sizeof s->nchstats); |
#if defined(i386) |
#if defined(__i386__) |
NREAD(X_INTRHAND, intrhand, sizeof(intrhand)); |
NREAD(X_INTRHAND, intrhand, sizeof(intrhand)); |
for (i = 0, n = 0; i < 16; i++) { |
for (i = 0, n = 0; i < 16; i++) { |
ihp = intrhand[i]; |
ihp = intrhand[i]; |