+/* $OpenBSD: acct.h,v 1.2 1996/03/03 12:11:20 niklas Exp $ */
/* $NetBSD: acct.h,v 1.16 1995/03/26 20:23:52 jtc Exp $ */
/*-
+/* $OpenBSD: audioio.h,v 1.3 1996/03/03 12:11:22 niklas Exp $ */
/* $NetBSD: audioio.h,v 1.4 1996/02/17 02:28:56 jtk Exp $ */
/*
+/* $OpenBSD: callout.h,v 1.2 1996/03/03 12:11:22 niklas Exp $ */
/* $NetBSD: callout.h,v 1.10 1995/03/26 20:23:56 jtc Exp $ */
/*-
+/* $OpenBSD: cdefs.h,v 1.2 1996/03/03 12:11:23 niklas Exp $ */
/* $NetBSD: cdefs.h,v 1.15 1995/01/19 01:54:52 jtc Exp $ */
/*
+/* $OpenBSD: cdio.h,v 1.4 1996/03/03 12:11:24 niklas Exp $ */
/* $NetBSD: cdio.h,v 1.11 1996/02/19 18:29:04 scottr Exp $ */
#ifndef _SYS_CDIO_H_
+/* $OpenBSD: chio.h,v 1.3 1996/03/03 12:11:25 niklas Exp $ */
/* $NetBSD: chio.h,v 1.7 1996/02/19 18:29:06 scottr Exp $ */
/*
+/* $OpenBSD: clist.h,v 1.2 1996/03/03 12:11:26 niklas Exp $ */
/* $NetBSD: clist.h,v 1.7 1995/03/26 20:23:57 jtc Exp $ */
/*-
-/* $NetBSD: conf.h,v 1.28 1995/08/14 05:05:55 cgd Exp $ */
+/* $OpenBSD: conf.h,v 1.3 1996/03/03 12:11:27 niklas Exp $ */
+/* $NetBSD: conf.h,v 1.30 1996/02/13 21:08:50 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
#ifdef _KERNEL
extern struct swdevt swdevt[];
+
+int chrtoblk __P((dev_t));
+int iskmemdev __P((dev_t));
+int iszerodev __P((dev_t));
#endif
+/* $OpenBSD: core.h,v 1.2 1996/03/03 12:11:28 niklas Exp $ */
/* $NetBSD: core.h,v 1.4 1994/10/29 08:20:14 cgd Exp $ */
/*
+/* $OpenBSD: cpu.h,v 1.2 1996/03/03 12:11:29 niklas Exp $ */
+/* $NetBSD: cpu.h,v 1.3 1996/02/14 21:49:49 christos Exp $ */
+
+/*
+ * Copyright (c) 1996 Christos Zoulas. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Christos Zoulas.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifdef _KERNEL
+struct proc;
+struct vnode;
+struct code;
+struct ucred;
+struct core;
+struct buf;
+struct disklabel;
+struct device;
+struct disk;
+__BEGIN_DECLS
+
+void consinit __P((void));
+void boot __P((int));
+void pagemove __P((caddr_t, caddr_t, size_t));
+void delay __P((unsigned));
+int bounds_check_with_label __P((struct buf *, struct disklabel *, int));
+int dk_establish __P((struct disk *, struct device *));
+
+
+void cpu_exit __P((struct proc *));
+void cpu_startup __P((void));
+void cpu_initclocks __P((void));
+void cpu_switch __P((struct proc *));
+int cpu_coredump __P((struct proc *, struct vnode *, struct ucred *,
+ struct core *));
+__END_DECLS
+
+#endif /* _KERNEL */
/* $NetBSD: cpu.h,v 1.4 1996/02/16 17:25:46 gwr Exp $ */
/*
-/* $NetBSD: device.h,v 1.8 1994/11/04 06:40:17 mycroft Exp $ */
+/* $OpenBSD: device.h,v 1.2 1996/03/03 12:11:30 niklas Exp $ */
+/* $NetBSD: device.h,v 1.9 1996/02/09 18:25:04 christos Exp $ */
/*
* Copyright (c) 1992, 1993
int *cf_loc; /* locators (machine dependent) */
int cf_flags; /* flags from config */
short *cf_parents; /* potential parents */
- void (**cf_ivstubs)(); /* config-generated vectors, if any */
+ void (**cf_ivstubs) /* config-generated vectors, if any */
+ __P((void));
};
#define FSTATE_NOTFOUND 0 /* has not been found */
#define FSTATE_FOUND 1 /* has been found */
+/* $OpenBSD: dir.h,v 1.2 1996/03/03 12:11:31 niklas Exp $ */
/* $NetBSD: dir.h,v 1.8 1994/06/29 06:43:52 cgd Exp $ */
/*
+/* $OpenBSD: dirent.h,v 1.2 1996/03/03 12:11:32 niklas Exp $ */
/* $NetBSD: dirent.h,v 1.9 1994/12/13 15:58:20 mycroft Exp $ */
/*-
+/* $OpenBSD: disk.h,v 1.3 1996/03/03 12:11:33 niklas Exp $ */
/* $NetBSD: disk.h,v 1.9 1996/01/07 22:04:07 thorpej Exp $ */
/*
+/* $OpenBSD: disklabel.h,v 1.4 1996/03/03 12:11:33 niklas Exp $ */
/* $NetBSD: disklabel.h,v 1.38 1996/02/09 18:25:05 christos Exp $ */
/*
+/* $OpenBSD: dkbad.h,v 1.2 1996/03/03 12:11:35 niklas Exp $ */
/* $NetBSD: dkbad.h,v 1.10 1994/12/25 13:14:21 pk Exp $ */
/*-
+/* $OpenBSD: dkio.h,v 1.2 1996/03/03 12:11:35 niklas Exp $ */
/* $NetBSD: dkio.h,v 1.1 1996/01/30 18:21:48 thorpej Exp $ */
/*
+/* $OpenBSD: dkstat.h,v 1.3 1996/03/03 12:11:36 niklas Exp $ */
/* $NetBSD: dkstat.h,v 1.8 1995/12/28 19:16:31 thorpej Exp $ */
/*-
+/* $OpenBSD: dmap.h,v 1.2 1996/03/03 12:11:37 niklas Exp $ */
/* $NetBSD: dmap.h,v 1.7 1995/03/26 20:24:02 jtc Exp $ */
/*-
-/* $NetBSD: domain.h,v 1.8 1995/03/26 20:24:03 jtc Exp $ */
+/* $OpenBSD: domain.h,v 1.2 1996/03/03 12:11:38 niklas Exp $ */
+/* $NetBSD: domain.h,v 1.10 1996/02/09 18:25:07 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
int dom_family; /* AF_xxx */
char *dom_name;
void (*dom_init) /* initialize domain data structures */
- __P((void));
+ __P((void));
int (*dom_externalize) /* externalize access rights */
- __P((struct mbuf *));
- int (*dom_dispose) /* dispose of internalized rights */
- __P((struct mbuf *));
+ __P((struct mbuf *));
+ void (*dom_dispose) /* dispose of internalized rights */
+ __P((struct mbuf *));
struct protosw *dom_protosw, *dom_protoswNPROTOSW;
struct domain *dom_next;
int (*dom_rtattach) /* initialize routing table */
- __P((void **, int));
+ __P((void **, int));
int dom_rtoffset; /* an arg to rtattach, in bits */
int dom_maxrtkey; /* for routing layer */
};
#ifdef _KERNEL
struct domain *domains;
+void domaininit __P((void));
#endif
+/* $OpenBSD: errno.h,v 1.3 1996/03/03 12:11:39 niklas Exp $ */
/* $NetBSD: errno.h,v 1.10 1996/01/20 01:33:53 jtc Exp $ */
/*
-/* $NetBSD: exec.h,v 1.58 1995/11/28 08:16:47 thorpej Exp $ */
+/* $OpenBSD: exec.h,v 1.3 1996/03/03 12:11:40 niklas Exp $ */
+/* $NetBSD: exec.h,v 1.59 1996/02/09 18:25:09 christos Exp $ */
/*-
* Copyright (c) 1994 Christopher G. Demetriou
void *, void *));
void setregs __P((struct proc *, struct exec_package *,
u_long, register_t *));
+int check_exec __P((struct proc *, struct exec_package *));
#ifdef DEBUG
void new_vmcmd __P((struct exec_vmcmd_set *evsp,
-/* $NetBSD: exec_aout.h,v 1.12 1995/08/18 15:32:58 pk Exp $ */
+/* $OpenBSD: exec_aout.h,v 1.2 1996/03/03 12:11:41 niklas Exp $ */
+/* $NetBSD: exec_aout.h,v 1.13 1996/02/09 18:25:10 christos Exp $ */
/*
* Copyright (c) 1993, 1994 Christopher G. Demetriou
int exec_aout_makecmds __P((struct proc *, struct exec_package *));
/* functions which prepare various a.out executable types */
+/*
+ * MI portion
+ */
int exec_aout_prep_zmagic __P((struct proc *, struct exec_package *));
int exec_aout_prep_nmagic __P((struct proc *, struct exec_package *));
int exec_aout_prep_omagic __P((struct proc *, struct exec_package *));
int exec_aout_setup_stack __P((struct proc *, struct exec_package *));
+/*
+ * MD portion
+ */
+int cpu_exec_aout_makecmds __P((struct proc *, struct exec_package *));
+
#endif /* _KERNEL */
+/* $OpenBSD: exec_ecoff.h,v 1.2 1996/03/03 12:11:42 niklas Exp $ */
/* $NetBSD: exec_ecoff.h,v 1.7 1995/06/16 02:07:56 mellon Exp $ */
/*
+/* $OpenBSD: exec_elf.h,v 1.3 1996/03/03 12:11:42 niklas Exp $ */
/* $NetBSD: exec_elf.h,v 1.2 1996/01/16 23:19:43 fvdl Exp $ */
/*
+/* $OpenBSD: exec_script.h,v 1.3 1996/03/03 12:11:43 niklas Exp $ */
/* $NetBSD: exec_script.h,v 1.6 1995/03/26 20:24:11 jtc Exp $ */
/*
+/* $OpenBSD: fcntl.h,v 1.2 1996/03/03 12:11:44 niklas Exp $ */
/* $NetBSD: fcntl.h,v 1.8 1995/03/26 20:24:12 jtc Exp $ */
/*-
+/* $OpenBSD: file.h,v 1.2 1996/03/03 12:11:46 niklas Exp $ */
/* $NetBSD: file.h,v 1.11 1995/03/26 20:24:13 jtc Exp $ */
/*
-/* $NetBSD: filedesc.h,v 1.11 1995/03/26 20:24:14 jtc Exp $ */
+/* $OpenBSD: filedesc.h,v 1.3 1996/03/03 12:11:46 niklas Exp $ */
+/* $NetBSD: filedesc.h,v 1.12 1996/02/09 18:25:11 christos Exp $ */
/*
* Copyright (c) 1990, 1993
*/
int dupfdopen __P((struct filedesc *fdp, int indx, int dfd, int mode,
int error));
+int fdopen __P((dev_t, int, int, struct proc *));
int fdalloc __P((struct proc *p, int want, int *result));
int fdavail __P((struct proc *p, int n));
int falloc __P((struct proc *p, struct file **resultfp, int *resultfd));
+void ffree __P((struct file *));
struct filedesc *fdinit __P((struct proc *p));
struct filedesc *fdshare __P((struct proc *p));
struct filedesc *fdcopy __P((struct proc *p));
void fdfree __P((struct proc *p));
+int fdrelease __P((struct proc *p, int));
+void fdcloseexec __P((struct proc *));
+
+int closef __P((struct file *, struct proc *));
+int getsock __P((struct filedesc *, int, struct file **));
#endif
+/* $OpenBSD: filio.h,v 1.2 1996/03/03 12:11:47 niklas Exp $ */
/* $NetBSD: filio.h,v 1.5 1994/06/29 06:44:14 cgd Exp $ */
/*-
+/* $OpenBSD: gmon.h,v 1.2 1996/03/03 12:11:48 niklas Exp $ */
/* $NetBSD: gmon.h,v 1.4 1994/06/29 06:44:17 cgd Exp $ */
/*-
+/* $OpenBSD: ioccom.h,v 1.2 1996/03/03 12:11:49 niklas Exp $ */
/* $NetBSD: ioccom.h,v 1.4 1994/10/30 21:49:56 cgd Exp $ */
/*-
+/* $OpenBSD: ioctl.h,v 1.3 1996/03/03 12:11:50 niklas Exp $ */
/* $NetBSD: ioctl.h,v 1.20 1996/01/30 18:21:47 thorpej Exp $ */
/*-
+/* $OpenBSD: ioctl_compat.h,v 1.2 1996/03/03 12:11:51 niklas Exp $ */
/* $NetBSD: ioctl_compat.h,v 1.10 1995/03/31 03:10:15 christos Exp $ */
/*
-/* $NetBSD: ipc.h,v 1.14 1995/03/26 20:24:17 jtc Exp $ */
+/* $OpenBSD: ipc.h,v 1.2 1996/03/03 12:11:52 niklas Exp $ */
+/* $NetBSD: ipc.h,v 1.15 1996/02/09 18:25:12 christos Exp $ */
/*
* Copyright (c) 1988 University of Utah.
#define IPCID_TO_IX(id) ((id) & 0xffff)
#define IPCID_TO_SEQ(id) (((id) >> 16) & 0xffff)
#define IXSEQ_TO_IPCID(ix,perm) (((perm.seq) << 16) | (ix & 0xffff))
+
+int ipcperm __P((struct ucred *, struct ipc_perm *, int));
#endif /* _KERNEL */
#ifndef _KERNEL
+/* $OpenBSD: kernel.h,v 1.3 1996/03/03 12:11:53 niklas Exp $ */
/* $NetBSD: kernel.h,v 1.11 1995/03/03 01:24:16 cgd Exp $ */
/*-
-/* $NetBSD: ktrace.h,v 1.11 1995/07/19 15:27:05 christos Exp $ */
+/* $OpenBSD: ktrace.h,v 1.2 1996/03/03 12:11:54 niklas Exp $ */
+/* $NetBSD: ktrace.h,v 1.12 1996/02/04 02:12:29 christos Exp $ */
/*
* Copyright (c) 1988, 1993
int ktrace __P((const char *, int, int, pid_t));
__END_DECLS
+#else
+
+void ktrcsw __P((struct vnode *, int, int));
+void ktremul __P((struct vnode *, char *));
+void ktrgenio __P((struct vnode *, int, enum uio_rw, struct iovec *, int, int));
+void ktrnamei __P((struct vnode *, char *));
+void ktrpsig __P((struct vnode *, int, sig_t, int, int));
+void ktrsyscall __P((struct vnode *, register_t, size_t, register_t []));
+void ktrsysret __P((struct vnode *, register_t, int, register_t));
+
#endif /* !_KERNEL */
-/* $NetBSD: lkm.h,v 1.11 1995/03/26 20:24:19 jtc Exp $ */
+/* $OpenBSD: lkm.h,v 1.2 1996/03/03 12:11:55 niklas Exp $ */
+/* $NetBSD: lkm.h,v 1.12 1996/02/09 18:25:13 christos Exp $ */
/*
* Header file used by loadable kernel modules and loadable kernel module
int depcnt; /* dependency count (INIT) */
int id; /* identifier (INIT) */
- int (*entry)(); /* entry function */
+ int (*entry) __P((struct lkm_table *, int, int));/* entry function */
union lkm_generic private; /* module private data */
};
+/* $OpenBSD: localedef.h,v 1.2 1996/03/03 12:11:56 niklas Exp $ */
/* $NetBSD: localedef.h,v 1.3 1994/11/30 22:15:58 jtc Exp $ */
/*
+/* $OpenBSD: lockf.h,v 1.2 1996/03/03 12:11:57 niklas Exp $ */
/* $NetBSD: lockf.h,v 1.5 1994/06/29 06:44:33 cgd Exp $ */
/*
+/* $OpenBSD: malloc.h,v 1.3 1996/03/03 12:11:58 niklas Exp $ */
/* $NetBSD: malloc.h,v 1.21 1995/11/21 01:00:25 cgd Exp $ */
/*
+/* $OpenBSD: map.h,v 1.2 1996/03/03 12:11:59 niklas Exp $ */
/* $NetBSD: map.h,v 1.10 1995/09/15 05:32:45 jtc Exp $ */
/*-
-/* $NetBSD: mbuf.h,v 1.17 1995/08/16 01:04:06 mycroft Exp $ */
+/* $OpenBSD: mbuf.h,v 1.2 1996/03/03 12:12:00 niklas Exp $ */
+/* $NetBSD: mbuf.h,v 1.19 1996/02/09 18:25:14 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
/* 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 */
+ void (*ext_free) /* free routine if not the usual */
+ __P((caddr_t, u_int));
u_int ext_size; /* size of buffer, for ext_free */
};
int max_datalen; /* MHLEN - max_hdr */
extern int mbtypes[]; /* XXX */
+void mbinit __P((void));
struct mbuf *m_copym __P((struct mbuf *, int, int, int));
struct mbuf *m_free __P((struct mbuf *));
struct mbuf *m_get __P((int, int));
int m_clalloc __P((int, int));
void m_copyback __P((struct mbuf *, int, int, caddr_t));
void m_freem __P((struct mbuf *));
+void m_reclaim __P((void));
+void m_copydata __P((struct mbuf *, int, int, caddr_t));
+void m_cat __P((struct mbuf *, struct mbuf *));
+struct mbuf *m_devget __P((char *, int, int, struct ifnet *,
+ void (*) __P((const void *, void *, size_t))));
#ifdef MBTYPES
int mbtypes[] = { /* XXX */
+/* $OpenBSD: mman.h,v 1.2 1996/03/03 12:12:01 niklas Exp $ */
/* $NetBSD: mman.h,v 1.11 1995/03/26 20:24:23 jtc Exp $ */
/*-
-/* $NetBSD: msg.h,v 1.8 1995/07/11 18:16:20 jtc Exp $ */
+/* $OpenBSD: msg.h,v 1.2 1996/03/03 12:12:02 niklas Exp $ */
+/* $NetBSD: msg.h,v 1.9 1996/02/09 18:25:18 christos Exp $ */
/*
* SVID compatible msg.h file
int msgsnd __P((int, void *, size_t, int));
int msgrcv __P((int, void *, size_t, long, int));
__END_DECLS
+#else
+void msginit __P((void));
#endif /* !_KERNEL */
#endif /* !_SYS_MSG_H_ */
+/* $OpenBSD: msgbuf.h,v 1.2 1996/03/03 12:12:03 niklas Exp $ */
/* $NetBSD: msgbuf.h,v 1.8 1995/03/26 20:24:27 jtc Exp $ */
/*
+/* $OpenBSD: mtio.h,v 1.2 1996/03/03 12:12:04 niklas Exp $ */
/* $NetBSD: mtio.h,v 1.12 1995/03/29 22:10:07 briggs Exp $ */
/*
-/* $NetBSD: namei.h,v 1.10 1995/04/15 08:12:35 cgd Exp $ */
+/* $OpenBSD: namei.h,v 1.2 1996/03/03 12:12:05 niklas Exp $ */
+/* $NetBSD: namei.h,v 1.11 1996/02/09 18:25:20 christos Exp $ */
/*
* Copyright (c) 1985, 1989, 1991, 1993
int namei __P((struct nameidata *ndp));
int lookup __P((struct nameidata *ndp));
int relookup __P((struct vnode *dvp, struct vnode **vpp,
- struct componentname *cnp));
+ struct componentname *cnp));
+void cache_purge __P((struct vnode *));
+int cache_lookup __P((struct vnode *, struct vnode **, struct componentname *));
+void cache_enter __P((struct vnode *, struct vnode *, struct componentname *));
+void nchinit __P((void));
+struct mount;
+void cache_purgevfs __P((struct mount *));
+
#endif
/*
+/* $OpenBSD: param.h,v 1.4 1996/03/03 12:12:06 niklas Exp $ */
/* $NetBSD: param.h,v 1.18.2.1 1995/10/12 05:42:01 jtc Exp $ */
/*-
-/* $NetBSD: proc.h,v 1.41 1995/08/13 09:04:43 mycroft Exp $ */
+/* $OpenBSD: proc.h,v 1.2 1996/03/03 12:12:07 niklas Exp $ */
+/* $NetBSD: proc.h,v 1.42 1996/02/09 18:25:23 christos Exp $ */
/*-
* Copyright (c) 1986, 1989, 1991, 1993
int tsleep __P((void *chan, int pri, char *wmesg, int timo));
void unsleep __P((struct proc *));
void wakeup __P((void *chan));
+void exit1 __P((struct proc *, int));
+int fork1 __P((struct proc *, int, int, register_t *));
+void kmeminit __P((void));
+void rqinit __P((void));
+int groupmember __P((gid_t, struct ucred *));
#endif /* _KERNEL */
#endif /* !_SYS_PROC_H_ */
-/* $NetBSD: protosw.h,v 1.7 1995/03/26 20:24:33 jtc Exp $ */
+/* $OpenBSD: protosw.h,v 1.2 1996/03/03 12:12:08 niklas Exp $ */
+/* $NetBSD: protosw.h,v 1.9 1996/02/13 21:08:55 christos Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
* The userreq routine interfaces protocols to the system and is
* described below.
*/
+
+struct mbuf;
+struct sockaddr;
+struct socket;
+struct domain;
+
struct protosw {
short pr_type; /* socket type used for */
struct domain *pr_domain; /* domain protocol a member of */
short pr_protocol; /* protocol number */
short pr_flags; /* see below */
+
/* protocol-protocol hooks */
- void (*pr_input)(); /* input to protocol (from below) */
- int (*pr_output)(); /* output to protocol (from above) */
- void (*pr_ctlinput)(); /* control input (from below) */
- int (*pr_ctloutput)(); /* control output (from above) */
+ void (*pr_input) /* input to protocol (from below) */
+ __P((struct mbuf *, ...));
+ int (*pr_output) /* output to protocol (from above) */
+ __P((struct mbuf *, ...));
+ void *(*pr_ctlinput) /* control input (from below) */
+ __P((int, struct sockaddr *, void *));
+ int (*pr_ctloutput) /* control output (from above) */
+ __P((int, struct socket *, int, int, struct mbuf **));
+
/* user-protocol hook */
- int (*pr_usrreq)(); /* user request: see list below */
+ int (*pr_usrreq) /* user request: see list below */
+ __P((struct socket *, int, struct mbuf *,
+ struct mbuf *, struct mbuf *));
+
/* utility hooks */
- void (*pr_init)(); /* initialization hook */
- void (*pr_fasttimo)(); /* fast timeout (200ms) */
- void (*pr_slowtimo)(); /* slow timeout (500ms) */
- void (*pr_drain)(); /* flush any excess space possible */
- int (*pr_sysctl)(); /* sysctl for protocol */
+ void (*pr_init) /* initialization hook */
+ __P((void));
+
+ void (*pr_fasttimo) /* fast timeout (200ms) */
+ __P((void));
+ void (*pr_slowtimo) /* slow timeout (500ms) */
+ __P((void));
+ void (*pr_drain) /* flush any excess space possible */
+ __P((void));
+ int (*pr_sysctl) /* sysctl for protocol */
+ __P((int *, u_int, void *, size_t *, void *, size_t));
};
#define PR_SLOWHZ 2 /* 2 slow timeouts per second */
#endif
#ifdef _KERNEL
-extern struct protosw *pffindproto(), *pffindtype();
+struct sockaddr;
+struct protosw *pffindproto __P((int, int, int));
+struct protosw *pffindtype __P((int, int));
+void pfctlinput __P((int, struct sockaddr *));
#endif
-/* $NetBSD: ptrace.h,v 1.20 1995/03/26 20:24:35 jtc Exp $ */
+/* $OpenBSD: ptrace.h,v 1.2 1996/03/03 12:12:09 niklas Exp $ */
+/* $NetBSD: ptrace.h,v 1.21 1996/02/09 18:25:26 christos Exp $ */
/*-
* Copyright (c) 1984, 1993
#define FIX_SSTEP(p)
#endif
+int trace_req __P((struct proc *));
+
#else /* !_KERNEL */
#include <sys/cdefs.h>
+/* $OpenBSD: queue.h,v 1.2 1996/03/03 12:12:10 niklas Exp $ */
/* $NetBSD: queue.h,v 1.9 1994/12/13 15:04:28 mycroft Exp $ */
/*
+/* $OpenBSD: reboot.h,v 1.2 1996/03/03 12:12:11 niklas Exp $ */
/* $NetBSD: reboot.h,v 1.7 1994/12/13 15:01:22 mycroft Exp $ */
/*
-/* $NetBSD: resource.h,v 1.13 1995/03/26 20:24:36 jtc Exp $ */
+/* $OpenBSD: resource.h,v 1.2 1996/03/03 12:12:12 niklas Exp $ */
+/* $NetBSD: resource.h,v 1.14 1996/02/09 18:25:27 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
#ifdef _KERNEL
extern struct loadavg averunnable;
+int dosetrlimit __P((struct proc *, u_int, struct rlimit *));
+int donice __P((struct proc *, struct proc *, int));
#else
#include <sys/cdefs.h>
+/* $OpenBSD: resourcevar.h,v 1.3 1996/03/03 12:12:13 niklas Exp $ */
/* $NetBSD: resourcevar.h,v 1.12 1995/11/22 23:01:53 cgd Exp $ */
/*
+/* $OpenBSD: scanio.h,v 1.2 1996/03/03 12:12:13 niklas Exp $ */
/* $NetBSD: scanio.h,v 1.1 1996/02/18 20:33:18 mycroft Exp $ */
/*
+/* $OpenBSD: scsiio.h,v 1.2 1996/03/03 12:12:15 niklas Exp $ */
/* $NetBSD: scsiio.h,v 1.3 1994/06/29 06:45:09 cgd Exp $ */
#ifndef _SYS_SCSIIO_H_
+/* $OpenBSD: select.h,v 1.2 1996/03/03 12:12:16 niklas Exp $ */
/* $NetBSD: select.h,v 1.10 1995/03/26 20:24:38 jtc Exp $ */
/*-
-/* $NetBSD: sem.h,v 1.7 1995/03/26 20:24:40 jtc Exp $ */
+/* $OpenBSD: sem.h,v 1.2 1996/03/03 12:12:17 niklas Exp $ */
+/* $NetBSD: sem.h,v 1.8 1996/02/09 18:25:29 christos Exp $ */
/*
* SVID compatible sem.h file
int semop __P((int, struct sembuf *, u_int));
int semconfig __P((int));
__END_DECLS
+#else
+void seminit __P((void));
+void semexit __P((struct proc *));
#endif /* !_KERNEL */
#endif /* !_SEM_H_ */
-/* $NetBSD: shm.h,v 1.18 1995/03/26 20:24:41 jtc Exp $ */
+/* $OpenBSD: shm.h,v 1.2 1996/03/03 12:12:18 niklas Exp $ */
+/* $NetBSD: shm.h,v 1.19 1996/02/09 18:25:30 christos Exp $ */
/*
* Copyright (c) 1994 Adam Glass
struct shminfo shminfo;
struct shmid_ds *shmsegs;
+void shminit __P((void));
+void shmfork __P((struct proc *, struct proc *));
+void shmexit __P((struct proc *));
+
#else /* !_KERNEL */
#include <sys/cdefs.h>
-/* $NetBSD: signal.h,v 1.20 1996/01/04 22:23:23 jtc Exp $ */
+/* $OpenBSD: signal.h,v 1.3 1996/03/03 12:12:18 niklas Exp $ */
+/* $NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
#define SIGUSR1 30 /* user defined signal 1 */
#define SIGUSR2 31 /* user defined signal 2 */
-#if defined(_ANSI_SOURCE) || defined(__cplusplus)
+#if defined(_ANSI_SOURCE) || defined(__cplusplus) || defined(_KERNEL)
/*
* Language spec sez we must list exactly one parameter, even though we
* actually supply three. Ugh!
* Signal vector "template" used in sigaction call.
*/
struct sigaction {
- void (*sa_handler)(); /* signal handler */
+ void (*sa_handler) /* signal handler */
+#ifdef _KERNEL
+ __P((int));
+#else
+ __P(());
+#endif
sigset_t sa_mask; /* signal mask to apply */
int sa_flags; /* see signal options below */
};
* Signal vector "template" used in sigvec call.
*/
struct sigvec {
- void (*sv_handler)(); /* signal handler */
+ void (*sv_handler) /* signal handler */
+#ifdef _KERNEL
+ __P((int));
+#else
+ __P(());
+#endif
int sv_mask; /* signal mask to apply */
int sv_flags; /* see signal options below */
};
-/* $NetBSD: signalvar.h,v 1.14 1995/08/13 22:48:47 mycroft Exp $ */
+/* $OpenBSD: signalvar.h,v 1.2 1996/03/03 12:12:19 niklas Exp $ */
+/* $NetBSD: signalvar.h,v 1.16 1996/02/09 18:25:34 christos Exp $ */
/*
* Copyright (c) 1991, 1993
#define SAS_ALTSTACK 0x02 /* have alternate signal stack */
/* additional signal action values, used only temporarily/internally */
-#define SIG_CATCH (void (*)())2
-#define SIG_HOLD (void (*)())3
+#define SIG_CATCH (void (*) __P((int)))2
+#define SIG_HOLD (void (*) __P((int)))3
/*
* get signal action for process and signal; currently only for current process
*/
#define CURSIG(p) \
(((p)->p_siglist == 0 || \
- ((p)->p_flag & P_TRACED) == 0 && \
- ((p)->p_siglist & ~(p)->p_sigmask) == 0) ? \
+ (((p)->p_flag & P_TRACED) == 0 && \
+ ((p)->p_siglist & ~(p)->p_sigmask) == 0)) ? \
0 : issignal(p))
/*
void psignal __P((struct proc *p, int sig));
void siginit __P((struct proc *p));
void trapsignal __P((struct proc *p, int sig, u_long code));
+void sigexit __P((struct proc *, int));
+void setsigvec __P((struct proc *, int, struct sigaction *));
+int killpg1 __P((struct proc *, int, int, int));
/*
* Machine-dependent functions:
+/* $OpenBSD: socketvar.h,v 1.3 1996/03/03 12:12:20 niklas Exp $ */
/* $NetBSD: socketvar.h,v 1.18 1996/02/09 18:25:38 christos Exp $ */
/*-
+/* $OpenBSD: sockio.h,v 1.2 1996/03/03 12:12:21 niklas Exp $ */
/* $NetBSD: sockio.h,v 1.5 1995/08/23 00:40:47 thorpej Exp $ */
/*-
-/* $NetBSD: sysctl.h,v 1.9 1995/08/04 18:36:08 thorpej Exp $ */
+/* $OpenBSD: sysctl.h,v 1.2 1996/03/03 12:12:22 niklas Exp $ */
+/* $NetBSD: sysctl.h,v 1.11 1996/02/09 18:25:39 christos Exp $ */
/*
* Copyright (c) 1989, 1993
int sysctl_string __P((void *, size_t *, void *, size_t, char *, int));
int sysctl_rdstring __P((void *, size_t *, void *, char *));
int sysctl_rdstruct __P((void *, size_t *, void *, void *, int));
+int sysctl_struct __P((void *, size_t *, void *, size_t, void *, int));
+int sysctl_file __P((char *, size_t *));
+int sysctl_doproc __P((int *, u_int, char *, size_t *));
+struct radix_node;
+struct walkarg;
+int sysctl_dumpentry __P((struct radix_node *, void *));
+int sysctl_iflist __P((int, struct walkarg *));
+int sysctl_rtable __P((int *, u_int, void *, size_t *, void *, size_t));
+int sysctl_clockrate __P((char *, size_t *));
+int sysctl_rdstring __P((void *, size_t *, void *, char *));
+int sysctl_rdstruct __P((void *, size_t *, void *, void *, int));
+int sysctl_vnode __P((char *, size_t *));
+
void fill_eproc __P((struct proc *, struct eproc *));
+int kern_sysctl __P((int *, u_int, void *, size_t *, void *, size_t,
+ struct proc *));
+int hw_sysctl __P((int *, u_int, void *, size_t *, void *, size_t,
+ struct proc *));
+#ifdef DEBUG
+int debug_sysctl __P((int *, u_int, void *, size_t *, void *, size_t,
+ struct proc *));
+#endif
+int vm_sysctl __P((int *, u_int, void *, size_t *, void *, size_t,
+ struct proc *));
+int fs_sysctl __P((int *, u_int, void *, size_t *, void *, size_t,
+ struct proc *));
+int net_sysctl __P((int *, u_int, void *, size_t *, void *, size_t,
+ struct proc *));
+int cpu_sysctl __P((int *, u_int, void *, size_t *, void *, size_t,
+ struct proc *));
+
#else /* !_KERNEL */
#include <sys/cdefs.h>
+/* $OpenBSD: syslimits.h,v 1.2 1996/03/03 12:12:23 niklas Exp $ */
/* $NetBSD: syslimits.h,v 1.12 1995/10/05 05:26:19 thorpej Exp $ */
/*
-/* $NetBSD: syslog.h,v 1.9 1995/03/26 20:24:51 jtc Exp $ */
+/* $OpenBSD: syslog.h,v 1.2 1996/03/03 12:12:24 niklas Exp $ */
+/* $NetBSD: syslog.h,v 1.10 1996/02/09 18:25:40 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
void logpri __P((int));
void log __P((int, const char *, ...));
void addlog __P((const char *, ...));
+void logwakeup __P((void));
#endif /* !_KERNEL */
-/* $NetBSD: tablet.h,v 1.8 1995/04/22 12:55:10 cgd Exp $ */
+/* $OpenBSD: tablet.h,v 1.2 1996/03/03 12:12:25 niklas Exp $ */
+/* $NetBSD: tablet.h,v 1.10 1996/02/09 18:25:43 christos Exp $ */
/*-
* Copyright (c) 1985, 1986, 1993
* in-proximity bit is simulated where the tablet does not directly provide
* the information.
*/
-struct tbpos {
+struct hitpos {
int32_t xpos, ypos; /* raw x-y coordinates */
int16_t status; /* buttons/pen down */
#define TBINPROX 0100000 /* pen in proximity of tablet */
+/* $OpenBSD: termios.h,v 1.2 1996/03/03 12:12:26 niklas Exp $ */
/* $NetBSD: termios.h,v 1.13 1995/04/22 13:03:10 cgd Exp $ */
/*
+/* $OpenBSD: timeb.h,v 1.2 1996/03/03 12:12:27 niklas Exp $ */
/* $NetBSD: timeb.h,v 1.10 1995/06/05 19:39:35 pk Exp $ */
/*-
+/* $OpenBSD: times.h,v 1.2 1996/03/03 12:12:28 niklas Exp $ */
/* $NetBSD: times.h,v 1.8 1995/03/26 20:24:54 jtc Exp $ */
/*-
+/* $OpenBSD: timex.h,v 1.2 1996/03/03 12:12:29 niklas Exp $ */
+
/******************************************************************************
* *
* Copyright (c) David L. Mills 1993, 1994 *
+/* $OpenBSD: tprintf.h,v 1.2 1996/03/03 12:12:30 niklas Exp $ */
/* $NetBSD: tprintf.h,v 1.6 1994/06/29 06:45:49 cgd Exp $ */
/*-
+/* $OpenBSD: trace.h,v 1.2 1996/03/03 12:12:31 niklas Exp $ */
/* $NetBSD: trace.h,v 1.7 1995/03/26 20:24:56 jtc Exp $ */
/*-
-/* $NetBSD: tty.h,v 1.28 1995/03/26 20:24:57 jtc Exp $ */
+/* $OpenBSD: tty.h,v 1.2 1996/03/03 12:12:32 niklas Exp $ */
+/* $NetBSD: tty.h,v 1.29 1996/02/09 18:25:44 christos Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
struct tty *ttymalloc __P((void));
void ttyfree __P((struct tty *));
u_char *firstc __P((struct clist *clp, int *c));
+
+int cttyopen __P((dev_t, int, int, struct proc *));
+int cttyread __P((dev_t, struct uio *, int));
+int cttywrite __P((dev_t, struct uio *, int));
+int cttyioctl __P((dev_t, u_long, caddr_t, int, struct proc *));
+int cttyselect __P((dev_t, int, struct proc *));
+
+int clalloc __P((struct clist *, int, int));
+void clfree __P((struct clist *));
+
+#if defined(COMPAT_43) || defined(COMPAT_SUNOS) || defined(COMPAT_SVR4) || \
+ defined(COMPAT_FREEBSD)
+# define COMPAT_OLDTTY
+int ttcompat __P((struct tty *, u_long, caddr_t, int, struct proc *));
+#endif
+
#endif
+/* $OpenBSD: ttychars.h,v 1.2 1996/03/03 12:12:33 niklas Exp $ */
/* $NetBSD: ttychars.h,v 1.6 1994/06/29 06:45:54 cgd Exp $ */
/*-
+/* $OpenBSD: ttycom.h,v 1.2 1996/03/03 12:12:34 niklas Exp $ */
/* $NetBSD: ttycom.h,v 1.3 1994/06/29 06:45:55 cgd Exp $ */
/*-
+/* $OpenBSD: ttydefaults.h,v 1.3 1996/03/03 12:12:35 niklas Exp $ */
/* $NetBSD: ttydefaults.h,v 1.7 1994/06/29 06:45:57 cgd Exp $ */
/*-
+/* $OpenBSD: ttydev.h,v 1.2 1996/03/03 12:12:36 niklas Exp $ */
/* $NetBSD: ttydev.h,v 1.7 1994/06/29 06:45:58 cgd Exp $ */
/*-
+/* $OpenBSD: types.h,v 1.3 1996/03/03 12:12:36 niklas Exp $ */
/* $NetBSD: types.h,v 1.24 1995/12/29 01:15:13 jtc Exp $ */
/*-
+/* $OpenBSD: ucred.h,v 1.2 1996/03/03 12:12:37 niklas Exp $ */
/* $NetBSD: ucred.h,v 1.12 1995/06/01 22:44:50 jtc Exp $ */
/*
-/* $NetBSD: uio.h,v 1.11 1995/06/14 05:24:46 jtc Exp $ */
+/* $OpenBSD: uio.h,v 1.2 1996/03/03 12:12:38 niklas Exp $ */
+/* $NetBSD: uio.h,v 1.12 1996/02/09 18:25:45 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1993, 1994
ssize_t readv __P((int, const struct iovec *, int));
ssize_t writev __P((int, const struct iovec *, int));
__END_DECLS
+#else
+int ureadc __P((int c, struct uio *));
#endif /* !_KERNEL */
+
#endif /* !_SYS_UIO_H_ */
-/* $NetBSD: un.h,v 1.10 1995/03/26 20:25:02 jtc Exp $ */
+/* $OpenBSD: un.h,v 1.2 1996/03/03 12:12:39 niklas Exp $ */
+/* $NetBSD: un.h,v 1.11 1996/02/04 02:12:47 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
#ifdef _KERNEL
struct unpcb;
+struct socket;
-int uipc_usrreq __P((struct socket *so, int req, struct mbuf *m,
- struct mbuf *nam, struct mbuf *control));
int unp_attach __P((struct socket *so));
int unp_bind __P((struct unpcb *unp, struct mbuf *nam, struct proc *p));
int unp_connect __P((struct socket *so, struct mbuf *nam, struct proc *p));
int unp_connect2 __P((struct socket *so, struct socket *so2));
-int unp_detach __P((struct unpcb *unp));
+void unp_detach __P((struct unpcb *unp));
void unp_discard __P((struct file *fp));
void unp_disconnect __P((struct unpcb *unp));
void unp_drop __P((struct unpcb *unp, int errno));
void unp_mark __P((struct file *fp));
void unp_scan __P((struct mbuf *m0, void (*op) __P((struct file *))));
void unp_shutdown __P((struct unpcb *unp));
+int unp_externalize __P((struct mbuf *));
+int unp_internalize __P((struct mbuf *, struct proc *));
+void unp_dispose __P((struct mbuf *));
#else /* !_KERNEL */
/* actual length of an initialized sockaddr_un */
+/* $OpenBSD: unistd.h,v 1.2 1996/03/03 12:12:40 niklas Exp $ */
/* $NetBSD: unistd.h,v 1.10 1994/06/29 06:46:06 cgd Exp $ */
/*
+/* $OpenBSD: unpcb.h,v 1.2 1996/03/03 12:12:41 niklas Exp $ */
/* $NetBSD: unpcb.h,v 1.6 1994/06/29 06:46:08 cgd Exp $ */
/*
+/* $OpenBSD: user.h,v 1.2 1996/03/03 12:12:42 niklas Exp $ */
/* $NetBSD: user.h,v 1.9 1995/03/26 20:25:03 jtc Exp $ */
/*
+/* $OpenBSD: utsname.h,v 1.2 1996/03/03 12:12:43 niklas Exp $ */
/* $NetBSD: utsname.h,v 1.6 1994/06/29 06:46:11 cgd Exp $ */
/*-
+/* $OpenBSD: vadvise.h,v 1.2 1996/03/03 12:12:44 niklas Exp $ */
/* $NetBSD: vadvise.h,v 1.6 1994/06/29 06:46:12 cgd Exp $ */
/*-
+/* $OpenBSD: vcmd.h,v 1.2 1996/03/03 12:12:45 niklas Exp $ */
/* $NetBSD: vcmd.h,v 1.6 1994/06/29 06:46:14 cgd Exp $ */
/*-
+/* $OpenBSD: vlimit.h,v 1.2 1996/03/03 12:12:46 niklas Exp $ */
/* $NetBSD: vlimit.h,v 1.6 1994/06/29 06:46:15 cgd Exp $ */
/*-
+/* $OpenBSD: vmmeter.h,v 1.3 1996/03/03 12:12:47 niklas Exp $ */
/* $NetBSD: vmmeter.h,v 1.9 1995/03/26 20:25:04 jtc Exp $ */
/*-
+/* $OpenBSD: vsio.h,v 1.2 1996/03/03 12:12:48 niklas Exp $ */
/* $NetBSD: vsio.h,v 1.6 1994/06/29 06:46:20 cgd Exp $ */
/*-
+/* $OpenBSD: wait.h,v 1.3 1996/03/03 12:12:49 niklas Exp $ */
/* $NetBSD: wait.h,v 1.10 1995/10/19 08:14:18 jtc Exp $ */
/*