• Home
  • Raw
  • Download

Lines Matching full:libc

2 use libc::{self, c_char, c_int, c_uint, size_t, ssize_t};
168 unsafe { libc::open(cstr.as_ptr(), oflag.bits(), mode.bits() as c_uint) } in open()
184 unsafe { libc::openat(dirfd, cstr.as_ptr(), oflag.bits(), mode.bits() as c_uint) } in openat()
198 libc::renameat( in renameat()
219 ) -> Result<libc::ssize_t> { in readlink_maybe_at()
225 Some(dirfd) => libc::readlinkat( in readlink_maybe_at()
231 None => libc::readlink( in readlink_maybe_at()
241 let mut v = Vec::with_capacity(libc::PATH_MAX as usize); in inner_readlink()
261 (libc::PATH_MAX as usize).max(128) << 1 in inner_readlink()
295 None => libc::AT_FDCWD, in at_rawfd()
332 F_SETLK(&'a libc::flock),
333 F_SETLKW(&'a libc::flock),
334 F_GETLK(&'a mut libc::flock),
336 F_OFD_SETLK(&'a libc::flock),
338 F_OFD_SETLKW(&'a libc::flock),
340 F_OFD_GETLK(&'a mut libc::flock),
370 F_DUPFD(rawfd) => libc::fcntl(fd, libc::F_DUPFD, rawfd), in fcntl()
371 F_DUPFD_CLOEXEC(rawfd) => libc::fcntl(fd, libc::F_DUPFD_CLOEXEC, rawfd), in fcntl()
372 F_GETFD => libc::fcntl(fd, libc::F_GETFD), in fcntl()
373 F_SETFD(flag) => libc::fcntl(fd, libc::F_SETFD, flag.bits()), in fcntl()
374 F_GETFL => libc::fcntl(fd, libc::F_GETFL), in fcntl()
375 F_SETFL(flag) => libc::fcntl(fd, libc::F_SETFL, flag.bits()), in fcntl()
377 F_SETLK(flock) => libc::fcntl(fd, libc::F_SETLK, flock), in fcntl()
379 F_SETLKW(flock) => libc::fcntl(fd, libc::F_SETLKW, flock), in fcntl()
381 F_GETLK(flock) => libc::fcntl(fd, libc::F_GETLK, flock), in fcntl()
383 F_OFD_SETLK(flock) => libc::fcntl(fd, libc::F_OFD_SETLK, flock), in fcntl()
385 F_OFD_SETLKW(flock) => libc::fcntl(fd, libc::F_OFD_SETLKW, flock), in fcntl()
387 F_OFD_GETLK(flock) => libc::fcntl(fd, libc::F_OFD_GETLK, flock), in fcntl()
389 F_ADD_SEALS(flag) => libc::fcntl(fd, libc::F_ADD_SEALS, flag.bits()), in fcntl()
391 F_GET_SEALS => libc::fcntl(fd, libc::F_GET_SEALS), in fcntl()
393 F_FULLFSYNC => libc::fcntl(fd, libc::F_FULLFSYNC), in fcntl()
395 F_GETPIPE_SZ => libc::fcntl(fd, libc::F_GETPIPE_SZ), in fcntl()
397 F_SETPIPE_SZ(size) => libc::fcntl(fd, libc::F_SETPIPE_SZ, size), in fcntl()
420 LockShared => libc::flock(fd, libc::LOCK_SH), in flock()
421 LockExclusive => libc::flock(fd, libc::LOCK_EX), in flock()
422 Unlock => libc::flock(fd, libc::LOCK_UN), in flock()
423 LockSharedNonblock => libc::flock(fd, libc::LOCK_SH | libc::LOCK_NB), in flock()
424 LockExclusiveNonblock => libc::flock(fd, libc::LOCK_EX | libc::LOCK_NB), in flock()
425 UnlockNonblock => libc::flock(fd, libc::LOCK_UN | libc::LOCK_NB), in flock()
472 off_in: Option<&mut libc::loff_t>, in copy_file_range()
474 off_out: Option<&mut libc::loff_t>, in copy_file_range()
478 .map(|offset| offset as *mut libc::loff_t) in copy_file_range()
481 .map(|offset| offset as *mut libc::loff_t) in copy_file_range()
485 libc::syscall( in copy_file_range()
486 libc::SYS_copy_file_range, in copy_file_range()
501 off_in: Option<&mut libc::loff_t>, in splice()
503 off_out: Option<&mut libc::loff_t>, in splice()
508 .map(|offset| offset as *mut libc::loff_t) in splice()
511 .map(|offset| offset as *mut libc::loff_t) in splice()
514 let ret = unsafe { libc::splice(fd_in, off_in, fd_out, off_out, len, flags.bits()) }; in splice()
520 let ret = unsafe { libc::tee(fd_in, fd_out, len, flags.bits()) }; in tee()
527 libc::vmsplice( in vmsplice()
529 iov.as_ptr() as *const libc::iovec, in vmsplice() constant
576 offset: libc::off_t, in fallocate()
577 len: libc::off_t, in fallocate()
579 let res = unsafe { libc::fallocate(fd, mode.bits(), offset, len) }; in fallocate()
594 use libc;
612 offset: libc::off_t, in posix_fadvise()
613 len: libc::off_t, in posix_fadvise()
615 ) -> Result<libc::c_int> { in posix_fadvise()
616 let res = unsafe { libc::posix_fadvise(fd, offset, len, advice as libc::c_int) }; in posix_fadvise()
629 pub fn posix_fallocate(fd: RawFd, offset: libc::off_t, len: libc::off_t) -> Result<()> { in posix_fallocate()
630 let res = unsafe { libc::posix_fallocate(fd, offset, len) }; in posix_fallocate()