Diff for ep/src/fd.c between version 1.8 and 1.9
| version 1.8, 2002/02/25 18:45:53 |
version 1.9, 2002/02/28 17:50:38 |
|
|
| #include "fd.h" |
#include "fd.h" |
| #include "message.h" |
#include "message.h" |
| |
|
| /* |
static char *fd_str[N_FD_STR][N_FD] = { |
| * TODO: |
|
| * - make this static a cut the same parameters, |
|
| * because the comparion will be case insensitive |
|
| */ |
|
| char *fd_str[N_FD_STR][N_FD] = { |
|
| {"input ", "output", "errput"}, |
|
| {"input", "output", "errput"}, |
{"input", "output", "errput"}, |
| {"stdin", "stdout", "stderr"}, |
{"stdin", "stdout", "stderr"}, |
| {"in", "out", "err"}, |
{"in", "out", "err"}, |
| {"in", "ou", "er"}, |
|
| {"i", "o", "e"}, |
{"i", "o", "e"}, |
| {"INPUT", "OUTPUT", "ERRPUT"}, |
|
| {"STDIN", "STDOUT", "STDERR"}, |
|
| {"IN", "OUT", "ERR"}, |
|
| {"IN", "OU", "ER"}, |
|
| {"I", "O", "E"} |
|
| }; |
}; |
| |
|
| static int |
static int |
|
|
| return close(fd); |
return close(fd); |
| } |
} |
| |
|
| |
char * |
| |
fd_id_to_fd_str(id) |
| |
int id; |
| |
{ |
| |
return fd_str[0][id]; |
| |
} |
| |
|
| int |
int |
| fd_str_to_fd_id(str) |
fd_str_to_fd_id(str) |
| char *str; |
char *str; |
Platon Group <platon@platon.org> http://platon.org/
|
|