Changeset 132ab5d1 in mainline for uspace/app/tester/mm/pager1.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (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 commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

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

    r8bfb163 r132ab5d1  
    3030#include <vfs/vfs.h>
    3131#include <stdlib.h>
    32 #include <malloc.h>
    3332#include <as.h>
    3433#include <ns.h>
     
    4544static void *create_paged_area(size_t size)
    4645{
     46        size_t nwr;
     47        int rc;
     48
    4749        TPRINTF("Creating temporary file...\n");
    4850
    49         fd = vfs_lookup_open(TEST_FILE, WALK_REGULAR | WALK_MAY_CREATE,
    50             MODE_READ | MODE_WRITE);
    51         if (fd < 0)
     51        rc = vfs_lookup_open(TEST_FILE, WALK_REGULAR | WALK_MAY_CREATE,
     52            MODE_READ | MODE_WRITE, &fd);
     53        if (rc != EOK)
    5254                return NULL;
    5355        (void) vfs_unlink_path(TEST_FILE);
    5456
    55         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) {
    5659                vfs_put(fd);
    5760                return NULL;
Note: See TracChangeset for help on using the changeset viewer.