Changeset 23a0368 in mainline for uspace/app/viewer/viewer.c
- Timestamp:
- 2017-03-30T19:52:23Z (8 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/app/viewer/viewer.c
rb5b5d84 r23a0368 36 36 #include <unistd.h> 37 37 #include <fcntl.h> 38 #include < sys/stat.h>38 #include <vfs/vfs.h> 39 39 #include <errno.h> 40 40 #include <malloc.h> … … 115 115 116 116 struct stat stat; 117 int rc = fstat(fd, &stat);118 if (rc != 0) {117 int rc = vfs_stat(fd, &stat); 118 if (rc != EOK) { 119 119 close(fd); 120 120 return false;
Note:
See TracChangeset
for help on using the changeset viewer.