Lines Matching defs:count

216 void* __memcpy_chk(void* dest, const void* src, size_t count, size_t dst_len)
218 __diagnose_count("memcpy", "count", count);
219 __diagnose_buffer_access("memcpy", "write into", count, dst_len);
220 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(memcpy)(dest, src, count);
224 void* __mempcpy_chk(void* dest, const void* src, size_t count, size_t dst_len)
226 __diagnose_count("mempcpy", "count", count);
227 __diagnose_buffer_access("mempcpy", "write into", count, dst_len);
228 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(mempcpy)(dest, src, count);
258 void *__memset_chk(void *dest, int byte, size_t count, size_t dst_len)
260 __diagnose_count("memset", "count", count);
261 __diagnose_buffer_access("memset", "write into", count, dst_len);
262 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(memset)(dest, byte, count);
312 ssize_t __pread_chk(int fd, void* buf, size_t count, off_t offset, size_t buf_size)
314 __diagnose_count("pread", "count", count);
315 __diagnose_buffer_access("pread", "write into", count, buf_size);
316 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(pread)(fd, buf, count, offset);
319 ssize_t __pwrite_chk(int fd, const void* buf, size_t count, off_t offset, size_t buf_size)
321 __diagnose_count("pwrite", "count", count);
322 __diagnose_buffer_access("pwrite", "read from", count, buf_size);
323 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(pwrite)(fd, buf, count, offset);
326 ssize_t __read_chk(int fd, void* buf, size_t count, size_t buf_size)
328 __diagnose_count("read", "count", count);
329 __diagnose_buffer_access("read", "write into", count, buf_size);
330 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(read)(fd, buf, count);
333 ssize_t __write_chk(int fd, const void* buf, size_t count, size_t buf_size)
335 __diagnose_count("write", "count", count);
336 __diagnose_buffer_access("write", "read from", count, buf_size);
337 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(write)(fd, buf, count);
354 size_t __fread_chk(void* buf, size_t size, size_t count, FILE* stream, size_t buf_size)
357 if (__DIAGNOSE_PREDICT_FALSE(__DIAGNOSE__SIZE_MUL_OVERFLOW(size, count, &total))) {
359 return fread(buf, size, count, stream);
362 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(fread)(buf, size, count, stream);
365 size_t __fwrite_chk(const void* buf, size_t size, size_t count, FILE* stream, size_t buf_size)
368 if (__DIAGNOSE_PREDICT_FALSE(__DIAGNOSE__SIZE_MUL_OVERFLOW(size, count, &total))) {
370 return fwrite(buf, size, count, stream);
373 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(fwrite)(buf, size, count, stream);