Changeset 80e8482 in mainline
- Timestamp:
- 2008-04-15T03:01:59Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45f244b
- Parents:
- d9e9caf
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libfs/libfs.c
rd9e9caf r80e8482 199 199 if (!ops->link(cur, nodep, component)) { 200 200 if (lflag & L_CREATE) 201 ops->destroy(nodep);201 (void)ops->destroy(nodep); 202 202 ipc_answer_0(rid, ENOSPC); 203 203 } else { … … 268 268 if (!ops->link(cur, nodep, component)) { 269 269 if (lflag & L_CREATE) 270 ops->destroy(nodep);270 (void)ops->destroy(nodep); 271 271 ipc_answer_0(rid, ENOSPC); 272 272 } else { -
uspace/lib/libfs/libfs.h
rd9e9caf r80e8482 47 47 void (* node_put)(void *); 48 48 void * (* create)(int); 49 void(* destroy)(void *);49 bool (* destroy)(void *); 50 50 bool (* link)(void *, void *, const char *); 51 51 int (* unlink)(void *, void *); -
uspace/srv/fs/fat/fat_ops.c
rd9e9caf r80e8482 305 305 list_append(&nodep->ffn_link, &ffn_head); 306 306 futex_up(&fin_futex); 307 } 308 309 static void *fat_create(int flags) 310 { 311 return NULL; /* not supported at the moment */ 312 } 313 314 static bool fat_destroy(void *node) 315 { 316 return false; /* not supported at the moment */ 317 } 318 319 static bool fat_link(void *prnt, void *chld, const char *name) 320 { 321 return false; /* not supported at the moment */ 322 } 323 324 static int fat_unlink(void *prnt, void *chld) 325 { 326 return ENOTSUP; /* not supported at the moment */ 307 327 } 308 328 … … 446 466 .node_get = fat_node_get, 447 467 .node_put = fat_node_put, 448 .create = NULL,449 .destroy = NULL,450 .link = NULL,451 .unlink = NULL,468 .create = fat_create, 469 .destroy = fat_destroy, 470 .link = fat_link, 471 .unlink = fat_unlink, 452 472 .index_get = fat_index_get, 453 473 .size_get = fat_size_get, -
uspace/srv/fs/tmpfs/tmpfs_ops.c
rd9e9caf r80e8482 76 76 static bool tmpfs_link_node(void *, void *, const char *); 77 77 static int tmpfs_unlink_node(void *, void *); 78 static voidtmpfs_destroy_node(void *);78 static bool tmpfs_destroy_node(void *); 79 79 80 80 /* Implementation of helper functions. */ … … 375 375 } 376 376 377 voidtmpfs_destroy_node(void *nodep)377 bool tmpfs_destroy_node(void *nodep) 378 378 { 379 379 tmpfs_dentry_t *dentry = (tmpfs_dentry_t *) nodep; … … 391 391 free(dentry->data); 392 392 free(dentry); 393 return true; 393 394 } 394 395
Note:
See TracChangeset
for help on using the changeset viewer.