Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ef84413 in mainline for uspace/lib/posix/src/unistd.c


Ignore:
Timestamp:
2018-09-25T18:33:23Z (4 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial
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)
Message:

libposix: Correctly disambiguate other uses of off_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/src/unistd.c

    r5e6b76d ref84413  
    302302off_t lseek(int fildes, off_t offset, int whence)
    303303{
    304 #if LONG_MAX == INT64_MAX
     304#if LONG_MAX == INT_MAX
     305        return _lseek(fildes, offset, LONG_MAX, whence);
     306#else
    305307        return _lseek64(fildes, offset, whence);
    306 #else
    307         return _lseek(fildes, offset, LONG_MAX, whence);
    308308#endif
    309309}
     
    331331 */
    332332int ftruncate(int fildes, off_t length)
     333{
     334        return ftruncate64(fildes, length);
     335}
     336
     337int ftruncate64(int fildes, off64_t length)
    333338{
    334339        if (failed(vfs_resize(fildes, (aoff64_t) length)))
Note: See TracChangeset for help on using the changeset viewer.