Changeset ef84413 in mainline for uspace/lib/c/generic/io/io.c


Ignore:
Timestamp:
2018-09-25T18:33:23Z (6 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/io.c

    r5e6b76d ref84413  
    911911
    912912        /* The native position is too large for the C99-ish interface. */
    913         if (off > LONG_MAX)
    914                 return EOF;
     913        if (off > LONG_MAX) {
     914                errno = EOVERFLOW;
     915                return -1;
     916        }
    915917
    916918        return off;
Note: See TracChangeset for help on using the changeset viewer.