Changeset 0d0b319 in mainline for uspace/lib/posix/source/sys/mman.c


Ignore:
Timestamp:
2018-01-04T20:03:02Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3c7702c0
Parents:
10de842
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 19:18:29)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:03:02)
Message:

Flip error constants to positive values, and update libposix for the change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/sys/mman.c

    r10de842 r0d0b319  
    5959int posix_munmap(void *start, size_t length)
    6060{
    61         return as_area_destroy(start);
     61        int rc = as_area_destroy(start);
     62        if (rc != EOK) {
     63                errno = rc;
     64                return -1;
     65        }
     66        return 0;
    6267}
    6368
Note: See TracChangeset for help on using the changeset viewer.