Changeset f29a3a2 in mainline
- Timestamp:
- 2010-01-30T10:37:35Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 64aed80
- Parents:
- 1715b6af
- Location:
- uspace/srv/vfs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.c
r1715b6af rf29a3a2 137 137 } 138 138 139 /* TODO: cleanup after the client */139 vfs_files_done(); 140 140 } 141 141 -
uspace/srv/vfs/vfs.h
r1715b6af rf29a3a2 177 177 vfs_pair_t *, ...); 178 178 extern int vfs_open_node_internal(vfs_lookup_res_t *); 179 extern int vfs_close_internal(vfs_file_t *); 179 180 180 181 extern bool vfs_nodes_init(void); … … 188 189 189 190 extern bool vfs_files_init(void); 191 extern void vfs_files_done(void); 190 192 extern vfs_file_t *vfs_file_get(int); 191 193 extern int vfs_fd_assign(vfs_file_t *file, int fd); -
uspace/srv/vfs/vfs_file.c
r1715b6af rf29a3a2 72 72 } 73 73 return true; 74 } 75 76 /** Cleanup the table of open files. */ 77 void vfs_files_done(void) 78 { 79 int i; 80 81 if (!files) 82 return; 83 84 for (i = 0; i < MAX_OPEN_FILES; i++) { 85 if (files[i]) { 86 (void) vfs_close_internal(files[i]); 87 (void) vfs_fd_free(i); 88 } 89 } 90 91 free(files); 74 92 } 75 93 -
uspace/srv/vfs/vfs_ops.c
r1715b6af rf29a3a2 817 817 } 818 818 819 staticint vfs_close_internal(vfs_file_t *file)819 int vfs_close_internal(vfs_file_t *file) 820 820 { 821 821 /*
Note:
See TracChangeset
for help on using the changeset viewer.