Changeset 9675296 in mainline
- Timestamp:
- 2019-07-04T13:00:35Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 53afa639
- Parents:
- 98c4c16
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-07-04 12:49:24)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-07-04 13:00:35)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/cap.h
r98c4c16 r9675296 39 39 #include <stdint.h> 40 40 41 enum {42 CAP_NIL = 0,43 };44 45 41 typedef void *cap_handle_t; 46 42 … … 56 52 typedef struct { 57 53 } *cap_waitq_handle_t; 54 55 static cap_handle_t const CAP_NIL = 0; 58 56 59 57 static inline bool cap_handle_valid(cap_handle_t handle) -
kernel/generic/src/cap/cap.c
r98c4c16 r9675296 88 88 #include <stdlib.h> 89 89 90 #define CAPS_START ( CAP_NIL + 1)91 #define CAPS_SIZE (INT_MAX - CAPS_START)90 #define CAPS_START ((intptr_t) CAP_NIL + 1) 91 #define CAPS_SIZE (INT_MAX - (int) CAPS_START) 92 92 #define CAPS_LAST (CAPS_SIZE - 1) 93 93 -
kernel/generic/src/lib/strtol.c
r98c4c16 r9675296 245 245 } 246 246 247 static inline intmax_t _strtosigned(const char *nptr, char **endptr, int base,248 intmax_t min, intmax_t max, errno_t *err, bool nonstd)249 {250 bool sgn = false;251 uintmax_t number = _strtoumax(nptr, endptr, base, &sgn, err, nonstd);252 253 if (number > (uintmax_t) max) {254 if (sgn && (number - 1 == (uintmax_t) max)) {255 return min;256 }257 258 *err = nonstd ? EOVERFLOW : ERANGE;259 return (sgn ? min : max);260 }261 262 return (sgn ? -number : number);263 }264 265 247 static inline uintmax_t _strtounsigned(const char *nptr, char **endptr, int base, 266 248 uintmax_t max, errno_t *err, bool nonstd) -
uspace/lib/cpp/include/cstddef
r98c4c16 r9675296 32 32 #include <stddef.h> 33 33 34 #ifdef __clang__ 35 typedef decltype(nullptr) nullptr_t; 36 #endif 37 34 38 namespace std 35 39 {
Note:
See TracChangeset
for help on using the changeset viewer.