-/* $OpenBSD: cryptodev.c,v 1.72 2010/07/20 09:06:38 matthew Exp $ */
+/* $OpenBSD: cryptodev.c,v 1.73 2010/07/21 18:44:01 deraadt Exp $ */
/*
* Copyright (c) 2001 Theo de Raadt
return (0);
}
-int
-cryptoread(dev_t dev, struct uio *uio, int ioflag)
-{
- return (EIO);
-}
-
-int
-cryptowrite(dev_t dev, struct uio *uio, int ioflag)
-{
- return (EIO);
-}
-
int
cryptoioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
{
return (error);
}
-int
-cryptopoll(dev_t dev, int events, struct proc *p)
-{
- return (seltrue(dev, events, p));
-}
-
struct csession *
csefind(struct fcrypt *fcr, u_int ses)
{
-/* $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.
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);
return (0);
}
-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;
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)
{
-/* $OpenBSD: conf.h,v 1.102 2010/07/18 21:01:06 oga Exp $ */
+/* $OpenBSD: conf.h,v 1.103 2010/07/21 18:43:59 deraadt Exp $ */
/* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */
/*-
/* open, close, read, write, ioctl, mmap */
#define cdev_crypto_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
+ dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
+ (dev_type_write((*))) enodev, dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
0, selfalse, (dev_type_mmap((*))) enodev }
/* open, close, read, write, ioctl */
#define cdev_systrace_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
+ dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
+ (dev_type_write((*))) enodev, dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
0, selfalse, (dev_type_mmap((*))) enodev }
/* open, close, read, write, ioctl, tty, poll, kqfilter */