Changeset 7fff5eab in mainline for uspace/srv/vfs/vfs_open.c
- Timestamp:
- 2008-01-08T20:38:59Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67f63c4
- Parents:
- 752ccee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_open.c
r752ccee r7fff5eab 58 58 int flags = IPC_GET_ARG1(*request); 59 59 int mode = IPC_GET_ARG2(*request); 60 size_t size;60 size_t len; 61 61 62 62 ipc_callid_t callid; 63 63 64 if (!ipc_data_write_receive(&callid, & size)) {64 if (!ipc_data_write_receive(&callid, &len)) { 65 65 ipc_answer_0(callid, EINVAL); 66 66 ipc_answer_0(rid, EINVAL); … … 74 74 * directly into the PLB using some kind of a callback. 75 75 */ 76 char *path = malloc( size);76 char *path = malloc(len); 77 77 78 78 if (!path) { … … 83 83 84 84 int rc; 85 if ((rc = ipc_data_write_finalize(callid, path, size))) {85 if ((rc = ipc_data_write_finalize(callid, path, len))) { 86 86 ipc_answer_0(rid, rc); 87 87 free(path); … … 100 100 */ 101 101 vfs_triplet_t triplet; 102 rc = vfs_lookup_internal(path, size, &triplet, NULL); 102 size_t size; 103 rc = vfs_lookup_internal(path, len, &triplet, &size, NULL); 103 104 if (rc) { 104 105 rwlock_reader_unlock(&namespace_rwlock); … … 113 114 free(path); 114 115 115 vfs_node_t *node = vfs_node_get(&triplet );116 vfs_node_t *node = vfs_node_get(&triplet, size); 116 117 rwlock_reader_unlock(&namespace_rwlock); 117 118
Note:
See TracChangeset
for help on using the changeset viewer.