*
* %sccs.include.redist.c%
*
- * @(#)acct.h 8.3 (Berkeley) %G%
+ * @(#)acct.h 8.4 (Berkeley) %G%
*/
/*
#ifdef KERNEL
struct vnode *acctp;
+
+int acct_process __P((struct proc *p));
#endif
*
* %sccs.include.redist.c%
*
- * @(#)buf.h 8.7 (Berkeley) %G%
+ * @(#)buf.h 8.8 (Berkeley) %G%
*/
#ifndef _SYS_BUF_H_
/* Function to call upon completion. */
void (*b_iodone) __P((struct buf *));
struct vnode *b_vp; /* Device vnode. */
- int b_pfcent; /* Center page when swapping cluster. */
+ long b_pfcent; /* Center page when swapping cluster. */
+ /* XXX pfcent should be int; overld. */
int b_dirtyoff; /* Offset in buffer of dirty region. */
int b_dirtyend; /* Offset of end of dirty region. */
struct ucred *b_rcred; /* Read credentials reference. */
* Zero out the buffer's data area.
*/
#define clrbuf(bp) { \
- blkclr((bp)->b_data, (u_int)(bp)->b_bcount); \
+ bzero((bp)->b_data, (u_int)(bp)->b_bcount); \
(bp)->b_resid = 0; \
}
__BEGIN_DECLS
int allocbuf __P((struct buf *, int));
-int bawrite __P((struct buf *));
-int bdwrite __P((struct buf *));
+void bawrite __P((struct buf *));
+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 **));
int breadn __P((struct vnode *, daddr_t, int, daddr_t *, int *, int,
struct ucred *, struct buf **));
-int brelse __P((struct buf *));
+void brelse __P((struct buf *));
void bufinit __P((void));
int bwrite __P((struct buf *));
void cluster_callback __P((struct buf *));
*
* %sccs.include.redist.c%
*
- * @(#)cdefs.h 8.7 (Berkeley) %G%
+ * @(#)cdefs.h 8.8 (Berkeley) %G%
*/
#ifndef _CDEFS_H_
* these work for GNU C++ (modulo a slight glitch in the C++ grammar
* in the distribution version of 2.5.5).
*/
-#if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 5
+#if !defined(__GNUC__) || __GNUC__ < 2 || \
+ (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
#define __attribute__(x) /* delete __attribute__ if non-gcc or gcc1 */
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
#define __dead __volatile
*
* %sccs.include.redist.c%
*
- * @(#)conf.h 8.4 (Berkeley) %G%
+ * @(#)conf.h 8.5 (Berkeley) %G%
*/
/*
struct proc *p));
int (*d_close) __P((dev_t dev, int fflag, int devtype,
struct proc *p));
- int (*d_strategy) __P((struct buf *bp));
- int (*d_ioctl) __P((dev_t dev, int cmd, caddr_t data,
+ void (*d_strategy) __P((struct buf *bp));
+ int (*d_ioctl) __P((dev_t dev, u_long cmd, caddr_t data,
int fflag, struct proc *p));
int (*d_dump) (); /* parameters vary by architecture */
int (*d_psize) __P((dev_t dev));
struct proc *));
int (*d_read) __P((dev_t dev, struct uio *uio, int ioflag));
int (*d_write) __P((dev_t dev, struct uio *uio, int ioflag));
- int (*d_ioctl) __P((dev_t dev, int cmd, caddr_t data,
+ int (*d_ioctl) __P((dev_t dev, u_long cmd, caddr_t data,
int fflag, struct proc *p));
int (*d_stop) __P((struct tty *tp, int rw));
int (*d_reset) __P((int uban)); /* XXX */
struct tty *d_ttys;
int (*d_select) __P((dev_t dev, int which, struct proc *p));
int (*d_mmap) __P(());
- int (*d_strategy) __P((struct buf *bp));
+ void (*d_strategy) __P((struct buf *bp));
int d_type;
};
extern char devioc[], devcls[];
#endif
+/*
+ * Line discipline switch table
+ */
struct linesw {
int (*l_open) __P((dev_t dev, struct tty *tp));
int (*l_close) __P((struct tty *tp, int flag));
int flag));
int (*l_write) __P((struct tty *tp, struct uio *uio,
int flag));
- int (*l_ioctl) __P((struct tty *tp, int cmd, caddr_t data,
+ int (*l_ioctl) __P((struct tty *tp, u_long cmd, caddr_t data,
int flag, struct proc *p));
int (*l_rint) __P((int c, struct tty *tp));
int (*l_start) __P((struct tty *tp));
extern struct linesw linesw[];
#endif
+/*
+ * Swap device table
+ */
struct swdevt {
dev_t sw_dev;
int sw_flags;
};
#define SW_FREED 0x01
#define SW_SEQUENTIAL 0x02
-#define sw_freed sw_flags /* XXX compat */
+#define sw_freed sw_flags /* XXX compat */
#ifdef KERNEL
extern struct swdevt swdevt[];
*
* %sccs.include.redist.c%
*
- * @(#)disk.h 8.1 (Berkeley) %G%
+ * @(#)disk.h 8.2 (Berkeley) %G%
*
* from: $Header: disk.h,v 1.5 92/11/19 04:33:03 torek Exp $ (LBL)
*/
#ifdef notyet
int (*d_open) __P((dev_t dev, int ifmt, int, struct proc *));
int (*d_close) __P((dev_t dev, int, int ifmt, struct proc *));
- int (*d_ioctl) __P((dev_t dev, int cmd, caddr_t data, int fflag,
+ int (*d_ioctl) __P((dev_t dev, u_long cmd, caddr_t data, int fflag,
struct proc *));
int (*d_dump) __P((dev_t));
void (*d_start) __P((struct buf *, daddr_t));
*
* %sccs.include.redist.c%
*
- * @(#)file.h 8.2 (Berkeley) %G%
+ * @(#)file.h 8.3 (Berkeley) %G%
*/
#include <sys/fcntl.h>
struct ucred *cred));
int (*fo_write) __P((struct file *fp, struct uio *uio,
struct ucred *cred));
- int (*fo_ioctl) __P((struct file *fp, int com,
+ int (*fo_ioctl) __P((struct file *fp, u_long com,
caddr_t data, struct proc *p));
int (*fo_select) __P((struct file *fp, int which,
struct proc *p));
*
* %sccs.include.redist.c%
*
- * @(#)ioccom.h 8.2 (Berkeley) %G%
+ * @(#)ioccom.h 8.3 (Berkeley) %G%
*/
#ifndef _SYS_IOCCOM_H_
#define IOCBASECMD(x) ((x) & ~(IOCPARM_MASK << 16))
#define IOCGROUP(x) (((x) >> 8) & 0xff)
-#define IOCPARM_MAX NBPG /* max size of ioctl, mult. of NBPG */
-#define IOC_VOID 0x20000000 /* no parameters */
-#define IOC_OUT 0x40000000 /* copy out parameters */
-#define IOC_IN 0x80000000 /* copy in parameters */
+#define IOCPARM_MAX NBPG /* max size of ioctl args, mult. of NBPG */
+ /* no parameters */
+#define IOC_VOID (unsigned long)0x20000000
+ /* copy parameters out */
+#define IOC_OUT (unsigned long)0x40000000
+ /* copy parameters in */
+#define IOC_IN (unsigned long)0x80000000
+ /* copy paramters in and out */
#define IOC_INOUT (IOC_IN|IOC_OUT)
-#define IOC_DIRMASK 0xe0000000 /* mask for IN/OUT/VOID */
+ /* mask for IN/OUT/VOID */
+#define IOC_DIRMASK (unsigned long)0xe0000000
#define _IOC(inout,group,num,len) \
(inout | ((len & IOCPARM_MASK) << 16) | ((group) << 8) | (num))
*
* %sccs.include.redist.c%
*
- * @(#)mbuf.h 8.3 (Berkeley) %G%
+ * @(#)mbuf.h 8.4 (Berkeley) %G%
*/
#ifndef M_WAITOK
* mtocl(x) - convert pointer within cluster to cluster index #
* cltom(x) - convert cluster # to ptr to beginning of cluster
*/
-#define mtod(m,t) ((t)((m)->m_data))
-#define dtom(x) ((struct mbuf *)((int)(x) & ~(MSIZE-1)))
-#define mtocl(x) (((u_int)(x) - (u_int)mbutl) >> MCLSHIFT)
-#define cltom(x) ((caddr_t)((u_int)mbutl + ((u_int)(x) << MCLSHIFT)))
+#define mtod(m,t) ((t)((m)->m_data))
+#define dtom(x) ((struct mbuf *)((long)(x) & ~(MSIZE-1)))
+#define mtocl(x) (((u_long)(x) - (u_long)mbutl) >> MCLSHIFT)
+#define cltom(x) ((caddr_t)((u_long)mbutl + ((u_long)(x) << MCLSHIFT)))
/* header at beginning of each mbuf: */
struct m_hdr {
struct mbuf *mh_next; /* next buffer in chain */
struct mbuf *mh_nextpkt; /* next chain in queue/record */
- int mh_len; /* amount of data in this mbuf */
caddr_t mh_data; /* location of data */
+ int mh_len; /* amount of data in this mbuf */
short mh_type; /* type of data in this mbuf */
short mh_flags; /* flags; see below */
};
/* record/packet header in first mbuf of chain; valid if M_PKTHDR set */
struct pkthdr {
- int len; /* total packet length */
- struct ifnet *rcvif; /* rcv interface */
+ struct ifnet *rcvif; /* rcv interface */
+ int len; /* total packet length */
};
/* description of external storage mapped into mbuf, valid if M_EXT set */
#define MCLALLOC(p, how) \
MBUFLOCK( \
(void)m_clalloc(1, (how)); \
- if ((p) = (caddr_t)mclfree) { \
+ if (((p) = (caddr_t)mclfree) != 0) { \
++mclrefcnt[mtocl(p)]; \
mbstat.m_clfree--; \
mclfree = ((union mcluster *)(p))->mcl_next; \
struct mbuf *m_pullup __P((struct mbuf *, int));
struct mbuf *m_retry __P((int, int));
struct mbuf *m_retryhdr __P((int, int));
+void m_adj __P((struct mbuf *, int));
int m_clalloc __P((int, int));
void m_copyback __P((struct mbuf *, int, int, caddr_t));
void m_freem __P((struct mbuf *));
*
* %sccs.include.redist.c%
*
- * @(#)mman.h 8.1 (Berkeley) %G%
+ * @(#)mman.h 8.2 (Berkeley) %G%
*/
/*
* Protections are chosen from these bits, or-ed together
*/
+#define PROT_NONE 0x00 /* no permissions */
#define PROT_READ 0x01 /* pages can be read */
#define PROT_WRITE 0x02 /* pages can be written */
#define PROT_EXEC 0x04 /* pages can be executed */
#define MAP_HASSEMAPHORE 0x0200 /* region may contain semaphores */
/*
- * Mapping type; default is map from file.
+ * Mapping type
*/
+#define MAP_FILE 0x0000 /* map from file (default) */
#define MAP_ANON 0x1000 /* allocated from memory, swap space */
/*
int msync __P((caddr_t, size_t));
int mlock __P((caddr_t, size_t));
int munlock __P((caddr_t, size_t));
+int madvise __P((caddr_t, size_t, int));
__END_DECLS
#endif /* !KERNEL */
*
* %sccs.include.redist.c%
*
- * @(#)mount.h 8.15 (Berkeley) %G%
+ * @(#)mount.h 8.16 (Berkeley) %G%
*/
#ifndef KERNEL
#endif
#include <sys/queue.h>
-typedef struct { long val[2]; } fsid_t; /* file system id type */
+typedef struct { int32_t val[2]; } fsid_t; /* file system id type */
/*
* File identifier.
* file system statistics
*/
-#define MNAMELEN 90 /* length of buffer for returned name */
+#define MNAMELEN 90 /* length of buffer for returned name */
struct statfs {
short f_type; /* type of filesystem (see below) */
#define MOUNT_LOFS 6 /* Loopback Filesystem */
#define MOUNT_FDESC 7 /* File Descriptor Filesystem */
#define MOUNT_PORTAL 8 /* Portal Filesystem */
-#define MOUNT_NULL 9 /* Minimal Filesystem Layer */
-#define MOUNT_UMAP 10 /* User/Group Identifer Remapping Filesystem */
-#define MOUNT_KERNFS 11 /* Kernel Information Filesystem */
-#define MOUNT_PROCFS 12 /* /proc Filesystem */
-#define MOUNT_AFS 13 /* Andrew Filesystem */
-#define MOUNT_CD9660 14 /* ISO9660 (aka CDROM) Filesystem */
-#define MOUNT_UNION 15 /* Union (translucent) Filesystem */
+#define MOUNT_NULL 9 /* Minimal Filesystem Layer */
+#define MOUNT_UMAP 10 /* User/Group Identifer Remapping Filesystem */
+#define MOUNT_KERNFS 11 /* Kernel Information Filesystem */
+#define MOUNT_PROCFS 12 /* /proc Filesystem */
+#define MOUNT_AFS 13 /* Andrew Filesystem */
+#define MOUNT_CD9660 14 /* ISO9660 (aka CDROM) Filesystem */
+#define MOUNT_UNION 15 /* Union (translucent) Filesystem */
#define MOUNT_MAXTYPE 15
#define INITMOUNTNAMES { \
char *fspec; /* name to export for statfs */
struct export_args export; /* if exported MFSes are supported */
caddr_t base; /* base of file system in memory */
- u_long size; /* size of file system */
+ u_long size; /* size of file system */
};
#endif /* MFS */
* Arguments to mount ISO 9660 filesystems.
*/
struct iso_args {
- char *fspec; /* block special device to mount */
+ char *fspec; /* block special device to mount */
struct export_args export; /* network export info */
- int flags; /* mounting flags, see below */
-
+ int flags; /* mounting flags, see below */
};
-#define ISOFSMNT_NORRIP 0x00000001 /* disable Rock Ridge Ext.*/
-#define ISOFSMNT_GENS 0x00000002 /* enable generation numbers */
-#define ISOFSMNT_EXTATT 0x00000004 /* enable extended attributes */
+#define ISOFSMNT_NORRIP 0x00000001 /* disable Rock Ridge Ext.*/
+#define ISOFSMNT_GENS 0x00000002 /* enable generation numbers */
+#define ISOFSMNT_EXTATT 0x00000004 /* enable extended attributes */
#endif /* CD9660 */
#ifdef NFS
char *hostname; /* server's name */
};
-
/*
* NFS mount option flags
*/
#define NFSMNT_WSIZE 0x00000002 /* set write size */
#define NFSMNT_RSIZE 0x00000004 /* set read size */
#define NFSMNT_TIMEO 0x00000008 /* set initial timeout */
-#define NFSMNT_RETRANS 0x00000010 /* set number of request retrys */
+#define NFSMNT_RETRANS 0x00000010 /* set number of request retries */
#define NFSMNT_MAXGRPS 0x00000020 /* set maximum grouplist size */
#define NFSMNT_INT 0x00000040 /* allow interrupts on hard mount */
#define NFSMNT_NOCONN 0x00000080 /* Don't Connect the socket */
*
* %sccs.include.redist.c%
*
- * @(#)namei.h 8.4 (Berkeley) %G%
+ * @(#)namei.h 8.5 (Berkeley) %G%
*/
#ifndef _SYS_NAMEI_H_
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));
#endif
/*
*
* %sccs.include.redist.c%
*
- * @(#)proc.h 8.12 (Berkeley) %G%
+ * @(#)proc.h 8.13 (Berkeley) %G%
*/
#ifndef _SYS_PROC_H_
/* End area that is copied on creation. */
#define p_endcopy p_thread
- int p_thread; /* Id for this "thread"; Mach glue. XXX */
+
+ void *p_thread; /* Id for this "thread"; Mach glue. XXX */
struct user *p_addr; /* Kernel virtual addr of u-area (PROC ONLY). */
struct mdproc p_md; /* Any machine-dependent fields. */
struct proc *pfind __P((pid_t)); /* Find process by id. */
struct pgrp *pgfind __P((pid_t)); /* Find process group by id. */
+int chgproccnt __P((uid_t uid, int diff));
+int enterpgrp __P((struct proc *p, pid_t pgid, int mksess));
+void fixjobc __P((struct proc *p, struct pgrp *pgrp, int entering));
+int inferior __P((struct proc *p));
+int leavepgrp __P((struct proc *p));
void mi_switch __P((void));
+void pgdelete __P((struct pgrp *pgrp));
+void procinit __P((void));
void resetpriority __P((struct proc *));
void setrunnable __P((struct proc *));
void setrunqueue __P((struct proc *));
*
* %sccs.include.redist.c%
*
- * @(#)resource.h 8.3 (Berkeley) %G%
+ * @(#)resource.h 8.4 (Berkeley) %G%
*/
#ifndef _SYS_RESOURCE_H_
/* Load average structure. */
struct loadavg {
fixpt_t ldavg[3];
- int32_t fscale;
+ long fscale;
};
#ifdef KERNEL
*
* %sccs.include.redist.c%
*
- * @(#)resourcevar.h 8.3 (Berkeley) %G%
+ * @(#)resourcevar.h 8.4 (Berkeley) %G%
*/
#ifndef _SYS_RESOURCEVAR_H_
#ifdef KERNEL
void addupc_intr __P((struct proc *p, u_long pc, u_int ticks));
void addupc_task __P((struct proc *p, u_long pc, u_int ticks));
+void calcru __P((struct proc *p, struct timeval *up, struct timeval *sp,
+ struct timeval *ip));
struct plimit
*limcopy __P((struct plimit *lim));
+void ruadd __P((struct rusage *ru, struct rusage *ru2));
#endif
#endif /* !_SYS_RESOURCEVAR_H_ */
*
* %sccs.include.redist.c%
*
- * @(#)signalvar.h 8.4 (Berkeley) %G%
+ * @(#)signalvar.h 8.5 (Berkeley) %G%
*/
#ifndef _SYS_SIGNALVAR_H_ /* tmp for user.h */
int ps_flags; /* signal flags, below */
struct sigaltstack ps_sigstk; /* sp & on stack state variable */
int ps_sig; /* for core dump/debugger XXX */
- int ps_code; /* for core dump/debugger XXX */
- int ps_addr; /* for core dump/debugger XXX */
+ long ps_code; /* for core dump/debugger XXX */
+ long ps_addr; /* for core dump/debugger XXX */
sigset_t ps_usertramp; /* SunOS compat; libc sigtramp XXX */
};
void postsig __P((int sig));
void psignal __P((struct proc *p, int sig));
void siginit __P((struct proc *p));
-void trapsignal __P((struct proc *p, int sig, unsigned code));
+void trapsignal __P((struct proc *p, int sig, u_long code));
/*
* Machine-dependent functions:
*/
-void sendsig __P((sig_t action, int sig, int returnmask, unsigned code));
+void sendsig __P((sig_t action, int sig, int returnmask, u_long code));
#endif /* KERNEL */
#endif /* !_SYS_SIGNALVAR_H_ */
*
* %sccs.include.redist.c%
*
- * @(#)socketvar.h 8.1 (Berkeley) %G%
+ * @(#)socketvar.h 8.2 (Berkeley) %G%
*/
#include <sys/select.h> /* for struct selinfo */
*/
int soo_read __P((struct file *fp, struct uio *uio, struct ucred *cred));
int soo_write __P((struct file *fp, struct uio *uio, struct ucred *cred));
-int soo_ioctl __P((struct file *fp, int com, caddr_t data, struct proc *p));
+int soo_ioctl __P((struct file *fp, u_long cmd, caddr_t data,
+ struct proc *p));
int soo_select __P((struct file *fp, int which, struct proc *p));
int soo_close __P((struct file *fp, struct proc *p));
#endif
*
* %sccs.include.redist.c%
*
- * @(#)stat.h 8.9 (Berkeley) %G%
+ * @(#)stat.h 8.10 (Berkeley) %G%
*/
#ifndef _SYS_STAT_H_
struct timespec st_mtimespec; /* time of last data modification */
struct timespec st_ctimespec; /* time of last file status change */
off_t st_size; /* file size, in bytes */
- quad_t st_blocks; /* blocks allocated for file */
+ int64_t st_blocks; /* blocks allocated for file */
u_int32_t st_blksize; /* optimal blocksize for I/O */
u_int32_t st_flags; /* user defined flags for file */
u_int32_t st_gen; /* file generation number */
int32_t st_lspare;
- quad_t st_qspare[2];
+ int64_t st_qspare[2];
};
#define st_atime st_atimespec.ts_sec
#define st_mtime st_mtimespec.ts_sec
*
* %sccs.include.redist.c%
*
- * @(#)systm.h 8.4 (Berkeley) %G%
+ * @(#)systm.h 8.5 (Berkeley) %G%
*/
/*
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 *));
#ifdef __GNUC__
volatile void panic __P((const char *, ...));
*
* %sccs.include.redist.c%
*
- * @(#)time.h 8.2 (Berkeley) %G%
+ * @(#)time.h 8.3 (Berkeley) %G%
*/
#ifndef _SYS_TIME_H_
int profhz; /* profiling clock frequency */
};
-#ifndef KERNEL
+#ifdef KERNEL
+int itimerfix __P((struct timeval *tv));
+int itimerdecr __P((struct itimerval *itp, int usec));
+void microtime __P((struct timeval *tv));
+#else /* !KERNEL */
#include <time.h>
#ifndef _POSIX_SOURCE
*
* %sccs.include.redist.c%
*
- * @(#)tty.h 8.6 (Berkeley) %G%
+ * @(#)tty.h 8.7 (Berkeley) %G%
*/
#include <sys/termios.h>
long t_cancc; /* Canonical queue statistics. */
struct clist t_outq; /* Device output queue. */
long t_outcc; /* Output queue statistics. */
- char t_line; /* Interface to device drivers. */
+ u_char t_line; /* Interface to device drivers. */
dev_t t_dev; /* Device. */
int t_state; /* Device and driver (TS*) state. */
int t_flags; /* Tty flags. */
int nullmodem __P((struct tty *tp, int flag));
int tputchar __P((int c, struct tty *tp));
-int ttioctl __P((struct tty *tp, int com, void *data, int flag));
+int ttioctl __P((struct tty *tp, u_long com, void *data, int flag));
int ttread __P((struct tty *tp, struct uio *uio, int flag));
void ttrstrt __P((void *tp));
int ttselect __P((dev_t device, int rw, struct proc *p));
*
* %sccs.include.redist.c%
*
- * @(#)ucred.h 8.3 (Berkeley) %G%
+ * @(#)ucred.h 8.4 (Berkeley) %G%
*/
#ifndef _SYS_UCRED_H_
#ifdef KERNEL
#define crhold(cr) (cr)->cr_ref++
-struct ucred *crget();
-struct ucred *crcopy();
-struct ucred *crdup();
+
+struct ucred *crcopy __P((struct ucred *cr));
+struct ucred *crdup __P((struct ucred *cr));
+void crfree __P((struct ucred *cr));
+struct ucred *crget __P((void));
+int suser __P((struct ucred *cred, u_short *acflag));
#endif /* KERNEL */
#endif /* !_SYS_UCRED_H_ */
*
* %sccs.include.redist.c%
*
- * @(#)un.h 8.1 (Berkeley) %G%
+ * @(#)un.h 8.2 (Berkeley) %G%
*/
/*
};
#ifdef KERNEL
-int unp_discard();
-#else
+struct unpcb;
+
+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_discard __P((struct file *fp));
+void unp_disconnect __P((struct unpcb *unp));
+void unp_drop __P((struct unpcb *unp, int errno));
+void unp_gc __P((void));
+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));
+#else /* !KERNEL */
/* actual length of an initialized sockaddr_un */
#define SUN_LEN(su) \
(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
-#endif
+#endif /* KERNEL */
*
* %sccs.include.redist.c%
*
- * @(#)vnode.h 8.11 (Berkeley) %G%
+ * @(#)vnode.h 8.12 (Berkeley) %G%
*/
#include <sys/queue.h>
int bdevvp __P((dev_t dev, struct vnode **vpp));
int getnewvnode __P((enum vtagtype tag,
struct mount *mp, int (**vops)(), struct vnode **vpp));
-int vinvalbuf __P((struct vnode *vp, int save, struct ucred *cred,
- struct proc *p, int slpflag, int slptimeo));
void vattr_null __P((struct vattr *vap));
int vcount __P((struct vnode *vp));
int vget __P((struct vnode *vp, int lockflag));
void vgone __P((struct vnode *vp));
void vgoneall __P((struct vnode *vp));
+int vinvalbuf __P((struct vnode *vp, int save, struct ucred *cred,
+ struct proc *p, int slpflag, int slptimeo));
+void vprint __P((char *label, struct vnode *vp));
int vn_bwrite __P((struct vop_bwrite_args *ap));
int vn_close __P((struct vnode *vp,
int flags, struct ucred *cred, struct proc *p));
int vn_closefile __P((struct file *fp, struct proc *p));
-int vn_ioctl __P((struct file *fp, int com, caddr_t data, struct proc *p));
+int vn_ioctl __P((struct file *fp, u_long com, caddr_t data,
+ struct proc *p));
int vn_open __P((struct nameidata *ndp, int fmode, int cmode));
int vn_rdwr __P((enum uio_rw rw, struct vnode *vp, caddr_t base,
int len, off_t offset, enum uio_seg segflg, int ioflg,