Changes in uspace/app/trace/trace.c [6afc9d7:b8dbe2f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/trace.c
r6afc9d7 rb8dbe2f 57 57 #include "proto.h" 58 58 #include <ipc/services.h> 59 #include <ipc/vfs.h>60 59 #include <ipc/console.h> 61 60 … … 528 527 int fd_stderr; 529 528 530 if ((stdin != NULL) && ( vfs_fhandle(stdin, &fd_stdin) == EOK))529 if ((stdin != NULL) && (fhandle(stdin, &fd_stdin) == EOK)) 531 530 files[0] = &fd_stdin; 532 531 else 533 532 files[0] = NULL; 534 533 535 if ((stdout != NULL) && ( vfs_fhandle(stdout, &fd_stdout) == EOK))534 if ((stdout != NULL) && (fhandle(stdout, &fd_stdout) == EOK)) 536 535 files[1] = &fd_stdout; 537 536 else 538 537 files[1] = NULL; 539 538 540 if ((stderr != NULL) && ( vfs_fhandle(stderr, &fd_stderr) == EOK))539 if ((stderr != NULL) && (fhandle(stderr, &fd_stderr) == EOK)) 541 540 files[2] = &fd_stderr; 542 541 else … … 696 695 697 696 p = proto_new("vfs"); 698 o = oper_new("open", 2, arg_def, V_INT_ERRNO, 0, resp_def);699 proto_add_oper(p, VFS_IN_OPEN, o);700 697 o = oper_new("read", 1, arg_def, V_ERRNO, 1, resp_def); 701 698 proto_add_oper(p, VFS_IN_READ, o); … … 716 713 o = oper_new("sync", 1, arg_def, V_ERRNO, 0, resp_def); 717 714 proto_add_oper(p, VFS_IN_SYNC, o); 718 o = oper_new("mkdir", 1, arg_def, V_ERRNO, 0, resp_def);719 proto_add_oper(p, VFS_IN_MKDIR, o);720 o = oper_new("unlink", 0, arg_def, V_ERRNO, 0, resp_def);721 proto_add_oper(p, VFS_IN_UNLINK, o);722 715 o = oper_new("rename", 0, arg_def, V_ERRNO, 0, resp_def); 723 716 proto_add_oper(p, VFS_IN_RENAME, o); 724 o = oper_new("stat", 0, arg_def, V_ERRNO, 0, resp_def); 725 proto_add_oper(p, VFS_IN_STAT, o); 726 o = oper_new("statfs", 0, arg_def, V_ERRNO, 0, resp_def); 727 proto_add_oper(p, VFS_IN_STATFS, o); 717 o = oper_new("walk", 2, arg_def, V_INT_ERRNO, 0, resp_def); 718 proto_add_oper(p, VFS_IN_WALK, o); 719 o = oper_new("open2", 2, arg_def, V_ERRNO, 0, resp_def); 720 proto_add_oper(p, VFS_IN_OPEN2, o); 721 o = oper_new("unlink2", 3, arg_def, V_ERRNO, 0, resp_def); 722 proto_add_oper(p, VFS_IN_UNLINK2, o); 728 723 729 724 proto_register(SERVICE_VFS, p); 730 725 } 731 726 732 static void print_syntax( void)727 static void print_syntax() 733 728 { 734 729 printf("Syntax:\n"); … … 876 871 printf("Waiting for task to exit.\n"); 877 872 878 rc = task_wait _task_id(task_id, &texit, &retval);873 rc = task_wait(task_id, &texit, &retval); 879 874 if (rc != EOK) { 880 875 printf("Failed waiting for task.\n");
Note:
See TracChangeset
for help on using the changeset viewer.