Lines Matching defs:len
264 int os_read_file(int fd, void *buf, int len)
266 int n = read(fd, buf, len);
273 int os_pread_file(int fd, void *buf, int len, unsigned long long offset)
275 int n = pread(fd, buf, len, offset);
282 int os_write_file(int fd, const void *buf, int len)
284 int n = write(fd, (void *) buf, len);
300 int os_pwrite_file(int fd, const void *buf, int len, unsigned long long offset)
302 int n = pwrite(fd, (void *) buf, len, offset);
545 int os_create_unix_socket(const char *file, int len, int close_on_exec)
563 snprintf(addr.sun_path, len, "%s", file);
619 int os_falloc_punch(int fd, unsigned long long offset, int len)
621 int n = fallocate(fd, FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE, offset, len);
628 int os_falloc_zeroes(int fd, unsigned long long offset, int len)
630 int n = fallocate(fd, FALLOC_FL_ZERO_RANGE|FALLOC_FL_KEEP_SIZE, offset, len);
646 int os_sendmsg_fds(int fd, const void *buf, unsigned int len, const int *fds,
651 .iov_len = len,