Changes in uspace/srv/vfs/vfs_lookup.c [b7fd2a0:51774cd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_lookup.c
rb7fd2a0 r51774cd 53 53 uint8_t *plb = NULL; 54 54 55 static errno_t plb_insert_entry(plb_entry_t *entry, char *path, size_t *start,55 static int plb_insert_entry(plb_entry_t *entry, char *path, size_t *start, 56 56 size_t len) 57 57 { … … 138 138 } 139 139 140 errno_t vfs_link_internal(vfs_node_t *base, char *path, vfs_triplet_t *child)140 int vfs_link_internal(vfs_node_t *base, char *path, vfs_triplet_t *child) 141 141 { 142 142 assert(base != NULL); … … 148 148 vfs_lookup_res_t res; 149 149 char component[NAME_MAX + 1]; 150 errno_t rc;150 int rc; 151 151 152 152 size_t len; … … 197 197 198 198 rc = async_data_write_start(exch, component, str_size(component) + 1); 199 errno_t orig_rc;199 sysarg_t orig_rc; 200 200 async_wait_for(req, &orig_rc); 201 201 vfs_exchange_release(exch); … … 207 207 } 208 208 209 static errno_t out_lookup(vfs_triplet_t *base, size_t *pfirst, size_t *plen,209 static int out_lookup(vfs_triplet_t *base, size_t *pfirst, size_t *plen, 210 210 int lflag, vfs_lookup_res_t *result) 211 211 { … … 213 213 assert(result); 214 214 215 errno_t rc;215 sysarg_t rc; 216 216 ipc_call_t answer; 217 217 async_exch_t *exch = vfs_exchange_grab(base->fs_handle); … … 222 222 vfs_exchange_release(exch); 223 223 224 if ( rc != EOK)225 return rc;224 if ((int) rc < 0) 225 return (int) rc; 226 226 227 227 unsigned last = *pfirst + *plen; … … 229 229 *plen = last - *pfirst; 230 230 231 result->triplet.fs_handle = (fs_handle_t) IPC_GET_ARG1(answer);232 result->triplet.service_id = base->service_id;231 result->triplet.fs_handle = (fs_handle_t) rc; 232 result->triplet.service_id = (service_id_t) IPC_GET_ARG1(answer); 233 233 result->triplet.index = (fs_index_t) IPC_GET_ARG2(answer); 234 234 result->size = MERGE_LOUP32(IPC_GET_ARG4(answer), IPC_GET_ARG5(answer)); … … 238 238 } 239 239 240 static errno_t _vfs_lookup_internal(vfs_node_t *base, char *path, int lflag,240 static int _vfs_lookup_internal(vfs_node_t *base, char *path, int lflag, 241 241 vfs_lookup_res_t *result, size_t len) 242 242 { 243 243 size_t first; 244 errno_t rc;244 int rc; 245 245 246 246 plb_entry_t entry; … … 334 334 * 335 335 */ 336 errno_t vfs_lookup_internal(vfs_node_t *base, char *path, int lflag,336 int vfs_lookup_internal(vfs_node_t *base, char *path, int lflag, 337 337 vfs_lookup_res_t *result) 338 338 { … … 341 341 342 342 size_t len; 343 errno_t rc;343 int rc; 344 344 char *npath = canonify(path, &len); 345 345 if (!npath) {
Note:
See TracChangeset
for help on using the changeset viewer.