Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/trace/trace.c

    r6afc9d7 rb8dbe2f  
    5757#include "proto.h"
    5858#include <ipc/services.h>
    59 #include <ipc/vfs.h>
    6059#include <ipc/console.h>
    6160
     
    528527        int fd_stderr;
    529528       
    530         if ((stdin != NULL) && (vfs_fhandle(stdin, &fd_stdin) == EOK))
     529        if ((stdin != NULL) && (fhandle(stdin, &fd_stdin) == EOK))
    531530                files[0] = &fd_stdin;
    532531        else
    533532                files[0] = NULL;
    534533       
    535         if ((stdout != NULL) && (vfs_fhandle(stdout, &fd_stdout) == EOK))
     534        if ((stdout != NULL) && (fhandle(stdout, &fd_stdout) == EOK))
    536535                files[1] = &fd_stdout;
    537536        else
    538537                files[1] = NULL;
    539538       
    540         if ((stderr != NULL) && (vfs_fhandle(stderr, &fd_stderr) == EOK))
     539        if ((stderr != NULL) && (fhandle(stderr, &fd_stderr) == EOK))
    541540                files[2] = &fd_stderr;
    542541        else
     
    696695
    697696        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);
    700697        o = oper_new("read", 1, arg_def, V_ERRNO, 1, resp_def);
    701698        proto_add_oper(p, VFS_IN_READ, o);
     
    716713        o = oper_new("sync", 1, arg_def, V_ERRNO, 0, resp_def);
    717714        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);
    722715        o = oper_new("rename", 0, arg_def, V_ERRNO, 0, resp_def);
    723716        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);
    728723
    729724        proto_register(SERVICE_VFS, p);
    730725}
    731726
    732 static void print_syntax(void)
     727static void print_syntax()
    733728{
    734729        printf("Syntax:\n");
     
    876871                printf("Waiting for task to exit.\n");
    877872
    878                 rc = task_wait_task_id(task_id, &texit, &retval);
     873                rc = task_wait(task_id, &texit, &retval);
    879874                if (rc != EOK) {
    880875                        printf("Failed waiting for task.\n");
Note: See TracChangeset for help on using the changeset viewer.