Changeset 9c4cf0d in mainline for uspace/app/tester
- Timestamp:
- 2017-04-02T11:24:06Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 151f1cc
- Parents:
- b19e892
- Location:
- uspace/app/tester
- Files:
-
- 3 edited
-
hw/misc/virtchar1.c (modified) (2 diffs)
-
mm/pager1.c (modified) (4 diffs)
-
vfs/vfs1.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/hw/misc/virtchar1.c
rb19e892 r9c4cf0d 69 69 async_sess_t *sess = vfs_fd_session(fd, INTERFACE_DDF); 70 70 if (!sess) { 71 close(fd);71 vfs_put(fd); 72 72 TPRINTF(" ...error: %s\n", str_error(errno)); 73 73 return "Failed to get session to device"; … … 90 90 TPRINTF(" Closing session and file descriptor\n"); 91 91 async_hangup(sess); 92 close(fd);92 vfs_put(fd); 93 93 94 94 return NULL; -
uspace/app/tester/mm/pager1.c
rb19e892 r9c4cf0d 54 54 55 55 if (write(fd, (aoff64_t []) {0}, text, sizeof(text)) != sizeof(text)) { 56 close(fd);56 vfs_put(fd); 57 57 return NULL; 58 58 } … … 65 65 66 66 if (!vfs_pager_sess) { 67 close(fd);67 vfs_put(fd); 68 68 return NULL; 69 69 } … … 74 74 AS_AREA_READ | AS_AREA_CACHEABLE, vfs_pager_sess, fd, 0, 0); 75 75 if (result == AS_MAP_FAILED) { 76 close(fd);76 vfs_put(fd); 77 77 return NULL; 78 78 } … … 102 102 103 103 as_area_destroy(buffer); 104 close(fd);104 vfs_put(fd); 105 105 106 106 return NULL; -
uspace/app/tester/vfs/vfs1.c
rb19e892 r9c4cf0d 108 108 } 109 109 110 close(fd0);110 vfs_put(fd0); 111 111 112 112 const char *rv = read_root();
Note:
See TracChangeset
for help on using the changeset viewer.
