Changeset 9c4cf0d in mainline for uspace/app/trace/trace.c


Ignore:
Timestamp:
2017-04-02T11:24:06Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
Children:
151f1cc
Parents:
b19e892
Message:

Rename close() to vfs_put()

This is motivated mainly by the fact that a file handle does not
necessarily correspond to an open file and close() was no longer the
the opposite operation to open().

File:
1 edited

Legend:

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

    rb19e892 r9c4cf0d  
    531531        if (fd_root >= 0) {
    532532                rc = loader_add_inbox(ldr, "root", fd_root);
    533                 close(fd_root);
     533                vfs_put(fd_root);
    534534                if (rc != EOK)
    535535                        goto error;
     
    705705        o = oper_new("write", 3, arg_def, V_ERRNO, 1, resp_def);
    706706        proto_add_oper(p, VFS_IN_WRITE, o);
    707         o = oper_new("truncate", 5, arg_def, V_ERRNO, 0, resp_def);
     707        o = oper_new("vfs_resize", 5, arg_def, V_ERRNO, 0, resp_def);
    708708        proto_add_oper(p, VFS_IN_RESIZE, o);
    709         o = oper_new("fstat", 1, arg_def, V_ERRNO, 0, resp_def);
     709        o = oper_new("vfs_stat", 1, arg_def, V_ERRNO, 0, resp_def);
    710710        proto_add_oper(p, VFS_IN_STAT, o);
    711         o = oper_new("close", 1, arg_def, V_ERRNO, 0, resp_def);
    712         proto_add_oper(p, VFS_IN_CLOSE, o);
    713         o = oper_new("mount", 2, arg_def, V_ERRNO, 0, resp_def);
     711        o = oper_new("vfs_put", 1, arg_def, V_ERRNO, 0, resp_def);
     712        proto_add_oper(p, VFS_IN_PUT, o);
     713        o = oper_new("vfs_mount", 2, arg_def, V_ERRNO, 0, resp_def);
    714714        proto_add_oper(p, VFS_IN_MOUNT, o);
    715715/*      o = oper_new("unmount", 0, arg_def);
    716716        proto_add_oper(p, VFS_IN_UNMOUNT, o);*/
    717         o = oper_new("sync", 1, arg_def, V_ERRNO, 0, resp_def);
     717        o = oper_new("vfs_sync", 1, arg_def, V_ERRNO, 0, resp_def);
    718718        proto_add_oper(p, VFS_IN_SYNC, o);
    719719        o = oper_new("rename", 0, arg_def, V_ERRNO, 0, resp_def);
    720720        proto_add_oper(p, VFS_IN_RENAME, o);
    721         o = oper_new("statfs", 0, arg_def, V_ERRNO, 0, resp_def);
     721        o = oper_new("vfs_statfs", 0, arg_def, V_ERRNO, 0, resp_def);
    722722        proto_add_oper(p, VFS_IN_STATFS, o);
    723         o = oper_new("walk", 2, arg_def, V_INT_ERRNO, 0, resp_def);
     723        o = oper_new("vfs_walk", 2, arg_def, V_INT_ERRNO, 0, resp_def);
    724724        proto_add_oper(p, VFS_IN_WALK, o);
    725         o = oper_new("open", 2, arg_def, V_ERRNO, 0, resp_def);
     725        o = oper_new("vfs_open", 2, arg_def, V_ERRNO, 0, resp_def);
    726726        proto_add_oper(p, VFS_IN_OPEN, o);
    727         o = oper_new("unlink", 3, arg_def, V_ERRNO, 0, resp_def);
     727        o = oper_new("vfs_unlink", 3, arg_def, V_ERRNO, 0, resp_def);
    728728        proto_add_oper(p, VFS_IN_UNLINK, o);
    729729
Note: See TracChangeset for help on using the changeset viewer.