Changeset 23a0368 in mainline for uspace/lib/bithenge/src/file.c
- Timestamp:
- 2017-03-30T19:52:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ae7bfbbd
- Parents:
- b5b5d84
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/bithenge/src/file.c
rb5b5d84 r23a0368 41 41 #include <stdio.h> 42 42 #include <stdlib.h> 43 #include < sys/stat.h>43 #include <vfs/vfs.h> 44 44 #include <sys/types.h> 45 45 #include <unistd.h> … … 104 104 105 105 struct stat stat; 106 int rc = fstat(fd, &stat);107 if (rc != 0) {106 int rc = vfs_stat(fd, &stat); 107 if (rc != EOK) { 108 108 if (needs_close) 109 109 close(fd);
Note:
See TracChangeset
for help on using the changeset viewer.