Changes in uspace/app/getterm/getterm.c [1d6dd2a:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/getterm/getterm.c
r1d6dd2a r8d2dd7f2 42 42 #include <loc.h> 43 43 #include <vfs/vfs.h> 44 #include <str.h>45 44 #include "version.h" 46 45 #include "welcome.h" … … 66 65 *stream = NULL; 67 66 68 int oldfd; 69 errno_t rc = vfs_lookup_open(path, WALK_REGULAR, mode, &oldfd); 70 if (rc != EOK) 67 int oldfd = vfs_lookup_open(path, WALK_REGULAR, mode); 68 if (oldfd < 0) 71 69 return; 72 70 73 71 if (oldfd != fd) { 74 int newfd; 75 if (vfs_clone(oldfd, fd, false, &newfd) != EOK) 72 if (vfs_clone(oldfd, fd, false) != fd) 76 73 return; 77 74 78 assert(newfd == fd);79 80 75 if (vfs_put(oldfd)) 81 76 return; … … 134 129 /* Wait for the terminal service to be ready */ 135 130 service_id_t service_id; 136 errno_t rc = loc_service_get_id(term, &service_id, IPC_FLAG_BLOCKING);131 int rc = loc_service_get_id(term, &service_id, IPC_FLAG_BLOCKING); 137 132 if (rc != EOK) { 138 133 printf("%s: Error waiting on %s (%s)\n", APP_NAME, term, … … 171 166 task_wait_t twait; 172 167 173 errno_t rc = task_spawnv(&id, &twait, cmd, (const char * const *) args);168 int rc = task_spawnv(&id, &twait, cmd, (const char * const *) args); 174 169 if (rc != EOK) { 175 170 printf("%s: Error spawning %s (%s)\n", APP_NAME, cmd,
Note:
See TracChangeset
for help on using the changeset viewer.