clean up types usage.

This commit is contained in:
cgd 1994-10-29 08:20:12 +00:00
parent e6c493ce00
commit cdf24ccd37
6 changed files with 37 additions and 37 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: acct.h,v 1.10 1994/06/29 06:43:35 cgd Exp $ */
/* $NetBSD: acct.h,v 1.11 1994/10/29 08:20:12 cgd Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -45,7 +45,7 @@
* exponent, 13 bit fraction ``floating point'' number. Units are 1/AHZ
* seconds.
*/
typedef u_short comp_t;
typedef u_int16_t comp_t;
struct acct {
char ac_comm[10]; /* command name */
@ -55,17 +55,18 @@ struct acct {
time_t ac_btime; /* starting time */
uid_t ac_uid; /* user id */
gid_t ac_gid; /* group id */
short ac_mem; /* average memory usage */
int16_t ac_mem; /* average memory usage */
comp_t ac_io; /* count of IO blocks */
dev_t ac_tty; /* controlling tty */
#define AFORK 0x01 /* forked but not execed */
#define ASU 0x02 /* used super-user permissions */
#define ACOMPAT 0x04 /* used compatibility mode */
#define ACORE 0x08 /* dumped core */
#define AXSIG 0x10 /* killed by a signal */
char ac_flag; /* accounting flags */
int8_t ac_flag; /* accounting flags; see below. */
};
#define AFORK 0x01 /* forked but not execed */
#define ASU 0x02 /* used super-user permissions */
#define ACOMPAT 0x04 /* used compatibility mode */
#define ACORE 0x08 /* dumped core */
#define AXSIG 0x10 /* killed by a signal */
/*
* 1/AHZ is the granularity of the data encoded in the comp_t fields.
* This is not necessarily equal to hz.

View File

@ -1,4 +1,4 @@
/* $NetBSD: core.h,v 1.3 1994/06/29 06:43:48 cgd Exp $ */
/* $NetBSD: core.h,v 1.4 1994/10/29 08:20:14 cgd Exp $ */
/*
* Copyright (c) 1994 Paul Kranenburg
@ -67,12 +67,12 @@
*/
struct core {
u_long c_midmag; /* magic, id, flags */
u_short c_hdrsize; /* Size of this header (machdep algn) */
u_short c_seghdrsize; /* Size of a segment header */
u_long c_nseg; /* # of core segments */
u_int32_t c_midmag; /* magic, id, flags */
u_int16_t c_hdrsize; /* Size of this header (machdep algn) */
u_int16_t c_seghdrsize; /* Size of a segment header */
u_int32_t c_nseg; /* # of core segments */
char c_name[MAXCOMLEN+1]; /* Copy of p->p_comm */
u_long c_signo; /* Killing signal */
u_int32_t c_signo; /* Killing signal */
u_long c_ucode; /* Hmm ? */
u_long c_cpusize; /* Size of machine dependent segment */
u_long c_tsize; /* Size of traditional text segment */
@ -81,8 +81,7 @@ struct core {
};
struct coreseg {
u_long c_midmag; /* magic, id, flags */
u_int32_t c_midmag; /* magic, id, flags */
u_long c_addr; /* Virtual address of segment */
u_long c_size; /* Size of this segment */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: dkbad.h,v 1.7 1994/06/29 06:43:57 cgd Exp $ */
/* $NetBSD: dkbad.h,v 1.8 1994/10/29 08:20:15 cgd Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
@ -58,12 +58,12 @@
* replacement sectors.
*/
struct dkbad {
long bt_csn; /* cartridge serial number */
u_short bt_mbz; /* unused; should be 0 */
u_short bt_flag; /* -1 => alignment cartridge */
int32_t bt_csn; /* cartridge serial number */
u_int16_t bt_mbz; /* unused; should be 0 */
u_int16_t bt_flag; /* -1 => alignment cartridge */
struct bt_bad {
u_short bt_cyl; /* cylinder number of bad sector */
u_short bt_trksec; /* track and sector number */
u_int16_t bt_cyl; /* cylinder number of bad sector */
u_int16_t bt_trksec; /* track and sector number */
} bt_bad[126];
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: mbuf.h,v 1.11 1994/09/19 05:03:09 mycroft Exp $ */
/* $NetBSD: mbuf.h,v 1.12 1994/10/29 08:20:16 cgd Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
@ -61,31 +61,31 @@
* cltom(x) - convert cluster # to ptr to beginning of cluster
*/
#define mtod(m,t) ((t)((m)->m_data))
#define dtom(x) ((struct mbuf *)((int)(x) & ~(MSIZE-1)))
#define mtocl(x) (((u_int)(x) - (u_int)mbutl) >> MCLSHIFT)
#define cltom(x) ((caddr_t)((u_int)mbutl + ((u_int)(x) << MCLSHIFT)))
#define dtom(x) ((struct mbuf *)((long)(x) & ~(MSIZE-1)))
#define mtocl(x) (((u_long)(x) - (u_long)mbutl) >> MCLSHIFT)
#define cltom(x) ((caddr_t)((u_long)mbutl + ((u_long)(x) << MCLSHIFT)))
/* header at beginning of each mbuf: */
struct m_hdr {
struct mbuf *mh_next; /* next buffer in chain */
struct mbuf *mh_nextpkt; /* next chain in queue/record */
int mh_len; /* amount of data in this mbuf */
caddr_t mh_data; /* location of data */
short mh_type; /* type of data in this mbuf */
short mh_flags; /* flags; see below */
int32_t mh_len; /* amount of data in this mbuf */
int16_t mh_type; /* type of data in this mbuf */
int16_t mh_flags; /* flags; see below */
};
/* record/packet header in first mbuf of chain; valid if M_PKTHDR set */
struct pkthdr {
int len; /* total packet length */
int32_t len; /* total packet length */
struct ifnet *rcvif; /* rcv interface */
};
/* description of external storage mapped into mbuf, valid if M_EXT set */
struct m_ext {
caddr_t ext_buf; /* start of buffer */
void (*ext_free)(); /* free routine if not the usual */
u_int ext_size; /* size of buffer, for ext_free */
void (*ext_free)(); /* free routine if not the usual */
};
struct mbuf {

View File

@ -1,4 +1,4 @@
/* $NetBSD: mount.h,v 1.34 1994/09/22 02:06:10 mycroft Exp $ */
/* $NetBSD: mount.h,v 1.35 1994/10/29 08:20:18 cgd Exp $ */
/*
* Copyright (c) 1989, 1991, 1993
@ -40,7 +40,7 @@
#endif
#include <sys/queue.h>
typedef struct { long val[2]; } fsid_t; /* file system id type */
typedef struct { int32_t val[2]; } fsid_t; /* file system id type */
/*
* File identifier.

View File

@ -1,4 +1,4 @@
/* $NetBSD: resource.h,v 1.9 1994/06/29 06:45:04 cgd Exp $ */
/* $NetBSD: resource.h,v 1.10 1994/10/29 08:20:19 cgd Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -94,8 +94,8 @@ struct rusage {
#define RLIM_INFINITY (((u_quad_t)1 << 63) - 1)
struct orlimit {
long rlim_cur; /* current (soft) limit */
long rlim_max; /* maximum value for rlim_cur */
int32_t rlim_cur; /* current (soft) limit */
int32_t rlim_max; /* maximum value for rlim_cur */
};
struct rlimit {