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


Ignore:
Timestamp:
2008-01-27T18:54:16Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
acfdcb0
Parents:
15b9970
Message:

VFS_WRITE and tmpfs_write fixes.

File:
1 edited

Legend:

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

    r15b9970 rf7017572  
    166166        async_serialize_end();
    167167        futex_up(&vfs_phone_futex);
    168         return (ssize_t) IPC_GET_ARG1(answer);
     168        if (rc == EOK)
     169                return (ssize_t) IPC_GET_ARG1(answer);
     170        else
     171                return -1;
    169172}
    170173
     
    196199        async_serialize_end();
    197200        futex_up(&vfs_phone_futex);
    198         return (ssize_t) IPC_GET_ARG1(answer);
     201        if (rc == EOK)
     202                return (ssize_t) IPC_GET_ARG1(answer);
     203        else
     204                return -1;
    199205}
    200206
Note: See TracChangeset for help on using the changeset viewer.