Ignore:
File:
1 edited

Legend:

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

    rce04ea44 rf77c1c9  
    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.