Changeset 132ab5d1 in mainline for uspace/app/tester/mm/pager1.c
- Timestamp:
- 2018-01-30T03:20:45Z (8 years ago)
- 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. - File:
-
- 1 edited
-
uspace/app/tester/mm/pager1.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/mm/pager1.c
r8bfb163 r132ab5d1 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.
