Changeset 23a0368 in mainline for uspace/lib/posix/source/sys/stat.c
- Timestamp:
- 2017-03-30T19:52:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- ae7bfbbd
- Parents:
- b5b5d84
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/sys/stat.c
rb5b5d84 r23a0368 39 39 #include "../internal/common.h" 40 40 #include "posix/sys/stat.h" 41 #include "libc/ sys/stat.h"41 #include "libc/vfs/vfs.h" 42 42 43 43 #include "posix/errno.h" … … 80 80 { 81 81 struct stat hst; 82 int rc = negerrno(fstat, fd, &hst);82 int rc = rcerrno(vfs_stat, fd, &hst); 83 83 if (rc < 0) 84 return rc;84 return -1; 85 85 stat_to_posix(st, &hst); 86 86 return 0; … … 110 110 { 111 111 struct stat hst; 112 int rc = negerrno(stat, path, &hst);112 int rc = rcerrno(vfs_stat_path, path, &hst); 113 113 if (rc < 0) 114 return rc;114 return -1; 115 115 stat_to_posix(st, &hst); 116 116 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.