Changes in uspace/lib/c/generic/task.c [7171760:ae45201] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/task.c
r7171760 rae45201 46 46 #include <libc.h> 47 47 #include "private/ns.h" 48 #include <vfs/vfs.h>49 48 50 49 task_id_t task_get_id(void) … … 103 102 { 104 103 /* Send default files */ 105 int *files[4];106 int fd_stdin;107 int fd_stdout;108 int fd_stderr;109 110 if ((stdin != NULL) && (f handle(stdin, &fd_stdin) == EOK))111 files[0] = & fd_stdin;104 fdi_node_t *files[4]; 105 fdi_node_t stdin_node; 106 fdi_node_t stdout_node; 107 fdi_node_t stderr_node; 108 109 if ((stdin != NULL) && (fnode(stdin, &stdin_node) == EOK)) 110 files[0] = &stdin_node; 112 111 else 113 112 files[0] = NULL; 114 113 115 if ((stdout != NULL) && (f handle(stdout, &fd_stdout) == EOK))116 files[1] = & fd_stdout;114 if ((stdout != NULL) && (fnode(stdout, &stdout_node) == EOK)) 115 files[1] = &stdout_node; 117 116 else 118 117 files[1] = NULL; 119 118 120 if ((stderr != NULL) && (f handle(stderr, &fd_stderr) == EOK))121 files[2] = & fd_stderr;119 if ((stderr != NULL) && (fnode(stderr, &stderr_node) == EOK)) 120 files[2] = &stderr_node; 122 121 else 123 122 files[2] = NULL; … … 143 142 */ 144 143 int task_spawnvf(task_id_t *id, const char *path, const char *const args[], 145 int *const files[])144 fdi_node_t *const files[]) 146 145 { 147 146 /* Connect to a program loader. */ … … 191 190 192 191 return EOK; 193 194 192 error: 195 193 /* Error exit */
Note:
See TracChangeset
for help on using the changeset viewer.