Rev 4491 | Rev 4508 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4491 | Rev 4492 | ||
---|---|---|---|
Line 142... | Line 142... | ||
142 | stream->phone = -1; |
142 | stream->phone = -1; |
143 | 143 | ||
144 | return stream; |
144 | return stream; |
145 | } |
145 | } |
146 | 146 | ||
147 | FILE *fopen_node(inode_t *node, const char *mode) |
147 | FILE *fopen_node(fdi_node_t *node, const char *mode) |
148 | { |
148 | { |
149 | int flags; |
149 | int flags; |
150 | if (!parse_mode(mode, &flags)) |
150 | if (!parse_mode(mode, &flags)) |
151 | return NULL; |
151 | return NULL; |
152 | 152 | ||
Line 351... | Line 351... | ||
351 | } |
351 | } |
352 | 352 | ||
353 | return -1; |
353 | return -1; |
354 | } |
354 | } |
355 | 355 | ||
356 | void fnode(FILE *stream, inode_t *node) |
356 | void fnode(FILE *stream, fdi_node_t *node) |
357 | { |
357 | { |
358 | if (stream->fd >= 0) { |
358 | if (stream->fd >= 0) { |
359 | fd_node(stream->fd, node); |
359 | fd_node(stream->fd, node); |
360 | } else { |
360 | } else { |
361 | node->fs_handle = 0; |
361 | node->fs_handle = 0; |