- int (*fo_read) __P((struct fileproc *fp, struct uio *uio,
- struct ucred *cred, int flags,
- struct proc *p));
- int (*fo_write) __P((struct fileproc *fp, struct uio *uio,
- struct ucred *cred, int flags,
- struct proc *p));
-#define FOF_OFFSET 1
- int (*fo_ioctl) __P((struct fileproc *fp, u_long com,
- caddr_t data, struct proc *p));
- int (*fo_select) __P((struct fileproc *fp, int which,
- void *wql, struct proc *p));
- int (*fo_close) __P((struct fileglob *fg, struct proc *p));
- int (*fo_kqfilter) __P((struct fileproc *fp, struct knote *kn,
- struct proc *p));
- int (*fo_drain) (struct fileproc *fp, struct proc *p);
+ int (*fo_read) (struct fileproc *fp, struct uio *uio,
+ int flags, vfs_context_t ctx);
+ int (*fo_write) (struct fileproc *fp, struct uio *uio,
+ int flags, vfs_context_t ctx);
+#define FOF_OFFSET 0x00000001 /* offset supplied to vn_write */
+#define FOF_PCRED 0x00000002 /* cred from proc, not current thread */
+ int (*fo_ioctl) (struct fileproc *fp, u_long com,
+ caddr_t data, vfs_context_t ctx);
+ int (*fo_select) (struct fileproc *fp, int which,
+ void *wql, vfs_context_t ctx);
+ int (*fo_close) (struct fileglob *fg, vfs_context_t ctx);
+ int (*fo_kqfilter) (struct fileproc *fp, struct knote *kn,
+ vfs_context_t ctx);
+ int (*fo_drain) (struct fileproc *fp, vfs_context_t ctx);