Lines Matching defs:len

278 fn wrap_readlink_result(mut v: Vec<u8>, len: ssize_t) -> Result<OsString> {
279 unsafe { v.set_len(len as usize) }
313 let len = Errno::result(res)?;
314 debug_assert!(len >= 0);
315 if (len as usize) < v.capacity() {
346 let len = Errno::result(res)?;
347 debug_assert!(len >= 0);
348 if (len as usize) < v.capacity() {
556 /// kernel. It copies up to `len` bytes of data from file descriptor `fd_in` to
573 len: usize,
589 len,
602 len: usize,
612 let ret = unsafe { libc::splice(fd_in, off_in, fd_out, off_out, len, flags.bits()) };
617 pub fn tee(fd_in: RawFd, fd_out: RawFd, len: usize, flags: SpliceFFlags) -> Result<usize> {
618 let ret = unsafe { libc::tee(fd_in, fd_out, len, flags.bits()) };
633 iov.len(),
649 /// offset + len can be greater than file size.
653 /// Must be ORed with FALLOC_FL_KEEP_SIZE. Byte range starts at offset and continues for len bytes.
657 /// Byte range to collapse starts at offset and continues for len bytes.
661 /// Byte range starts at offset and continues for len bytes.
665 /// Does not overwrite existing data. Hole starts at offset and continues for len bytes.
687 len: libc::off_t,
689 let res = unsafe { libc::fallocate(fd, mode.bits(), offset, len) };
707 pub fn len(&self) -> libc::off_t {
752 /// let mut buf = vec![0; INITIAL.len()];
775 /// - `len` - Length of the region to deallocate
795 /// let mut buf = vec![0; INITIAL.len()];
800 pub fn fspacectl_all(fd: RawFd, offset: libc::off_t, len: libc::off_t)
803 let mut rqsr = libc::spacectl_range{r_offset: offset, r_len: len};
851 len: libc::off_t,
854 let res = unsafe { libc::posix_fadvise(fd, offset, len, advice as libc::c_int) };
874 pub fn posix_fallocate(fd: RawFd, offset: libc::off_t, len: libc::off_t) -> Result<()> {
875 let res = unsafe { libc::posix_fallocate(fd, offset, len) };