Changeset 39330200 in mainline for uspace/lib/posix/source/sys/stat.c
- Timestamp:
- 2018-01-15T21:40:49Z (6 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/sys/stat.c
rd8023313 r39330200 52 52 * @return 0 on success, -1 on error. 53 53 */ 54 static int stat_to_posix(struct posix_stat *dest, struct stat *src)54 static int stat_to_posix(struct posix_stat *dest, vfs_stat_t *src) 55 55 { 56 56 memset(dest, 0, sizeof(struct posix_stat)); … … 88 88 int posix_fstat(int fd, struct posix_stat *st) 89 89 { 90 struct stat hst;90 vfs_stat_t hst; 91 91 if (failed(vfs_stat(fd, &hst))) 92 92 return -1; … … 116 116 int posix_stat(const char *restrict path, struct posix_stat *restrict st) 117 117 { 118 struct stat hst;118 vfs_stat_t hst; 119 119 if (failed(vfs_stat_path(path, &hst))) 120 120 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.