Changes in uspace/lib/posix/source/sys/stat.c [0d0b319:59f388a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/sys/stat.c
r0d0b319 r59f388a 41 41 #include "libc/vfs/vfs.h" 42 42 43 #include <errno.h>43 #include "posix/errno.h" 44 44 #include "libc/mem.h" 45 45 … … 89 89 { 90 90 struct stat hst; 91 if (failed(vfs_stat(fd, &hst))) 91 int rc = rcerrno(vfs_stat, fd, &hst); 92 if (rc < 0) 92 93 return -1; 93 94 return stat_to_posix(st, &hst); … … 117 118 { 118 119 struct stat hst; 119 if (failed(vfs_stat_path(path, &hst))) 120 int rc = rcerrno(vfs_stat_path, path, &hst); 121 if (rc < 0) 120 122 return -1; 121 123 return stat_to_posix(st, &hst); … … 157 159 int posix_mkdir(const char *path, posix_mode_t mode) 158 160 { 159 if (failed(vfs_link_path(path, KIND_DIRECTORY, NULL))) 161 int rc = rcerrno(vfs_link_path, path, KIND_DIRECTORY, NULL); 162 if (rc != EOK) 160 163 return -1; 161 164 else
Note:
See TracChangeset
for help on using the changeset viewer.