Changeset 0d0b319 in mainline for uspace/lib/posix/source/sys/stat.c
- Timestamp:
- 2018-01-04T20:03:02Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3c7702c0
- Parents:
- 10de842
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 19:18:29)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:03:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/sys/stat.c
r10de842 r0d0b319 41 41 #include "libc/vfs/vfs.h" 42 42 43 #include "posix/errno.h"43 #include <errno.h> 44 44 #include "libc/mem.h" 45 45 … … 89 89 { 90 90 struct stat hst; 91 int rc = rcerrno(vfs_stat, fd, &hst); 92 if (rc < 0) 91 if (failed(vfs_stat(fd, &hst))) 93 92 return -1; 94 93 return stat_to_posix(st, &hst); … … 118 117 { 119 118 struct stat hst; 120 int rc = rcerrno(vfs_stat_path, path, &hst); 121 if (rc < 0) 119 if (failed(vfs_stat_path(path, &hst))) 122 120 return -1; 123 121 return stat_to_posix(st, &hst); … … 159 157 int posix_mkdir(const char *path, posix_mode_t mode) 160 158 { 161 int rc = rcerrno(vfs_link_path, path, KIND_DIRECTORY, NULL); 162 if (rc != EOK) 159 if (failed(vfs_link_path(path, KIND_DIRECTORY, NULL))) 163 160 return -1; 164 161 else
Note:
See TracChangeset
for help on using the changeset viewer.