Changeset a8e9ab8d in mainline for uspace/srv/vfs/vfs_lookup.c
- Timestamp:
- 2008-03-09T17:18:30Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4072980
- Parents:
- 2664838b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_lookup.c
r2664838b ra8e9ab8d 41 41 #include <errno.h> 42 42 #include <string.h> 43 #include <stdarg.h> 43 44 #include <bool.h> 44 45 #include <futex.h> … … 66 67 */ 67 68 int vfs_lookup_internal(char *path, int lflag, vfs_lookup_res_t *result, 68 vfs_pair_t *altroot )69 vfs_pair_t *altroot, ...) 69 70 { 70 71 vfs_pair_t *root; … … 82 83 if (!path) 83 84 return EINVAL; 85 86 unsigned long index = 0; 87 if (lflag & L_LINK) { 88 va_list ap; 89 90 va_start(ap, altroot); 91 index = va_arg(ap, unsigned long); 92 va_end(ap); 93 } 84 94 85 95 futex_down(&plb_futex); … … 150 160 ipc_call_t answer; 151 161 int phone = vfs_grab_phone(root->fs_handle); 152 aid_t req = async_send_ 4(phone, VFS_LOOKUP, (ipcarg_t) first,162 aid_t req = async_send_5(phone, VFS_LOOKUP, (ipcarg_t) first, 153 163 (ipcarg_t) (first + len - 1) % PLB_SIZE, 154 (ipcarg_t) root->dev_handle, (ipcarg_t) lflag, &answer); 164 (ipcarg_t) root->dev_handle, (ipcarg_t) lflag, (ipcarg_t) index, 165 &answer); 155 166 vfs_release_phone(phone); 156 167
Note:
See TracChangeset
for help on using the changeset viewer.