Rev 4492 | Rev 4617 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4492 | Rev 4508 | ||
---|---|---|---|
Line 103... | Line 103... | ||
103 | fdi_node_t *files[4]; |
103 | fdi_node_t *files[4]; |
104 | fdi_node_t stdin_node; |
104 | fdi_node_t stdin_node; |
105 | fdi_node_t stdout_node; |
105 | fdi_node_t stdout_node; |
106 | fdi_node_t stderr_node; |
106 | fdi_node_t stderr_node; |
107 | 107 | ||
108 | if ((stdin != NULL) && (stdin != &stdin_null)) { |
108 | if ((stdin != NULL) && (fnode(stdin, &stdin_node) == EOK)) |
109 | fnode(stdin, &stdin_node); |
- | |
110 | files[0] = &stdin_node; |
109 | files[0] = &stdin_node; |
111 | } else |
110 | else |
112 | files[0] = NULL; |
111 | files[0] = NULL; |
113 | 112 | ||
114 | if ((stdout != NULL) && (stdout != &stdout_klog)) { |
113 | if ((stdout != NULL) && (fnode(stdout, &stdout_node) == EOK)) |
115 | fnode(stdout, &stdout_node); |
- | |
116 | files[1] = &stdout_node; |
114 | files[1] = &stdout_node; |
117 | } else |
115 | else |
118 | files[1] = NULL; |
116 | files[1] = NULL; |
119 | 117 | ||
120 | if ((stderr != NULL) && (stderr != &stdout_klog)) { |
118 | if ((stderr != NULL) && (fnode(stderr, &stderr_node) == EOK)) |
121 | fnode(stderr, &stderr_node); |
- | |
122 | files[2] = &stderr_node; |
119 | files[2] = &stderr_node; |
123 | } else |
120 | else |
124 | files[2] = NULL; |
121 | files[2] = NULL; |
125 | 122 | ||
126 | files[3] = NULL; |
123 | files[3] = NULL; |
127 | 124 | ||
128 | rc = loader_set_files(ldr, files); |
125 | rc = loader_set_files(ldr, files); |