prototype must not carry variable name
This commit is contained in:
parent
4aa6c6db24
commit
eaed89fec5
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: exec.h,v 1.97 2003/06/29 22:32:23 fvdl Exp $ */
|
||||
/* $NetBSD: exec.h,v 1.98 2003/07/08 06:49:19 itojun Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 Christopher G. Demetriou
|
||||
@ -159,7 +159,7 @@ struct exec_package {
|
||||
#define EXEC_HASES 0x0040 /* don't update exec switch pointer */
|
||||
|
||||
struct exec_vmcmd {
|
||||
int (*ev_proc) __P((struct proc *p, struct exec_vmcmd *cmd));
|
||||
int (*ev_proc) __P((struct proc *, struct exec_vmcmd *));
|
||||
/* procedure to run for region of vmspace */
|
||||
u_long ev_len; /* length of the segment to map */
|
||||
u_long ev_addr; /* address in the vmspace to place it at */
|
||||
@ -185,7 +185,7 @@ void kill_vmcmd __P((struct exec_vmcmd **));
|
||||
int exec_makecmds __P((struct proc *, struct exec_package *));
|
||||
int exec_runcmds __P((struct proc *, struct exec_package *));
|
||||
void vmcmdset_extend __P((struct exec_vmcmd_set *));
|
||||
void kill_vmcmds __P((struct exec_vmcmd_set *evsp));
|
||||
void kill_vmcmds __P((struct exec_vmcmd_set *));
|
||||
int vmcmd_map_pagedvn __P((struct proc *, struct exec_vmcmd *));
|
||||
int vmcmd_map_readvn __P((struct proc *, struct exec_vmcmd *));
|
||||
int vmcmd_readvn __P((struct proc *, struct exec_vmcmd *));
|
||||
@ -216,10 +216,9 @@ int exec_remove __P((const struct execsw *));
|
||||
#endif /* LKM */
|
||||
|
||||
#ifdef DEBUG
|
||||
void new_vmcmd __P((struct exec_vmcmd_set *evsp,
|
||||
int (*proc) __P((struct proc *p, struct exec_vmcmd *)),
|
||||
u_long len, u_long addr, struct vnode *vp, u_long offset,
|
||||
u_int prot, int flags));
|
||||
void new_vmcmd __P((struct exec_vmcmd_set *,
|
||||
int (*) __P((struct proc *, struct exec_vmcmd *)),
|
||||
u_long, u_long, struct vnode *, u_long, u_int, int));
|
||||
#define NEW_VMCMD(evsp,proc,len,addr,vp,offset,prot) \
|
||||
new_vmcmd(evsp,proc,len,addr,vp,offset,prot,0)
|
||||
#define NEW_VMCMD2(evsp,proc,len,addr,vp,offset,prot,flags) \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kgdb.h,v 1.6 2002/01/05 22:57:38 dbj Exp $ */
|
||||
/* $NetBSD: kgdb.h,v 1.7 2003/07/08 06:49:20 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -88,7 +88,7 @@ extern int kgdb_dev, kgdb_rate, kgdb_active;
|
||||
extern int kgdb_debug_init, kgdb_debug_panic;
|
||||
extern label_t *kgdb_recover;
|
||||
|
||||
void kgdb_attach __P((int (*)(void *), void (*)(void *, int), void *ioarg));
|
||||
void kgdb_attach __P((int (*)(void *), void (*)(void *, int), void *));
|
||||
void kgdb_connect __P((int));
|
||||
void kgdb_panic __P((void));
|
||||
int kgdb_trap __P((int, db_regs_t *));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lock.h,v 1.48 2003/06/13 05:13:43 thorpej Exp $ */
|
||||
/* $NetBSD: lock.h,v 1.49 2003/07/08 06:49:20 itojun Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
@ -287,11 +287,10 @@ struct lock {
|
||||
|
||||
struct proc;
|
||||
|
||||
void lockinit(struct lock *, int prio, const char *wmesg, int timo,
|
||||
int flags);
|
||||
void lockinit(struct lock *, int, const char *, int, int);
|
||||
#if defined(LOCKDEBUG)
|
||||
int _lockmgr(__volatile struct lock *, u_int flags, struct simplelock *,
|
||||
const char *file, int line);
|
||||
int _lockmgr(__volatile struct lock *, u_int, struct simplelock *,
|
||||
const char *, int);
|
||||
#define lockmgr(l, f, i) _lockmgr((l), (f), (i), __FILE__, __LINE__)
|
||||
#else
|
||||
int lockmgr(__volatile struct lock *, u_int flags, struct simplelock *);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: malloc.h,v 1.87 2003/05/24 06:25:39 gmcgarry Exp $ */
|
||||
/* $NetBSD: malloc.h,v 1.88 2003/07/08 06:49:20 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993
|
||||
@ -207,17 +207,15 @@ extern char *kmembase;
|
||||
extern struct kmembuckets bucket[];
|
||||
|
||||
#ifdef MALLOCLOG
|
||||
void *_malloc(unsigned long size, struct malloc_type *type, int flags,
|
||||
const char *file, long line);
|
||||
void _free(void *addr, struct malloc_type *type, const char *file,
|
||||
long line);
|
||||
void *_malloc(unsigned long, struct malloc_type *, int, const char *, long);
|
||||
void _free(void *, struct malloc_type *, const char *, long);
|
||||
#define malloc(size, type, flags) \
|
||||
_malloc((size), (type), (flags), __FILE__, __LINE__)
|
||||
#define free(addr, type) \
|
||||
_free((addr), (type), __FILE__, __LINE__)
|
||||
#else
|
||||
void *malloc(unsigned long size, struct malloc_type *type, int flags);
|
||||
void free(void *addr, struct malloc_type *type);
|
||||
void *malloc(unsigned long, struct malloc_type *, int);
|
||||
void free(void *, struct malloc_type *);
|
||||
#endif /* MALLOCLOG */
|
||||
|
||||
#ifdef MALLOC_DEBUG
|
||||
@ -229,8 +227,7 @@ void debug_malloc_print(void);
|
||||
void debug_malloc_printit(void (*)(const char *, ...), vaddr_t);
|
||||
#endif /* MALLOC_DEBUG */
|
||||
|
||||
void *realloc(void *curaddr, unsigned long newsize,
|
||||
struct malloc_type *type, int flags);
|
||||
void *realloc(void *, unsigned long, struct malloc_type *, int);
|
||||
unsigned long
|
||||
malloc_roundup(unsigned long);
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: namei.h,v 1.29 2003/06/29 22:32:26 fvdl Exp $ */
|
||||
/* $NetBSD: namei.h,v 1.30 2003/07/08 06:49:21 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1985, 1989, 1991, 1993
|
||||
@ -186,11 +186,10 @@ MALLOC_DECLARE(M_NAMEI);
|
||||
#define PNBUF_GET() pool_cache_get(&pnbuf_cache, PR_WAITOK)
|
||||
#define PNBUF_PUT(pnb) pool_cache_put(&pnbuf_cache, (pnb))
|
||||
|
||||
int namei __P((struct nameidata *ndp));
|
||||
int namei __P((struct nameidata *));
|
||||
uint32_t namei_hash __P((const char *, const char **));
|
||||
int lookup __P((struct nameidata *ndp));
|
||||
int relookup __P((struct vnode *dvp, struct vnode **vpp,
|
||||
struct componentname *cnp));
|
||||
int lookup __P((struct nameidata *));
|
||||
int relookup __P((struct vnode *, struct vnode **, struct componentname *));
|
||||
void cache_purge __P((struct vnode *));
|
||||
int cache_lookup __P((struct vnode *, struct vnode **, struct componentname *));
|
||||
int cache_revlookup __P((struct vnode *, struct vnode **, char **, char *));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: proc.h,v 1.166 2003/06/29 22:32:26 fvdl Exp $ */
|
||||
/* $NetBSD: proc.h,v 1.167 2003/07/08 06:49:21 itojun Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1986, 1989, 1991, 1993
|
||||
@ -114,8 +114,7 @@ struct emul {
|
||||
/* Per-process hooks */
|
||||
void (*e_proc_exec) __P((struct proc *,
|
||||
struct exec_package *));
|
||||
void (*e_proc_fork) __P((struct proc *p,
|
||||
struct proc *parent));
|
||||
void (*e_proc_fork) __P((struct proc *, struct proc *));
|
||||
void (*e_proc_exit) __P((struct proc *));
|
||||
|
||||
#ifdef __HAVE_SYSCALL_INTERN
|
||||
@ -125,7 +124,7 @@ struct emul {
|
||||
#endif
|
||||
/* Emulation specific sysctl */
|
||||
int (*e_sysctl) __P((int *, u_int , void *, size_t *,
|
||||
void *, size_t, struct proc *p));
|
||||
void *, size_t, struct proc *));
|
||||
/* Specific VM fault handling */
|
||||
int (*e_fault) __P((struct proc *, vaddr_t, int, int));
|
||||
};
|
||||
@ -217,7 +216,7 @@ struct proc {
|
||||
* Malloc type M_EMULDATA
|
||||
*/
|
||||
|
||||
void (*p_userret)(struct lwp *l, void *arg);
|
||||
void (*p_userret)(struct lwp *, void *);
|
||||
/* Function to call at userret(). */
|
||||
void *p_userret_arg;
|
||||
|
||||
@ -405,22 +404,22 @@ struct proc *pfind(pid_t); /* Find process by id */
|
||||
struct pgrp *pgfind(pid_t); /* Find process group by id */
|
||||
|
||||
struct simplelock;
|
||||
int chgproccnt(uid_t uid, int diff);
|
||||
int enterpgrp(struct proc *p, pid_t pgid, int mksess);
|
||||
void fixjobc(struct proc *p, struct pgrp *pgrp, int entering);
|
||||
int inferior(struct proc *p, struct proc *q);
|
||||
int leavepgrp(struct proc *p);
|
||||
int chgproccnt(uid_t, int);
|
||||
int enterpgrp(struct proc *, pid_t, int);
|
||||
void fixjobc(struct proc *, struct pgrp *, int);
|
||||
int inferior(struct proc *, struct proc *);
|
||||
int leavepgrp(struct proc *);
|
||||
void sessdelete(struct session *);
|
||||
void yield(void);
|
||||
struct lwp *chooselwp(void);
|
||||
void pgdelete(struct pgrp *pgrp);
|
||||
void pgdelete(struct pgrp *);
|
||||
void procinit(void);
|
||||
void resetprocpriority(struct proc *);
|
||||
void suspendsched(void);
|
||||
int ltsleep(const void *chan, int pri, const char *wmesg, int timo,
|
||||
int ltsleep(const void *, int, const char *, int,
|
||||
__volatile struct simplelock *);
|
||||
void wakeup(const void *chan);
|
||||
void wakeup_one(const void *chan);
|
||||
void wakeup(const void *);
|
||||
void wakeup_one(const void *);
|
||||
void reaper(void *);
|
||||
void exit1(struct lwp *, int);
|
||||
void exit2(struct lwp *);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sa.h,v 1.2 2003/01/18 09:53:16 thorpej Exp $ */
|
||||
/* $NetBSD: sa.h,v 1.3 2003/07/08 06:49:21 itojun Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -47,8 +47,7 @@ struct sa_t {
|
||||
int sa_cpu;
|
||||
};
|
||||
|
||||
typedef void (*sa_upcall_t)(int type, struct sa_t *sas[], int events,
|
||||
int interrupted, void *arg);
|
||||
typedef void (*sa_upcall_t)(int, struct sa_t *[], int, int, void *);
|
||||
|
||||
#define SA_UPCALL_NEWPROC 0
|
||||
#define SA_UPCALL_PREEMPTED 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sched.h,v 1.17 2003/04/28 23:16:29 bjh21 Exp $ */
|
||||
/* $NetBSD: sched.h,v 1.18 2003/07/08 06:49:22 itojun Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000, 2001, 2002 The NetBSD Foundation, Inc.
|
||||
@ -206,7 +206,7 @@ extern __volatile u_int32_t sched_whichqs;
|
||||
struct proc;
|
||||
struct cpu_info;
|
||||
|
||||
void schedclock(struct lwp *p);
|
||||
void schedclock(struct lwp *);
|
||||
void sched_wakeup(const void *);
|
||||
void roundrobin(struct cpu_info *);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: socketvar.h,v 1.63 2003/07/02 20:07:46 ragge Exp $ */
|
||||
/* $NetBSD: socketvar.h,v 1.64 2003/07/08 06:49:22 itojun Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -120,16 +120,15 @@ struct socket {
|
||||
struct sockbuf so_rcv; /* receive buffer */
|
||||
|
||||
void *so_internal; /* Space for svr4 stream data */
|
||||
void (*so_upcall) __P((struct socket *so, caddr_t arg,
|
||||
int waitf));
|
||||
void (*so_upcall) __P((struct socket *, caddr_t, int));
|
||||
caddr_t so_upcallarg; /* Arg for above */
|
||||
int (*so_send) __P((struct socket *so, struct mbuf *addr,
|
||||
struct uio *uio, struct mbuf *top,
|
||||
struct mbuf *control, int flags));
|
||||
int (*so_receive) __P((struct socket *so,
|
||||
struct mbuf **paddr,
|
||||
struct uio *uio, struct mbuf **mp0,
|
||||
struct mbuf **controlp, int *flagsp));
|
||||
int (*so_send) __P((struct socket *, struct mbuf *,
|
||||
struct uio *, struct mbuf *,
|
||||
struct mbuf *, int));
|
||||
int (*so_receive) __P((struct socket *,
|
||||
struct mbuf **,
|
||||
struct uio *, struct mbuf **,
|
||||
struct mbuf **, int *));
|
||||
struct mowner *so_mowner; /* who owns mbufs for this socket */
|
||||
uid_t so_uid; /* who opened the socket */
|
||||
struct mbuf *so_pendfree; /* loaned-page mbufs w/ frees pending */
|
||||
@ -273,70 +272,67 @@ struct knote;
|
||||
/*
|
||||
* File operations on sockets.
|
||||
*/
|
||||
int soo_read(struct file *fp, off_t *offset, struct uio *uio,
|
||||
struct ucred *cred, int flags);
|
||||
int soo_write(struct file *fp, off_t *offset, struct uio *uio,
|
||||
struct ucred *cred, int flags);
|
||||
int soo_fcntl(struct file *fp, u_int cmd, void *data, struct proc *p);
|
||||
int soo_ioctl(struct file *fp, u_long cmd, void *data, struct proc *p);
|
||||
int soo_poll(struct file *fp, int events, struct proc *p);
|
||||
int soo_kqfilter(struct file *fp, struct knote *kn);
|
||||
int soo_close(struct file *fp, struct proc *p);
|
||||
int soo_stat(struct file *fp, struct stat *ub, struct proc *p);
|
||||
int uipc_usrreq(struct socket *, int , struct mbuf *,
|
||||
int soo_read(struct file *, off_t *, struct uio *, struct ucred *, int);
|
||||
int soo_write(struct file *, off_t *, struct uio *, struct ucred *, int);
|
||||
int soo_fcntl(struct file *, u_int cmd, void *, struct proc *);
|
||||
int soo_ioctl(struct file *, u_long cmd, void *, struct proc *);
|
||||
int soo_poll(struct file *, int, struct proc *);
|
||||
int soo_kqfilter(struct file *, struct knote *);
|
||||
int soo_close(struct file *, struct proc *);
|
||||
int soo_stat(struct file *, struct stat *, struct proc *);
|
||||
int uipc_usrreq(struct socket *, int, struct mbuf *,
|
||||
struct mbuf *, struct mbuf *, struct proc *);
|
||||
int uipc_ctloutput(int, struct socket *, int, int, struct mbuf **);
|
||||
void sbappend(struct sockbuf *sb, struct mbuf *m);
|
||||
void sbappendstream(struct sockbuf *sb, struct mbuf *m);
|
||||
int sbappendaddr(struct sockbuf *sb, struct sockaddr *asa,
|
||||
struct mbuf *m0, struct mbuf *control);
|
||||
int sbappendcontrol(struct sockbuf *sb, struct mbuf *m0,
|
||||
struct mbuf *control);
|
||||
void sbappendrecord(struct sockbuf *sb, struct mbuf *m0);
|
||||
void sbcheck(struct sockbuf *sb);
|
||||
void sbcompress(struct sockbuf *sb, struct mbuf *m, struct mbuf *n);
|
||||
void sbappend(struct sockbuf *, struct mbuf *);
|
||||
void sbappendstream(struct sockbuf *, struct mbuf *);
|
||||
int sbappendaddr(struct sockbuf *, struct sockaddr *, struct mbuf *,
|
||||
struct mbuf *);
|
||||
int sbappendcontrol(struct sockbuf *, struct mbuf *, struct mbuf *);
|
||||
void sbappendrecord(struct sockbuf *, struct mbuf *);
|
||||
void sbcheck(struct sockbuf *);
|
||||
void sbcompress(struct sockbuf *, struct mbuf *, struct mbuf *);
|
||||
struct mbuf *
|
||||
sbcreatecontrol(caddr_t p, int size, int type, int level);
|
||||
void sbdrop(struct sockbuf *sb, int len);
|
||||
void sbdroprecord(struct sockbuf *sb);
|
||||
void sbflush(struct sockbuf *sb);
|
||||
void sbinsertoob(struct sockbuf *sb, struct mbuf *m0);
|
||||
void sbrelease(struct sockbuf *sb);
|
||||
int sbreserve(struct sockbuf *sb, u_long cc);
|
||||
int sbwait(struct sockbuf *sb);
|
||||
int sb_lock(struct sockbuf *sb);
|
||||
sbcreatecontrol(caddr_t, int, int, int);
|
||||
void sbdrop(struct sockbuf *, int);
|
||||
void sbdroprecord(struct sockbuf *);
|
||||
void sbflush(struct sockbuf *);
|
||||
void sbinsertoob(struct sockbuf *, struct mbuf *);
|
||||
void sbrelease(struct sockbuf *);
|
||||
int sbreserve(struct sockbuf *, u_long);
|
||||
int sbwait(struct sockbuf *);
|
||||
int sb_lock(struct sockbuf *);
|
||||
void soinit(void);
|
||||
int soabort(struct socket *so);
|
||||
int soaccept(struct socket *so, struct mbuf *nam);
|
||||
int sobind(struct socket *so, struct mbuf *nam, struct proc *);
|
||||
void socantrcvmore(struct socket *so);
|
||||
void socantsendmore(struct socket *so);
|
||||
int soclose(struct socket *so);
|
||||
int soconnect(struct socket *so, struct mbuf *nam);
|
||||
int soconnect2(struct socket *so1, struct socket *so2);
|
||||
int socreate(int dom, struct socket **aso, int type, int proto);
|
||||
int sodisconnect(struct socket *so);
|
||||
void sofree(struct socket *so);
|
||||
int sogetopt(struct socket *so, int level, int optname, struct mbuf **mp);
|
||||
void sohasoutofband(struct socket *so);
|
||||
void soisconnected(struct socket *so);
|
||||
void soisconnecting(struct socket *so);
|
||||
void soisdisconnected(struct socket *so);
|
||||
void soisdisconnecting(struct socket *so);
|
||||
int solisten(struct socket *so, int backlog);
|
||||
int soabort(struct socket *);
|
||||
int soaccept(struct socket *, struct mbuf *);
|
||||
int sobind(struct socket *, struct mbuf *, struct proc *);
|
||||
void socantrcvmore(struct socket *);
|
||||
void socantsendmore(struct socket *);
|
||||
int soclose(struct socket *);
|
||||
int soconnect(struct socket *, struct mbuf *);
|
||||
int soconnect2(struct socket *, struct socket *);
|
||||
int socreate(int, struct socket **, int, int);
|
||||
int sodisconnect(struct socket *);
|
||||
void sofree(struct socket *);
|
||||
int sogetopt(struct socket *, int, int, struct mbuf **);
|
||||
void sohasoutofband(struct socket *);
|
||||
void soisconnected(struct socket *);
|
||||
void soisconnecting(struct socket *);
|
||||
void soisdisconnected(struct socket *);
|
||||
void soisdisconnecting(struct socket *);
|
||||
int solisten(struct socket *, int);
|
||||
struct socket *
|
||||
sonewconn1(struct socket *head, int connstatus);
|
||||
void soqinsque(struct socket *head, struct socket *so, int q);
|
||||
int soqremque(struct socket *so, int q);
|
||||
int soreceive(struct socket *so, struct mbuf **paddr, struct uio *uio,
|
||||
struct mbuf **mp0, struct mbuf **controlp, int *flagsp);
|
||||
int soreserve(struct socket *so, u_long sndcc, u_long rcvcc);
|
||||
void sorflush(struct socket *so);
|
||||
int sosend(struct socket *so, struct mbuf *addr, struct uio *uio,
|
||||
struct mbuf *top, struct mbuf *control, int flags);
|
||||
int sosetopt(struct socket *so, int level, int optname, struct mbuf *m0);
|
||||
int soshutdown(struct socket *so, int how);
|
||||
void sowakeup(struct socket *so, struct sockbuf *sb);
|
||||
sonewconn1(struct socket *, int);
|
||||
void soqinsque(struct socket *, struct socket *, int);
|
||||
int soqremque(struct socket *, int);
|
||||
int soreceive(struct socket *, struct mbuf **, struct uio *,
|
||||
struct mbuf **, struct mbuf **, int *);
|
||||
int soreserve(struct socket *, u_long, u_long);
|
||||
void sorflush(struct socket *);
|
||||
int sosend(struct socket *, struct mbuf *, struct uio *,
|
||||
struct mbuf *, struct mbuf *, int);
|
||||
int sosetopt(struct socket *, int, int, struct mbuf *);
|
||||
int soshutdown(struct socket *, int);
|
||||
void sowakeup(struct socket *, struct sockbuf *);
|
||||
int sockargs(struct mbuf **, const void *, size_t, int);
|
||||
|
||||
int sendit(struct proc *, int, struct msghdr *, int, register_t *);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: systm.h,v 1.164 2003/07/08 06:18:00 itojun Exp $ */
|
||||
/* $NetBSD: systm.h,v 1.165 2003/07/08 06:49:22 itojun Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1988, 1991, 1993
|
||||
@ -336,7 +336,7 @@ void doexithooks __P((struct proc *));
|
||||
*/
|
||||
void *forkhook_establish __P((void (*)(struct proc *, struct proc *)));
|
||||
void forkhook_disestablish __P((void *));
|
||||
void doforkhooks __P((struct proc *, struct proc *p));
|
||||
void doforkhooks __P((struct proc *, struct proc *));
|
||||
|
||||
/*
|
||||
* kernel syscall tracing/debugging hooks.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: verified_exec.h,v 1.3 2003/06/29 22:32:30 fvdl Exp $ */
|
||||
/* $NetBSD: verified_exec.h,v 1.4 2003/07/08 06:49:23 itojun Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998-1999 Brett Lymn
|
||||
@ -92,14 +92,11 @@ struct veriexec_inode_list
|
||||
LIST_ENTRY(veriexec_inode_list) entries;
|
||||
};
|
||||
|
||||
struct veriexec_inode_list *
|
||||
get_veriexec_inode(struct veriexec_devhead *head, long fsid, long fileid,
|
||||
char *found_dev);
|
||||
int
|
||||
evaluate_fingerprint(struct vnode *vp, struct veriexec_inode_list *ip,
|
||||
struct proc *p, u_quad_t file_size, char *fingerprint);
|
||||
int
|
||||
fingerprintcmp(struct veriexec_inode_list *ip, unsigned char *digest);
|
||||
struct veriexec_inode_list *get_veriexec_inode(struct veriexec_devhead *,
|
||||
long, long, char *);
|
||||
int evaluate_fingerprint(struct vnode *, struct veriexec_inode_list *,
|
||||
struct proc *, u_quad_t, char *);
|
||||
int fingerprintcmp(struct veriexec_inode_list *, unsigned char *);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vnode.h,v 1.112 2003/06/29 22:32:30 fvdl Exp $ */
|
||||
/* $NetBSD: vnode.h,v 1.113 2003/07/08 06:49:23 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -526,54 +526,49 @@ struct vattr;
|
||||
struct vnode;
|
||||
|
||||
/* see vnode(9) */
|
||||
int bdevvp(dev_t dev, struct vnode **vpp);
|
||||
int cdevvp(dev_t dev, struct vnode **vpp);
|
||||
int bdevvp(dev_t, struct vnode **);
|
||||
int cdevvp(dev_t, struct vnode **);
|
||||
struct vnode *
|
||||
checkalias(struct vnode *vp, dev_t nvp_rdev, struct mount *mp);
|
||||
int getnewvnode(enum vtagtype tag, struct mount *mp,
|
||||
int (**vops)(void *), struct vnode **vpp);
|
||||
checkalias(struct vnode *, dev_t, struct mount *);
|
||||
int getnewvnode(enum vtagtype, struct mount *, int (**)(void *),
|
||||
struct vnode **);
|
||||
void ungetnewvnode(struct vnode *);
|
||||
int vaccess(enum vtype type, mode_t file_mode, uid_t uid, gid_t gid,
|
||||
mode_t acc_mode, struct ucred *cred);
|
||||
void vattr_null(struct vattr *vap);
|
||||
int vcount(struct vnode *vp);
|
||||
int vaccess(enum vtype, mode_t, uid_t, gid_t, mode_t, struct ucred *);
|
||||
void vattr_null(struct vattr *);
|
||||
int vcount(struct vnode *);
|
||||
void vdevgone(int, int, int, enum vtype);
|
||||
int vfinddev(dev_t, enum vtype, struct vnode **);
|
||||
int vflush(struct mount *mp, struct vnode *vp, int flags);
|
||||
void vflushbuf(struct vnode *vp, int sync);
|
||||
int vget(struct vnode *vp, int lockflag);
|
||||
void vgone(struct vnode *vp);
|
||||
void vgonel(struct vnode *vp, struct proc *p);
|
||||
int vinvalbuf(struct vnode *vp, int save, struct ucred *cred,
|
||||
struct proc *p, int slpflag, int slptimeo);
|
||||
void vprint(char *label, struct vnode *vp);
|
||||
void vput(struct vnode *vp);
|
||||
int vrecycle(struct vnode *vp, struct simplelock *inter_lkp,
|
||||
struct proc *p);
|
||||
void vrele(struct vnode *vp);
|
||||
int vtruncbuf(struct vnode *vp, daddr_t lbn,
|
||||
int slpflag, int slptimeo);
|
||||
int vflush(struct mount *, struct vnode *, int);
|
||||
void vflushbuf(struct vnode *, int);
|
||||
int vget(struct vnode *, int);
|
||||
void vgone(struct vnode *);
|
||||
void vgonel(struct vnode *, struct proc *);
|
||||
int vinvalbuf(struct vnode *, int, struct ucred *,
|
||||
struct proc *, int, int);
|
||||
void vprint(char *, struct vnode *);
|
||||
void vput(struct vnode *);
|
||||
int vrecycle(struct vnode *, struct simplelock *, struct proc *);
|
||||
void vrele(struct vnode *);
|
||||
int vtruncbuf(struct vnode *, daddr_t, int, int);
|
||||
void vwakeup(struct buf *);
|
||||
|
||||
/* see vnsubr(9) */
|
||||
int vn_bwrite(void *ap);
|
||||
int vn_close(struct vnode *vp,
|
||||
int flags, struct ucred *cred, struct proc *p);
|
||||
int vn_isunder(struct vnode *dvp, struct vnode *rvp, struct proc *p);
|
||||
int vn_lock(struct vnode *vp, int flags);
|
||||
int vn_bwrite(void *);
|
||||
int vn_close(struct vnode *, int, struct ucred *, struct proc *);
|
||||
int vn_isunder(struct vnode *, struct vnode *, struct proc *);
|
||||
int vn_lock(struct vnode *, int);
|
||||
void vn_markexec(struct vnode *);
|
||||
int vn_marktext(struct vnode *);
|
||||
int vn_open(struct nameidata *ndp, int fmode, int cmode);
|
||||
int vn_rdwr(enum uio_rw rw, struct vnode *vp, caddr_t base,
|
||||
int len, off_t offset, enum uio_seg segflg, int ioflg,
|
||||
struct ucred *cred, size_t *aresid, struct proc *p);
|
||||
int vn_readdir(struct file *fp, char *, int segflg, u_int count,
|
||||
int *done, struct proc *p, off_t **cookies, int *ncookies);
|
||||
void vn_restorerecurse(struct vnode *vp, u_int flags);
|
||||
u_int vn_setrecurse(struct vnode *vp);
|
||||
int vn_stat(struct vnode *vp, struct stat *sb, struct proc *p);
|
||||
int vn_kqfilter(struct file *fp, struct knote *kn);
|
||||
int vn_writechk(struct vnode *vp);
|
||||
int vn_open(struct nameidata *, int, int);
|
||||
int vn_rdwr(enum uio_rw, struct vnode *, caddr_t, int, off_t, enum uio_seg,
|
||||
int, struct ucred *, size_t *, struct proc *);
|
||||
int vn_readdir(struct file *, char *, int, u_int, int *, struct proc *,
|
||||
off_t **, int *);
|
||||
void vn_restorerecurse(struct vnode *, u_int);
|
||||
u_int vn_setrecurse(struct vnode *);
|
||||
int vn_stat(struct vnode *, struct stat *, struct proc *);
|
||||
int vn_kqfilter(struct file *, struct knote *);
|
||||
int vn_writechk(struct vnode *);
|
||||
|
||||
/* initialise global vnode management */
|
||||
void vntblinit(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user