Changeset 23a0368 in mainline for uspace/lib/posix/source/unistd.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/posix/source/unistd.c
rb5b5d84 r23a0368 48 48 #include "libc/malloc.h" 49 49 #include "libc/vfs/vfs.h" 50 #include "libc/sys/stat.h"51 50 52 51 aoff64_t posix_pos[MAX_OPEN_FILES]; … … 221 220 { 222 221 struct stat st; 222 int rc; 223 223 224 224 switch (whence) { … … 230 230 break; 231 231 case SEEK_END: 232 if (fstat(fildes, &st) != EOK) {233 errno = -errno;232 rc = rcerrno(vfs_stat, fildes, &st); 233 if (rc != EOK) 234 234 return -1; 235 }236 235 posix_pos[fildes] = st.size + offset; 237 236 break;
Note:
See TracChangeset
for help on using the changeset viewer.