Changeset c47e1a8 in mainline for uspace/lib/c/generic/device/char.c
- Timestamp:
- 2010-05-21T07:50:04Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d51ee2b
- Parents:
- cf8cc36 (diff), 15b592b (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/device/char.c
rcf8cc36 rc47e1a8 60 60 61 61 aid_t req; 62 int r c;62 int ret; 63 63 64 64 if (read) { 65 65 req = async_send_1(dev_phone, DEV_IFACE_ID(CHAR_DEV_IFACE), CHAR_READ_DEV, &answer); 66 r c= async_data_read_start(dev_phone, buf, len);66 ret = async_data_read_start(dev_phone, buf, len); 67 67 } else { 68 68 req = async_send_1(dev_phone, DEV_IFACE_ID(CHAR_DEV_IFACE), CHAR_WRITE_DEV, &answer); 69 r c= async_data_write_start(dev_phone, buf, len);69 ret = async_data_write_start(dev_phone, buf, len); 70 70 } 71 71 72 i f (rc != EOK) {73 ipcarg_t rc_orig;74 async_wait_for(req, &rc _orig);72 ipcarg_t rc; 73 if (ret != EOK) { 74 async_wait_for(req, &rc); 75 75 async_serialize_end(); 76 if (rc _orig== EOK) {77 return r c;76 if (rc == EOK) { 77 return ret; 78 78 } 79 79 else { 80 return (int) rc _orig;80 return (int) rc; 81 81 } 82 82 } … … 85 85 async_serialize_end(); 86 86 87 if (EOK != rc) { 88 return rc; 87 ret = (int)rc; 88 if (EOK != ret) { 89 return ret; 89 90 } 90 91
Note:
See TracChangeset
for help on using the changeset viewer.