Changeset ffa2c8ef in mainline for uspace/lib
- Timestamp:
- 2011-01-29T11:36:08Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 46b881c
- Parents:
- 64d2b10
- Location:
- uspace/lib
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/block/libblock.c
r64d2b10 rffa2c8ef 44 44 #include <sys/mman.h> 45 45 #include <async.h> 46 #include <ipc/ipc.h>47 46 #include <as.h> 48 47 #include <assert.h> … … 177 176 if (rc != EOK) { 178 177 munmap(comm_area, comm_size); 179 ipc_hangup(dev_phone);178 async_hangup(dev_phone); 180 179 return rc; 181 180 } … … 183 182 if (get_block_size(dev_phone, &bsize) != EOK) { 184 183 munmap(comm_area, comm_size); 185 ipc_hangup(dev_phone);184 async_hangup(dev_phone); 186 185 return rc; 187 186 } … … 190 189 if (rc != EOK) { 191 190 munmap(comm_area, comm_size); 192 ipc_hangup(dev_phone);191 async_hangup(dev_phone); 193 192 return rc; 194 193 } … … 211 210 212 211 munmap(devcon->comm_area, devcon->comm_size); 213 ipc_hangup(devcon->dev_phone);212 async_hangup(devcon->dev_phone); 214 213 215 214 free(devcon); -
uspace/lib/c/generic/event.c
r64d2b10 rffa2c8ef 35 35 */ 36 36 /** @file 37 */ 37 */ 38 38 39 39 #include <libc.h> 40 40 #include <event.h> 41 41 #include <kernel/ipc/event_types.h> 42 #include <ipc/ipc.h>43 42 44 43 /** Subscribe for event notifications. -
uspace/lib/drv/generic/driver.c
r64d2b10 rffa2c8ef 186 186 pseudocode = &default_pseudocode; 187 187 188 int res = ipc_register_irq(irq, dev->handle, ctx->id, pseudocode);188 int res = register_irq(irq, dev->handle, ctx->id, pseudocode); 189 189 if (res != EOK) { 190 190 remove_interrupt_context(&interrupt_contexts, ctx); … … 199 199 interrupt_context_t *ctx = find_interrupt_context(&interrupt_contexts, 200 200 dev, irq); 201 int res = ipc_unregister_irq(irq, dev->handle);201 int res = unregister_irq(irq, dev->handle); 202 202 203 203 if (ctx != NULL) { … … 272 272 } 273 273 274 ipc_answer_0(iid, res);274 async_answer_0(iid, res); 275 275 } 276 276 … … 278 278 { 279 279 /* Accept connection */ 280 ipc_answer_0(iid, EOK);280 async_answer_0(iid, EOK); 281 281 282 282 bool cont = true; … … 293 293 break; 294 294 default: 295 ipc_answer_0(callid, ENOENT);295 async_answer_0(callid, ENOENT); 296 296 } 297 297 } … … 316 316 printf("%s: driver_connection_gen error - no device with handle" 317 317 " %" PRIun " was found.\n", driver->name, handle); 318 ipc_answer_0(iid, ENOENT);318 async_answer_0(iid, ENOENT); 319 319 return; 320 320 } … … 331 331 ret = (*dev->ops->open)(dev); 332 332 333 ipc_answer_0(iid, ret);333 async_answer_0(iid, ret); 334 334 if (ret != EOK) 335 335 return; … … 347 347 if (dev->ops != NULL && dev->ops->close != NULL) 348 348 (*dev->ops->close)(dev); 349 ipc_answer_0(callid, EOK);349 async_answer_0(callid, EOK); 350 350 return; 351 351 default: … … 368 368 "invalid interface id %d.", 369 369 driver->name, iface_idx); 370 ipc_answer_0(callid, ENOTSUP);370 async_answer_0(callid, ENOTSUP); 371 371 break; 372 372 } … … 381 381 printf("device with handle %" PRIun " has no interface " 382 382 "with id %d.\n", handle, iface_idx); 383 ipc_answer_0(callid, ENOTSUP);383 async_answer_0(callid, ENOTSUP); 384 384 break; 385 385 } … … 400 400 printf("%s: driver_connection_gen error - " 401 401 "invalid interface method.", driver->name); 402 ipc_answer_0(callid, ENOTSUP);402 async_answer_0(callid, ENOTSUP); 403 403 break; 404 404 } … … 446 446 default: 447 447 /* No such interface */ 448 ipc_answer_0(iid, ENOENT);448 async_answer_0(iid, ENOENT); 449 449 } 450 450 } -
uspace/lib/drv/generic/remote_char_dev.c
r64d2b10 rffa2c8ef 33 33 */ 34 34 35 #include <ipc/ipc.h>36 35 #include <async.h> 37 36 #include <errno.h> … … 81 80 if (!async_data_read_receive(&cid, &len)) { 82 81 /* TODO handle protocol error. */ 83 ipc_answer_0(callid, EINVAL);82 async_answer_0(callid, EINVAL); 84 83 return; 85 84 } … … 87 86 if (!char_dev_ops->read) { 88 87 async_data_read_finalize(cid, NULL, 0); 89 ipc_answer_0(callid, ENOTSUP);88 async_answer_0(callid, ENOTSUP); 90 89 return; 91 90 } … … 100 99 /* Some error occured. */ 101 100 async_data_read_finalize(cid, buf, 0); 102 ipc_answer_0(callid, ret);101 async_answer_0(callid, ret); 103 102 return; 104 103 } … … 106 105 /* The operation was successful, return the number of data read. */ 107 106 async_data_read_finalize(cid, buf, ret); 108 ipc_answer_1(callid, EOK, ret);107 async_answer_1(callid, EOK, ret); 109 108 } 110 109 … … 128 127 if (!async_data_write_receive(&cid, &len)) { 129 128 /* TODO handle protocol error. */ 130 ipc_answer_0(callid, EINVAL);129 async_answer_0(callid, EINVAL); 131 130 return; 132 131 } … … 134 133 if (!char_dev_ops->write) { 135 134 async_data_write_finalize(cid, NULL, 0); 136 ipc_answer_0(callid, ENOTSUP);135 async_answer_0(callid, ENOTSUP); 137 136 return; 138 137 } … … 148 147 if (ret < 0) { 149 148 /* Some error occured. */ 150 ipc_answer_0(callid, ret);149 async_answer_0(callid, ret); 151 150 } else { 152 151 /* … … 154 153 * written. 155 154 */ 156 ipc_answer_1(callid, EOK, ret);155 async_answer_1(callid, EOK, ret); 157 156 } 158 157 } -
uspace/lib/drv/generic/remote_hw_res.c
r64d2b10 rffa2c8ef 33 33 */ 34 34 35 #include <ipc/ipc.h>36 35 #include <async.h> 37 36 #include <errno.h> … … 62 61 63 62 if (hw_res_ops->enable_interrupt == NULL) 64 ipc_answer_0(callid, ENOTSUP);63 async_answer_0(callid, ENOTSUP); 65 64 else if (hw_res_ops->enable_interrupt(dev)) 66 ipc_answer_0(callid, EOK);65 async_answer_0(callid, EOK); 67 66 else 68 ipc_answer_0(callid, EREFUSED);67 async_answer_0(callid, EREFUSED); 69 68 } 70 69 … … 75 74 76 75 if (hw_res_ops->get_resource_list == NULL) { 77 ipc_answer_0(callid, ENOTSUP);76 async_answer_0(callid, ENOTSUP); 78 77 return; 79 78 } … … 81 80 hw_resource_list_t *hw_resources = hw_res_ops->get_resource_list(dev); 82 81 if (hw_resources == NULL){ 83 ipc_answer_0(callid, ENOENT);82 async_answer_0(callid, ENOENT); 84 83 return; 85 84 } 86 85 87 ipc_answer_1(callid, EOK, hw_resources->count);86 async_answer_1(callid, EOK, hw_resources->count); 88 87 89 88 size_t len; -
uspace/lib/drv/include/dev_iface.h
r64d2b10 rffa2c8ef 36 36 #define LIBDRV_DEV_IFACE_H_ 37 37 38 #include <ipc/common.h> 38 39 #include <ipc/dev_iface.h> 39 40 -
uspace/lib/drv/include/driver.h
r64d2b10 rffa2c8ef 36 36 #define LIBDRV_DRIVER_H_ 37 37 38 #include <kernel/ddi/irq.h> 38 39 #include <adt/list.h> 39 #include <ipc/ipc.h>40 40 #include <devman.h> 41 41 #include <ipc/devman.h> -
uspace/lib/fs/libfs.c
r64d2b10 rffa2c8ef 40 40 #include <errno.h> 41 41 #include <async.h> 42 #include <ipc/ipc.h>43 42 #include <as.h> 44 43 #include <assert.h> … … 58 57 #define answer_and_return(rid, rc) \ 59 58 do { \ 60 ipc_answer_0((rid), (rc)); \59 async_answer_0((rid), (rc)); \ 61 60 return; \ 62 61 } while (0) … … 102 101 * Ask VFS for callback connection. 103 102 */ 104 sysarg_t taskhash; 105 ipc_connect_to_me(vfs_phone, 0, 0, 0, &taskhash, ®->vfs_phonehash); 103 async_connect_to_me(vfs_phone, 0, 0, 0, conn); 106 104 107 105 /* … … 128 126 async_wait_for(req, NULL); 129 127 reg->fs_handle = (int) IPC_GET_ARG1(answer); 130 131 /*132 * Create a connection fibril to handle the callback connection.133 */134 async_new_connection(taskhash, reg->vfs_phonehash, 0, NULL, conn);135 128 136 129 /* … … 166 159 if ((IPC_GET_IMETHOD(call) != IPC_M_CONNECTION_CLONE) || 167 160 (mountee_phone < 0)) { 168 ipc_answer_0(callid, EINVAL);169 ipc_answer_0(rid, EINVAL);161 async_answer_0(callid, EINVAL); 162 async_answer_0(rid, EINVAL); 170 163 return; 171 164 } 172 165 173 166 /* Acknowledge the mountee_phone */ 174 ipc_answer_0(callid, EOK);167 async_answer_0(callid, EOK); 175 168 176 169 fs_node_t *fn; 177 170 res = ops->node_get(&fn, mp_devmap_handle, mp_fs_index); 178 171 if ((res != EOK) || (!fn)) { 179 ipc_hangup(mountee_phone);172 async_hangup(mountee_phone); 180 173 async_data_write_void(combine_rc(res, ENOENT)); 181 ipc_answer_0(rid, combine_rc(res, ENOENT));174 async_answer_0(rid, combine_rc(res, ENOENT)); 182 175 return; 183 176 } 184 177 185 178 if (fn->mp_data.mp_active) { 186 ipc_hangup(mountee_phone);179 async_hangup(mountee_phone); 187 180 (void) ops->node_put(fn); 188 181 async_data_write_void(EBUSY); 189 ipc_answer_0(rid, EBUSY);182 async_answer_0(rid, EBUSY); 190 183 return; 191 184 } … … 193 186 rc = async_req_0_0(mountee_phone, IPC_M_CONNECT_ME); 194 187 if (rc != EOK) { 195 ipc_hangup(mountee_phone);188 async_hangup(mountee_phone); 196 189 (void) ops->node_put(fn); 197 190 async_data_write_void(rc); 198 ipc_answer_0(rid, rc);191 async_answer_0(rid, rc); 199 192 return; 200 193 } … … 214 207 * Do not release the FS node so that it stays in memory. 215 208 */ 216 ipc_answer_3(rid, rc, IPC_GET_ARG1(answer), IPC_GET_ARG2(answer),209 async_answer_3(rid, rc, IPC_GET_ARG1(answer), IPC_GET_ARG2(answer), 217 210 IPC_GET_ARG3(answer)); 218 211 } … … 227 220 res = ops->node_get(&fn, mp_devmap_handle, mp_fs_index); 228 221 if ((res != EOK) || (!fn)) { 229 ipc_answer_0(rid, combine_rc(res, ENOENT));222 async_answer_0(rid, combine_rc(res, ENOENT)); 230 223 return; 231 224 } … … 236 229 if (!fn->mp_data.mp_active) { 237 230 (void) ops->node_put(fn); 238 ipc_answer_0(rid, EINVAL);231 async_answer_0(rid, EINVAL); 239 232 return; 240 233 } … … 250 243 */ 251 244 if (res == EOK) { 252 ipc_hangup(fn->mp_data.phone);245 async_hangup(fn->mp_data.phone); 253 246 fn->mp_data.mp_active = false; 254 247 fn->mp_data.fs_handle = 0; … … 260 253 261 254 (void) ops->node_put(fn); 262 ipc_answer_0(rid, res);255 async_answer_0(rid, res); 263 256 } 264 257 … … 300 293 301 294 if (cur->mp_data.mp_active) { 302 ipc_forward_slow(rid, cur->mp_data.phone, VFS_OUT_LOOKUP,295 async_forward_slow(rid, cur->mp_data.phone, VFS_OUT_LOOKUP, 303 296 next, last, cur->mp_data.devmap_handle, lflag, index, 304 297 IPC_FF_ROUTE_FROM_ME); … … 324 317 if (len + 1 == NAME_MAX) { 325 318 /* Component length overflow */ 326 ipc_answer_0(rid, ENAMETOOLONG);319 async_answer_0(rid, ENAMETOOLONG); 327 320 goto out; 328 321 } … … 358 351 next--; 359 352 360 ipc_forward_slow(rid, tmp->mp_data.phone,353 async_forward_slow(rid, tmp->mp_data.phone, 361 354 VFS_OUT_LOOKUP, next, last, tmp->mp_data.devmap_handle, 362 355 lflag, index, IPC_FF_ROUTE_FROM_ME); … … 372 365 if (next <= last) { 373 366 /* There are unprocessed components */ 374 ipc_answer_0(rid, ENOENT);367 async_answer_0(rid, ENOENT); 375 368 goto out; 376 369 } … … 380 373 /* Request to create a new link */ 381 374 if (!ops->is_directory(cur)) { 382 ipc_answer_0(rid, ENOTDIR);375 async_answer_0(rid, ENOTDIR); 383 376 goto out; 384 377 } … … 398 391 if (lflag & L_CREATE) 399 392 (void) ops->destroy(fn); 400 ipc_answer_0(rid, rc);393 async_answer_0(rid, rc); 401 394 } else { 402 395 aoff64_t size = ops->size_get(fn); 403 ipc_answer_5(rid, fs_handle,396 async_answer_5(rid, fs_handle, 404 397 devmap_handle, 405 398 ops->index_get(fn), … … 410 403 } 411 404 } else 412 ipc_answer_0(rid, ENOSPC);405 async_answer_0(rid, ENOSPC); 413 406 414 407 goto out; 415 408 } 416 409 417 ipc_answer_0(rid, ENOENT);410 async_answer_0(rid, ENOENT); 418 411 goto out; 419 412 } … … 441 434 if (lflag & (L_CREATE | L_LINK)) { 442 435 if (!ops->is_directory(cur)) { 443 ipc_answer_0(rid, ENOTDIR);436 async_answer_0(rid, ENOTDIR); 444 437 goto out; 445 438 } … … 450 443 if (ops->plb_get_char(next) == '/') { 451 444 /* More than one component */ 452 ipc_answer_0(rid, ENOENT);445 async_answer_0(rid, ENOENT); 453 446 goto out; 454 447 } … … 456 449 if (len + 1 == NAME_MAX) { 457 450 /* Component length overflow */ 458 ipc_answer_0(rid, ENAMETOOLONG);451 async_answer_0(rid, ENAMETOOLONG); 459 452 goto out; 460 453 } … … 480 473 if (lflag & L_CREATE) 481 474 (void) ops->destroy(fn); 482 ipc_answer_0(rid, rc);475 async_answer_0(rid, rc); 483 476 } else { 484 477 aoff64_t size = ops->size_get(fn); 485 ipc_answer_5(rid, fs_handle,478 async_answer_5(rid, fs_handle, 486 479 devmap_handle, 487 480 ops->index_get(fn), … … 492 485 } 493 486 } else 494 ipc_answer_0(rid, ENOSPC);487 async_answer_0(rid, ENOSPC); 495 488 496 489 goto out; 497 490 } 498 491 499 ipc_answer_0(rid, ENOENT);492 async_answer_0(rid, ENOENT); 500 493 goto out; 501 494 } … … 510 503 if (rc == EOK) { 511 504 aoff64_t size = ops->size_get(cur); 512 ipc_answer_5(rid, fs_handle, devmap_handle,505 async_answer_5(rid, fs_handle, devmap_handle, 513 506 ops->index_get(cur), LOWER32(size), UPPER32(size), 514 507 old_lnkcnt); 515 508 } else 516 ipc_answer_0(rid, rc);509 async_answer_0(rid, rc); 517 510 518 511 goto out; … … 521 514 if (((lflag & (L_CREATE | L_EXCLUSIVE)) == (L_CREATE | L_EXCLUSIVE)) || 522 515 (lflag & L_LINK)) { 523 ipc_answer_0(rid, EEXIST);516 async_answer_0(rid, EEXIST); 524 517 goto out; 525 518 } 526 519 527 520 if ((lflag & L_FILE) && (ops->is_directory(cur))) { 528 ipc_answer_0(rid, EISDIR);521 async_answer_0(rid, EISDIR); 529 522 goto out; 530 523 } 531 524 532 525 if ((lflag & L_DIRECTORY) && (ops->is_file(cur))) { 533 ipc_answer_0(rid, ENOTDIR);526 async_answer_0(rid, ENOTDIR); 534 527 goto out; 535 528 } 536 529 537 530 if ((lflag & L_ROOT) && par) { 538 ipc_answer_0(rid, EINVAL);531 async_answer_0(rid, EINVAL); 539 532 goto out; 540 533 } … … 548 541 if (rc == EOK) { 549 542 aoff64_t size = ops->size_get(cur); 550 ipc_answer_5(rid, fs_handle, devmap_handle,543 async_answer_5(rid, fs_handle, devmap_handle, 551 544 ops->index_get(cur), LOWER32(size), UPPER32(size), 552 545 ops->lnkcnt_get(cur)); 553 546 } else 554 ipc_answer_0(rid, rc);547 async_answer_0(rid, rc); 555 548 556 549 } else 557 ipc_answer_0(rid, rc);550 async_answer_0(rid, rc); 558 551 559 552 out: … … 584 577 (size != sizeof(struct stat))) { 585 578 ops->node_put(fn); 586 ipc_answer_0(callid, EINVAL);587 ipc_answer_0(rid, EINVAL);579 async_answer_0(callid, EINVAL); 580 async_answer_0(rid, EINVAL); 588 581 return; 589 582 } … … 604 597 605 598 async_data_read_finalize(callid, &stat, sizeof(struct stat)); 606 ipc_answer_0(rid, EOK);599 async_answer_0(rid, EOK); 607 600 } 608 601 … … 626 619 627 620 if (fn == NULL) { 628 ipc_answer_0(rid, ENOENT);621 async_answer_0(rid, ENOENT); 629 622 return; 630 623 } … … 632 625 rc = ops->node_open(fn); 633 626 aoff64_t size = ops->size_get(fn); 634 ipc_answer_4(rid, rc, LOWER32(size), UPPER32(size), ops->lnkcnt_get(fn),627 async_answer_4(rid, rc, LOWER32(size), UPPER32(size), ops->lnkcnt_get(fn), 635 628 (ops->is_file(fn) ? L_FILE : 0) | (ops->is_directory(fn) ? L_DIRECTORY : 0)); 636 629 -
uspace/lib/fs/libfs.h
r64d2b10 rffa2c8ef 39 39 #include <ipc/vfs.h> 40 40 #include <stdint.h> 41 #include <ipc/ipc.h>42 41 #include <async.h> 43 42 #include <devmap.h> … … 86 85 typedef struct { 87 86 int fs_handle; /**< File system handle. */ 88 sysarg_t vfs_phonehash; /**< Initial VFS phonehash. */89 87 uint8_t *plb_ro; /**< Read-only PLB view. */ 90 88 } fs_reg_t; -
uspace/lib/net/generic/generic.c
r64d2b10 rffa2c8ef 36 36 37 37 #include <generic.h> 38 39 38 #include <async.h> 40 #include <ipc/ipc.h>41 39 #include <ipc/services.h> 42 43 40 #include <net/device.h> 44 41 #include <adt/measured_strings.h> -
uspace/lib/net/generic/packet_remote.c
r64d2b10 rffa2c8ef 38 38 #include <async.h> 39 39 #include <errno.h> 40 #include <ipc/ipc.h>41 40 #include <ipc/packet.h> 42 41 #include <sys/mman.h> -
uspace/lib/net/il/arp_remote.c
r64d2b10 rffa2c8ef 41 41 #include <async.h> 42 42 #include <errno.h> 43 #include <ipc/ipc.h>44 43 #include <ipc/services.h> 45 44 #include <ipc/arp.h> -
uspace/lib/net/il/il_skel.c
r64d2b10 rffa2c8ef 54 54 * the initial IPC_M_CONNECT_ME_TO call. 55 55 */ 56 ipc_answer_0(iid, EOK);56 async_answer_0(iid, EOK); 57 57 58 58 while (true) { … … 115 115 goto out; 116 116 117 rc = ipc_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL);117 rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL); 118 118 if (rc != EOK) 119 119 goto out; -
uspace/lib/net/include/generic.h
r64d2b10 rffa2c8ef 39 39 40 40 #include <async.h> 41 #include <ipc/ipc.h>42 41 #include <ipc/services.h> 43 42 -
uspace/lib/net/include/il_skel.h
r64d2b10 rffa2c8ef 41 41 #include <async.h> 42 42 #include <fibril_synch.h> 43 #include <ipc/ipc.h>44 43 #include <ipc/services.h> 45 44 -
uspace/lib/net/include/netif_skel.h
r64d2b10 rffa2c8ef 41 41 #include <async.h> 42 42 #include <fibril_synch.h> 43 #include <ipc/ipc.h>44 43 #include <ipc/services.h> 45 44 -
uspace/lib/net/include/nil_skel.h
r64d2b10 rffa2c8ef 41 41 #include <async.h> 42 42 #include <fibril_synch.h> 43 #include <ipc/ipc.h>44 43 #include <ipc/services.h> 45 44 -
uspace/lib/net/include/tl_skel.h
r64d2b10 rffa2c8ef 41 41 #include <async.h> 42 42 #include <fibril_synch.h> 43 #include <ipc/ipc.h>44 43 #include <ipc/services.h> 45 44 -
uspace/lib/net/netif/netif_skel.c
r64d2b10 rffa2c8ef 40 40 #include <fibril_synch.h> 41 41 #include <stdio.h> 42 #include <ipc/ipc.h>43 42 #include <ipc/services.h> 44 43 #include <ipc/netif.h> … … 369 368 * the initial IPC_M_CONNECT_ME_TO call. 370 369 */ 371 ipc_answer_0(iid, EOK);370 async_answer_0(iid, EOK); 372 371 373 372 while (true) { -
uspace/lib/net/nil/nil_skel.c
r64d2b10 rffa2c8ef 54 54 * the initial IPC_M_CONNECT_ME_TO call. 55 55 */ 56 ipc_answer_0(iid, EOK);56 async_answer_0(iid, EOK); 57 57 58 58 while (true) { … … 115 115 goto out; 116 116 117 rc = ipc_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL);117 rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL); 118 118 if (rc != EOK) 119 119 goto out; -
uspace/lib/net/tl/icmp_remote.c
r64d2b10 rffa2c8ef 42 42 #include <async.h> 43 43 #include <errno.h> 44 #include <ipc/ipc.h>45 44 #include <ipc/services.h> 46 45 #include <ipc/icmp.h> -
uspace/lib/net/tl/tl_skel.c
r64d2b10 rffa2c8ef 54 54 * the initial IPC_M_CONNECT_ME_TO call. 55 55 */ 56 ipc_answer_0(iid, EOK);56 async_answer_0(iid, EOK); 57 57 58 58 /* Per-connection initialization */ … … 117 117 goto out; 118 118 119 rc = ipc_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL);119 rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL); 120 120 if (rc != EOK) 121 121 goto out; -
uspace/lib/packet/generic/packet_server.c
r64d2b10 rffa2c8ef 44 44 #include <unistd.h> 45 45 #include <sys/mman.h> 46 47 #include <ipc/ipc.h>48 46 #include <ipc/packet.h> 49 47 #include <ipc/net.h> 50 51 48 #include <net/packet.h> 52 49 #include <net/packet_header.h> … … 292 289 293 290 if (!async_share_in_receive(&callid, &size)) { 294 ipc_answer_0(callid, EINVAL);291 async_answer_0(callid, EINVAL); 295 292 return EINVAL; 296 293 } 297 294 298 295 if (size != packet->length) { 299 ipc_answer_0(callid, ENOMEM);296 async_answer_0(callid, ENOMEM); 300 297 return ENOMEM; 301 298 } -
uspace/lib/packet/include/packet_server.h
r64d2b10 rffa2c8ef 45 45 #define LIBPACKET_PACKET_SERVER_H_ 46 46 47 #include <ipc/ ipc.h>47 #include <ipc/common.h> 48 48 49 49 extern int packet_server_message(ipc_callid_t, ipc_call_t *, ipc_call_t *,
Note:
See TracChangeset
for help on using the changeset viewer.