Changeset 23a0368 in mainline for uspace/lib/c/include


Ignore:
Timestamp:
2017-03-30T19:52:23Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ae7bfbbd
Parents:
b5b5d84
Message:

Rename stat() to vfs_stat_path() and fstat() to vfs_stat()

Location:
uspace/lib/c/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/sys/stat.h

    rb5b5d84 r23a0368  
    3636#define LIBC_SYS_STAT_H_
    3737
    38 #include <sys/types.h>
    39 #include <stdbool.h>
    4038#include <ipc/vfs.h>
    41 #include <ipc/loc.h>
    4239
    43 struct stat {
    44         fs_handle_t fs_handle;
    45         service_id_t service_id;
    46         fs_index_t index;
    47         unsigned int lnkcnt;
    48         bool is_file;
    49         bool is_directory;
    50         aoff64_t size;
    51         service_id_t service;
    52 };
    53 
    54 extern int fstat(int, struct stat *);
    55 extern int stat(const char *, struct stat *);
    5640extern int mkdir(const char *, mode_t);
    5741
  • uspace/lib/c/include/vfs/vfs.h

    rb5b5d84 r23a0368  
    4949};
    5050
     51struct stat {
     52        fs_handle_t fs_handle;
     53        service_id_t service_id;
     54        fs_index_t index;
     55        unsigned int lnkcnt;
     56        bool is_file;
     57        bool is_directory;
     58        aoff64_t size;
     59        service_id_t service;
     60};
     61
    5162struct statfs {
    5263        char fs_name[FS_NAME_MAXLEN + 1];
     
    7990extern int vfs_root(void);
    8091extern void vfs_root_set(int);
     92extern int vfs_stat(int, struct stat *);
     93extern int vfs_stat_path(const char *, struct stat *);
    8194extern int vfs_statfs(int, struct statfs *);
    8295extern int vfs_statfs_path(const char *, struct statfs *);
Note: See TracChangeset for help on using the changeset viewer.