Changeset 20614d0 in mainline for uspace/srv/vfs/vfs_mount.c


Ignore:
Timestamp:
2007-11-03T14:59:41Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
828d215
Parents:
4d21cf8
Message:

Add ipc_answer_fast_[01] macros so that ipc_answer_fast() users don't have to
write zero arguments all the time.

File:
1 edited

Legend:

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

    r4d21cf8 r20614d0  
    8787        size_t size;
    8888        if (!ipc_data_receive(&callid, &call, NULL, &size)) {
    89                 ipc_answer_fast(callid, EINVAL, 0, 0);
    90                 ipc_answer_fast(rid, EINVAL, 0, 0);
     89                ipc_answer_fast_0(callid, EINVAL);
     90                ipc_answer_fast_0(rid, EINVAL);
    9191                return;
    9292        }
     
    9999        if ((size < FS_NAME_MAXLEN + 1) ||
    100100            (size > FS_NAME_MAXLEN + MAX_PATH_LEN)) {
    101                 ipc_answer_fast(callid, EINVAL, 0, 0);
    102                 ipc_answer_fast(rid, EINVAL, 0, 0);
     101                ipc_answer_fast_0(callid, EINVAL);
     102                ipc_answer_fast_0(rid, EINVAL);
    103103                return;
    104104        }
     
    110110        buf = malloc(size);
    111111        if (!buf) {
    112                 ipc_answer_fast(callid, ENOMEM, 0, 0);
    113                 ipc_answer_fast(rid, ENOMEM, 0, 0);
     112                ipc_answer_fast_0(callid, ENOMEM);
     113                ipc_answer_fast_0(rid, ENOMEM);
    114114                return;
    115115        }
     
    131131        if (!fs_handle) {
    132132                free(buf);
    133                 ipc_answer_fast(rid, ENOENT, 0, 0);
     133                ipc_answer_fast_0(rid, ENOENT);
    134134                return;
    135135        }
     
    143143        if (rc != EOK) {
    144144                free(buf);
    145                 ipc_answer_fast(rid, rc, 0, 0);
     145                ipc_answer_fast_0(rid, rc);
    146146                return;
    147147        }
     
    164164                        futex_up(&rootfs_futex);
    165165                        free(buf);
    166                         ipc_answer_fast(rid, rc, 0, 0);
     166                        ipc_answer_fast_0(rid, rc);
    167167                        return;
    168168                }
     
    179179                        futex_up(&rootfs_futex);
    180180                        free(buf);
    181                         ipc_answer_fast(rid, EOK, 0, 0);
     181                        ipc_answer_fast_0(rid, EOK);
    182182                        return;
    183183                } else {
     
    188188                        futex_up(&rootfs_futex);
    189189                        free(buf);
    190                         ipc_answer_fast(rid, ENOENT, 0, 0);
     190                        ipc_answer_fast_0(rid, ENOENT);
    191191                        return;
    192192                }
     
    219219
    220220        if (rc2 == EOK)
    221                 ipc_answer_fast(rid, rc1, 0, 0);
     221                ipc_answer_fast_0(rid, rc1);
    222222        else if (rc1 == EOK)
    223                 ipc_answer_fast(rid, rc2, 0, 0);
     223                ipc_answer_fast_0(rid, rc2);
    224224        else
    225                 ipc_answer_fast(rid, rc1, 0, 0);
     225                ipc_answer_fast_0(rid, rc1);
    226226}
    227227
Note: See TracChangeset for help on using the changeset viewer.