Lines Matching defs:count

257 __errordecl(__pread_count_toobig_error, "pread called with count > SSIZE_MAX");
262 __errordecl(__pread64_count_toobig_error, "pread64 called with count > SSIZE_MAX");
267 __errordecl(__pwrite_count_toobig_error, "pwrite called with count > SSIZE_MAX");
272 __errordecl(__pwrite64_count_toobig_error, "pwrite64 called with count > SSIZE_MAX");
277 __errordecl(__read_count_toobig_error, "read called with count > SSIZE_MAX");
282 __errordecl(__write_count_toobig_error, "write called with count > SSIZE_MAX");
335 ssize_t pread(int fd, void* buf, size_t count, off_t offset) {
339 if (__builtin_constant_p(count) && (count > SSIZE_MAX)) {
344 return __PREAD_PREFIX(real)(fd, buf, count, offset);
347 if (__builtin_constant_p(count) && (count > bos)) {
351 if (__builtin_constant_p(count) && (count <= bos)) {
352 return __PREAD_PREFIX(real)(fd, buf, count, offset);
356 return __PREAD_PREFIX(chk)(fd, buf, count, offset, bos);
360 ssize_t pread64(int fd, void* buf, size_t count, off64_t offset) {
364 if (__builtin_constant_p(count) && (count > SSIZE_MAX)) {
369 return __pread64_real(fd, buf, count, offset);
372 if (__builtin_constant_p(count) && (count > bos)) {
376 if (__builtin_constant_p(count) && (count <= bos)) {
377 return __pread64_real(fd, buf, count, offset);
381 return __pread64_chk(fd, buf, count, offset, bos);
391 ssize_t pwrite(int fd, const void* buf, size_t count, off_t offset) {
395 if (__builtin_constant_p(count) && (count > SSIZE_MAX)) {
400 return __PWRITE_PREFIX(real)(fd, buf, count, offset);
403 if (__builtin_constant_p(count) && (count > bos)) {
407 if (__builtin_constant_p(count) && (count <= bos)) {
408 return __PWRITE_PREFIX(real)(fd, buf, count, offset);
412 return __PWRITE_PREFIX(chk)(fd, buf, count, offset, bos);
416 ssize_t pwrite64(int fd, const void* buf, size_t count, off64_t offset) {
420 if (__builtin_constant_p(count) && (count > SSIZE_MAX)) {
425 return __pwrite64_real(fd, buf, count, offset);
428 if (__builtin_constant_p(count) && (count > bos)) {
432 if (__builtin_constant_p(count) && (count <= bos)) {
433 return __pwrite64_real(fd, buf, count, offset);
437 return __pwrite64_chk(fd, buf, count, offset, bos);
441 ssize_t read(int fd, void* buf, size_t count) {
445 if (__builtin_constant_p(count) && (count > SSIZE_MAX)) {
450 return __read_real(fd, buf, count);
453 if (__builtin_constant_p(count) && (count > bos)) {
457 if (__builtin_constant_p(count) && (count <= bos)) {
458 return __read_real(fd, buf, count);
462 return __read_chk(fd, buf, count, bos);
466 ssize_t write(int fd, const void* buf, size_t count) {
471 if (__builtin_constant_p(count) && (count > SSIZE_MAX)) {
477 return __write_real(fd, buf, count);
480 if (__builtin_constant_p(count) && (count > bos)) {
484 if (__builtin_constant_p(count) && (count <= bos)) {
485 return __write_real(fd, buf, count);
489 return __write_chk(fd, buf, count, bos);