Changes in uspace/srv/vfs/vfs.h [ed903174:1e4cada] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
red903174 r1e4cada 42 42 #include <ipc/vfs.h> 43 43 44 #ifndef dprintf 45 #define dprintf(...) 46 #endif 44 // FIXME: according to CONFIG_DEBUG 45 // #define dprintf(...) printf(__VA_ARGS__) 46 47 #define dprintf(...) 47 48 48 49 /** … … 92 93 vfs_triplet_t triplet; 93 94 vfs_node_type_t type; 94 aoff64_t size;95 unsigned intlnkcnt;95 size_t size; 96 unsigned lnkcnt; 96 97 } vfs_lookup_res_t; 97 98 … … 116 117 vfs_node_type_t type; /**< Partial info about the node type. */ 117 118 118 aoff64_t size; /**< Cached size if the node is a file. */119 size_t size; /**< Cached size if the node is a file. */ 119 120 120 121 /** … … 140 141 bool append; 141 142 142 /** Current absoluteposition in the file. */143 aoff64_t pos;143 /** Current position in the file. */ 144 off_t pos; 144 145 } vfs_file_t; 145 146 … … 176 177 vfs_pair_t *, ...); 177 178 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 186 183 187 184 #define MAX_OPEN_FILES 128 188 185 189 186 extern bool vfs_files_init(void); 190 extern void vfs_files_done(void);191 187 extern vfs_file_t *vfs_file_get(int); 192 188 extern int vfs_fd_assign(vfs_file_t *file, int fd); … … 202 198 extern void vfs_register(ipc_callid_t, ipc_call_t *); 203 199 extern void vfs_mount(ipc_callid_t, ipc_call_t *); 204 extern void vfs_unmount(ipc_callid_t, ipc_call_t *);205 200 extern void vfs_open(ipc_callid_t, ipc_call_t *); 206 201 extern void vfs_open_node(ipc_callid_t, ipc_call_t *); … … 213 208 extern void vfs_truncate(ipc_callid_t, ipc_call_t *); 214 209 extern void vfs_fstat(ipc_callid_t, ipc_call_t *); 210 extern void vfs_fstat(ipc_callid_t, ipc_call_t *); 215 211 extern void vfs_stat(ipc_callid_t, ipc_call_t *); 216 212 extern void vfs_mkdir(ipc_callid_t, ipc_call_t *);
Note:
See TracChangeset
for help on using the changeset viewer.