1 |
|
2002-02-10 Marcus Brinkmann <marcus@gnu.org> |
2 |
|
|
3 |
|
* term.h: Include `hurd/hurd_types.h'. |
4 |
|
(struct bottomhalf): Change the return types of the following |
5 |
|
members from void to error_t: abandon_physical_output, |
6 |
|
suspend_physical_output, notice_input_flushed, desert_dtr, |
7 |
|
set_break, clear_break, start_output, set_bits (which now takes an |
8 |
|
struct termios * as argument), mdmctl and mdmstate (which now |
9 |
|
takes an int * as argument). Add new members init and type. |
10 |
|
(bottom): Define as const. |
11 |
|
(devio_bottom, ptyio_bottom): Declare as const. |
12 |
|
(drop_output): Change return type from void to error_t. |
13 |
|
(ptyio_init): Remove prototype. |
14 |
|
* devio.c (devio_abandon_physical_output): Change return value to |
15 |
|
error_t, and return 0. |
16 |
|
(devio_suspend_physical_output): Likewise. |
17 |
|
(devio_notice_input_flushed): Likewise. |
18 |
|
(devio_desert_dtr): Likewise. |
19 |
|
(devio_set_break): Likewise. |
20 |
|
(devio_clear_break): Likewise. |
21 |
|
(devio_start_output): Likewise. |
22 |
|
(devio_set_bits): Likewise. |
23 |
|
(devio_mdmctl): Likewise. |
24 |
|
(devio_mdmstate): Likewise. |
25 |
|
(init_devio): Rename to ... |
26 |
|
(devio_init): ... this. Do not give constructor attribute. |
27 |
|
Change return type to error_t, and return an error value, rather |
28 |
|
than bailing out. Declare as static. |
29 |
|
(devio_bottom): Add type TERM_ON_MACHDEV and init function |
30 |
|
devio_init. |
31 |
|
(devio_set_bits): Accept new argument STATE and use that to work |
32 |
|
out the terminal state, rather than changing the global termstate. |
33 |
|
(devio_mdmstate): Accept new argument STATE and use that to return |
34 |
|
the bits. |
35 |
|
* ptyio.c: Do not include `hurd/hurd_types.h'. |
36 |
|
(ptyio_suspend_physical_output): Change return value to error_t, |
37 |
|
and return 0. Likewise. |
38 |
|
(ptyio_notice_input_flushed): Likewise. |
39 |
|
(ptyio_desert_dtr): Likewise. |
40 |
|
(ptyio_set_bits): Likewise. |
41 |
|
(ptyio_set_break): Likewise. |
42 |
|
(ptyio_clear_break): Likewise. |
43 |
|
(ptyio_mdmctl): Likewise. |
44 |
|
(ptyio_start_output): Likewise. |
45 |
|
(ptyio_abandon_physical_output): Likewise. |
46 |
|
(ptyio_mdmstate): Likewise, and accept new argument STATE. |
47 |
|
(ptyio_init): Declare as static and change return type to error_t. |
48 |
|
(ptyio_bottom): Add type TERM_ON_MASTERPTY and init function |
49 |
|
ptyio_init. |
50 |
|
(ptyio_set_bits): Accept new argument STATE and use that to work |
51 |
|
out the terminal state, rather than changing the global termstate. |
52 |
|
(ptyio_mdmstate): Accept new argument STATE and use that to return |
53 |
|
the bits. |
54 |
|
* munge.c (drop_output): Change return value to error_t. Only |
55 |
|
clear queue if there was no error. |
56 |
|
* users.c (S_term_get_bottom_type): Just return bottom->type. |
57 |
|
(set_state): Rework logic to take possible errors into account, |
58 |
|
and to delay changing the termstate until we know that we won't |
59 |
|
fail. |
60 |
|
(S_tioctl_tiocflush): Return errors properly, and clear queue only |
61 |
|
if notice_input_flushed succeeded. |
62 |
|
(open_hook): Save error value of set_bits. Save old termflags and |
63 |
|
restore them if if set_bits failed. Call set_bits with correct |
64 |
|
arguments. |
65 |
|
(S_tioctl_tiocmods): Set err to result of mdmctl. |
66 |
|
(S_tioctl_tiocmset): Likewise. |
67 |
|
(S_tioctl_tiocmbic): Likewise. |
68 |
|
(S_tioctl_tiocmbis): Likewise. |
69 |
|
(S_tioctl_tioccdtr): Likewise. |
70 |
|
(S_tioctl_tiocsdtr): Likewise. |
71 |
|
(S_tioctl_tioccbrk): Likewise for clear_break. |
72 |
|
(S_tioctl_tiocsbrk): Likewise for set_break. |
73 |
|
(S_tioctl_tiocstart): Likewise for start_output. Save old |
74 |
|
termflags and restore them if if start_output failed. |
75 |
|
(S_tioctl_tiocstop): Likewise for stop_output. |
76 |
|
(S_trivfs_io_write): Abort the operation if start_output fails. |
77 |
|
Do not call start_output if it just failed, or if there was no |
78 |
|
data to be written. |
79 |
|
* main.c (main): Initialize bottom handler (rather than special |
80 |
|
casing this for ptyio). |
81 |
|
|
82 |
|
* users.c (open_hook): Use memcpy instead bcopy and memset instead |
83 |
|
bzero. |
84 |
|
(S_tioctl_tiocgeta): Likewise. |
85 |
|
(set_state): Likewise. |
86 |
|
(open_hook): Likewise. |
87 |
|
* munge.c (rescan_inputq): Likewise. |
88 |
|
|
89 |
2002-01-30 Marcus Brinkmann <marcus@gnu.org> |
2002-01-30 Marcus Brinkmann <marcus@gnu.org> |
90 |
|
|
91 |
* users.c (trivfs_S_io_select): Remove IDTAG argument. |
* users.c (trivfs_S_io_select): Remove IDTAG argument. |