Changeset b74959bd in mainline for uspace/srv/vfs/vfs_open.c
- Timestamp:
- 2007-11-20T21:33:32Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8498915
- Parents:
- 3209923
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_open.c
r3209923 rb74959bd 47 47 { 48 48 if (!vfs_files_init()) { 49 ipc_answer_ fast_0(rid, ENOMEM);49 ipc_answer_0(rid, ENOMEM); 50 50 return; 51 51 } … … 61 61 62 62 ipc_callid_t callid; 63 ipc_call_t call;64 63 65 if (!ipc_data_receive(&callid, &call,NULL, &size)) {66 ipc_answer_ fast_0(callid, EINVAL);67 ipc_answer_ fast_0(rid, EINVAL);64 if (!ipc_data_receive(&callid, NULL, &size)) { 65 ipc_answer_0(callid, EINVAL); 66 ipc_answer_0(rid, EINVAL); 68 67 return; 69 68 } … … 78 77 79 78 if (!path) { 80 ipc_answer_ fast_0(callid, ENOMEM);81 ipc_answer_ fast_0(rid, ENOMEM);79 ipc_answer_0(callid, ENOMEM); 80 ipc_answer_0(rid, ENOMEM); 82 81 return; 83 82 } 84 83 85 84 int rc; 86 if ((rc = ipc_data_deliver(callid, &call,path, size))) {87 ipc_answer_ fast_0(rid, rc);85 if ((rc = ipc_data_deliver(callid, path, size))) { 86 ipc_answer_0(rid, rc); 88 87 free(path); 89 88 return; … … 104 103 if (rc) { 105 104 futex_up(&unlink_futex); 106 ipc_answer_ fast_0(rid, rc);105 ipc_answer_0(rid, rc); 107 106 free(path); 108 107 return; … … 124 123 if (fd < 0) { 125 124 vfs_node_put(node); 126 ipc_answer_ fast_0(rid, fd);125 ipc_answer_0(rid, fd); 127 126 return; 128 127 } … … 143 142 * Success! Return the new file descriptor to the client. 144 143 */ 145 ipc_answer_ fast_1(rid, EOK, fd);144 ipc_answer_1(rid, EOK, fd); 146 145 } 147 146
Note:
See TracChangeset
for help on using the changeset viewer.