Changeset ce04ea44 in mainline for uspace/app/tester
- Timestamp:
- 2017-04-02T12:27:14Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d4067a7
- Parents:
- 163fc09
- Location:
- uspace/app/tester
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/mm/pager1.c
r163fc09 rce04ea44 53 53 (void) vfs_unlink_path(TEST_FILE); 54 54 55 if ( write(fd, (aoff64_t []) {0}, text, sizeof(text)) != sizeof(text)) {55 if (vfs_write(fd, (aoff64_t []) {0}, text, sizeof(text)) < 0) { 56 56 vfs_put(fd); 57 57 return NULL; -
uspace/app/tester/vfs/vfs1.c
r163fc09 rce04ea44 85 85 86 86 size_t size = sizeof(text); 87 ssize_t cnt = write(fd0, &pos, text, size);87 ssize_t cnt = vfs_write(fd0, &pos, text, size); 88 88 if (cnt < 0) 89 89 return "write() failed"; … … 94 94 char buf[BUF_SIZE]; 95 95 TPRINTF("read..\n"); 96 while ((cnt = read(fd0, &pos, buf, BUF_SIZE))) {96 while ((cnt = vfs_read(fd0, &pos, buf, BUF_SIZE))) { 97 97 TPRINTF("read returns %zd\n", cnt); 98 98 if (cnt < 0)
Note:
See TracChangeset
for help on using the changeset viewer.