Changeset 39330200 in mainline for uspace/lib/c/generic/vfs
- Timestamp:
- 2018-01-15T21:40:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ba29018
- Parents:
- d8023313
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:20:07)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:40:49)
- Location:
- uspace/lib/c/generic/vfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/mtab.c
rd8023313 r39330200 42 42 #include <str.h> 43 43 44 static void process_mp(const char *path, struct stat *stat, list_t *mtab_list)44 static void process_mp(const char *path, vfs_stat_t *stat, list_t *mtab_list) 45 45 { 46 46 mtab_ent_t *ent; … … 54 54 ent->service_id = stat->service_id; 55 55 56 struct statfsstfs;56 vfs_statfs_t stfs; 57 57 if (vfs_statfs_path(path, &stfs) == EOK) 58 58 str_cpy(ent->fs_name, sizeof(ent->fs_name), stfs.fs_name); … … 75 75 while ((dirent = readdir(dir)) != NULL) { 76 76 char *child; 77 struct stat st;77 vfs_stat_t st; 78 78 errno_t rc; 79 79 int ret; … … 123 123 errno_t vfs_get_mtab_list(list_t *mtab_list) 124 124 { 125 struct stat st;125 vfs_stat_t st; 126 126 127 127 errno_t rc = vfs_stat_path("/", &st); -
uspace/lib/c/generic/vfs/vfs.c
rd8023313 r39330200 352 352 async_sess_t *vfs_fd_session(int file, iface_t iface) 353 353 { 354 struct stat stat;354 vfs_stat_t stat; 355 355 errno_t rc = vfs_stat(file, &stat); 356 356 if (rc != EOK) … … 1052 1052 * @return EOK on success or an error code 1053 1053 */ 1054 errno_t vfs_stat(int file, struct stat *stat)1054 errno_t vfs_stat(int file, vfs_stat_t *stat) 1055 1055 { 1056 1056 errno_t rc; … … 1060 1060 1061 1061 req = async_send_1(exch, VFS_IN_STAT, file, NULL); 1062 rc = async_data_read_start(exch, (void *) stat, sizeof( struct stat));1062 rc = async_data_read_start(exch, (void *) stat, sizeof(vfs_stat_t)); 1063 1063 if (rc != EOK) { 1064 1064 vfs_exchange_end(exch); … … 1086 1086 * @return EOK on success or an error code 1087 1087 */ 1088 errno_t vfs_stat_path(const char *path, struct stat *stat)1088 errno_t vfs_stat_path(const char *path, vfs_stat_t *stat) 1089 1089 { 1090 1090 int file; … … 1107 1107 * @return EOK on success or an error code 1108 1108 */ 1109 errno_t vfs_statfs(int file, struct statfs*st)1109 errno_t vfs_statfs(int file, vfs_statfs_t *st) 1110 1110 { 1111 1111 errno_t rc, ret; … … 1132 1132 * @return EOK on success or an error code 1133 1133 */ 1134 errno_t vfs_statfs_path(const char *path, struct statfs*st)1134 errno_t vfs_statfs_path(const char *path, vfs_statfs_t *st) 1135 1135 { 1136 1136 int file;
Note:
See TracChangeset
for help on using the changeset viewer.