Home
last modified time | relevance | path

Searched refs:bos_val (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/include/sys/
Dcdefs.h285 #define __bos_unevaluated_lt(bos_val, val) \ argument
286 ((bos_val) != __BIONIC_FORTIFY_UNKNOWN_SIZE && (bos_val) < (val))
288 #define __bos_unevaluated_le(bos_val, val) \ argument
289 ((bos_val) != __BIONIC_FORTIFY_UNKNOWN_SIZE && (bos_val) <= (val))
292 #define __bos_dynamic_check_impl_and(bos_val, op, index, cond) \ argument
293 ((bos_val) == __BIONIC_FORTIFY_UNKNOWN_SIZE || \
294 (__builtin_constant_p(index) && bos_val op index && (cond)))
296 #define __bos_dynamic_check_impl(bos_val, op, index) \ argument
297 __bos_dynamic_check_impl_and(bos_val, op, index, 1)
299 #define __bos_trivially_ge(bos_val, index) __bos_dynamic_check_impl((bos_val), >=, (index)) argument
[all …]
/bionic/libc/include/bits/fortify/
Dpoll.h38 #define __bos_fd_count_trivially_safe(bos_val, fds, fd_count) \ argument
39 __bos_dynamic_check_impl_and((bos_val), >=, (sizeof(*fds) * (fd_count)), \
Dstdio.h84 #define __bos_trivially_ge_mul(bos_val, size, count) \ argument
85 __bos_dynamic_check_impl_and(bos_val, >=, (size) * (count), \
Dunistd.h68 #define __bos_trivially_ge_no_overflow(bos_val, index) \ argument
69 ((__bos_dynamic_check_impl_and((bos_val), >=, (index), (bos_val) <= SSIZE_MAX) && \
/bionic/docs/
Dclang_fortify_anatomy.md570 #define __bos_fd_count_trivially_safe(bos_val, fds, fd_count) \
571 ((bos_val) == -1) || \
573 (bos_val) >= sizeof(*fds) * (fd_count)))