Ignore:
File:
1 edited

Legend:

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

    rb8dbe2f r6afc9d7  
    5757#include "proto.h"
    5858#include <ipc/services.h>
     59#include <ipc/vfs.h>
    5960#include <ipc/console.h>
    6061
     
    527528        int fd_stderr;
    528529       
    529         if ((stdin != NULL) && (fhandle(stdin, &fd_stdin) == EOK))
     530        if ((stdin != NULL) && (vfs_fhandle(stdin, &fd_stdin) == EOK))
    530531                files[0] = &fd_stdin;
    531532        else
    532533                files[0] = NULL;
    533534       
    534         if ((stdout != NULL) && (fhandle(stdout, &fd_stdout) == EOK))
     535        if ((stdout != NULL) && (vfs_fhandle(stdout, &fd_stdout) == EOK))
    535536                files[1] = &fd_stdout;
    536537        else
    537538                files[1] = NULL;
    538539       
    539         if ((stderr != NULL) && (fhandle(stderr, &fd_stderr) == EOK))
     540        if ((stderr != NULL) && (vfs_fhandle(stderr, &fd_stderr) == EOK))
    540541                files[2] = &fd_stderr;
    541542        else
     
    695696
    696697        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);
    697700        o = oper_new("read", 1, arg_def, V_ERRNO, 1, resp_def);
    698701        proto_add_oper(p, VFS_IN_READ, o);
     
    713716        o = oper_new("sync", 1, arg_def, V_ERRNO, 0, resp_def);
    714717        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);
    715722        o = oper_new("rename", 0, arg_def, V_ERRNO, 0, resp_def);
    716723        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);
    723728
    724729        proto_register(SERVICE_VFS, p);
    725730}
    726731
    727 static void print_syntax()
     732static void print_syntax(void)
    728733{
    729734        printf("Syntax:\n");
     
    871876                printf("Waiting for task to exit.\n");
    872877
    873                 rc = task_wait(task_id, &texit, &retval);
     878                rc = task_wait_task_id(task_id, &texit, &retval);
    874879                if (rc != EOK) {
    875880                        printf("Failed waiting for task.\n");
Note: See TracChangeset for help on using the changeset viewer.