Filesystem prototype changes

This commit is contained in:
christos 1996-02-09 18:24:59 +00:00
parent 41378a47c0
commit 22ca27a01d
31 changed files with 249 additions and 64 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: buf.h,v 1.22 1996/02/04 02:12:07 christos Exp $ */
/* $NetBSD: buf.h,v 1.23 1996/02/09 18:24:59 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -165,18 +165,18 @@ void bdwrite __P((struct buf *));
void biodone __P((struct buf *));
int biowait __P((struct buf *));
int bread __P((struct vnode *, daddr_t, int,
struct ucred *, struct buf **));
struct ucred *, struct buf **));
int breada __P((struct vnode *, daddr_t, int, daddr_t, int,
struct ucred *, struct buf **));
struct ucred *, struct buf **));
int breadn __P((struct vnode *, daddr_t, int, daddr_t *, int *, int,
struct ucred *, struct buf **));
struct ucred *, struct buf **));
void brelse __P((struct buf *));
void bremfree __P((struct buf *));
void bufinit __P((void));
int bwrite __P((struct buf *));
void cluster_callback __P((struct buf *));
int cluster_read __P((struct vnode *, u_quad_t, daddr_t, long,
struct ucred *, struct buf **));
struct ucred *, struct buf **));
void cluster_write __P((struct buf *, u_quad_t));
struct buf *getblk __P((struct vnode *, daddr_t, int, int, int));
struct buf *geteblk __P((int));
@ -185,7 +185,10 @@ struct buf *incore __P((struct vnode *, daddr_t));
void minphys __P((struct buf *bp));
int physio __P((void (*strategy)(struct buf *), struct buf *bp, dev_t dev,
int flags, void (*minphys)(struct buf *), struct uio *uio));
int flags, void (*minphys)(struct buf *), struct uio *uio));
void brelvp __P((struct buf *));
void reassignbuf __P((struct buf *, struct vnode *));
void bgetvp __P((struct vnode *, struct buf *));
__END_DECLS
#endif
#endif /* !_SYS_BUF_H_ */

57
sys/sys/cpu.h Normal file
View File

@ -0,0 +1,57 @@
/* $NetBSD: cpu.h,v 1.1 1996/02/09 18:25:02 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;
__BEGIN_DECLS
void consinit __P((void));
void boot __P((int));
int fuswintr __P((caddr_t));
int suswintr __P((caddr_t, u_int));
void pagemove __P((caddr_t, caddr_t, size_t));
void delay __P((unsigned));
int chrtoblk __P((dev_t));
int iskmemdev __P((dev_t));
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 */

View File

@ -1,4 +1,4 @@
/* $NetBSD: device.h,v 1.8 1994/11/04 06:40:17 mycroft Exp $ */
/* $NetBSD: device.h,v 1.9 1996/02/09 18:25:04 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@ -87,7 +87,8 @@ struct cfdata {
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 */

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel.h,v 1.37 1996/02/01 22:33:47 mycroft Exp $ */
/* $NetBSD: disklabel.h,v 1.38 1996/02/09 18:25:05 christos Exp $ */
/*
* Copyright (c) 1987, 1988, 1993
@ -316,9 +316,9 @@ void disksort __P((struct buf *, struct buf *));
u_int dkcksum __P((struct disklabel *));
int setdisklabel __P((struct disklabel *, struct disklabel *, u_long,
struct cpu_disklabel *));
char *readdisklabel __P((dev_t, void (*)(), struct disklabel *,
char *readdisklabel __P((dev_t, void (*)(struct buf *), struct disklabel *,
struct cpu_disklabel *));
int writedisklabel __P((dev_t, void (*)(), struct disklabel *,
int writedisklabel __P((dev_t, void (*)(struct buf *), struct disklabel *,
struct cpu_disklabel *));
#endif
#endif /* _LOCORE */

View File

@ -1,4 +1,4 @@
/* $NetBSD: domain.h,v 1.9 1996/02/04 02:12:25 christos Exp $ */
/* $NetBSD: domain.h,v 1.10 1996/02/09 18:25:07 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -63,4 +63,5 @@ struct domain {
#ifdef _KERNEL
struct domain *domains;
void domaininit __P((void));
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec.h,v 1.58 1995/11/28 08:16:47 thorpej Exp $ */
/* $NetBSD: exec.h,v 1.59 1996/02/09 18:25:09 christos Exp $ */
/*-
* Copyright (c) 1994 Christopher G. Demetriou
@ -167,6 +167,7 @@ void *copyargs __P((struct exec_package *, struct ps_strings *,
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,

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec_aout.h,v 1.12 1995/08/18 15:32:58 pk Exp $ */
/* $NetBSD: exec_aout.h,v 1.13 1996/02/09 18:25:10 christos Exp $ */
/*
* Copyright (c) 1993, 1994 Christopher G. Demetriou
@ -172,9 +172,17 @@ struct exec {
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 */

View File

@ -1,4 +1,4 @@
/* $NetBSD: filedesc.h,v 1.11 1995/03/26 20:24:14 jtc Exp $ */
/* $NetBSD: filedesc.h,v 1.12 1996/02/09 18:25:11 christos Exp $ */
/*
* Copyright (c) 1990, 1993
@ -95,9 +95,16 @@ struct filedesc0 {
*/
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 *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

View File

@ -1,4 +1,4 @@
/* $NetBSD: ipc.h,v 1.14 1995/03/26 20:24:17 jtc Exp $ */
/* $NetBSD: ipc.h,v 1.15 1996/02/09 18:25:12 christos Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -82,6 +82,8 @@ struct ipc_perm {
#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

View File

@ -1,4 +1,4 @@
/* $NetBSD: lkm.h,v 1.11 1995/03/26 20:24:19 jtc 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
@ -186,7 +186,7 @@ struct lkm_table {
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 */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: mbuf.h,v 1.18 1996/02/04 02:12:33 christos Exp $ */
/* $NetBSD: mbuf.h,v 1.19 1996/02/09 18:25:14 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
@ -84,7 +84,8 @@ struct pkthdr {
/* 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 */
};
@ -359,6 +360,7 @@ int max_hdr; /* largest link+protocol header */
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));

View File

@ -1,4 +1,4 @@
/* $NetBSD: mount.h,v 1.46 1996/02/08 18:30:10 mycroft Exp $ */
/* $NetBSD: mount.h,v 1.47 1996/02/09 18:25:16 christos Exp $ */
/*
* Copyright (c) 1989, 1991, 1993
@ -200,7 +200,7 @@ struct vfsops {
struct mbuf *nam, struct vnode **vpp,
int *exflagsp, struct ucred **credanonp));
int (*vfs_vptofh) __P((struct vnode *vp, struct fid *fhp));
int (*vfs_init) __P((void));
void (*vfs_init) __P((void));
int vfs_refcount;
};
@ -408,10 +408,17 @@ int vfs_mountedon __P((struct vnode *));/* is a vfs mounted on vp */
void vfs_shutdown __P((void)); /* unmount and sync file systems */
void vfs_unlock __P((struct mount *)); /* unlock a vfs */
void vfs_unmountall __P((void)); /* unmount file systems */
int vfs_busy __P((struct mount *));
void vfs_unbusy __P((struct mount *));
extern CIRCLEQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */
extern struct vfsops *vfssw[]; /* filesystem type table */
extern int nvfssw;
long makefstype __P((char *));
int dounmount __P((struct mount *, int, struct proc *));
void vfsinit __P((void));
#ifdef DEBUG
void vfs_bufstats __P((void));
#endif
#else /* _KERNEL */
#include <sys/cdefs.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: msg.h,v 1.8 1995/07/11 18:16:20 jtc Exp $ */
/* $NetBSD: msg.h,v 1.9 1996/02/09 18:25:18 christos Exp $ */
/*
* SVID compatible msg.h file
@ -155,6 +155,8 @@ int msgget __P((key_t, int));
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_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: namei.h,v 1.10 1995/04/15 08:12:35 cgd Exp $ */
/* $NetBSD: namei.h,v 1.11 1996/02/09 18:25:20 christos Exp $ */
/*
* Copyright (c) 1985, 1989, 1991, 1993
@ -175,7 +175,14 @@ u_long nextvnodeid;
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
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: proc.h,v 1.41 1995/08/13 09:04:43 mycroft Exp $ */
/* $NetBSD: proc.h,v 1.42 1996/02/09 18:25:23 christos Exp $ */
/*-
* Copyright (c) 1986, 1989, 1991, 1993
@ -311,5 +311,10 @@ void swapin __P((struct proc *));
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, register_t *));
void kmeminit __P((void));
void rqinit __P((void));
int groupmember __P((gid_t, struct ucred *));
#endif /* _KERNEL */
#endif /* !_SYS_PROC_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: protosw.h,v 1.7 1995/03/26 20:24:33 jtc Exp $ */
/* $NetBSD: protosw.h,v 1.8 1996/02/09 18:25:25 christos Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
@ -208,5 +208,8 @@ char *prcorequests[] = {
#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

View File

@ -1,4 +1,4 @@
/* $NetBSD: ptrace.h,v 1.20 1995/03/26 20:24:35 jtc Exp $ */
/* $NetBSD: ptrace.h,v 1.21 1996/02/09 18:25:26 christos Exp $ */
/*-
* Copyright (c) 1984, 1993
@ -80,6 +80,8 @@ int process_write_regs __P((struct proc *p, struct reg *regs));
#define FIX_SSTEP(p)
#endif
int trace_req __P((struct proc *));
#else /* !_KERNEL */
#include <sys/cdefs.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: resource.h,v 1.13 1995/03/26 20:24:36 jtc Exp $ */
/* $NetBSD: resource.h,v 1.14 1996/02/09 18:25:27 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -111,6 +111,8 @@ struct loadavg {
#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>

View File

@ -1,4 +1,4 @@
/* $NetBSD: sem.h,v 1.7 1995/03/26 20:24:40 jtc Exp $ */
/* $NetBSD: sem.h,v 1.8 1996/02/09 18:25:29 christos Exp $ */
/*
* SVID compatible sem.h file
@ -172,6 +172,9 @@ int semget __P((key_t, int, int));
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_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: shm.h,v 1.18 1995/03/26 20:24:41 jtc Exp $ */
/* $NetBSD: shm.h,v 1.19 1996/02/09 18:25:30 christos Exp $ */
/*
* Copyright (c) 1994 Adam Glass
@ -76,6 +76,10 @@ struct shminfo {
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>

View File

@ -1,4 +1,4 @@
/* $NetBSD: signal.h,v 1.20 1996/01/04 22:23:23 jtc Exp $ */
/* $NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@ -96,7 +96,7 @@
#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!
@ -117,7 +117,12 @@ typedef unsigned int sigset_t;
* 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 */
};
@ -163,7 +168,12 @@ struct sigaltstack {
* 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 */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: signalvar.h,v 1.15 1996/02/04 02:12:38 christos Exp $ */
/* $NetBSD: signalvar.h,v 1.16 1996/02/09 18:25:34 christos Exp $ */
/*
* Copyright (c) 1991, 1993
@ -66,8 +66,8 @@ struct sigacts {
#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
@ -81,8 +81,8 @@ struct sigacts {
*/
#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))
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: socket.h,v 1.13 1996/02/09 06:32:22 mycroft Exp $ */
/* $NetBSD: socket.h,v 1.14 1996/02/09 18:25:36 christos Exp $ */
/*
* Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
@ -336,6 +336,12 @@ int shutdown __P((int, int));
int socket __P((int, int, int));
int socketpair __P((int, int, int, int *));
__END_DECLS
#else
# if defined(COMPAT_43) || defined(COMPAT_SUNOS) || defined(COMPAT_LINUX) || \
defined(COMPAT_HPUX) || defined(COMPAT_FREEBSD)
# define COMPAT_OLDSOCK
# define MSG_COMPAT 0x8000
# endif
#endif /* !_KERNEL */
#endif /* !_SYS_SOCKET_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: socketvar.h,v 1.17 1996/02/04 02:12:40 christos Exp $ */
/* $NetBSD: socketvar.h,v 1.18 1996/02/09 18:25:38 christos Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1993
@ -218,7 +218,8 @@ int soo_ioctl __P((struct file *fp, u_long cmd, caddr_t data,
int soo_select __P((struct file *fp, int which, struct proc *p));
int soo_close __P((struct file *fp, struct proc *p));
int soo_stat __P((struct socket *, struct stat *));
int uipc_usrreq __P((struct socket *, int , struct mbuf *,
struct mbuf *, struct mbuf *));
void sbappend __P((struct sockbuf *sb, struct mbuf *m));
int sbappendaddr __P((struct sockbuf *sb, struct sockaddr *asa,
struct mbuf *m0, struct mbuf *control));
@ -275,3 +276,9 @@ 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%%%*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysctl.h,v 1.10 1996/02/04 02:12:42 christos Exp $ */
/* $NetBSD: sysctl.h,v 1.11 1996/02/09 18:25:39 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@ -339,6 +339,10 @@ 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 *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: syslog.h,v 1.9 1995/03/26 20:24:51 jtc Exp $ */
/* $NetBSD: syslog.h,v 1.10 1996/02/09 18:25:40 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
@ -191,5 +191,6 @@ __END_DECLS
void logpri __P((int));
void log __P((int, const char *, ...));
void addlog __P((const char *, ...));
void logwakeup __P((void));
#endif /* !_KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: systm.h,v 1.38 1996/02/04 02:12:45 christos Exp $ */
/* $NetBSD: systm.h,v 1.39 1996/02/09 18:25:42 christos Exp $ */
/*-
* Copyright (c) 1982, 1988, 1991, 1993
@ -104,21 +104,28 @@ extern int nsysent;
extern int boothowto; /* reboot flags, from console subsystem */
/* casts to keep lint happy */
#define insque(q,p) _insque((caddr_t)q,(caddr_t)p)
#define remque(q) _remque((caddr_t)q)
extern void (*v_putc) __P((int)); /* Virtual console putc routine */
extern void _insque __P((void *, void *));
extern void _remque __P((void *));
/* casts to keep lint happy, but it should be happy with void * */
#define insque(q,p) _insque(q, p)
#define remque(q) _remque(q)
/*
* General function declarations.
*/
int nullop __P((void *));
int enodev __P((void));
int enosys __P((void));
int lkmenodev __P((dev_t, int, int, struct proc *));
int enoioctl __P((void));
int enxio __P((void));
int eopnotsupp __P((void));
int seltrue __P((dev_t dev, int which, struct proc *p));
void *hashinit __P((int count, int type, u_long *hashmask));
int nosys __P((struct proc *, void *, register_t *));
int sys_nosys __P((struct proc *, void *, register_t *));
#ifdef __GNUC__
volatile void panic __P((const char *, ...));
@ -127,12 +134,14 @@ void panic __P((const char *, ...));
#endif
void tablefull __P((const char *));
void printf __P((const char *, ...));
void uprintf __P((const char *, ...));
int sprintf __P((char *buf, const char *, ...));
void ttyprintf __P((struct tty *, const char *, ...));
void bcopy __P((const void *from, void *to, size_t len));
void ovbcopy __P((const void *from, void *to, size_t len));
void bzero __P((void *buf, size_t len));
int bcmp __P((const void *b1, const void *b2, size_t len));
int copystr __P((void *kfaddr, void *kdaddr, size_t len, size_t *done));
int copyinstr __P((void *udaddr, void *kaddr, size_t len, size_t *done));
@ -151,6 +160,7 @@ long fuiword __P((void *base));
int suword __P((void *base, long word));
int suiword __P((void *base, long word));
struct timeval;
int hzto __P((struct timeval *tv));
void timeout __P((void (*func)(void *), void *arg, int ticks));
void untimeout __P((void (*func)(void *), void *arg));
@ -177,10 +187,14 @@ void *shutdownhook_establish __P((void (*)(void *), void *));
void shutdownhook_disestablish __P((void *));
void doshutdownhooks __P((void));
int uiomove __P((caddr_t, int, struct uio *));
#include <lib/libkern/libkern.h>
#ifdef DDB
/* debugger entry points */
int Debugger __P((void)); /* in DDB only */
#ifdef notyet /* XXX: Lots of local decls assume int Debugger */
void Debugger __P((void)); /* in DDB only */
#endif
int read_symtab_from_file __P((struct proc *,struct vnode *,const char *));
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: tablet.h,v 1.9 1996/02/07 04:03:13 christos Exp $ */
/* $NetBSD: tablet.h,v 1.10 1996/02/09 18:25:43 christos Exp $ */
/*-
* Copyright (c) 1985, 1986, 1993

View File

@ -1,4 +1,4 @@
/* $NetBSD: tty.h,v 1.28 1995/03/26 20:24:57 jtc Exp $ */
/* $NetBSD: tty.h,v 1.29 1996/02/09 18:25:44 christos Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
@ -241,4 +241,20 @@ int ttywflush __P((struct tty *tp));
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

View File

@ -1,4 +1,4 @@
/* $NetBSD: uio.h,v 1.11 1995/06/14 05:24:46 jtc Exp $ */
/* $NetBSD: uio.h,v 1.12 1996/02/09 18:25:45 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1993, 1994
@ -80,5 +80,8 @@ __BEGIN_DECLS
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_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: vnode.h,v 1.36 1996/02/04 02:12:50 christos Exp $ */
/* $NetBSD: vnode.h,v 1.37 1996/02/09 18:25:47 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@ -73,7 +73,7 @@ struct vnode {
daddr_t v_lastr; /* last read (read-ahead) */
u_long v_id; /* capability identifier */
struct mount *v_mount; /* ptr to vfs we are in */
int (**v_op)(); /* vnode operations vector */
int (**v_op) __P((void *)); /* vnode operations vector */
TAILQ_ENTRY(vnode) v_freelist; /* vnode freelist */
LIST_ENTRY(vnode) v_mntvnodes; /* vnodes for mount point */
struct buflists v_cleanblkhd; /* clean blocklist head */
@ -304,11 +304,11 @@ extern struct vnodeop_desc *vnodeop_descs[];
*/
struct vnodeopv_entry_desc {
struct vnodeop_desc *opve_op; /* which operation this is */
int (*opve_impl)(); /* code implementing this operation */
int (*opve_impl) __P((void *)); /* code implementing this operation */
};
struct vnodeopv_desc {
/* ptr to the ptr to the vector where op should go */
int (***opv_desc_vector_p)();
int (***opv_desc_vector_p) __P((void *));
struct vnodeopv_entry_desc *opv_desc_ops; /* null terminated list */
};
@ -361,12 +361,18 @@ struct vnode;
int bdevvp __P((dev_t dev, struct vnode **vpp));
int cdevvp __P((dev_t dev, struct vnode **vpp));
int getnewvnode __P((enum vtagtype tag,
struct mount *mp, int (**vops)(), struct vnode **vpp));
int getnewvnode __P((enum vtagtype tag, struct mount *mp,
int (**vops) __P((void *)), struct vnode **vpp));
int getvnode __P((struct filedesc *fdp, int fd, struct file **fpp));
void getnewfsid __P((struct mount *, int));
void vattr_null __P((struct vattr *vap));
int vcount __P((struct vnode *vp));
void vclean __P((struct vnode *, int));
int vfinddev __P((dev_t, enum vtype, struct vnode **));
void vflushbuf __P((struct vnode *vp, int sync));
int vflush __P((struct mount *mp, struct vnode *vp, int flags));
void vntblinit __P((void));
void vwakeup __P((struct buf *));
int vget __P((struct vnode *vp, int lockflag));
void vgone __P((struct vnode *vp));
void vgoneall __P((struct vnode *vp));
@ -387,11 +393,12 @@ int vn_read __P((struct file *fp, struct uio *uio, struct ucred *cred));
int vn_select __P((struct file *fp, int which, struct proc *p));
int vn_stat __P((struct vnode *vp, struct stat *sb, struct proc *p));
int vn_write __P((struct file *fp, struct uio *uio, struct ucred *cred));
int vn_writechk __P((struct vnode *vp));
struct vnode *
checkalias __P((struct vnode *vp, dev_t nvp_rdev, struct mount *mp));
void vput __P((struct vnode *vp));
void vref __P((struct vnode *vp));
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));
mode_t acc_mode, struct ucred *cred));
#endif /* _KERNEL */