Diff for ep/src/proctable.c between version 1.15 and 1.16
| version 1.15, 2002/02/21 02:22:00 |
version 1.16, 2002/02/25 18:45:53 |
| Line 47 proctable_get_size(ptbl) |
|
| Line 47 proctable_get_size(ptbl) |
|
| return i; |
return i; |
| } |
} |
| |
|
| PROCTABLE proctable_create(const int size) |
PROCTABLE |
| |
proctable_create(size) |
| |
const int size; |
| { |
{ |
| PROCTABLE ptbl; |
PROCTABLE ptbl; |
| register int i; |
register int i; |
| Line 94 proctable_destroy(p_ptbl) |
|
| Line 96 proctable_destroy(p_ptbl) |
|
| } |
} |
| } |
} |
| |
|
| int proctable_join(PROCTABLE *p_dest_ptbl, PROCTABLE src_ptbl) |
int |
| |
proctable_join(p_dest_ptbl, src_ptbl) |
| |
PROCTABLE *p_dest_ptbl; |
| |
PROCTABLE src_ptbl; |
| { |
{ |
| register int i, dest_size, src_size; |
register int i, dest_size, src_size; |
| |
|
| Line 125 int proctable_join(PROCTABLE *p_dest_ptb |
|
| Line 130 int proctable_join(PROCTABLE *p_dest_ptb |
|
| int |
int |
| proctable_get_process_index_by_pid(ptbl, pid) |
proctable_get_process_index_by_pid(ptbl, pid) |
| PROCTABLE ptbl; |
PROCTABLE ptbl; |
| int pid; |
int pid; |
| { |
{ |
| register int i = 0; |
register int i = 0; |
| |
|
| Line 136 proctable_get_process_index_by_pid(ptbl, |
|
| Line 141 proctable_get_process_index_by_pid(ptbl, |
|
| return -1; |
return -1; |
| } |
} |
| |
|
| int proctable_get_process_index_by_name(PROCTABLE ptbl, char *name) |
int |
| |
proctable_get_process_index_by_name(ptbl, name) |
| |
PROCTABLE ptbl; |
| |
char *name; |
| { |
{ |
| register int i = 0; |
register int i = 0; |
| |
|
| Line 515 proctable_print(ptbl) |
|
| Line 523 proctable_print(ptbl) |
|
| int |
int |
| proctable_read(p_ptbl, p_rfds, p_efds) |
proctable_read(p_ptbl, p_rfds, p_efds) |
| PROCTABLE *p_ptbl; |
PROCTABLE *p_ptbl; |
| fd_set *p_rfds; |
fd_set *p_rfds; |
| fd_set *p_efds; |
fd_set *p_efds; |
| { |
{ |
| register int i, k, datasize = 1; |
register int i, k, datasize = 1; |
| char buf[BUFSIZE]; |
char buf[BUFSIZE]; |
Platon Group <platon@platon.org> http://platon.org/
|
|