Changeset b19e892 in mainline for uspace/app/tester
- Timestamp:
- 2017-04-02T10:39:13Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9c4cf0d
- Parents:
- 80743a1
- Location:
- uspace/app/tester
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/hw/misc/virtchar1.c
r80743a1 rb19e892 45 45 #include <vfs/vfs.h> 46 46 #include <vfs/vfs_sess.h> 47 #include <fcntl.h>48 47 #include "../../tester.h" 49 48 … … 55 54 { 56 55 TPRINTF("Opening `%s'...\n", path); 57 int fd = open(path, O_RDONLY);56 int fd = vfs_lookup(path, WALK_REGULAR); 58 57 if (fd < 0) { 59 58 TPRINTF(" ...error: %s\n", str_error(errno)); -
uspace/app/tester/mm/pager1.c
r80743a1 rb19e892 29 29 #include <stdio.h> 30 30 #include <vfs/vfs.h> 31 #include <fcntl.h>32 31 #include <stdlib.h> 33 32 #include <malloc.h> … … 48 47 TPRINTF("Creating temporary file...\n"); 49 48 50 fd = open(TEST_FILE, O_RDWR | O_CREAT); 49 fd = vfs_lookup_open(TEST_FILE, WALK_REGULAR | WALK_MAY_CREATE, 50 MODE_READ | MODE_WRITE); 51 51 if (fd < 0) 52 52 return NULL; -
uspace/app/tester/vfs/vfs1.c
r80743a1 rb19e892 33 33 #include <vfs/vfs.h> 34 34 #include <unistd.h> 35 #include <fcntl.h>36 35 #include <dirent.h> 37 36 #include <loc.h> … … 79 78 TPRINTF("Created directory %s\n", TEST_DIRECTORY); 80 79 81 int fd0 = open(TEST_FILE, O_RDWR | O_CREAT); 80 int fd0 = vfs_lookup_open(TEST_FILE, WALK_REGULAR | WALK_MAY_CREATE, 81 MODE_READ | MODE_WRITE); 82 82 if (fd0 < 0) 83 return " open() failed";83 return "vfs_lookup_open() failed"; 84 84 TPRINTF("Created file %s (fd=%d)\n", TEST_FILE, fd0); 85 85
Note:
See TracChangeset
for help on using the changeset viewer.