1 |
|
2002-09-09 Marcus Brinkmann <marcus@gnu.org> |
2 |
|
|
3 |
|
* vcons-remove.c: New file. |
4 |
|
* Makefile (SRCS): Add vcons-destroy.c. |
5 |
|
* cons.h: New type vcons_list_t. |
6 |
|
(struct vcons_list): New structure. |
7 |
|
(struct cons_notify): Remove VCONS member. |
8 |
|
(struct vcons): Remove members NEXT, PREV and NOTIFY. Add the |
9 |
|
notify structure to the top to make it possible to use a vcons as |
10 |
|
a port. New member VCONS_ENTRY. |
11 |
|
(struct cons): Change type of members vcons_list and vcons_last to |
12 |
|
vcons_list_t. Remove member active. |
13 |
|
(cons_vcons_add): Change prototype to match new definition. |
14 |
|
(cons_vcons_remove): Likewise. |
15 |
|
(cons_switch): Likewise. |
16 |
|
(cons_lookup): Likewise. |
17 |
|
(cons_vcons_open): Likewise. |
18 |
|
(cons_vcons_destroy): New prototype. |
19 |
|
* cons-lookup.c (cons_lookup): Change type of R_VCONS argument |
20 |
|
vcons_list_t. Change type of previous_vcons and vcons variables |
21 |
|
to vcons_list_t. Append _entry to all these variables. |
22 |
|
Don't allocate and initialize a vcons_t, but a vcons_list_t. |
23 |
|
After this has been added to the list, call cons_vcons_add. |
24 |
|
* cons-switch.c: Do not include <error.h> |
25 |
|
(cons_switch): Add arguments ACTIVE_ID and R_VCONS. New variable |
26 |
|
ERR and VCONS_ENTRY. Remove variable ACTIVE. Do not keep track |
27 |
|
of active console. Instead, look it up using ACTIVE_ID. Lock the |
28 |
|
returned console. Call cons_vcons_open, not cons_vcons_activate. |
29 |
|
* dir-changed.c (add_one): Change VCONS to VCONS_ENTRY and its |
30 |
|
type from vcons_t to vcons_list_t to follow cons_lookup change. |
31 |
|
(lookup_one): Likewise. |
32 |
|
(cons_S_dir_changed): Likewise. |
33 |
|
* file-changed.c (cons_S_file_changed): Cast NOTIFY to VCONS. |
34 |
|
Check that NOTIFY->cons is not set instead that NOTIFY->vcons is. |
35 |
|
* init-init.c (cons_init): Pass cons_vcons_destroy as |
36 |
|
clean_routine to ports_create_class. |
37 |
|
Don't initialize CONS->active, nor DIR_NOTIFY_PORT->vcons. |
38 |
|
* vcons-add.c (cons_vcons_add): Change argument VCONS to CONS and |
39 |
|
VCONS_ENTRY. Don't do anything here (the user must implement it |
40 |
|
all). |
41 |
|
* vcons-close.c: Don't include <errno.h>, <unistd.h>, <stdio.h>, |
42 |
|
<sys/mman.h>, <sys/fcntl.h>, <mach.h>. Include <assert.h>, |
43 |
|
<hurd/ports.h> and <cthreads.h>. |
44 |
|
(cons_vcons_close): Clear VCONS->vcons_entry->vcons. Derefence |
45 |
|
and destroy VCONS. |
46 |
|
* vcons-open.c (cons_vcons_open): Change arguments from VCONS to |
47 |
|
CONS, VCONS_ENTRY and R_VCONS. New variable VCONS. Set up VCONS |
48 |
|
as a port, and request notification messages on that. |
49 |
|
* vcons-remove.c: Do not include <errno.h>. |
50 |
|
(cons_vcons_remove): Assert that VCONS_ENTRY does not have an open |
51 |
|
VCONS. |
52 |
|
|
53 |
2002-08-28 Marcus Brinkmann <marcus@gnu.org> |
2002-08-28 Marcus Brinkmann <marcus@gnu.org> |
54 |
|
|
55 |
* file-changed.c (cons_S_file_changed): Take NEW_CUR_LINE modulo |
* file-changed.c (cons_S_file_changed): Take NEW_CUR_LINE modulo |