Changeset 58898d1d in mainline for uspace/srv/vfs/vfs_ipc.c
- Timestamp:
- 2017-03-24T20:31:54Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e9b2534
- Parents:
- c9e3692
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ipc.c
rc9e3692 r58898d1d 122 122 { 123 123 int fd = IPC_GET_ARG1(*request); 124 aoff64_t pos = MERGE_LOUP32(IPC_GET_ARG2(*request), 125 IPC_GET_ARG3(*request)); 124 126 125 127 size_t bytes = 0; 126 int rc = vfs_op_read(fd, &bytes);128 int rc = vfs_op_read(fd, pos, &bytes); 127 129 async_answer_1(rid, rc, bytes); 128 130 } … … 170 172 if (new) 171 173 free(new); 172 }173 174 static void vfs_in_seek(ipc_callid_t rid, ipc_call_t *request)175 {176 int fd = (int) IPC_GET_ARG1(*request);177 int64_t off = (int64_t) MERGE_LOUP32(IPC_GET_ARG2(*request), IPC_GET_ARG3(*request));178 int whence = (int) IPC_GET_ARG4(*request);179 180 int64_t new_offset = 0;181 int rc = vfs_op_seek(fd, off, whence, &new_offset);182 async_answer_2(rid, rc, LOWER32(new_offset), UPPER32(new_offset));183 174 } 184 175 … … 256 247 { 257 248 int fd = IPC_GET_ARG1(*request); 249 aoff64_t pos = MERGE_LOUP32(IPC_GET_ARG2(*request), 250 IPC_GET_ARG3(*request)); 258 251 259 252 size_t bytes = 0; 260 int rc = vfs_op_write(fd, &bytes);253 int rc = vfs_op_write(fd, pos, &bytes); 261 254 async_answer_1(rid, rc, bytes); 262 255 } … … 308 301 vfs_in_rename(callid, &call); 309 302 break; 310 case VFS_IN_SEEK:311 vfs_in_seek(callid, &call);312 break;313 303 case VFS_IN_STATFS: 314 304 vfs_in_statfs(callid, &call);
Note:
See TracChangeset
for help on using the changeset viewer.