Changeset 5cde90f in mainline for uspace/srv/vfs/vfs.h
- Timestamp:
- 2010-02-19T17:16:46Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 617652f
- Parents:
- b86d436 (diff), f41aa81 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
rb86d436 r5cde90f 42 42 #include <ipc/vfs.h> 43 43 44 // FIXME: according to CONFIG_DEBUG 45 // #define dprintf(...) printf(__VA_ARGS__) 46 47 #define dprintf(...) 44 #ifndef dprintf 45 #define dprintf(...) 46 #endif 48 47 49 48 /** … … 93 92 vfs_triplet_t triplet; 94 93 vfs_node_type_t type; 95 size_t size;96 unsigned lnkcnt;94 aoff64_t size; 95 unsigned int lnkcnt; 97 96 } vfs_lookup_res_t; 98 97 … … 117 116 vfs_node_type_t type; /**< Partial info about the node type. */ 118 117 119 size_t size; /**< Cached size if the node is a file. */118 aoff64_t size; /**< Cached size if the node is a file. */ 120 119 121 120 /** … … 141 140 bool append; 142 141 143 /** Current position in the file. */144 off_t pos;142 /** Current absolute position in the file. */ 143 aoff64_t pos; 145 144 } vfs_file_t; 146 145 … … 177 176 vfs_pair_t *, ...); 178 177 extern int vfs_open_node_internal(vfs_lookup_res_t *); 178 extern int vfs_close_internal(vfs_file_t *); 179 179 180 180 extern bool vfs_nodes_init(void); 181 181 extern vfs_node_t *vfs_node_get(vfs_lookup_res_t *); 182 182 extern void vfs_node_put(vfs_node_t *); 183 extern void vfs_node_forget(vfs_node_t *); 184 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, dev_handle_t); 185 183 186 184 187 #define MAX_OPEN_FILES 128 185 188 186 189 extern bool vfs_files_init(void); 190 extern void vfs_files_done(void); 187 191 extern vfs_file_t *vfs_file_get(int); 188 192 extern int vfs_fd_assign(vfs_file_t *file, int fd); … … 198 202 extern void vfs_register(ipc_callid_t, ipc_call_t *); 199 203 extern void vfs_mount(ipc_callid_t, ipc_call_t *); 204 extern void vfs_unmount(ipc_callid_t, ipc_call_t *); 200 205 extern void vfs_open(ipc_callid_t, ipc_call_t *); 201 206 extern void vfs_open_node(ipc_callid_t, ipc_call_t *); … … 208 213 extern void vfs_truncate(ipc_callid_t, ipc_call_t *); 209 214 extern void vfs_fstat(ipc_callid_t, ipc_call_t *); 210 extern void vfs_fstat(ipc_callid_t, ipc_call_t *);211 215 extern void vfs_stat(ipc_callid_t, ipc_call_t *); 212 216 extern void vfs_mkdir(ipc_callid_t, ipc_call_t *);
Note:
See TracChangeset
for help on using the changeset viewer.