Changeset eda925a in mainline for uspace/srv
- Timestamp:
- 2010-02-04T15:46:51Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d32358f
- Parents:
- b4cbef1
- Location:
- uspace/srv
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/clip/clip.c
rb4cbef1 reda925a 65 65 break; 66 66 case CLIPBOARD_TAG_DATA: 67 rc = async_data_ receive(&data, 0, 0, 0, &size);67 rc = async_data_write_accept((char **) &data, false, 0, 0, 0, &size); 68 68 if (rc != EOK) { 69 69 ipc_answer_0(rid, rc); -
uspace/srv/devmap/devmap.c
rb4cbef1 reda925a 396 396 * Get driver name 397 397 */ 398 int rc = async_string_receive(&driver->name, DEVMAP_NAME_MAXLEN, NULL); 398 int rc = async_data_write_accept((char **) &driver->name, true, 0, 399 DEVMAP_NAME_MAXLEN, 0, NULL); 399 400 if (rc != EOK) { 400 401 free(driver); … … 510 511 /* Get fqdn */ 511 512 char *fqdn; 512 int rc = async_string_receive(&fqdn, DEVMAP_NAME_MAXLEN, NULL); 513 int rc = async_data_write_accept((char **) &fqdn, true, 0, 514 DEVMAP_NAME_MAXLEN, 0, NULL); 513 515 if (rc != EOK) { 514 516 free(device); … … 622 624 623 625 /* Get fqdn */ 624 int rc = async_string_receive(&fqdn, DEVMAP_NAME_MAXLEN, NULL); 626 int rc = async_data_write_accept((char **) &fqdn, true, 0, 627 DEVMAP_NAME_MAXLEN, 0, NULL); 625 628 if (rc != EOK) { 626 629 ipc_answer_0(iid, rc); … … 683 686 684 687 /* Get device name */ 685 int rc = async_string_receive(&name, DEVMAP_NAME_MAXLEN, NULL); 688 int rc = async_data_write_accept((char **) &name, true, 0, 689 DEVMAP_NAME_MAXLEN, 0, NULL); 686 690 if (rc != EOK) { 687 691 ipc_answer_0(iid, rc); -
uspace/srv/fs/devfs/devfs_ops.c
rb4cbef1 reda925a 419 419 420 420 /* Accept the mount options */ 421 ipcarg_t retval = async_string_receive(&opts, 0, NULL); 421 ipcarg_t retval = async_data_write_accept((char **) &opts, true, 0, 0, 422 0, NULL); 422 423 if (retval != EOK) { 423 424 ipc_answer_0(rid, retval); -
uspace/srv/fs/fat/fat_ops.c
rb4cbef1 reda925a 977 977 /* Accept the mount options */ 978 978 char *opts; 979 int rc = async_ string_receive(&opts, 0, NULL);979 int rc = async_data_write_accept((char **) &opts, true, 0, 0, 0, NULL); 980 980 981 981 if (rc != EOK) { -
uspace/srv/fs/tmpfs/tmpfs_ops.c
rb4cbef1 reda925a 442 442 /* Accept the mount options */ 443 443 char *opts; 444 int rc = async_ string_receive(&opts, 0, NULL);444 int rc = async_data_write_accept((char **) &opts, true, 0, 0, 0, NULL); 445 445 446 446 if (rc != EOK) { -
uspace/srv/hid/console/console.c
rb4cbef1 reda925a 477 477 void *buf; 478 478 size_t size; 479 int rc = async_data_ receive(&buf, 0, 0, 0, &size);479 int rc = async_data_write_accept(&buf, false, 0, 0, 0, &size); 480 480 481 481 if (rc != EOK) { -
uspace/srv/loader/main.c
rb4cbef1 reda925a 126 126 { 127 127 char *buf; 128 int rc = async_ string_receive(&buf, 0, NULL);128 int rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, NULL); 129 129 130 130 if (rc == EOK) { … … 146 146 { 147 147 char *buf; 148 int rc = async_ string_receive(&buf, 0, NULL);148 int rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, NULL); 149 149 150 150 if (rc == EOK) { … … 167 167 char *buf; 168 168 size_t buf_size; 169 int rc = async_ string_receive(&buf, 0, &buf_size);169 int rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, &buf_size); 170 170 171 171 if (rc == EOK) { … … 232 232 fdi_node_t *buf; 233 233 size_t buf_size; 234 int rc = async_data_receive(&buf, 0, 0, sizeof(fdi_node_t), &buf_size); 234 int rc = async_data_write_accept((void **) &buf, false, 0, 0, 235 sizeof(fdi_node_t), &buf_size); 235 236 236 237 if (rc == EOK) { -
uspace/srv/vfs/vfs_ops.c
rb4cbef1 reda925a 267 267 /* We want the client to send us the mount point. */ 268 268 char *mp; 269 int rc = async_string_receive(&mp, MAX_PATH_LEN, NULL); 269 int rc = async_data_write_accept((char **) &mp, true, 0, MAX_PATH_LEN, 270 0, NULL); 270 271 if (rc != EOK) { 271 272 ipc_answer_0(rid, rc); … … 275 276 /* Now we expect to receive the mount options. */ 276 277 char *opts; 277 rc = async_string_receive(&opts, MAX_MNTOPTS_LEN, NULL); 278 rc = async_data_write_accept((char **) &opts, true, 0, MAX_MNTOPTS_LEN, 279 0, NULL); 278 280 if (rc != EOK) { 279 281 free(mp); … … 287 289 */ 288 290 char *fs_name; 289 rc = async_string_receive(&fs_name, FS_NAME_MAXLEN, NULL); 291 rc = async_data_write_accept((char **) &fs_name, true, 0, FS_NAME_MAXLEN, 292 0, NULL); 290 293 if (rc != EOK) { 291 294 free(mp); … … 357 360 * Receive the mount point path. 358 361 */ 359 rc = async_string_receive(&mp, MAX_PATH_LEN, NULL); 362 rc = async_data_write_accept((char **) &mp, true, 0, MAX_PATH_LEN, 363 0, NULL); 360 364 if (rc != EOK) 361 365 ipc_answer_0(rid, rc); … … 522 526 523 527 char *path; 524 int rc = async_ string_receive(&path, 0, NULL);528 int rc = async_data_write_accept((char **) &path, true, 0, 0, 0, NULL); 525 529 if (rc != EOK) { 526 530 ipc_answer_0(rid, rc); … … 836 840 &answer); 837 841 } else { 838 rc = async_data_ forward_3_1(fs_phone, VFS_OUT_WRITE,842 rc = async_data_write_forward_3_1(fs_phone, VFS_OUT_WRITE, 839 843 file->node->dev_handle, file->node->index, file->pos, 840 844 &answer); … … 1007 1011 { 1008 1012 char *path; 1009 int rc = async_ string_receive(&path, 0, NULL);1013 int rc = async_data_write_accept((char **) &path, true, 0, 0, 0, NULL); 1010 1014 if (rc != EOK) { 1011 1015 ipc_answer_0(rid, rc); … … 1061 1065 1062 1066 char *path; 1063 int rc = async_ string_receive(&path, 0, NULL);1067 int rc = async_data_write_accept((char **) &path, true, 0, 0, 0, NULL); 1064 1068 if (rc != EOK) { 1065 1069 ipc_answer_0(rid, rc); … … 1083 1087 1084 1088 char *path; 1085 int rc = async_ string_receive(&path, 0, NULL);1089 int rc = async_data_write_accept((char **) &path, true, 0, 0, 0, NULL); 1086 1090 if (rc != EOK) { 1087 1091 ipc_answer_0(rid, rc); … … 1118 1122 /* Retrieve the old path. */ 1119 1123 char *old; 1120 int rc = async_ string_receive(&old, 0, NULL);1124 int rc = async_data_write_accept((char **) &old, true, 0, 0, 0, NULL); 1121 1125 if (rc != EOK) { 1122 1126 ipc_answer_0(rid, rc); … … 1126 1130 /* Retrieve the new path. */ 1127 1131 char *new; 1128 rc = async_ string_receive(&new, 0, NULL);1132 rc = async_data_write_accept((char **) &new, true, 0, 0, 0, NULL); 1129 1133 if (rc != EOK) { 1130 1134 free(old); -
uspace/srv/vfs/vfs_register.c
rb4cbef1 reda925a 114 114 115 115 vfs_info_t *vfs_info; 116 int rc = async_data_ receive(&vfs_info, sizeof(vfs_info_t),117 sizeof(vfs_info_t), 0, NULL);116 int rc = async_data_write_accept((void **) &vfs_info, false, 117 sizeof(vfs_info_t), sizeof(vfs_info_t), 0, NULL); 118 118 119 119 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.