Changeset 6afc9d7 in mainline for uspace/srv
- Timestamp:
- 2015-10-06T19:01:36Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0328987
- Parents:
- f1f7584
- Location:
- uspace/srv
- Files:
-
- 6 edited
-
devman/driver.c (modified) (1 diff)
-
devman/match.c (modified) (3 diffs)
-
loader/main.c (modified) (1 diff)
-
vfs/vfs.c (modified) (1 diff)
-
vfs/vfs.h (modified) (1 diff)
-
vfs/vfs_ops.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/driver.c
rf1f7584 r6afc9d7 142 142 /* Check whether the driver's binary exists. */ 143 143 struct stat s; 144 if (stat(drv->binary_path, &s) == ENOENT) { /* FIXME!! */144 if (stat(drv->binary_path, &s) != 0) { 145 145 log_msg(LOG_DEFAULT, LVL_ERROR, "Driver not found at path `%s'.", 146 146 drv->binary_path); -
uspace/srv/devman/match.c
rf1f7584 r6afc9d7 31 31 */ 32 32 33 #include <errno.h> 33 34 #include <fcntl.h> 34 35 #include <io/log.h> … … 197 198 if (fd < 0) { 198 199 log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to open `%s' for reading: %s.", 199 conf_path, str_error( fd));200 conf_path, str_error(errno)); 200 201 goto cleanup; 201 202 } … … 217 218 } 218 219 219 ssize_t read_bytes = read _all(fd, buf, len);220 ssize_t read_bytes = read(fd, buf, len); 220 221 if (read_bytes <= 0) { 221 log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to read file '%s' (% zd).", conf_path,222 read_bytes);222 log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to read file '%s' (%d).", conf_path, 223 errno); 223 224 goto cleanup; 224 225 } -
uspace/srv/loader/main.c
rf1f7584 r6afc9d7 249 249 } 250 250 async_state_change_finalize(callid, vfs_exch); 251 fd = fd_wait();251 fd = vfs_fd_wait(); 252 252 assert(fd == (int) filc); 253 253 } -
uspace/srv/vfs/vfs.c
rf1f7584 r6afc9d7 74 74 break; 75 75 case VFS_IN_MOUNT: 76 vfs_mount (callid, &call);76 vfs_mount_srv(callid, &call); 77 77 break; 78 78 case VFS_IN_UNMOUNT: 79 vfs_unmount (callid, &call);79 vfs_unmount_srv(callid, &call); 80 80 break; 81 81 case VFS_IN_OPEN: -
uspace/srv/vfs/vfs.h
rf1f7584 r6afc9d7 205 205 206 206 extern void vfs_register(ipc_callid_t, ipc_call_t *); 207 extern void vfs_mount (ipc_callid_t, ipc_call_t *);208 extern void vfs_unmount (ipc_callid_t, ipc_call_t *);207 extern void vfs_mount_srv(ipc_callid_t, ipc_call_t *); 208 extern void vfs_unmount_srv(ipc_callid_t, ipc_call_t *); 209 209 extern void vfs_open(ipc_callid_t, ipc_call_t *); 210 210 extern void vfs_sync(ipc_callid_t, ipc_call_t *); -
uspace/srv/vfs/vfs_ops.c
rf1f7584 r6afc9d7 266 266 } 267 267 268 void vfs_mount (ipc_callid_t rid, ipc_call_t *request)268 void vfs_mount_srv(ipc_callid_t rid, ipc_call_t *request) 269 269 { 270 270 service_id_t service_id; … … 405 405 } 406 406 407 void vfs_unmount (ipc_callid_t rid, ipc_call_t *request)407 void vfs_unmount_srv(ipc_callid_t rid, ipc_call_t *request) 408 408 { 409 409 int rc;
Note:
See TracChangeset
for help on using the changeset viewer.
