-/* $OpenBSD: tty_pty.c,v 1.48 2010/07/02 19:57:15 tedu Exp $ */
+/* $OpenBSD: tty_pty.c,v 1.49 2010/07/21 18:48:01 nicm Exp $ */
/* $NetBSD: tty_pty.c,v 1.33.4.1 1996/06/02 09:08:11 mrg Exp $ */
/*
void ptmattach(int);
int ptmopen(dev_t, int, int, struct proc *);
int ptmclose(dev_t, int, int, struct proc *);
-int ptmread(dev_t, struct uio *, int);
-int ptmwrite(dev_t, struct uio *, int);
-int ptmwrite(dev_t, struct uio *, int);
int ptmioctl(dev_t, u_long, caddr_t, int, struct proc *p);
-int ptmpoll(dev_t, int, struct proc *p);
static int ptm_vn_open(struct nameidata *);
void
return (0);
}
-int
-ptmread(dev_t dev, struct uio *uio, int ioflag)
-{
- return (EIO);
-}
-
-int
-ptmwrite(dev_t dev, struct uio *uio, int ioflag)
-{
- return (EIO);
-}
-
int
ptmioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
{
fdpunlock(fdp);
return (error);
}
-
-int
-ptmpoll(dev_t dev, int events, struct proc *p)
-{
- return (seltrue(dev, events, p));
-}
-/* $OpenBSD: conf.h,v 1.103 2010/07/21 18:43:59 deraadt Exp $ */
+/* $OpenBSD: conf.h,v 1.104 2010/07/21 18:48:01 nicm Exp $ */
/* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */
/*-
/* open, close, read, write, ioctl, mmap */
#define cdev_ptm_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, \
- 0, selfalse, (dev_type_mmap((*))) 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, ioctl, poll, kqfilter XXX should be a generic device */
#define cdev_log_init(c,n) { \