Changeset 20614d0 in mainline for uspace/srv/vfs/vfs_mount.c
- Timestamp:
- 2007-11-03T14:59:41Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 828d215
- Parents:
- 4d21cf8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_mount.c
r4d21cf8 r20614d0 87 87 size_t size; 88 88 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); 91 91 return; 92 92 } … … 99 99 if ((size < FS_NAME_MAXLEN + 1) || 100 100 (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); 103 103 return; 104 104 } … … 110 110 buf = malloc(size); 111 111 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); 114 114 return; 115 115 } … … 131 131 if (!fs_handle) { 132 132 free(buf); 133 ipc_answer_fast (rid, ENOENT, 0, 0);133 ipc_answer_fast_0(rid, ENOENT); 134 134 return; 135 135 } … … 143 143 if (rc != EOK) { 144 144 free(buf); 145 ipc_answer_fast (rid, rc, 0, 0);145 ipc_answer_fast_0(rid, rc); 146 146 return; 147 147 } … … 164 164 futex_up(&rootfs_futex); 165 165 free(buf); 166 ipc_answer_fast (rid, rc, 0, 0);166 ipc_answer_fast_0(rid, rc); 167 167 return; 168 168 } … … 179 179 futex_up(&rootfs_futex); 180 180 free(buf); 181 ipc_answer_fast (rid, EOK, 0, 0);181 ipc_answer_fast_0(rid, EOK); 182 182 return; 183 183 } else { … … 188 188 futex_up(&rootfs_futex); 189 189 free(buf); 190 ipc_answer_fast (rid, ENOENT, 0, 0);190 ipc_answer_fast_0(rid, ENOENT); 191 191 return; 192 192 } … … 219 219 220 220 if (rc2 == EOK) 221 ipc_answer_fast (rid, rc1, 0, 0);221 ipc_answer_fast_0(rid, rc1); 222 222 else if (rc1 == EOK) 223 ipc_answer_fast (rid, rc2, 0, 0);223 ipc_answer_fast_0(rid, rc2); 224 224 else 225 ipc_answer_fast (rid, rc1, 0, 0);225 ipc_answer_fast_0(rid, rc1); 226 226 } 227 227
Note:
See TracChangeset
for help on using the changeset viewer.