Changeset f307f12 in mainline for uspace/srv/fs/tmpfs/tmpfs_ops.c
- Timestamp:
- 2009-10-11T16:26:01Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c088fd4
- Parents:
- c123609 (diff), ba8f8cb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_ops.c
rc123609 rf307f12 389 389 ipc_callid_t callid; 390 390 size_t size; 391 if (! ipc_data_write_receive(&callid, &size)) {391 if (!async_data_write_receive(&callid, &size)) { 392 392 ipc_answer_0(callid, EINVAL); 393 393 ipc_answer_0(rid, EINVAL); … … 400 400 return; 401 401 } 402 ipcarg_t retval = ipc_data_write_finalize(callid, opts, size);402 ipcarg_t retval = async_data_write_finalize(callid, opts, size); 403 403 if (retval != EOK) { 404 404 ipc_answer_0(rid, retval); … … 467 467 ipc_callid_t callid; 468 468 size_t size; 469 if (! ipc_data_read_receive(&callid, &size)) {469 if (!async_data_read_receive(&callid, &size)) { 470 470 ipc_answer_0(callid, EINVAL); 471 471 ipc_answer_0(rid, EINVAL); … … 476 476 if (nodep->type == TMPFS_FILE) { 477 477 bytes = max(0, min(nodep->size - pos, size)); 478 (void) ipc_data_read_finalize(callid, nodep->data + pos,478 (void) async_data_read_finalize(callid, nodep->data + pos, 479 479 bytes); 480 480 } else { … … 503 503 dentryp = list_get_instance(lnk, tmpfs_dentry_t, link); 504 504 505 (void) ipc_data_read_finalize(callid, dentryp->name,505 (void) async_data_read_finalize(callid, dentryp->name, 506 506 str_size(dentryp->name) + 1); 507 507 bytes = 1; … … 541 541 ipc_callid_t callid; 542 542 size_t size; 543 if (! ipc_data_write_receive(&callid, &size)) {543 if (!async_data_write_receive(&callid, &size)) { 544 544 ipc_answer_0(callid, EINVAL); 545 545 ipc_answer_0(rid, EINVAL); … … 552 552 if (pos + size <= nodep->size) { 553 553 /* The file size is not changing. */ 554 (void) ipc_data_write_finalize(callid, nodep->data + pos, size);554 (void) async_data_write_finalize(callid, nodep->data + pos, size); 555 555 ipc_answer_2(rid, EOK, size, nodep->size); 556 556 return; … … 574 574 nodep->size += delta; 575 575 nodep->data = newdata; 576 (void) ipc_data_write_finalize(callid, nodep->data + pos, size);576 (void) async_data_write_finalize(callid, nodep->data + pos, size); 577 577 ipc_answer_2(rid, EOK, size, nodep->size); 578 578 }
Note:
See TracChangeset
for help on using the changeset viewer.