Home
last modified time | relevance | path

Searched refs:__clang_error_if (Results 1 – 11 of 11) sorted by relevance

/bionic/libc/include/bits/fortify/
Dstdlib.h39 __clang_error_if(!path, "'realpath': NULL path is never correct; flipped arguments?")
40 __clang_error_if(__bos_unevaluated_lt(__bos(resolved), __PATH_MAX),
Dstdio.h89 __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()
Dsocket.h43 __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()
Dfcntl.h61 __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()
Dstrings.h34 __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()
Dpoll.h45 __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()
Dstring.h63 __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()
Dstat.h41 __clang_error_if(mode & ~0777, "'umask' called with invalid mode") { in umask()
Dunistd.h62 __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/
Dclang_fortify_tests.cpp68 #undef __clang_error_if
69 #define __clang_error_if(...) macro
/bionic/libc/include/sys/
Dcdefs.h138 #define __clang_error_if(cond, msg) __attribute__((diagnose_if(cond, msg, "error"))) macro