Changeset b910455 in mainline for uspace/lib/c/generic/vfs/vfs.c


Ignore:
Timestamp:
2011-04-07T09:46:11Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6639ae1
Parents:
f6bffee (diff), 8e80d3f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    rf6bffee rb910455  
    378378       
    379379        req = async_send_1(vfs_phone, VFS_IN_READ, fildes, &answer);
    380         rc = async_data_read_start_flexible(vfs_phone, (void *) buf, nbyte,
     380        rc = async_data_read_start_generic(vfs_phone, (void *) buf, nbyte,
    381381            IPC_XF_RESTRICT);
    382382        if (rc != EOK) {
     
    408408       
    409409        req = async_send_1(vfs_phone, VFS_IN_WRITE, fildes, &answer);
    410         rc = async_data_write_start_flexible(vfs_phone, (void *) buf, nbyte,
     410        rc = async_data_write_start_generic(vfs_phone, (void *) buf, nbyte,
    411411            IPC_XF_RESTRICT);
    412412        if (rc != EOK) {
     
    758758{
    759759        struct stat stat;
    760         int rc;
    761 
    762         rc = fstat(fildes, &stat);
    763 
     760       
     761        int rc = fstat(fildes, &stat);
     762        if (rc != 0)
     763                return rc;
     764       
    764765        if (!stat.device)
    765766                return -1;
Note: See TracChangeset for help on using the changeset viewer.