Ignore:
File:
1 edited

Legend:

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

    r39330200 r8e3498b  
    5757
    5858
    59 typedef struct {
     59struct stat {
    6060        fs_handle_t fs_handle;
    6161        service_id_t service_id;
     
    6666        aoff64_t size;
    6767        service_id_t service;
    68 } vfs_stat_t;
     68};
    6969
    70 typedef struct {
     70struct statfs {
    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 } vfs_statfs_t;
     75};
    7676
    7777/** List of file system types */
     
    8282} vfs_fstypes_t;
    8383
    84 extern errno_t vfs_fhandle(FILE *, int *);
     84extern int vfs_fhandle(FILE *, int *);
    8585
    8686extern char *vfs_absolutize(const char *, size_t *);
    87 extern errno_t vfs_clone(int, int, bool, int *);
    88 extern errno_t vfs_cwd_get(char *path, size_t);
    89 extern errno_t vfs_cwd_set(const char *path);
     87extern int vfs_clone(int, int, bool);
     88extern int vfs_cwd_get(char *path, size_t);
     89extern int vfs_cwd_set(const char *path);
    9090extern async_exch_t *vfs_exchange_begin(void);
    9191extern void vfs_exchange_end(async_exch_t *);
    92 extern errno_t vfs_fsprobe(const char *, service_id_t, vfs_fs_probe_info_t *);
    93 extern errno_t vfs_fstypes(vfs_fstypes_t *);
     92extern int vfs_fsprobe(const char *, service_id_t, vfs_fs_probe_info_t *);
     93extern int vfs_fstypes(vfs_fstypes_t *);
    9494extern void vfs_fstypes_free(vfs_fstypes_t *);
    95 extern errno_t vfs_link(int, const char *, vfs_file_kind_t, int *);
    96 extern errno_t vfs_link_path(const char *, vfs_file_kind_t, int *);
    97 extern errno_t vfs_lookup(const char *, int, int *);
    98 extern errno_t vfs_lookup_open(const char *, int, int, int *);
    99 extern errno_t vfs_mount_path(const char *, const char *, const char *,
     95extern int vfs_link(int, const char *, vfs_file_kind_t, int *);
     96extern int vfs_link_path(const char *, vfs_file_kind_t, int *);
     97extern int vfs_lookup(const char *, int);
     98extern int vfs_lookup_open(const char *, int, int);
     99extern int vfs_mount_path(const char *, const char *, const char *,
    100100    const char *, unsigned int, unsigned int);
    101 extern errno_t vfs_mount(int, const char *, service_id_t, const char *, unsigned,
     101extern int vfs_mount(int, const char *, service_id_t, const char *, unsigned,
    102102    unsigned, int *);
    103 extern errno_t vfs_open(int, int);
    104 extern errno_t vfs_pass_handle(async_exch_t *, int, async_exch_t *);
    105 extern errno_t vfs_put(int);
    106 extern errno_t vfs_read(int, aoff64_t *, void *, size_t, size_t *);
    107 extern errno_t vfs_read_short(int, aoff64_t, void *, size_t, ssize_t *);
    108 extern errno_t vfs_receive_handle(bool, int *);
    109 extern errno_t vfs_rename_path(const char *, const char *);
    110 extern errno_t vfs_resize(int, aoff64_t);
     103extern int vfs_open(int, int);
     104extern int vfs_pass_handle(async_exch_t *, int, async_exch_t *);
     105extern int vfs_put(int);
     106extern int vfs_read(int, aoff64_t *, void *, size_t, size_t *);
     107extern int vfs_read_short(int, aoff64_t, void *, size_t, ssize_t *);
     108extern int vfs_receive_handle(bool);
     109extern int vfs_rename_path(const char *, const char *);
     110extern int vfs_resize(int, aoff64_t);
    111111extern int vfs_root(void);
    112 extern errno_t vfs_root_set(int);
    113 extern errno_t vfs_stat(int, vfs_stat_t *);
    114 extern errno_t vfs_stat_path(const char *, vfs_stat_t *);
    115 extern errno_t vfs_statfs(int, vfs_statfs_t *);
    116 extern errno_t vfs_statfs_path(const char *, vfs_statfs_t *);
    117 extern errno_t vfs_sync(int);
    118 extern errno_t vfs_unlink(int, const char *, int);
    119 extern errno_t vfs_unlink_path(const char *);
    120 extern errno_t vfs_unmount(int);
    121 extern errno_t vfs_unmount_path(const char *);
    122 extern errno_t vfs_walk(int, const char *, int, int *);
    123 extern errno_t vfs_write(int, aoff64_t *, const void *, size_t, size_t *);
    124 extern errno_t vfs_write_short(int, aoff64_t, const void *, size_t, ssize_t *);
     112extern void vfs_root_set(int);
     113extern int vfs_stat(int, struct stat *);
     114extern int vfs_stat_path(const char *, struct stat *);
     115extern int vfs_statfs(int, struct statfs *);
     116extern int vfs_statfs_path(const char *, struct statfs *);
     117extern int vfs_sync(int);
     118extern int vfs_unlink(int, const char *, int);
     119extern int vfs_unlink_path(const char *);
     120extern int vfs_unmount(int);
     121extern int vfs_unmount_path(const char *);
     122extern int vfs_walk(int, const char *, int);
     123extern int vfs_write(int, aoff64_t *, const void *, size_t, size_t *);
     124extern int 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.