Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset eda925a in mainline for uspace/srv/vfs/vfs_ops.c


Ignore:
Timestamp:
2010-02-04T15:46:51Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
d32358f
Parents:
b4cbef1
Message:

improve naming conventions:
merge async_data_receive() and async_string_receive() into async_data_write_accept()
rename async_data_void() to async_data_write_void()
rename async_data_forward_fast() to async_data_write_forward_fast()
rename async_data_forward_n_m to async_data_write_forward_n_m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_ops.c

    rb4cbef1 reda925a  
    267267        /* We want the client to send us the mount point. */
    268268        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);
    270271        if (rc != EOK) {
    271272                ipc_answer_0(rid, rc);
     
    275276        /* Now we expect to receive the mount options. */
    276277        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);
    278280        if (rc != EOK) {
    279281                free(mp);
     
    287289         */
    288290        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);
    290293        if (rc != EOK) {
    291294                free(mp);
     
    357360         * Receive the mount point path.
    358361         */
    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);
    360364        if (rc != EOK)
    361365                ipc_answer_0(rid, rc);
     
    522526       
    523527        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);
    525529        if (rc != EOK) {
    526530                ipc_answer_0(rid, rc);
     
    836840                    &answer);
    837841        } 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,
    839843                    file->node->dev_handle, file->node->index, file->pos,
    840844                    &answer);
     
    10071011{
    10081012        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);
    10101014        if (rc != EOK) {
    10111015                ipc_answer_0(rid, rc);
     
    10611065       
    10621066        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);
    10641068        if (rc != EOK) {
    10651069                ipc_answer_0(rid, rc);
     
    10831087       
    10841088        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);
    10861090        if (rc != EOK) {
    10871091                ipc_answer_0(rid, rc);
     
    11181122        /* Retrieve the old path. */
    11191123        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);
    11211125        if (rc != EOK) {
    11221126                ipc_answer_0(rid, rc);
     
    11261130        /* Retrieve the new path. */
    11271131        char *new;
    1128         rc = async_string_receive(&new, 0, NULL);
     1132        rc = async_data_write_accept((char **) &new, true, 0, 0, 0, NULL);
    11291133        if (rc != EOK) {
    11301134                free(old);
Note: See TracChangeset for help on using the changeset viewer.