summaryrefslogtreecommitdiff
path: root/sys/dev/systrace.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-07-21 18:44:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-07-21 18:44:02 +0000
commit08e117870d2ecb029f0a677fb9bcb7c5ef1ed46b (patch)
tree10d406481d11d105aae687b37ffa2bf371fe56b3 /sys/dev/systrace.c
parent89cef52a8d19313cefe68d5cf4e1c89dde746d7b (diff)
No need for read/write functions, just use enodev like all the other
things things do ok nicm
Diffstat (limited to 'sys/dev/systrace.c')
-rw-r--r--sys/dev/systrace.c32
1 files changed, 1 insertions, 31 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c
index 72db52f030f..ba219bc732b 100644
--- a/sys/dev/systrace.c
+++ b/sys/dev/systrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace.c,v 1.52 2009/11/09 17:53:39 nicm Exp $ */
+/* $OpenBSD: systrace.c,v 1.53 2010/07/21 18:44:01 deraadt Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -57,10 +57,7 @@ void systraceattach(int);
int systraceopen(dev_t, int, int, struct proc *);
int systraceclose(dev_t, int, int, struct proc *);
-int systraceread(dev_t, struct uio *, int);
-int systracewrite(dev_t, struct uio *, int);
int systraceioctl(dev_t, u_long, caddr_t, int, struct proc *);
-int systracepoll(dev_t, int, struct proc *);
uid_t systrace_seteuid(struct proc *, uid_t);
gid_t systrace_setegid(struct proc *, gid_t);
@@ -533,24 +530,6 @@ systraceclose(dev, flag, mode, p)
}
int
-systraceread(dev, uio, ioflag)
- dev_t dev;
- struct uio *uio;
- int ioflag;
-{
- return (EIO);
-}
-
-int
-systracewrite(dev, uio, ioflag)
- dev_t dev;
- struct uio *uio;
- int ioflag;
-{
- return (EIO);
-}
-
-int
systraceioctl(dev, cmd, data, flag, p)
dev_t dev;
u_long cmd;
@@ -595,15 +574,6 @@ systraceioctl(dev, cmd, data, flag, p)
return (error);
}
-int
-systracepoll(dev, events, p)
- dev_t dev;
- int events;
- struct proc *p;
-{
- return (seltrue(dev, events, p));
-}
-
void
systrace_wakeup(struct fsystrace *fst)
{