Changeset 8e3498b in mainline for uspace/app/tester/mm/pager1.c


Ignore:
Timestamp:
2017-12-04T18:44:24Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bde5c04
Parents:
40feeac
Message:

vfs_read/write() should return error code separately from number of bytes transferred.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/mm/pager1.c

    r40feeac r8e3498b  
    4444static void *create_paged_area(size_t size)
    4545{
     46        size_t nwr;
     47        int rc;
     48
    4649        TPRINTF("Creating temporary file...\n");
    4750
     
    5255        (void) vfs_unlink_path(TEST_FILE);
    5356
    54         if (vfs_write(fd, (aoff64_t []) {0}, text, sizeof(text)) < 0) {
     57        rc = vfs_write(fd, (aoff64_t []) {0}, text, sizeof(text), &nwr);
     58        if (rc != EOK) {
    5559                vfs_put(fd);
    5660                return NULL;
Note: See TracChangeset for help on using the changeset viewer.