Changeset 368ee04 in mainline for uspace/lib/posix/source/internal/common.h
- Timestamp:
- 2017-04-05T18:10:39Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 93ad8166
- Parents:
- 39f892a9 (diff), 2166728 (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
r39f892a9 r368ee04 38 38 #include <stdio.h> 39 39 #include <stdlib.h> 40 #include <sys/types.h> 41 #include <vfs/vfs.h> 40 42 41 43 #define not_implemented() do { \ … … 57 59 }) 58 60 61 /* Convert error code to positive errno and -1 return value */ 62 #define rcerrno(func, ...) ({ \ 63 int rc = func(__VA_ARGS__); \ 64 if (rc < 0) \ 65 errno = -rc; \ 66 rc; \ 67 }) 68 69 extern aoff64_t posix_pos[MAX_OPEN_FILES]; 70 59 71 #endif /* LIBPOSIX_COMMON_H_ */ 60 72
Note:
See TracChangeset
for help on using the changeset viewer.