Changes in uspace/app/tester/mm/pager1.c [ce04ea44:f77c1c9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/mm/pager1.c
rce04ea44 rf77c1c9 30 30 #include <vfs/vfs.h> 31 31 #include <stdlib.h> 32 #include <malloc.h>33 32 #include <as.h> 34 33 #include <ns.h> … … 45 44 static void *create_paged_area(size_t size) 46 45 { 46 size_t nwr; 47 int rc; 48 47 49 TPRINTF("Creating temporary file...\n"); 48 50 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) 52 54 return NULL; 53 55 (void) vfs_unlink_path(TEST_FILE); 54 56 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) { 56 59 vfs_put(fd); 57 60 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.