Lines Matching refs:size
29 static off_t bb_full_fd_action(int src_fd, int dst_fd, off_t size) in bb_full_fd_action() argument
43 if (size < 0) { in bb_full_fd_action()
44 size = -size; in bb_full_fd_action()
54 if (!size) { in bb_full_fd_action()
55 size = SENDFILE_BIGBUF; in bb_full_fd_action()
66 size > sendfile_sz ? sendfile_sz : size); in bb_full_fd_action()
74 if (size > 0 && size <= 4 * 1024) in bb_full_fd_action()
88 size > buffer_size ? buffer_size : size); in bb_full_fd_action()
111 size -= rd; in bb_full_fd_action()
112 if (!size) { in bb_full_fd_action()
140 off_t FAST_FUNC bb_copyfd_size(int fd1, int fd2, off_t size) in bb_copyfd_size() argument
142 if (size) { in bb_copyfd_size()
143 return bb_full_fd_action(fd1, fd2, size); in bb_copyfd_size()
148 void FAST_FUNC bb_copyfd_exact_size(int fd1, int fd2, off_t size) in bb_copyfd_exact_size() argument
150 off_t sz = bb_copyfd_size(fd1, fd2, size); in bb_copyfd_exact_size()
151 if (sz == (size >= 0 ? size : -size)) in bb_copyfd_exact_size()