Changeset eda925a in mainline for uspace/srv/vfs/vfs_ops.c
- Timestamp:
- 2010-02-04T15:46:51Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d32358f
- Parents:
- b4cbef1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.