Ignore:
Timestamp:
2015-11-02T20:54:19Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8513177
Parents:
3feeab2 (diff), 5265eea4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/internal/common.h

    r3feeab2 rff381a7  
    4848        } while (0)
    4949
    50 /* A little helper macro to avoid typing this over and over. */
    51 #define errnify(func, ...) ({ \
     50/* Convert negative errno to positive errno */
     51#define negerrno(func, ...) ({ \
    5252        int rc = func(__VA_ARGS__); \
    5353        if (rc < 0) { \
    54                 errno = -rc; \
    55                 rc = -1; \
     54                errno = -errno; \
    5655        } \
    5756        rc; \
Note: See TracChangeset for help on using the changeset viewer.