add multiple inclusion protection
This commit is contained in:
parent
d59edbdc1c
commit
6bd4a3a75f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: acct.h,v 1.16 1995/03/26 20:23:52 jtc Exp $ */
|
||||
/* $NetBSD: acct.h,v 1.17 1997/01/22 07:09:04 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993, 1994
|
||||
|
@ -40,6 +40,9 @@
|
|||
* @(#)acct.h 8.3 (Berkeley) 7/10/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_ACCT_H_
|
||||
#define _SYS_ACCT_H_
|
||||
|
||||
/*
|
||||
* Accounting structures; these use a comp_t type which is a 3 bits base 8
|
||||
* exponent, 13 bit fraction ``floating point'' number. Units are 1/AHZ
|
||||
|
@ -78,3 +81,5 @@ struct vnode *acctp;
|
|||
|
||||
int acct_process __P((struct proc *p));
|
||||
#endif
|
||||
|
||||
#endif /* !_SYS_ACCT_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: audioio.h,v 1.6 1996/04/09 20:55:22 cgd Exp $ */
|
||||
/* $NetBSD: audioio.h,v 1.7 1997/01/22 07:09:05 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991-1993 Regents of the University of California.
|
||||
|
@ -34,8 +34,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef _AUDIOIO_H_
|
||||
#define _AUDIOIO_H_
|
||||
#ifndef _SYS_AUDIOIO_H_
|
||||
#define _SYS_AUDIOIO_H_
|
||||
|
||||
/*
|
||||
* Audio device
|
||||
|
@ -252,4 +252,4 @@ typedef struct mixer_ctrl {
|
|||
#define AudioCMonitor "Monitor"
|
||||
#define AudioCEqualization "Equalization"
|
||||
|
||||
#endif /* _AUDIOIO_H_ */
|
||||
#endif /* !_SYS_AUDIOIO_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: callout.h,v 1.10 1995/03/26 20:23:56 jtc Exp $ */
|
||||
/* $NetBSD: callout.h,v 1.11 1997/01/22 07:09:06 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -39,6 +39,8 @@
|
|||
*
|
||||
* @(#)callout.h 8.2 (Berkeley) 1/21/94
|
||||
*/
|
||||
#ifndef _SYS_CALLOUT_H_
|
||||
#define _SYS_CALLOUT_H_
|
||||
|
||||
struct callout {
|
||||
struct callout *c_next; /* next callout in queue */
|
||||
|
@ -51,3 +53,5 @@ struct callout {
|
|||
struct callout *callfree, *callout, calltodo;
|
||||
int ncallout;
|
||||
#endif
|
||||
|
||||
#endif /* !_SYS_CALLOUT_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ */
|
||||
/* $NetBSD: cdefs.h,v 1.17 1997/01/22 07:09:07 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -38,8 +38,8 @@
|
|||
* @(#)cdefs.h 8.7 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#ifndef _CDEFS_H_
|
||||
#define _CDEFS_H_
|
||||
#ifndef _SYS_CDEFS_H_
|
||||
#define _SYS_CDEFS_H_
|
||||
|
||||
#include <machine/cdefs.h>
|
||||
|
||||
|
@ -129,4 +129,4 @@
|
|||
#define __pure
|
||||
#endif
|
||||
|
||||
#endif /* !_CDEFS_H_ */
|
||||
#endif /* !_SYS_CDEFS_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: clist.h,v 1.7 1995/03/26 20:23:57 jtc Exp $ */
|
||||
/* $NetBSD: clist.h,v 1.8 1997/01/22 07:09:07 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)clist.h 8.1 (Berkeley) 6/4/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_CLIST_H_
|
||||
#define _SYS_CLIST_H_
|
||||
|
||||
struct cblock {
|
||||
struct cblock *c_next; /* next cblock in queue */
|
||||
char c_quote[CBQSIZE]; /* quoted characters */
|
||||
|
@ -45,3 +48,5 @@ struct cblock {
|
|||
extern struct cblock *cfree, *cfreelist;
|
||||
extern int cfreecount, nclist;
|
||||
#endif
|
||||
|
||||
#endif /* !_SYS_CLIST_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: conf.h,v 1.44 1997/01/07 11:35:24 mrg Exp $ */
|
||||
/* $NetBSD: conf.h,v 1.45 1997/01/22 07:09:08 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -40,6 +40,9 @@
|
|||
* @(#)conf.h 8.3 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_CONF_H_
|
||||
#define _SYS_CONF_H_
|
||||
|
||||
/*
|
||||
* Definitions of device driver entry switches
|
||||
*/
|
||||
|
@ -140,7 +143,7 @@ extern struct bdevsw bdevsw[];
|
|||
(dev_type_strategy((*))) enodev, (dev_type_ioctl((*))) enodev, \
|
||||
(dev_type_dump((*))) enodev, 0 }
|
||||
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
/*
|
||||
* Character device switch table
|
||||
|
@ -320,7 +323,7 @@ extern struct cdevsw cdevsw[];
|
|||
extern char devopn[], devio[], devwait[], devin[], devout[];
|
||||
extern char devioc[], devcls[];
|
||||
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
/*
|
||||
* Line discipline switch table
|
||||
|
@ -424,4 +427,6 @@ cdev_decl(ipl);
|
|||
#endif
|
||||
cdev_decl(svr4_net);
|
||||
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_CONF_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: core.h,v 1.4 1994/10/29 08:20:14 cgd Exp $ */
|
||||
/* $NetBSD: core.h,v 1.5 1997/01/22 07:09:09 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Paul Kranenburg
|
||||
|
@ -30,6 +30,9 @@
|
|||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef _SYS_CORE_H_
|
||||
#define _SYS_CORE_H_
|
||||
|
||||
#define COREMAGIC 0507
|
||||
#define CORESEGMAGIC 0510
|
||||
|
||||
|
@ -85,3 +88,5 @@ struct coreseg {
|
|||
u_long c_addr; /* Virtual address of segment */
|
||||
u_long c_size; /* Size of this segment */
|
||||
};
|
||||
|
||||
#endif /* !_SYS_CORE_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dirent.h,v 1.12 1996/04/09 20:55:25 cgd Exp $ */
|
||||
/* $NetBSD: dirent.h,v 1.13 1997/01/22 07:09:10 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)dirent.h 8.3 (Berkeley) 8/10/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_DIRENT_H_
|
||||
#define _SYS_DIRENT_H_
|
||||
|
||||
/*
|
||||
* The dirent structure defines the format of directory entries returned by
|
||||
* the getdirentries(2) system call.
|
||||
|
@ -78,7 +81,7 @@ struct dirent {
|
|||
#define IFTODT(mode) (((mode) & 0170000) >> 12)
|
||||
#define DTTOIF(dirtype) ((dirtype) << 12)
|
||||
|
||||
#if defined(_KERNEL)
|
||||
#ifdef _KERNEL
|
||||
/*
|
||||
* The DIRENT_SIZE macro gives the minimum record length which will hold
|
||||
* the directory entry. This requires the amount of space in struct dirent
|
||||
|
@ -89,3 +92,5 @@ struct dirent {
|
|||
((sizeof (struct dirent) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
|
||||
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
#endif /* !_SYS_DIRENT_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: disklabel.h,v 1.41 1996/05/10 23:07:37 mark Exp $ */
|
||||
/* $NetBSD: disklabel.h,v 1.42 1997/01/22 07:09:11 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1988, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)disklabel.h 8.2 (Berkeley) 7/10/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_DISKLABEL_H_
|
||||
#define _SYS_DISKLABEL_H_
|
||||
|
||||
/*
|
||||
* Disk description table, see disktab(5)
|
||||
*/
|
||||
|
@ -335,3 +338,5 @@ struct disklabel *getdiskbyname __P((const char *));
|
|||
__END_DECLS
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* !_SYS_DISKLABEL_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: domain.h,v 1.10 1996/02/09 18:25:07 christos Exp $ */
|
||||
/* $NetBSD: domain.h,v 1.11 1997/01/22 07:09:11 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)domain.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_DOMAIN_H_
|
||||
#define _SYS_DOMAIN_H_
|
||||
|
||||
/*
|
||||
* Structure per communications domain.
|
||||
*/
|
||||
|
@ -65,3 +68,5 @@ struct domain {
|
|||
struct domain *domains;
|
||||
void domaininit __P((void));
|
||||
#endif
|
||||
|
||||
#endif /* !_SYS_DOMAIN_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: errno.h,v 1.12 1996/11/07 06:04:05 jtc Exp $ */
|
||||
/* $NetBSD: errno.h,v 1.13 1997/01/22 07:09:12 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -40,6 +40,9 @@
|
|||
* @(#)errno.h 8.5 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_ERRNO_H_
|
||||
#define _SYS_ERRNO_H_
|
||||
|
||||
#ifndef _KERNEL
|
||||
|
||||
#if !defined(_REENTRANT)
|
||||
|
@ -174,3 +177,5 @@ extern const char *const sys_errlist[];
|
|||
#define ERESTART -1 /* restart syscall */
|
||||
#define EJUSTRETURN -2 /* don't modify regs, just return */
|
||||
#endif
|
||||
|
||||
#endif /* !_SYS_ERRNO_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: exec.h,v 1.61 1996/12/22 10:19:16 cgd Exp $ */
|
||||
/* $NetBSD: exec.h,v 1.62 1997/01/22 07:09:13 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 Christopher G. Demetriou
|
||||
|
@ -42,6 +42,9 @@
|
|||
* @(#)exec.h 8.3 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_EXEC_H_
|
||||
#define _SYS_EXEC_H_
|
||||
|
||||
/*
|
||||
* The following structure is found at the top of the user stack of each
|
||||
* user process. The ps program uses it to locate argv and environment
|
||||
|
@ -209,3 +212,5 @@ extern int exec_maxhdrsz;
|
|||
#endif /* _KERNEL */
|
||||
|
||||
#include <sys/exec_aout.h>
|
||||
|
||||
#endif /* !_SYS_EXEC_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: exec_aout.h,v 1.17 1996/10/08 13:10:31 cgd Exp $ */
|
||||
/* $NetBSD: exec_aout.h,v 1.18 1997/01/22 07:09:14 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993, 1994 Christopher G. Demetriou
|
||||
|
@ -30,6 +30,9 @@
|
|||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef _SYS_EXEC_AOUT_H_
|
||||
#define _SYS_EXEC_AOUT_H_
|
||||
|
||||
#ifndef N_PAGSIZ
|
||||
#define N_PAGSIZ(ex) (__LDPGSZ)
|
||||
#endif
|
||||
|
@ -193,3 +196,5 @@ int exec_aout_prep_oldomagic __P((struct proc *, struct exec_package *));
|
|||
int cpu_exec_aout_makecmds __P((struct proc *, struct exec_package *));
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_EXEC_AOUT_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: exec_script.h,v 1.6 1995/03/26 20:24:11 jtc Exp $ */
|
||||
/* $NetBSD: exec_script.h,v 1.7 1997/01/22 07:09:15 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christopher G. Demetriou
|
||||
|
@ -30,6 +30,9 @@
|
|||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef _SYS_EXEC_SCRIPT_H_
|
||||
#define _SYS_EXEC_SCRIPT_H_
|
||||
|
||||
#define EXEC_SCRIPT_MAGIC "#!"
|
||||
#define EXEC_SCRIPT_MAGICLEN 2
|
||||
|
||||
|
@ -39,3 +42,5 @@
|
|||
int exec_script_makecmds __P((struct proc *, struct exec_package *));
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_EXEC_SCRIPT_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: filedesc.h,v 1.14 1996/04/09 20:55:28 cgd Exp $ */
|
||||
/* $NetBSD: filedesc.h,v 1.15 1997/01/22 07:09:15 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)filedesc.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_FILEDESC_H_
|
||||
#define _SYS_FILEDESC_H_
|
||||
|
||||
/*
|
||||
* This structure is used for the management of descriptors. It may be
|
||||
* shared by multiple processes.
|
||||
|
@ -106,4 +109,6 @@ void fdcloseexec __P((struct proc *));
|
|||
|
||||
int closef __P((struct file *, struct proc *));
|
||||
int getsock __P((struct filedesc *, int, struct file **));
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_FILEDESC_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lockf.h,v 1.5 1994/06/29 06:44:33 cgd Exp $ */
|
||||
/* $NetBSD: lockf.h,v 1.6 1997/01/22 07:09:16 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -38,6 +38,9 @@
|
|||
* @(#)lockf.h 8.1 (Berkeley) 6/11/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_LOCKF_H_
|
||||
#define _SYS_LOCKF_H_
|
||||
|
||||
/*
|
||||
* The lockf structure is a kernel structure which contains the information
|
||||
* associated with a byte range lock. The lockf structures are linked into
|
||||
|
@ -80,4 +83,6 @@ __BEGIN_DECLS
|
|||
void lf_print __P((char *, struct lockf *));
|
||||
void lf_printlist __P((char *, struct lockf *));
|
||||
__END_DECLS
|
||||
#endif
|
||||
#endif /* LOCKF_DEBUG */
|
||||
|
||||
#endif /* !_SYS_LOCKF_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: map.h,v 1.10 1995/09/15 05:32:45 jtc Exp $ */
|
||||
/* $NetBSD: map.h,v 1.11 1997/01/22 07:09:17 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -40,6 +40,9 @@
|
|||
* @(#)map.h 8.3 (Berkeley) 1/26/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_MAP_H_
|
||||
#define _SYS_MAP_H_
|
||||
|
||||
/*
|
||||
* Resource allocation maps.
|
||||
*
|
||||
|
@ -80,4 +83,6 @@ int nswapmap;
|
|||
long rmalloc __P((struct map *, long));
|
||||
void rmfree __P((struct map *, long, long));
|
||||
void rminit __P((struct map *, long, long, char *, int));
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_MAP_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mbuf.h,v 1.21 1996/06/10 23:55:39 cgd Exp $ */
|
||||
/* $NetBSD: mbuf.h,v 1.22 1997/01/22 07:09:17 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)mbuf.h 8.3 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_MBUF_H_
|
||||
#define _SYS_MBUF_H_
|
||||
|
||||
#ifndef M_WAITOK
|
||||
#include <sys/malloc.h>
|
||||
#endif
|
||||
|
@ -396,5 +399,7 @@ int mbtypes[] = { /* XXX */
|
|||
M_MBUF, /* MT_CONTROL 6 extra-data protocol message */
|
||||
M_MBUF, /* MT_OOBDATA 7 expedited data */
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
#endif /* MBTYPES */
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_MBUF_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mman.h,v 1.11 1995/03/26 20:24:23 jtc Exp $ */
|
||||
/* $NetBSD: mman.h,v 1.12 1997/01/22 07:09:18 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)mman.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_MMAN_H_
|
||||
#define _SYS_MMAN_H_
|
||||
|
||||
/*
|
||||
* Protections are chosen from these bits, or-ed together
|
||||
*/
|
||||
|
@ -92,3 +95,5 @@ int madvise __P((caddr_t, size_t, int));
|
|||
__END_DECLS
|
||||
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
#endif /* !_SYS_MMAN_H_ */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
/* $NetBSD: mount.h,v 1.50 1996/12/22 10:10:38 cgd Exp $ */
|
||||
/* $NetBSD: mount.h,v 1.51 1997/01/22 07:09:19 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1991, 1993
|
||||
|
@ -36,6 +35,9 @@
|
|||
* @(#)mount.h 8.15 (Berkeley) 7/14/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_MOUNT_H_
|
||||
#define _SYS_MOUNT_H_
|
||||
|
||||
#ifndef _KERNEL
|
||||
#include <sys/ucred.h>
|
||||
#endif
|
||||
|
@ -436,3 +438,5 @@ int unmount __P((const char *, int));
|
|||
__END_DECLS
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_MOUNT_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: msgbuf.h,v 1.8 1995/03/26 20:24:27 jtc Exp $ */
|
||||
/* $NetBSD: msgbuf.h,v 1.9 1997/01/22 07:09:20 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1981, 1984, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)msgbuf.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_MSGBUF_H_
|
||||
#define _SYS_MSGBUF_H_
|
||||
|
||||
#define MSG_BSIZE (4096 - 3 * sizeof(long))
|
||||
struct msgbuf {
|
||||
#define MSG_MAGIC 0x063061
|
||||
|
@ -46,3 +49,5 @@ struct msgbuf {
|
|||
#ifdef _KERNEL
|
||||
struct msgbuf *msgbufp;
|
||||
#endif
|
||||
|
||||
#endif /* !_SYS_MSGBUF_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mtio.h,v 1.12 1995/03/29 22:10:07 briggs Exp $ */
|
||||
/* $NetBSD: mtio.h,v 1.13 1997/01/22 07:09:21 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)mtio.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_MTIO_H_
|
||||
#define _SYS_MTIO_H_
|
||||
|
||||
/*
|
||||
* Structures and definitions for mag tape io control commands
|
||||
*/
|
||||
|
@ -133,4 +136,6 @@ struct mtget {
|
|||
#define T_1600BPI 010 /* select 1600 bpi */
|
||||
#define T_6250BPI 020 /* select 6250 bpi */
|
||||
#define T_BADBPI 030 /* undefined selection */
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_MTIO_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: param.h,v 1.31 1996/12/20 20:18:53 sommerfe Exp $ */
|
||||
/* $NetBSD: param.h,v 1.32 1997/01/22 07:09:21 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -40,6 +40,9 @@
|
|||
* @(#)param.h 8.2 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_PARAM_H_
|
||||
#define _SYS_PARAM_H_
|
||||
|
||||
#define BSD 199306 /* System version (year & month). */
|
||||
#define BSD4_3 1
|
||||
#define BSD4_4 1
|
||||
|
@ -221,3 +224,5 @@
|
|||
*/
|
||||
#define FSHIFT 11 /* bits to right of fixed binary point */
|
||||
#define FSCALE (1<<FSHIFT)
|
||||
|
||||
#endif /* !_SYS_PARAM_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: protosw.h,v 1.12 1996/05/24 11:58:54 mycroft Exp $ */
|
||||
/* $NetBSD: protosw.h,v 1.13 1997/01/22 07:09:22 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)protosw.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_PROTOSW_H_
|
||||
#define _SYS_PROTOSW_H_
|
||||
|
||||
/*
|
||||
* Protocol switch table.
|
||||
*
|
||||
|
@ -235,4 +238,6 @@ struct sockaddr;
|
|||
struct protosw *pffindproto __P((int, int, int));
|
||||
struct protosw *pffindtype __P((int, int));
|
||||
void pfctlinput __P((int, struct sockaddr *));
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_PROTOSW_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: reboot.h,v 1.11 1996/08/10 00:23:14 mrg Exp $ */
|
||||
/* $NetBSD: reboot.h,v 1.12 1997/01/22 07:09:23 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988, 1993, 1994
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)reboot.h 8.2 (Berkeley) 7/10/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_REBOOT_H_
|
||||
#define _SYS_REBOOT_H_
|
||||
|
||||
/*
|
||||
* Arguments to reboot system call. These are passed to the boot program,
|
||||
* and then on to init.
|
||||
|
@ -100,3 +103,4 @@ __END_DECLS
|
|||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_REBOOT_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: socketvar.h,v 1.23 1997/01/11 05:17:18 thorpej Exp $ */
|
||||
/* $NetBSD: socketvar.h,v 1.24 1997/01/22 07:09:24 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)socketvar.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_SOCKETVAR_H_
|
||||
#define _SYS_SOCKETVAR_H_
|
||||
|
||||
#include <sys/select.h> /* for struct selinfo */
|
||||
|
||||
/*
|
||||
|
@ -277,9 +280,5 @@ int recvit __P((struct proc *, int, struct msghdr *, caddr_t,
|
|||
register_t *));
|
||||
|
||||
#endif /* _KERNEL */
|
||||
/*###282 [cc] macro `__P' used with too many (33) args%%%*/
|
||||
/*###283 [cc] macro `__P' used with too many (34) args%%%*/
|
||||
/*###284 [cc] macro `__P' used with too many (10) args%%%*/
|
||||
/*###285 [cc] macro `__P' used with too many (15) args%%%*/
|
||||
/*###286 [cc] macro `__P' used with too many (22) args%%%*/
|
||||
/*###289 [cc] empty #if expression%%%*/
|
||||
|
||||
#endif /* !_SYS_SOCKETVAR_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: syslimits.h,v 1.12 1995/10/05 05:26:19 thorpej Exp $ */
|
||||
/* $NetBSD: syslimits.h,v 1.13 1997/01/22 07:09:25 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)syslimits.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_SYSLIMITS_H_
|
||||
#define _SYS_SYSLIMITS_H_
|
||||
|
||||
#if !defined(_ANSI_SOURCE)
|
||||
#define ARG_MAX (256 * 1024) /* max bytes for an exec function */
|
||||
#define CHILD_MAX 80 /* max simultaneous processes */
|
||||
|
@ -55,4 +58,6 @@
|
|||
#define EXPR_NEST_MAX 32 /* max expressions nested in expr(1) */
|
||||
#define LINE_MAX 2048 /* max bytes in an input line */
|
||||
#define RE_DUP_MAX 255 /* max RE's in interval notation */
|
||||
#endif
|
||||
#endif /* !_ANSI_SOURCE */
|
||||
|
||||
#endif /* !_SYS_SYSLIMITS_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: syslog.h,v 1.14 1996/04/03 20:46:44 christos Exp $ */
|
||||
/* $NetBSD: syslog.h,v 1.15 1997/01/22 07:09:25 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)syslog.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_SYSLOG_H_
|
||||
#define _SYS_SYSLOG_H_
|
||||
|
||||
#define _PATH_LOG "/dev/log"
|
||||
|
||||
/*
|
||||
|
@ -197,3 +200,5 @@ void addlog __P((const char *, ...))
|
|||
void logwakeup __P((void));
|
||||
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
#endif /* !_SYS_SYSLOG_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tprintf.h,v 1.10 1996/04/09 20:55:43 cgd Exp $ */
|
||||
/* $NetBSD: tprintf.h,v 1.11 1997/01/22 07:09:26 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -35,6 +35,7 @@
|
|||
* @(#)tprintf.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifdef _KERNEL
|
||||
typedef struct session *tpr_t;
|
||||
|
||||
tpr_t tprintf_open __P((struct proc *));
|
||||
|
@ -42,3 +43,4 @@ void tprintf_close __P((tpr_t));
|
|||
|
||||
void tprintf __P((tpr_t, const char *fmt, ...))
|
||||
__kprintf_attribute__((__format__(__kprintf__,2,3)));
|
||||
#endif /* _KERNEL */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: trace.h,v 1.7 1995/03/26 20:24:56 jtc Exp $ */
|
||||
/* $NetBSD: trace.h,v 1.8 1997/01/22 07:09:27 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)trace.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_TRACE_H_
|
||||
#define _SYS_TRACE_H_
|
||||
|
||||
/*
|
||||
* File system buffer tracing points; all trace <pack(dev, size), bn>
|
||||
*/
|
||||
|
@ -114,5 +117,7 @@ char traceflags[TR_NFLAGS];
|
|||
}
|
||||
#else
|
||||
#define trace(a,b,c)
|
||||
#endif
|
||||
#endif
|
||||
#endif /* TRACE */
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_TRACE_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tty.h,v 1.34 1996/10/25 21:22:10 cgd Exp $ */
|
||||
/* $NetBSD: tty.h,v 1.35 1997/01/22 07:09:28 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -40,6 +40,9 @@
|
|||
* @(#)tty.h 8.6 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_TTY_H_
|
||||
#define _SYS_TTY_H_
|
||||
|
||||
#include <sys/termios.h>
|
||||
#include <sys/select.h> /* For struct selinfo. */
|
||||
#include <sys/queue.h>
|
||||
|
@ -269,4 +272,6 @@ void clfree __P((struct clist *));
|
|||
int ttcompat __P((struct tty *, u_long, caddr_t, int, struct proc *));
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_TTY_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: un.h,v 1.12 1996/05/28 23:23:04 pk Exp $ */
|
||||
/* $NetBSD: un.h,v 1.13 1997/01/22 07:09:28 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)un.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_UN_H_
|
||||
#define _SYS_UN_H_
|
||||
|
||||
/*
|
||||
* Definitions for UNIX IPC domain.
|
||||
*/
|
||||
|
@ -72,3 +75,5 @@ void unp_setpeeraddr __P((struct unpcb *, struct mbuf *));
|
|||
#define SUN_LEN(su) \
|
||||
(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_UN_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: unpcb.h,v 1.7 1996/05/23 16:04:24 mycroft Exp $ */
|
||||
/* $NetBSD: unpcb.h,v 1.8 1997/01/22 07:09:29 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)unpcb.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_UNPCB_H_
|
||||
#define _SYS_UNPCB_H_
|
||||
|
||||
/*
|
||||
* Protocol control block for an active
|
||||
* instance of a UNIX internal protocol.
|
||||
|
@ -73,3 +76,5 @@ struct unpcb {
|
|||
};
|
||||
|
||||
#define sotounpcb(so) ((struct unpcb *)((so)->so_pcb))
|
||||
|
||||
#endif /* !_SYS_UNPCB_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: user.h,v 1.10 1996/04/09 20:55:49 cgd Exp $ */
|
||||
/* $NetBSD: user.h,v 1.11 1997/01/22 07:09:30 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)user.h 8.2 (Berkeley) 9/23/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_USER_H_
|
||||
#define _SYS_USER_H_
|
||||
|
||||
#include <machine/pcb.h>
|
||||
#ifndef _KERNEL
|
||||
/* stuff that *used* to be included by user.h, or is now needed */
|
||||
|
@ -91,3 +94,5 @@ struct user {
|
|||
#define u_sig U_sig
|
||||
#define u_code U_code
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_USER_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vadvise.h,v 1.6 1994/06/29 06:46:12 cgd Exp $ */
|
||||
/* $NetBSD: vadvise.h,v 1.7 1997/01/22 07:09:31 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)vadvise.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_VADVISE_H_
|
||||
#define _SYS_VADVISE_H_
|
||||
|
||||
/*
|
||||
* Parameters to vadvise() to tell system of particular paging
|
||||
* behaviour:
|
||||
|
@ -49,3 +52,5 @@
|
|||
#define VA_ANOM 1
|
||||
#define VA_SEQL 2
|
||||
#define VA_FLUSH 3
|
||||
|
||||
#endif /* !_SYS_VADVISE_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vcmd.h,v 1.6 1994/06/29 06:46:14 cgd Exp $ */
|
||||
/* $NetBSD: vcmd.h,v 1.7 1997/01/22 07:09:32 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)vcmd.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_VCMD_H_
|
||||
#define _SYS_VCMD_H_
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#define VPRINT 0100
|
||||
|
@ -43,3 +46,5 @@
|
|||
|
||||
#define VGETSTATE _IOR('v', 0, int)
|
||||
#define VSETSTATE _IOW('v', 1, int)
|
||||
|
||||
#endif /* !_SYS_VCMD_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vlimit.h,v 1.6 1994/06/29 06:46:15 cgd Exp $ */
|
||||
/* $NetBSD: vlimit.h,v 1.7 1997/01/22 07:09:32 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)vlimit.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_VLIMIT_H_
|
||||
#define _SYS_VLIMIT_H_
|
||||
|
||||
/*
|
||||
* Limits for u.u_limit[i], per process, inherited.
|
||||
*/
|
||||
|
@ -49,3 +52,5 @@
|
|||
#define NLIMITS 6
|
||||
|
||||
#define INFINITY 0x7fffffff
|
||||
|
||||
#endif /* !_SYS_VLIMIT_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vmmeter.h,v 1.9 1995/03/26 20:25:04 jtc Exp $ */
|
||||
/* $NetBSD: vmmeter.h,v 1.10 1997/01/22 07:09:33 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)vmmeter.h 8.2 (Berkeley) 7/10/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_VMMETER_H_
|
||||
#define _SYS_VMMETER_H_
|
||||
|
||||
/*
|
||||
* System wide statistics counters.
|
||||
*/
|
||||
|
@ -146,4 +149,6 @@ int rres;
|
|||
|
||||
u_int rectime; /* accumulator for reclaim times */
|
||||
u_int pgintime; /* accumulator for page in times */
|
||||
#endif
|
||||
#endif /* PGINPROF */
|
||||
|
||||
#endif /* !_SYS_VMMETER_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vnode.h,v 1.39 1996/09/07 12:41:37 mycroft Exp $ */
|
||||
/* $NetBSD: vnode.h,v 1.40 1997/01/22 07:09:34 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)vnode.h 8.11 (Berkeley) 11/21/94
|
||||
*/
|
||||
|
||||
#ifndef _SYS_VNODE_H_
|
||||
#define _SYS_VNODE_H_
|
||||
|
||||
#include <sys/queue.h>
|
||||
|
||||
/*
|
||||
|
@ -402,3 +405,5 @@ void vrele __P((struct vnode *vp));
|
|||
int vaccess __P((mode_t file_mode, uid_t uid, gid_t gid,
|
||||
mode_t acc_mode, struct ucred *cred));
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_VNODE_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vsio.h,v 1.7 1996/04/09 20:55:50 cgd Exp $ */
|
||||
/* $NetBSD: vsio.h,v 1.8 1997/01/22 07:09:35 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1987, 1993
|
||||
|
@ -35,6 +35,9 @@
|
|||
* @(#)vsio.h 8.1 (Berkeley) 6/2/93
|
||||
*/
|
||||
|
||||
#ifndef _SYS_VSIO_H_
|
||||
#define _SYS_VSIO_H_
|
||||
|
||||
/****************************************************************************
|
||||
* *
|
||||
* Copyright (c) 1983, 1984 by *
|
||||
|
@ -153,3 +156,5 @@ typedef struct _vsIoAddr {
|
|||
vsBox mbox; /* atomic read/write */
|
||||
} vsIoAddr;
|
||||
typedef vsIoAddr *vsIoAddrAddr;
|
||||
|
||||
#endif /* !_SYS_VSIO_H_ */
|
||||
|
|
Loading…
Reference in New Issue