Diff for ep/src/conf.c between version 1.6 and 1.7
| version 1.6, 2002/02/11 16:17:55 |
version 1.7, 2002/02/13 14:55:26 |
| Line 29 static struct cfg_option options_global[ |
|
| Line 29 static struct cfg_option options_global[ |
|
| |
|
| static struct cfg_option options_process[] = { |
static struct cfg_option options_process[] = { |
| {"nice", 'N', "nice", CFG_INT, (void *) &(processcfg.nice), 0}, |
{"nice", 'N', "nice", CFG_INT, (void *) &(processcfg.nice), 0}, |
| { "name", 'n', "name", |
{ "name", 'n', "name", CFG_STRING+CFG_MULTI_SEPARATED, (void *) &(processcfg.name), 0 }, |
| CFG_STRING+CFG_MULTI_SEPARATED, (void *) &(processcfg.name), 0 }, |
{"input", 'i', "input", CFG_STRING+CFG_MULTI_SEPARATED, (void *) &(processcfg.fd[0]), 0}, |
| {"input", 'i', "input", |
{"output", 'o', "output", CFG_STRING+CFG_MULTI_SEPARATED, (void *) &(processcfg.fd[1]), 0}, |
| CFG_STRING+CFG_MULTI_SEPARATED, (void *) &(processcfg.fd[0]), 0}, |
{"errput", 'e', "errput", CFG_STRING+CFG_MULTI_SEPARATED, (void *) &(processcfg.fd[2]), 0}, |
| {"output", 'o', "output", |
{NULL, '\0', NULL, CFG_LEFTOVER_ARGS+CFG_STRING+CFG_MULTI, (void *) &(processcfg.argv), 0}, |
| CFG_STRING+CFG_MULTI_SEPARATED, (void *) &(processcfg.fd[1]), 0}, |
CFG_END_OF_LIST |
| {"errput", 'e', "errput", |
|
| CFG_STRING+CFG_MULTI_SEPARATED, (void *) &(processcfg.fd[2]), 0}, |
|
| {NULL, '\0', NULL, |
|
| CFG_LEFTOVER_ARGS+CFG_STRING+CFG_MULTI, (void *) &(processcfg.argv), 0}, |
|
| CFG_END_OF_LIST |
|
| }; |
}; |
| |
|
| static PROCTABLE proc_ar_to_proctable(int n_proc_ar, |
static PROCTABLE proc_ar_to_proctable(int n_proc_ar, |
| Line 122 PROCTABLE cfglocal_process(int argc, cha |
|
| Line 117 PROCTABLE cfglocal_process(int argc, cha |
|
| return NULL; |
return NULL; |
| } |
} |
| } |
} |
| |
|
| /* TODO: which process on command line? */ |
/* TODO: which process on command line? */ |
| if (processcfg.argv == NULL) { |
if (processcfg.argv == NULL) { |
| msg_error_print("one of process doesn't have specified" |
msg_error_print("one of process doesn't have specified" |
| Line 189 static PROCTABLE proc_ar_to_proctable(in |
|
| Line 184 static PROCTABLE proc_ar_to_proctable(in |
|
| ptbl[i]->fd[j].n_link = 0; |
ptbl[i]->fd[j].n_link = 0; |
| ptbl[i]->fd[j].pipe[0] = ptbl[i]->fd[j].pipe[1] = 0; |
ptbl[i]->fd[j].pipe[0] = ptbl[i]->fd[j].pipe[1] = 0; |
| |
|
| /* DELETE THIS! |
|
| printf("%d:%d -> size = %d\n", i, j, size); |
|
| printf("=== ptbl[1]->fd[0].link = %p\n", ptbl[1]->fd[0].link); |
|
| */ |
|
| |
|
| for (k = 0; k < size; k++) { |
for (k = 0; k < size; k++) { |
| struct proclink link; |
struct proclink link; |
| char **ar; |
char **ar; |
Platon Group <platon@platon.org> http://platon.org/
|
|