Changes in uspace/srv/vfs/vfs.h [991f645:f29a3a2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
r991f645 rf29a3a2 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 /** … … 62 63 #define VFS_PAIR \ 63 64 fs_handle_t fs_handle; \ 64 dev map_handle_t devmap_handle;65 dev_handle_t dev_handle; 65 66 66 67 /** … … 68 69 * doesn't contain any state. For a stateful structure, see vfs_node_t. 69 70 * 70 * @note fs_handle, dev map_handle and index are meant to be returned in one71 * @note fs_handle, dev_handle and index are meant to be returned in one 71 72 * IPC reply. 72 73 */ … … 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 … … 169 170 170 171 extern int vfs_grab_phone(fs_handle_t); 171 extern void vfs_release_phone( fs_handle_t,int);172 extern void vfs_release_phone(int); 172 173 173 174 extern fs_handle_t fs_name_to_handle(char *, bool); … … 182 183 extern void vfs_node_put(vfs_node_t *); 183 184 extern void vfs_node_forget(vfs_node_t *); 184 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, dev map_handle_t);185 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, dev_handle_t); 185 186 186 187 … … 213 214 extern void vfs_truncate(ipc_callid_t, ipc_call_t *); 214 215 extern void vfs_fstat(ipc_callid_t, ipc_call_t *); 216 extern void vfs_fstat(ipc_callid_t, ipc_call_t *); 215 217 extern void vfs_stat(ipc_callid_t, ipc_call_t *); 216 218 extern void vfs_mkdir(ipc_callid_t, ipc_call_t *);
Note:
See TracChangeset
for help on using the changeset viewer.