Changeset 4198f9c3 in mainline for uspace/lib/libc/generic/vfs/vfs.c


Ignore:
Timestamp:
2009-06-28T13:43:15Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
852b801
Parents:
6408be3
Message:

Separate the VFS input and output protocols.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/vfs/vfs.c

    r6408be3 r4198f9c3  
    138138        vfs_connect();
    139139       
    140         req = async_send_2(vfs_phone, VFS_MOUNT, dev_handle, flags, NULL);
     140        req = async_send_2(vfs_phone, VFS_IN_MOUNT, dev_handle, flags, NULL);
    141141        rc = ipc_data_write_start(vfs_phone, (void *) mpa, mpa_size);
    142142        if (rc != EOK) {
     
    199199        vfs_connect();
    200200       
    201         req = async_send_3(vfs_phone, VFS_OPEN, lflag, oflag, 0, &answer);
     201        req = async_send_3(vfs_phone, VFS_IN_OPEN, lflag, oflag, 0, &answer);
    202202        rc = ipc_data_write_start(vfs_phone, pa, pa_size);
    203203        if (rc != EOK) {
     
    231231       
    232232        ipc_call_t answer;
    233         aid_t req = async_send_4(vfs_phone, VFS_OPEN_NODE, node->fs_handle,
     233        aid_t req = async_send_4(vfs_phone, VFS_IN_OPEN_NODE, node->fs_handle,
    234234            node->dev_handle, node->index, oflag, &answer);
    235235       
     
    253253        vfs_connect();
    254254       
    255         rc = async_req_1_0(vfs_phone, VFS_CLOSE, fildes);
     255        rc = async_req_1_0(vfs_phone, VFS_IN_CLOSE, fildes);
    256256       
    257257        async_serialize_end();
     
    271271        vfs_connect();
    272272       
    273         req = async_send_1(vfs_phone, VFS_READ, fildes, &answer);
     273        req = async_send_1(vfs_phone, VFS_IN_READ, fildes, &answer);
    274274        rc = ipc_data_read_start(vfs_phone, (void *)buf, nbyte);
    275275        if (rc != EOK) {
     
    298298        vfs_connect();
    299299       
    300         req = async_send_1(vfs_phone, VFS_WRITE, fildes, &answer);
     300        req = async_send_1(vfs_phone, VFS_IN_WRITE, fildes, &answer);
    301301        rc = ipc_data_write_start(vfs_phone, (void *)buf, nbyte);
    302302        if (rc != EOK) {
     
    322322       
    323323        ipcarg_t device;
    324         ipcarg_t rc = async_req_1_1(vfs_phone, VFS_DEVICE, fildes, &device);
     324        ipcarg_t rc = async_req_1_1(vfs_phone, VFS_IN_DEVICE, fildes, &device);
    325325       
    326326        async_serialize_end();
     
    342342        ipcarg_t dev_handle;
    343343        ipcarg_t index;
    344         ipcarg_t rc = async_req_1_3(vfs_phone, VFS_NODE, fildes, &fs_handle,
     344        ipcarg_t rc = async_req_1_3(vfs_phone, VFS_IN_NODE, fildes, &fs_handle,
    345345            &dev_handle, &index);
    346346       
     
    363363        vfs_connect();
    364364       
    365         ipcarg_t rc = async_req_1_0(vfs_phone, VFS_SYNC, fildes);
     365        ipcarg_t rc = async_req_1_0(vfs_phone, VFS_IN_SYNC, fildes);
    366366       
    367367        async_serialize_end();
     
    380380       
    381381        ipcarg_t newoffs;
    382         rc = async_req_3_1(vfs_phone, VFS_SEEK, fildes, offset, whence,
     382        rc = async_req_3_1(vfs_phone, VFS_IN_SEEK, fildes, offset, whence,
    383383            &newoffs);
    384384
     
    400400        vfs_connect();
    401401       
    402         rc = async_req_2_0(vfs_phone, VFS_TRUNCATE, fildes, length);
     402        rc = async_req_2_0(vfs_phone, VFS_IN_TRUNCATE, fildes, length);
    403403        async_serialize_end();
    404404        futex_up(&vfs_phone_futex);
     
    453453        vfs_connect();
    454454       
    455         req = async_send_1(vfs_phone, VFS_MKDIR, mode, NULL);
     455        req = async_send_1(vfs_phone, VFS_IN_MKDIR, mode, NULL);
    456456        rc = ipc_data_write_start(vfs_phone, pa, pa_size);
    457457        if (rc != EOK) {
     
    483483        vfs_connect();
    484484       
    485         req = async_send_0(vfs_phone, VFS_UNLINK, NULL);
     485        req = async_send_0(vfs_phone, VFS_IN_UNLINK, NULL);
    486486        rc = ipc_data_write_start(vfs_phone, pa, pa_size);
    487487        if (rc != EOK) {
     
    530530        vfs_connect();
    531531       
    532         req = async_send_0(vfs_phone, VFS_RENAME, NULL);
     532        req = async_send_0(vfs_phone, VFS_IN_RENAME, NULL);
    533533        rc = ipc_data_write_start(vfs_phone, olda, olda_size);
    534534        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.