Changeset cdd6fc9 in mainline
- Timestamp:
- 2023-01-03T20:38:44Z (22 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3c54869
- Parents:
- df54aa8
- Location:
- uspace/lib
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ddev/src/ddev_srv.c
rdf54aa8 rcdd6fc9 1 1 /* 2 * Copyright (c) 20 19Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 101 101 rc = async_data_read_finalize(&call, &info, sizeof(ddev_info_t)); 102 102 if (rc != EOK) { 103 async_answer_0(&call, rc); 103 104 async_answer_0(icall, rc); 104 105 return; -
uspace/lib/device/src/bd_srv.c
rdf54aa8 rcdd6fc9 1 1 /* 2 * Copyright (c) 20 12Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 56 56 ipc_call_t rcall; 57 57 if (!async_data_read_receive(&rcall, &size)) { 58 async_answer_0(&rcall, EINVAL); 58 59 async_answer_0(call, EINVAL); 59 60 return; … … 99 100 ipc_call_t rcall; 100 101 if (!async_data_read_receive(&rcall, &size)) { 102 async_answer_0(&rcall, EINVAL); 101 103 async_answer_0(call, EINVAL); 102 104 return; -
uspace/lib/device/src/io/chardev_srv.c
rdf54aa8 rcdd6fc9 1 1 /* 2 * Copyright (c) 20 14Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 55 55 ipc_call_t call; 56 56 if (!async_data_read_receive(&call, &size)) { 57 async_answer_0(&call, EINVAL); 57 58 async_answer_0(icall, EINVAL); 58 59 return; -
uspace/lib/display/src/disp_srv.c
rdf54aa8 rcdd6fc9 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 241 241 242 242 if (!async_data_read_receive(&call, &size)) { 243 async_answer_0(&call, EREFUSED); 243 244 async_answer_0(icall, EREFUSED); 244 245 return; … … 285 286 286 287 if (!async_data_read_receive(&call, &size)) { 288 async_answer_0(&call, EREFUSED); 287 289 async_answer_0(icall, EREFUSED); 288 290 return; … … 521 523 /* Transfer event data */ 522 524 if (!async_data_read_receive(&call, &size)) { 525 async_answer_0(&call, EREFUSED); 523 526 async_answer_0(icall, EREFUSED); 524 527 return; … … 555 558 /* Transfer information */ 556 559 if (!async_data_read_receive(&call, &size)) { 560 async_answer_0(&call, EREFUSED); 557 561 async_answer_0(icall, EREFUSED); 558 562 return; -
uspace/lib/inet/src/iplink_srv.c
rdf54aa8 rcdd6fc9 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 74 74 75 75 rc = async_data_read_finalize(&call, &mac, size); 76 if (rc != EOK) 77 async_answer_0(&call, rc); 76 if (rc != EOK) { 77 async_answer_0(&call, rc); 78 async_answer_0(icall, rc); 79 return; 80 } 78 81 79 82 async_answer_0(icall, rc); … … 94 97 rc = srv->ops->set_mac48(srv, &mac); 95 98 if (rc != EOK) { 99 async_answer_0(&call, rc); 96 100 async_answer_0(icall, rc); 97 101 return; … … 99 103 100 104 rc = async_data_read_finalize(&call, &mac, sizeof(eth_addr_t)); 101 if (rc != EOK) 102 async_answer_0(&call, rc); 105 if (rc != EOK) { 106 async_answer_0(&call, rc); 107 async_answer_0(icall, rc); 108 return; 109 } 103 110 104 111 async_answer_0(icall, rc); … … 109 116 ipc_call_t call; 110 117 size_t size; 118 111 119 if (!async_data_write_receive(&call, &size)) { 112 120 async_answer_0(&call, EREFUSED); … … 126 134 async_answer_0(&call, rc); 127 135 async_answer_0(icall, rc); 136 return; 128 137 } 129 138 … … 136 145 ipc_call_t call; 137 146 size_t size; 147 138 148 if (!async_data_write_receive(&call, &size)) { 139 149 async_answer_0(&call, EREFUSED); … … 153 163 async_answer_0(&call, rc); 154 164 async_answer_0(icall, rc); 165 return; 155 166 } 156 167 … … 181 192 { 182 193 iplink_sdu6_t sdu; 183 184 ipc_call_t call;185 size_t size; 194 ipc_call_t call; 195 size_t size; 196 186 197 if (!async_data_write_receive(&call, &size)) { 187 198 async_answer_0(&call, EREFUSED); -
uspace/lib/ipcgfx/src/server.c
rdf54aa8 rcdd6fc9 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 151 151 152 152 if (!async_share_out_receive(&call, &size, &flags)) { 153 async_answer_0(&call, EINVAL); 153 154 async_answer_0(icall, EINVAL); 154 155 return; … … 157 158 /* Check size */ 158 159 if (size != PAGES2SIZE(SIZE2PAGES(dim.x * dim.y * sizeof(uint32_t)))) { 160 async_answer_0(&call, EINVAL); 159 161 async_answer_0(icall, EINVAL); 160 162 return; … … 163 165 rc = async_share_out_finalize(&call, &pixels); 164 166 if (rc != EOK || pixels == AS_MAP_FAILED) { 167 async_answer_0(&call, ENOMEM); 165 168 async_answer_0(icall, ENOMEM); 166 169 return; -
uspace/lib/usbvirt/src/ipc_dev.c
rdf54aa8 rcdd6fc9 1 1 /* 2 * Copyright (c) 2023 Jiri Svoboda 2 3 * Copyright (c) 2011 Vojtech Horky 3 4 * All rights reserved. … … 59 60 size_t accepted_size; 60 61 if (!async_data_read_receive(&call, &accepted_size)) { 62 async_answer_0(&call, EINVAL); 61 63 async_answer_0(icall, EINVAL); 62 64 return; … … 94 96 ipc_call_t data; 95 97 if (!async_data_read_receive(&data, &data_len)) { 98 async_answer_0(&data, EPARTY); 96 99 async_answer_0(icall, EPARTY); 97 100 free(setup_packet); … … 101 104 void *buffer = malloc(data_len); 102 105 if (buffer == NULL) { 106 async_answer_0(&data, EPARTY); 103 107 async_answer_0(icall, ENOMEM); 104 108 free(setup_packet); … … 184 188 ipc_call_t data; 185 189 if (!async_data_read_receive(&data, &data_len)) { 190 async_answer_0(&data, EPARTY); 186 191 async_answer_0(icall, EPARTY); 187 192 return; … … 190 195 void *buffer = malloc(data_len); 191 196 if (buffer == NULL) { 197 async_answer_0(&data, EPARTY); 192 198 async_answer_0(icall, ENOMEM); 193 199 return; -
uspace/lib/wndmgt/src/wndmgt_srv.c
rdf54aa8 rcdd6fc9 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 *
Note:
See TracChangeset
for help on using the changeset viewer.