Changeset ff381a7 in mainline for uspace/lib/posix/source/internal/common.h
- Timestamp:
- 2015-11-02T20:54:19Z (8 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/internal/common.h
r3feeab2 rff381a7 48 48 } while (0) 49 49 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, ...) ({ \ 52 52 int rc = func(__VA_ARGS__); \ 53 53 if (rc < 0) { \ 54 errno = -rc; \ 55 rc = -1; \ 54 errno = -errno; \ 56 55 } \ 57 56 rc; \
Note:
See TracChangeset
for help on using the changeset viewer.