/external/rust/crates/nix/src/ |
D | errno.rs | 2 use libc::{c_int, c_void}; 13 libc::__error() 19 libc::__errno() 26 libc::__errno_location() 96 impl ErrnoSentinel for libc::sighandler_t { 97 fn sentinel() -> Self { libc::SIG_ERR } in sentinel() 640 EPERM = libc::EPERM, 641 ENOENT = libc::ENOENT, 642 ESRCH = libc::ESRCH, 643 EINTR = libc::EINTR, [all …]
|
D | unistd.rs | 11 use libc::{self, c_char, c_void, c_int, c_long, c_uint, size_t, pid_t, off_t, 235 let res = libc::fork(); in fork() 250 Pid(unsafe { libc::getpid() }) in getpid() 260 …Pid(unsafe { libc::getppid() }) // no error handling, according to man page: "These functions are … in getppid() 274 let res = unsafe { libc::setpgid(pid.into(), pgid.into()) }; in setpgid() 279 let res = unsafe { libc::getpgid(pid.unwrap_or(Pid(0)).into()) }; in getpgid() 287 Errno::result(unsafe { libc::setsid() }).map(Pid) in setsid() 298 let res = unsafe { libc::getsid(pid.unwrap_or(Pid(0)).into()) }; in getsid() 310 let res = unsafe { libc::tcgetpgrp(fd) }; in tcgetpgrp() 320 let res = unsafe { libc::tcsetpgrp(fd, pgrp.into()) }; in tcsetpgrp() [all …]
|
D | fcntl.rs | 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() [all …]
|
/external/llvm-project/libc/config/linux/x86_64/ |
D | entrypoints.txt | 3 libc.src.assert.__assert_fail 6 libc.src.ctype.isalnum 7 libc.src.ctype.isalpha 8 libc.src.ctype.isblank 9 libc.src.ctype.iscntrl 10 libc.src.ctype.isdigit 11 libc.src.ctype.isgraph 12 libc.src.ctype.islower 13 libc.src.ctype.isprint 14 libc.src.ctype.ispunct [all …]
|
/external/llvm-project/libc/config/linux/aarch64/ |
D | entrypoints.txt | 3 libc.src.ctype.isalnum 4 libc.src.ctype.isalpha 5 libc.src.ctype.isblank 6 libc.src.ctype.iscntrl 7 libc.src.ctype.isdigit 8 libc.src.ctype.isgraph 9 libc.src.ctype.islower 10 libc.src.ctype.isprint 11 libc.src.ctype.ispunct 12 libc.src.ctype.isspace [all …]
|
/external/llvm-project/libc/test/src/math/ |
D | CMakeLists.txt | 37 libc.include.errno 38 libc.src.math.cosf 39 libc.utils.CPP.standalone_cpp 40 libc.utils.FPUtil.fputil 53 libc.include.errno 54 libc.src.math.sinf 55 libc.utils.CPP.standalone_cpp 56 libc.utils.FPUtil.fputil 69 libc.include.errno 70 libc.src.math.sincosf [all …]
|
/external/rust/crates/mio/src/sys/unix/ |
D | tcp.rs | 13 use libc::SO_KEEPALIVE as KEEPALIVE_TIME; 15 use libc::TCP_KEEPALIVE as KEEPALIVE_TIME; 23 use libc::TCP_KEEPIDLE as KEEPALIVE_TIME; 24 pub type TcpSocket = libc::c_int; 27 new_socket(libc::AF_INET, libc::SOCK_STREAM) in new_v4_socket() 31 new_socket(libc::AF_INET6, libc::SOCK_STREAM) in new_v6_socket() 44 Err(err) if err.raw_os_error() != Some(libc::EINPROGRESS) => { in connect() 64 let val: libc::c_int = if reuseaddr { 1 } else { 0 }; in set_reuseaddr() 67 libc::SOL_SOCKET, in set_reuseaddr() 68 libc::SO_REUSEADDR, in set_reuseaddr() [all …]
|
D | net.rs | 5 pub(crate) fn new_ip_socket(addr: SocketAddr, socket_type: libc::c_int) -> io::Result<libc::c_int> { in new_ip_socket() 7 SocketAddr::V4(..) => libc::AF_INET, in new_ip_socket() 8 SocketAddr::V6(..) => libc::AF_INET6, in new_ip_socket() 15 pub(crate) fn new_socket(domain: libc::c_int, socket_type: libc::c_int) -> io::Result<libc::c_int> { in new_socket() 25 let socket_type = socket_type | libc::SOCK_NONBLOCK | libc::SOCK_CLOEXEC; in new_socket() 36 libc::SOL_SOCKET, in new_socket() 37 libc::SO_NOSIGPIPE, in new_socket() 38 &1 as *const libc::c_int as *const libc::c_void, in new_socket() 39 size_of::<libc::c_int>() as libc::socklen_t in new_socket() 50 syscall!(fcntl(socket, libc::F_SETFL, libc::O_NONBLOCK)) in new_socket() [all …]
|
/external/rust/crates/mio/src/sys/unix/selector/ |
D | kqueue.rs | 17 type Count = libc::c_int; 19 type Count = libc::size_t; 23 type Filter = libc::c_short; 31 type Flags = libc::c_ushort; 44 type Data = libc::intptr_t; 50 type UData = *mut libc::c_void; 52 type UData = libc::intptr_t; 56 libc::kevent { 57 ident: $id as libc::uintptr_t, 79 .and_then(|kq| syscall!(fcntl(kq, libc::F_SETFD, libc::FD_CLOEXEC)).map(|_| kq)) in new() [all …]
|
D | epoll.rs | 3 use libc::{EPOLLET, EPOLLIN, EPOLLOUT, EPOLLRDHUP}; 30 let flag = libc::O_CLOEXEC; in new() 32 let flag = libc::EPOLL_CLOEXEC; in new() 61 const MAX_SAFE_TIMEOUT: u128 = libc::c_int::max_value() as u128; in select() 64 .map(|to| cmp::min(to.as_millis(), MAX_SAFE_TIMEOUT) as libc::c_int) in select() 82 let mut event = libc::epoll_event { in register() 87 syscall!(epoll_ctl(self.ep, libc::EPOLL_CTL_ADD, fd, &mut event)).map(|_| ()) in register() 91 let mut event = libc::epoll_event { in reregister() 96 syscall!(epoll_ctl(self.ep, libc::EPOLL_CTL_MOD, fd, &mut event)).map(|_| ()) in reregister() 100 syscall!(epoll_ctl(self.ep, libc::EPOLL_CTL_DEL, fd, ptr::null_mut())).map(|_| ()) in deregister() [all …]
|
/external/llvm-project/libc/fuzzing/math/ |
D | CMakeLists.txt | 11 libc.src.math.ceil 12 libc.src.math.ceilf 13 libc.src.math.ceill 14 libc.src.math.fdim 15 libc.src.math.fdimf 16 libc.src.math.fdiml 17 libc.src.math.floor 18 libc.src.math.floorf 19 libc.src.math.floorl 20 libc.src.math.frexp [all …]
|
/external/llvm-project/libc/test/src/signal/ |
D | CMakeLists.txt | 10 libc.include.signal 11 libc.src.signal.raise 21 libc.include.errno 22 libc.include.signal 23 libc.src.signal.raise 24 libc.src.signal.sigaction 25 libc.test.errno_setter_matcher 35 libc.include.errno 36 libc.src.errno.__errno_location 37 libc.src.signal.raise [all …]
|
/external/rust/crates/parking_lot_core/src/thread_parker/ |
D | unix.rs | 15 use libc; 25 type tv_nsec_t = libc::c_long; 30 mutex: UnsafeCell<libc::pthread_mutex_t>, 31 condvar: UnsafeCell<libc::pthread_cond_t>, 44 mutex: UnsafeCell::new(libc::PTHREAD_MUTEX_INITIALIZER), in new() 45 condvar: UnsafeCell::new(libc::PTHREAD_COND_INITIALIZER), in new() 64 let r = libc::pthread_mutex_lock(self.mutex.get()); in timed_out() 67 let r = libc::pthread_mutex_unlock(self.mutex.get()); in timed_out() 74 let r = libc::pthread_mutex_lock(self.mutex.get()); in park() 77 let r = libc::pthread_cond_wait(self.condvar.get(), self.mutex.get()); in park() [all …]
|
/external/rust/crates/nix/src/sys/socket/ |
D | sockopt.rs | 6 use libc::{self, c_int, c_void, socklen_t}; 52 let res = libc::setsockopt(fd, $level, $flag, 93 let res = libc::getsockopt(fd, $level, $flag, 216 sockopt_impl!(Both, ReuseAddr, libc::SOL_SOCKET, libc::SO_REUSEADDR, bool); 217 sockopt_impl!(Both, ReusePort, libc::SOL_SOCKET, libc::SO_REUSEPORT, bool); 218 sockopt_impl!(Both, TcpNoDelay, libc::IPPROTO_TCP, libc::TCP_NODELAY, bool); 219 sockopt_impl!(Both, Linger, libc::SOL_SOCKET, libc::SO_LINGER, libc::linger); 220 sockopt_impl!(SetOnly, IpAddMembership, libc::IPPROTO_IP, libc::IP_ADD_MEMBERSHIP, super::IpMembers… 221 sockopt_impl!(SetOnly, IpDropMembership, libc::IPPROTO_IP, libc::IP_DROP_MEMBERSHIP, super::IpMembe… 224 …sockopt_impl!(SetOnly, Ipv6AddMembership, libc::IPPROTO_IPV6, libc::IPV6_ADD_MEMBERSHIP, super::Ip… [all …]
|
D | mod.rs | 6 use libc::{self, c_void, c_int, iovec, socklen_t, size_t, 39 pub use libc::{ 52 pub use libc::{c_uint, CMSG_SPACE}; 62 Stream = libc::SOCK_STREAM, 65 Datagram = libc::SOCK_DGRAM, 70 SeqPacket = libc::SOCK_SEQPACKET, 72 Raw = libc::SOCK_RAW, 75 Rdm = libc::SOCK_RDM, 84 Tcp = libc::IPPROTO_TCP, 86 Udp = libc::IPPROTO_UDP, [all …]
|
/external/llvm-project/libc/src/signal/linux/ |
D | CMakeLists.txt | 10 libc.config.linux.linux_syscall_h 11 libc.include.signal 12 libc.include.sys_syscall 28 libc.config.linux.linux_syscall_h 29 libc.include.sys_syscall 41 libc.config.linux.linux_syscall_h 42 libc.include.signal 43 libc.include.sys_syscall 44 libc.src.errno.__errno_location 55 libc.config.linux.linux_syscall_h [all …]
|
/external/crosvm/sys_util/src/ |
D | signal.rs | 5 use libc::{ 107 Abort = libc::SIGABRT, 108 Alarm = libc::SIGALRM, 109 Bus = libc::SIGBUS, 110 Child = libc::SIGCHLD, 111 Continue = libc::SIGCONT, 112 ExceededFileSize = libc::SIGXFSZ, 113 FloatingPointException = libc::SIGFPE, 114 HangUp = libc::SIGHUP, 115 IllegalInstruction = libc::SIGILL, [all …]
|
D | lib.rs | 103 use libc::{ 109 pub type Pid = libc::pid_t; 110 pub type Uid = libc::uid_t; 111 pub type Gid = libc::gid_t; 153 let ret = unsafe { libc::getsid(pid.unwrap_or(0)) } as Pid; in getsid() 165 let ret = unsafe { libc::setsid() as Pid }; in setsid() 178 unsafe { libc::geteuid() } in geteuid() 185 unsafe { libc::getegid() } in getegid() 192 let ret = unsafe { libc::chown(path.as_ptr(), uid, gid) }; in chown() 213 FlockOperation::LockShared => libc::LOCK_SH, in flock() [all …]
|
/external/llvm-project/libc/src/math/ |
D | CMakeLists.txt | 8 libc.include.errno 9 libc.include.math 10 libc.src.errno.__errno_location 31 libc.include.math 32 libc.src.errno.__errno_location 43 libc.include.math 44 libc.src.errno.__errno_location 55 libc.include.math 56 libc.src.errno.__errno_location 66 libc.utils.FPUtil.fputil [all …]
|
/external/rust/crates/nix/src/sys/ioctl/ |
D | mod.rs | 296 pub unsafe fn $name(fd: $crate::libc::c_int) 297 -> $crate::Result<$crate::libc::c_int> { 298 …convert_ioctl_res!($crate::libc::ioctl(fd, request_code_none!($ioty, $nr) as $crate::sys::ioctl::i… 336 pub unsafe fn $name(fd: $crate::libc::c_int) 337 -> $crate::Result<$crate::libc::c_int> { 338 convert_ioctl_res!($crate::libc::ioctl(fd, $nr as $crate::sys::ioctl::ioctl_num_type)) 373 pub unsafe fn $name(fd: $crate::libc::c_int, 375 -> $crate::Result<$crate::libc::c_int> { 376 …convert_ioctl_res!($crate::libc::ioctl(fd, request_code_read!($ioty, $nr, ::std::mem::size_of::<$t… 409 pub unsafe fn $name(fd: $crate::libc::c_int, [all …]
|
/external/llvm-project/libc/test/src/threads/ |
D | CMakeLists.txt | 10 libc.include.threads 11 libc.src.threads.call_once 12 libc.src.threads.mtx_init 13 libc.src.threads.mtx_lock 14 libc.src.threads.mtx_unlock 15 libc.src.threads.thrd_create 16 libc.src.threads.thrd_join 26 libc.include.threads 27 libc.src.errno.__errno_location 28 libc.src.threads.thrd_create [all …]
|
/external/crosvm/devices/src/virtio/fs/ |
D | passthrough.rs | 119 ino: libc::ino64_t, 120 dev: libc::dev_t, 130 impl From<libc::mode_t> for FileType { 131 fn from(mode: libc::mode_t) -> Self { in from() 132 match mode & libc::S_IFMT { in from() 133 libc::S_IFREG => FileType::Regular, in from() 134 libc::S_IFDIR => FileType::Directory, in from() 143 file: Mutex<(File, libc::c_int)>, 195 let res = unsafe { libc::syscall($syscall_nr, -1, val, -1) }; 206 let res = unsafe { libc::syscall($syscall_nr, -1, self.old, -1) }; [all …]
|
/external/llvm-project/libc/src/threads/linux/ |
D | CMakeLists.txt | 19 libc.config.linux.linux_syscall_h 20 libc.include.sys_syscall 21 libc.include.threads 40 libc.config.linux.linux_syscall_h 41 libc.include.errno 42 libc.include.sys_syscall 43 libc.include.threads 44 libc.src.__support.common 45 libc.src.errno.__errno_location 46 libc.src.sys.mman.mmap [all …]
|
/external/vm_tools/p9/src/server/ |
D | mod.rs | 44 (P9_WRONLY, libc::O_WRONLY), 45 (P9_RDWR, libc::O_RDWR), 46 (P9_CREATE, libc::O_CREAT), 47 (P9_EXCL, libc::O_EXCL), 48 (P9_NOCTTY, libc::O_NOCTTY), 49 (P9_TRUNC, libc::O_TRUNC), 50 (P9_APPEND, libc::O_APPEND), 51 (P9_NONBLOCK, libc::O_NONBLOCK), 52 (P9_DSYNC, libc::O_DSYNC), 54 (P9_DIRECT, libc::O_DIRECT), [all …]
|
/external/rust/crates/nix/src/sys/ |
D | signal.rs | 337 pub const NSIG: libc::c_int = 32; 364 impl TryFrom<libc::c_int> for Signal { 367 fn try_from(signum: libc::c_int) -> Result<Signal> { in try_from() 381 type SaFlags_t = libc::c_int; 383 type SaFlags_t = libc::c_ulong; 408 sigset: libc::sigset_t 415 let _ = unsafe { libc::sigfillset(sigset.as_mut_ptr()) }; in all() 422 let _ = unsafe { libc::sigemptyset(sigset.as_mut_ptr()) }; in empty() 428 unsafe { libc::sigaddset(&mut self.sigset as *mut libc::sigset_t, signal as libc::c_int) }; in add() 432 unsafe { libc::sigemptyset(&mut self.sigset as *mut libc::sigset_t) }; in clear() [all …]
|