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