Rev 2663 | Rev 2666 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2663 | Rev 2664 | ||
|---|---|---|---|
| Line 298... | Line 298... | ||
| 298 | /* |
298 | /* |
| 299 | * Receive the read request. |
299 | * Receive the read request. |
| 300 | */ |
300 | */ |
| 301 | ipc_callid_t callid; |
301 | ipc_callid_t callid; |
| 302 | size_t size; |
302 | size_t size; |
| 303 | if (!ipc_data_read_receive(&callid, size)) { |
303 | if (!ipc_data_read_receive(&callid, &size)) { |
| 304 | ipc_answer_0(callid, EINVAL); |
304 | ipc_answer_0(callid, EINVAL); |
| 305 | ipc_answer_0(rid, EINVAL); |
305 | ipc_answer_0(rid, EINVAL); |
| 306 | return; |
306 | return; |
| 307 | } |
307 | } |
| 308 | 308 | ||
| 309 | size_t bytes = max(0, min(dentry->size - pos, size)); |
309 | size_t bytes = max(0, min(dentry->size - pos, size)); |
| 310 | (void) ipc_data_read_deliver(callid, dentry->data + pos, bytes); |
310 | (void) ipc_data_read_deliver(callid, dentry->data + pos, bytes); |
| - | 311 | ||
| - | 312 | /* |
|
| - | 313 | * Answer the VFS_READ call. |
|
| - | 314 | */ |
|
| - | 315 | ipc_answer_1(rid, EOK, bytes); |
|
| 311 | } |
316 | } |
| 312 | 317 | ||
| 313 | /** |
318 | /** |
| 314 | * @} |
319 | * @} |
| 315 | */ |
320 | */ |