diff options
author | phk <phk@FreeBSD.org> | 2004-06-01 11:56:04 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-01 11:56:04 +0000 |
commit | 19bbdd84d6c9de6fae8bfcc9628ca41c14737f73 (patch) | |
tree | bb05fa012232a97f82bd3e19e231fbbdf2ee9389 /sys | |
parent | b59eec9a5a18464d17e1f879eeefcbfe26db54b9 (diff) | |
download | FreeBSD-src-19bbdd84d6c9de6fae8bfcc9628ca41c14737f73.zip FreeBSD-src-19bbdd84d6c9de6fae8bfcc9628ca41c14737f73.tar.gz |
shift the four cdevsw functions for ttys to sys/conf.h and prototype
them with the correct typedef.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/conf.h | 6 | ||||
-rw-r--r-- | sys/sys/linedisc.h | 6 | ||||
-rw-r--r-- | sys/sys/tty.h | 4 |
3 files changed, 12 insertions, 4 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h index e794091..1278fad 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -352,6 +352,12 @@ int set_dumper(struct dumperinfo *); void dumpsys(struct dumperinfo *); extern int dumping; /* system is dumping */ +/* D_TTY related functions */ +d_kqfilter_t ttykqfilter; +d_poll_t ttypoll; +d_read_t ttyread; +d_write_t ttywrite; + #endif /* _KERNEL */ #endif /* !_SYS_CONF_H_ */ diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h index e794091..1278fad 100644 --- a/sys/sys/linedisc.h +++ b/sys/sys/linedisc.h @@ -352,6 +352,12 @@ int set_dumper(struct dumperinfo *); void dumpsys(struct dumperinfo *); extern int dumping; /* system is dumping */ +/* D_TTY related functions */ +d_kqfilter_t ttykqfilter; +d_poll_t ttypoll; +d_read_t ttyread; +d_write_t ttywrite; + #endif /* _KERNEL */ #endif /* !_SYS_CONF_H_ */ diff --git a/sys/sys/tty.h b/sys/sys/tty.h index 17926c9..f5330b9 100644 --- a/sys/sys/tty.h +++ b/sys/sys/tty.h @@ -302,17 +302,13 @@ void ttyflush(struct tty *tp, int rw); void ttyfree(struct tty *tp); void ttyinfo(struct tty *tp); int ttyinput(int c, struct tty *tp); -int ttykqfilter(dev_t dev, struct knote *kn); int ttylclose(struct tty *tp, int flag); struct tty *ttymalloc(struct tty *tp); int ttymodem(struct tty *tp, int flag); int ttyopen(dev_t device, struct tty *tp); -int ttypoll(dev_t dev, int events, struct thread *td); -int ttyread(dev_t dev, struct uio *uio, int flag); void ttyregister(struct tty *tp); int ttysleep(struct tty *tp, void *chan, int pri, char *wmesg, int timo); int ttywait(struct tty *tp); -int ttywrite(dev_t dev, struct uio *uio, int flag); int unputc(struct clist *q); #endif /* _KERNEL */ |