Changes in uspace/app/trace/trace.c [7171760:79ae36dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/trace.c
r7171760 r79ae36dd 50 50 #include <sys/types.h> 51 51 #include <sys/typefmt.h> 52 #include <vfs/vfs.h>53 52 54 53 #include <libc.h> … … 587 586 588 587 /* Send default files */ 589 int *files[4];590 int fd_stdin;591 int fd_stdout;592 int fd_stderr;593 594 if ((stdin != NULL) && (f handle(stdin, &fd_stdin) == EOK))595 files[0] = & fd_stdin;588 fdi_node_t *files[4]; 589 fdi_node_t stdin_node; 590 fdi_node_t stdout_node; 591 fdi_node_t stderr_node; 592 593 if ((stdin != NULL) && (fnode(stdin, &stdin_node) == EOK)) 594 files[0] = &stdin_node; 596 595 else 597 596 files[0] = NULL; 598 597 599 if ((stdout != NULL) && (f handle(stdout, &fd_stdout) == EOK))600 files[1] = & fd_stdout;598 if ((stdout != NULL) && (fnode(stdout, &stdout_node) == EOK)) 599 files[1] = &stdout_node; 601 600 else 602 601 files[1] = NULL; 603 602 604 if ((stderr != NULL) && (f handle(stderr, &fd_stderr) == EOK))605 files[2] = & fd_stderr;603 if ((stderr != NULL) && (fnode(stderr, &stderr_node) == EOK)) 604 files[2] = &stderr_node; 606 605 else 607 606 files[2] = NULL; … … 762 761 o = oper_new("open", 2, arg_def, V_INT_ERRNO, 0, resp_def); 763 762 proto_add_oper(p, VFS_IN_OPEN, o); 763 o = oper_new("open_node", 4, arg_def, V_INT_ERRNO, 0, resp_def); 764 proto_add_oper(p, VFS_IN_OPEN_NODE, o); 764 765 o = oper_new("read", 1, arg_def, V_ERRNO, 1, resp_def); 765 766 proto_add_oper(p, VFS_IN_READ, o); … … 791 792 proto_register(SERVICE_VFS, p); 792 793 793 #if 0794 794 p = proto_new("console"); 795 795 … … 827 827 proto_console = p; 828 828 proto_register(SERVICE_CONSOLE, p); 829 #endif830 829 } 831 830
Note:
See TracChangeset
for help on using the changeset viewer.