aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/file.h
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2002-08-17 02:36:16 +0000
committerRobert Watson <rwatson@FreeBSD.org>2002-08-17 02:36:16 +0000
commitd49fa1ca6ed75bd712b6eecb7383e9abe8b96943 (patch)
treefe31f7ea9a8713005d8ba378b027671dbea5c058 /sys/sys/file.h
parentc068736a6139e9a60b6b4747f762a572e1b002f4 (diff)
downloadsrc-d49fa1ca6ed75bd712b6eecb7383e9abe8b96943.tar.gz
src-d49fa1ca6ed75bd712b6eecb7383e9abe8b96943.zip
Notes
Diffstat (limited to 'sys/sys/file.h')
-rw-r--r--sys/sys/file.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/sys/file.h b/sys/sys/file.h
index 9b1ad41dc756..525fb4e5e046 100644
--- a/sys/sys/file.h
+++ b/sys/sys/file.h
@@ -88,7 +88,7 @@ struct file {
struct thread *td);
#define FOF_OFFSET 1
int (*fo_ioctl)(struct file *fp, u_long com, void *data,
- struct thread *td);
+ struct ucred *active_cred, struct thread *td);
int (*fo_poll)(struct file *fp, int events,
struct ucred *active_cred, struct thread *td);
int (*fo_kqfilter)(struct file *fp, struct knote *kn);
@@ -180,7 +180,7 @@ static __inline int fo_read(struct file *fp, struct uio *uio,
static __inline int fo_write(struct file *fp, struct uio *uio,
struct ucred *active_cred, int flags, struct thread *td);
static __inline int fo_ioctl(struct file *fp, u_long com, void *data,
- struct thread *td);
+ struct ucred *active_cred, struct thread *td);
static __inline int fo_poll(struct file *fp, int events,
struct ucred *active_cred, struct thread *td);
static __inline int fo_stat(struct file *fp, struct stat *sb,
@@ -214,14 +214,15 @@ fo_write(fp, uio, active_cred, flags, td)
}
static __inline int
-fo_ioctl(fp, com, data, td)
+fo_ioctl(fp, com, data, active_cred, td)
struct file *fp;
u_long com;
void *data;
+ struct ucred *active_cred;
struct thread *td;
{
- return ((*fp->f_ops->fo_ioctl)(fp, com, data, td));
+ return ((*fp->f_ops->fo_ioctl)(fp, com, data, active_cred, td));
}
static __inline int