Changeset a35b458 in mainline for uspace/lib/c/generic/io/output.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/output.c
r3061bc1 ra35b458 45 45 errno_t ret = async_req_0_0(exch, OUTPUT_YIELD); 46 46 async_exchange_end(exch); 47 47 48 48 return ret; 49 49 } … … 54 54 errno_t ret = async_req_0_0(exch, OUTPUT_CLAIM); 55 55 async_exchange_end(exch); 56 56 57 57 return ret; 58 58 } … … 63 63 errno_t ret = async_req_0_2(exch, OUTPUT_GET_DIMENSIONS, maxx, maxy); 64 64 async_exchange_end(exch); 65 65 66 66 return ret; 67 67 } … … 70 70 { 71 71 async_exch_t *exch = async_exchange_begin(sess); 72 72 73 73 sysarg_t rv; 74 74 errno_t ret = async_req_0_1(exch, OUTPUT_GET_CAPS, &rv); 75 75 76 76 async_exchange_end(exch); 77 77 78 78 if (ret == EOK) 79 79 *ccaps = (console_caps_t) rv; 80 80 81 81 return ret; 82 82 } … … 86 86 { 87 87 async_exch_t *exch = async_exchange_begin(sess); 88 88 89 89 ipc_call_t answer; 90 90 aid_t req = async_send_0(exch, OUTPUT_FRONTBUF_CREATE, &answer); 91 91 errno_t rc = async_share_out_start(exch, frontbuf, AS_AREA_READ 92 92 | AS_AREA_WRITE | AS_AREA_CACHEABLE); 93 93 94 94 async_exchange_end(exch); 95 95 96 96 errno_t ret; 97 97 async_wait_for(req, &ret); 98 98 99 99 if ((rc != EOK) || (ret != EOK)) 100 100 return 0; 101 101 102 102 return (frontbuf_handle_t) IPC_GET_ARG1(answer); 103 103 } … … 108 108 errno_t ret = async_req_1_0(exch, OUTPUT_SET_STYLE, style); 109 109 async_exchange_end(exch); 110 110 111 111 return ret; 112 112 } … … 117 117 errno_t ret = async_req_1_0(exch, OUTPUT_CURSOR_UPDATE, frontbuf); 118 118 async_exchange_end(exch); 119 119 120 120 return ret; 121 121 } … … 126 126 errno_t ret = async_req_1_0(exch, OUTPUT_UPDATE, frontbuf); 127 127 async_exchange_end(exch); 128 128 129 129 return ret; 130 130 } … … 137 137 cols, rows); 138 138 async_exchange_end(exch); 139 139 140 140 return ret; 141 141 }
Note:
See TracChangeset
for help on using the changeset viewer.