Searched refs:__clang_error_if (Results 1 – 11 of 11) sorted by relevance
/bionic/libc/include/bits/fortify/ |
D | stdlib.h | 39 __clang_error_if(!path, "'realpath': NULL path is never correct; flipped arguments?") 40 __clang_error_if(__bos_unevaluated_lt(__bos(resolved), __PATH_MAX),
|
D | stdio.h | 89 __clang_error_if(__unsafe_check_mul_overflow(size, count), in fread() 91 __clang_error_if(__bos_unevaluated_lt(__bos0(buf), size * count), in fread() 106 __clang_error_if(__unsafe_check_mul_overflow(size, count), in fwrite() 108 __clang_error_if(__bos_unevaluated_lt(__bos0(buf), size * count), in fwrite() 124 __clang_error_if(size < 0, "in call to 'fgets', size should not be negative") in fgets() 125 __clang_error_if(__bos_unevaluated_lt(__bos(dest), size), in fgets()
|
D | socket.h | 43 __clang_error_if(__bos_unevaluated_lt(__bos0(buf), len), in recvfrom() 58 __clang_error_if(__bos_unevaluated_lt(__bos0(buf), len), in sendto() 73 __clang_error_if(__bos_unevaluated_lt(__bos0(buf), len), in recv() 81 __clang_error_if(__bos_unevaluated_lt(__bos0(buf), len), in send()
|
D | fcntl.h | 61 __clang_error_if(__open_modes_useful(flags), "'open' " __open_too_few_args_error) { in open() 85 __clang_error_if(__open_modes_useful(flags), "'openat' " __open_too_few_args_error) { in openat() 111 __clang_error_if(__open_modes_useful(flags), "'open64' " __open_too_few_args_error) { in open64() 131 __clang_error_if(__open_modes_useful(flags), "'openat64' " __open_too_few_args_error) { in openat64()
|
D | strings.h | 34 __clang_error_if(__bos_unevaluated_lt(__bos0(dst), len), in __bionic_bcopy() 49 __clang_error_if(__bos_unevaluated_lt(__bos0(b), len), in __bionic_bzero()
|
D | poll.h | 45 __clang_error_if(__bos_unevaluated_lt(__bos(fds), sizeof(*fds) * fd_count), in poll() 61 __clang_error_if(__bos_unevaluated_lt(__bos(fds), sizeof(*fds) * fd_count), in ppoll() 78 __clang_error_if(__bos_unevaluated_lt(__bos(fds), sizeof(*fds) * fd_count), in ppoll64()
|
D | string.h | 63 __clang_error_if(__bos_unevaluated_lt(__bos0(dst), copy_amount), in mempcpy() 79 __clang_error_if(__bos_unevaluated_le(__bos(dst), __builtin_strlen(src)), in stpcpy() 91 __clang_error_if(__bos_unevaluated_le(__bos(dst), __builtin_strlen(src)), in strcpy() 103 __clang_error_if(__bos_unevaluated_le(__bos(dst), __builtin_strlen(src)), in strcat() 191 __clang_error_if(__bos_unevaluated_lt(__bos(dst), size), in strlcpy() 203 __clang_error_if(__bos_unevaluated_lt(__bos(dst), size), in strlcat()
|
D | stat.h | 41 __clang_error_if(mode & ~0777, "'umask' called with invalid mode") { in umask()
|
D | unistd.h | 62 __clang_error_if((what) > SSIZE_MAX, "in call to '" #fn "', '" #what "' must be <= SSIZE_MAX") 65 __clang_error_if(__bos_unevaluated_lt((objsize), (what)), \
|
/bionic/tests/ |
D | clang_fortify_tests.cpp | 68 #undef __clang_error_if 69 #define __clang_error_if(...) macro
|
/bionic/libc/include/sys/ |
D | cdefs.h | 138 #define __clang_error_if(cond, msg) __attribute__((diagnose_if(cond, msg, "error"))) macro
|