Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/vfs/vfs.h

    r8e3498b r39330200  
    5757
    5858
    59 struct stat {
     59typedef struct {
    6060        fs_handle_t fs_handle;
    6161        service_id_t service_id;
     
    6666        aoff64_t size;
    6767        service_id_t service;
    68 };
     68} vfs_stat_t;
    6969
    70 struct statfs {
     70typedef struct {
    7171        char fs_name[FS_NAME_MAXLEN + 1];
    7272        uint32_t f_bsize;    /* fundamental file system block size */
    7373        uint64_t f_blocks;   /* total data blocks in file system */
    7474        uint64_t f_bfree;    /* free blocks in fs */
    75 };
     75} vfs_statfs_t;
    7676
    7777/** List of file system types */
     
    8282} vfs_fstypes_t;
    8383
    84 extern int vfs_fhandle(FILE *, int *);
     84extern errno_t vfs_fhandle(FILE *, int *);
    8585
    8686extern char *vfs_absolutize(const char *, size_t *);
    87 extern int vfs_clone(int, int, bool);
    88 extern int vfs_cwd_get(char *path, size_t);
    89 extern int vfs_cwd_set(const char *path);
     87extern errno_t vfs_clone(int, int, bool, int *);
     88extern errno_t vfs_cwd_get(char *path, size_t);
     89extern errno_t vfs_cwd_set(const char *path);
    9090extern async_exch_t *vfs_exchange_begin(void);
    9191extern void vfs_exchange_end(async_exch_t *);
    92 extern int vfs_fsprobe(const char *, service_id_t, vfs_fs_probe_info_t *);
    93 extern int vfs_fstypes(vfs_fstypes_t *);
     92extern errno_t vfs_fsprobe(const char *, service_id_t, vfs_fs_probe_info_t *);
     93extern errno_t vfs_fstypes(vfs_fstypes_t *);
    9494extern void vfs_fstypes_free(vfs_fstypes_t *);
    95 extern int vfs_link(int, const char *, vfs_file_kind_t, int *);
    96 extern int vfs_link_path(const char *, vfs_file_kind_t, int *);
    97 extern int vfs_lookup(const char *, int);
    98 extern int vfs_lookup_open(const char *, int, int);
    99 extern int vfs_mount_path(const char *, const char *, const char *,
     95extern errno_t vfs_link(int, const char *, vfs_file_kind_t, int *);
     96extern errno_t vfs_link_path(const char *, vfs_file_kind_t, int *);
     97extern errno_t vfs_lookup(const char *, int, int *);
     98extern errno_t vfs_lookup_open(const char *, int, int, int *);
     99extern errno_t vfs_mount_path(const char *, const char *, const char *,
    100100    const char *, unsigned int, unsigned int);
    101 extern int vfs_mount(int, const char *, service_id_t, const char *, unsigned,
     101extern errno_t vfs_mount(int, const char *, service_id_t, const char *, unsigned,
    102102    unsigned, int *);
    103 extern int vfs_open(int, int);
    104 extern int vfs_pass_handle(async_exch_t *, int, async_exch_t *);
    105 extern int vfs_put(int);
    106 extern int vfs_read(int, aoff64_t *, void *, size_t, size_t *);
    107 extern int vfs_read_short(int, aoff64_t, void *, size_t, ssize_t *);
    108 extern int vfs_receive_handle(bool);
    109 extern int vfs_rename_path(const char *, const char *);
    110 extern int vfs_resize(int, aoff64_t);
     103extern errno_t vfs_open(int, int);
     104extern errno_t vfs_pass_handle(async_exch_t *, int, async_exch_t *);
     105extern errno_t vfs_put(int);
     106extern errno_t vfs_read(int, aoff64_t *, void *, size_t, size_t *);
     107extern errno_t vfs_read_short(int, aoff64_t, void *, size_t, ssize_t *);
     108extern errno_t vfs_receive_handle(bool, int *);
     109extern errno_t vfs_rename_path(const char *, const char *);
     110extern errno_t vfs_resize(int, aoff64_t);
    111111extern int vfs_root(void);
    112 extern void vfs_root_set(int);
    113 extern int vfs_stat(int, struct stat *);
    114 extern int vfs_stat_path(const char *, struct stat *);
    115 extern int vfs_statfs(int, struct statfs *);
    116 extern int vfs_statfs_path(const char *, struct statfs *);
    117 extern int vfs_sync(int);
    118 extern int vfs_unlink(int, const char *, int);
    119 extern int vfs_unlink_path(const char *);
    120 extern int vfs_unmount(int);
    121 extern int vfs_unmount_path(const char *);
    122 extern int vfs_walk(int, const char *, int);
    123 extern int vfs_write(int, aoff64_t *, const void *, size_t, size_t *);
    124 extern int vfs_write_short(int, aoff64_t, const void *, size_t, ssize_t *);
     112extern errno_t vfs_root_set(int);
     113extern errno_t vfs_stat(int, vfs_stat_t *);
     114extern errno_t vfs_stat_path(const char *, vfs_stat_t *);
     115extern errno_t vfs_statfs(int, vfs_statfs_t *);
     116extern errno_t vfs_statfs_path(const char *, vfs_statfs_t *);
     117extern errno_t vfs_sync(int);
     118extern errno_t vfs_unlink(int, const char *, int);
     119extern errno_t vfs_unlink_path(const char *);
     120extern errno_t vfs_unmount(int);
     121extern errno_t vfs_unmount_path(const char *);
     122extern errno_t vfs_walk(int, const char *, int, int *);
     123extern errno_t vfs_write(int, aoff64_t *, const void *, size_t, size_t *);
     124extern errno_t vfs_write_short(int, aoff64_t, const void *, size_t, ssize_t *);
    125125
    126126#endif
Note: See TracChangeset for help on using the changeset viewer.