Lines Matching defs:size

91     __attribute__((__error__("memcpy called with size bigger than destination")));
93 __attribute__((__error__("memcpy called with size bigger than source")));
153 __attribute__((__error__("strlcpy called with size bigger than buffer")));
157 size_t strlcpy(char *dest, const char *src, size_t size) {
160 // Compiler doesn't know destination size. Don't call __strlcpy_chk
162 return __strlcpy_real(dest, src, size);
165 // Compiler can prove, at compile time, that the passed in size
166 // is always <= the actual object size. Don't call __strlcpy_chk
167 if (__builtin_constant_p(size) && (size <= bos)) {
168 return __strlcpy_real(dest, src, size);
171 // Compiler can prove, at compile time, that the passed in size
172 // is always > the actual object size. Force a compiler error.
173 if (__builtin_constant_p(size) && (size > bos)) {
177 return __strlcpy_chk(dest, src, size, bos);
183 __attribute__((__error__("strlcat called with size bigger than buffer")));
188 size_t strlcat(char *dest, const char *src, size_t size) {
191 // Compiler doesn't know destination size. Don't call __strlcat_chk
193 return __strlcat_real(dest, src, size);
196 // Compiler can prove, at compile time, that the passed in size
197 // is always <= the actual object size. Don't call __strlcat_chk
198 if (__builtin_constant_p(size) && (size <= bos)) {
199 return __strlcat_real(dest, src, size);
202 // Compiler can prove, at compile time, that the passed in size
203 // is always > the actual object size. Force a compiler error.
204 if (__builtin_constant_p(size) && (size > bos)) {
208 return __strlcat_chk(dest, src, size, bos);
219 // Compiler doesn't know destination size. Don't call __strlen_chk