Changes in uspace/srv/vfs/vfs.h [ed903174:1e4cada] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs.h

    red903174 r1e4cada  
    4242#include <ipc/vfs.h>
    4343
    44 #ifndef dprintf
    45         #define dprintf(...)
    46 #endif
     44// FIXME: according to CONFIG_DEBUG
     45// #define dprintf(...)  printf(__VA_ARGS__)
     46
     47#define dprintf(...)
    4748
    4849/**
     
    9293        vfs_triplet_t triplet;
    9394        vfs_node_type_t type;
    94         aoff64_t size;
    95         unsigned int lnkcnt;
     95        size_t size;
     96        unsigned lnkcnt;
    9697} vfs_lookup_res_t;
    9798
     
    116117        vfs_node_type_t type;   /**< Partial info about the node type. */
    117118
    118         aoff64_t size;          /**< Cached size if the node is a file. */
     119        size_t size;            /**< Cached size if the node is a file. */
    119120
    120121        /**
     
    140141        bool append;
    141142
    142         /** Current absolute position in the file. */
    143         aoff64_t pos;
     143        /** Current position in the file. */
     144        off_t pos;
    144145} vfs_file_t;
    145146
     
    176177    vfs_pair_t *, ...);
    177178extern int vfs_open_node_internal(vfs_lookup_res_t *);
    178 extern int vfs_close_internal(vfs_file_t *);
    179179
    180180extern bool vfs_nodes_init(void);
    181181extern vfs_node_t *vfs_node_get(vfs_lookup_res_t *);
    182182extern 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 
    186183
    187184#define MAX_OPEN_FILES  128
    188185
    189186extern bool vfs_files_init(void);
    190 extern void vfs_files_done(void);
    191187extern vfs_file_t *vfs_file_get(int);
    192188extern int vfs_fd_assign(vfs_file_t *file, int fd);
     
    202198extern void vfs_register(ipc_callid_t, ipc_call_t *);
    203199extern void vfs_mount(ipc_callid_t, ipc_call_t *);
    204 extern void vfs_unmount(ipc_callid_t, ipc_call_t *);
    205200extern void vfs_open(ipc_callid_t, ipc_call_t *);
    206201extern void vfs_open_node(ipc_callid_t, ipc_call_t *);
     
    213208extern void vfs_truncate(ipc_callid_t, ipc_call_t *);
    214209extern void vfs_fstat(ipc_callid_t, ipc_call_t *);
     210extern void vfs_fstat(ipc_callid_t, ipc_call_t *);
    215211extern void vfs_stat(ipc_callid_t, ipc_call_t *);
    216212extern void vfs_mkdir(ipc_callid_t, ipc_call_t *);
Note: See TracChangeset for help on using the changeset viewer.