Changeset ef84413 in mainline for uspace/lib/posix/src


Ignore:
Timestamp:
2018-09-25T18:33:23Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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

Location:
uspace/lib/posix/src
Files:
2 edited

Legend:

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

    r5e6b76d ref84413  
    3434/** @file Standard buffered input/output.
    3535 */
     36
     37#define _LARGEFILE64_SOURCE
     38#undef _FILE_OFFSET_BITS
    3639
    3740#include "internal/common.h"
     
    181184int fseeko(FILE *stream, off_t offset, int whence)
    182185{
    183         return fseek64(stream, offset, whence);
     186        return fseek(stream, offset, whence);
    184187}
    185188
     
    191194 */
    192195off_t ftello(FILE *stream)
     196{
     197        return ftell(stream);
     198}
     199
     200int fseeko64(FILE *stream, off64_t offset, int whence)
     201{
     202        return fseek64(stream, offset, whence);
     203}
     204
     205off64_t ftello64(FILE *stream)
    193206{
    194207        return ftell64(stream);
  • 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.