Changeset 6ea9a1d in mainline for uspace/app/bdsh/exec.c
- Timestamp:
- 2011-06-11T22:32:24Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36ab7c7
- Parents:
- ae45201
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/exec.c
rae45201 r6ea9a1d 112 112 } 113 113 114 unsigned int try_exec(char *cmd, char **argv, FILE **files)114 unsigned int try_exec(char *cmd, char **argv, iostate_t *io) 115 115 { 116 116 task_id_t tid; … … 120 120 fdi_node_t file_nodes[3]; 121 121 fdi_node_t *file_nodes_p[4]; 122 FILE *files[3]; 122 123 123 124 tmp = str_dup(find_command(cmd)); 124 125 free(found); 126 127 files[0] = io->stdin; 128 files[1] = io->stdout; 129 files[2] = io->stderr; 125 130 126 131 for (i = 0; i < 3 && files[i] != NULL; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.