Changeset ef84413 in mainline for uspace/lib/posix/src/unistd.c
- Timestamp:
- 2018-09-25T18:33:23Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- dc68f72
- Parents:
- 5e6b76d
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-09-25 17:42:45)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-09-25 18:33:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/unistd.c
r5e6b76d ref84413 302 302 off_t lseek(int fildes, off_t offset, int whence) 303 303 { 304 #if LONG_MAX == INT64_MAX 304 #if LONG_MAX == INT_MAX 305 return _lseek(fildes, offset, LONG_MAX, whence); 306 #else 305 307 return _lseek64(fildes, offset, whence); 306 #else307 return _lseek(fildes, offset, LONG_MAX, whence);308 308 #endif 309 309 } … … 331 331 */ 332 332 int ftruncate(int fildes, off_t length) 333 { 334 return ftruncate64(fildes, length); 335 } 336 337 int ftruncate64(int fildes, off64_t length) 333 338 { 334 339 if (failed(vfs_resize(fildes, (aoff64_t) length)))
Note:
See TracChangeset
for help on using the changeset viewer.