Home
last modified time | relevance | path

Searched full:libc (Results 1 – 25 of 3285) sorted by relevance

12345678910>>...132

/external/rust/crates/nix/src/
Derrno.rs3 use libc::{c_int, c_void};
14 libc::__error()
20 libc::__errno()
27 libc::__errno_location()
31 libc::___errno()
35 libc::_errnop()
112 impl ErrnoSentinel for libc::sighandler_t {
114 libc::SIG_ERR in sentinel()
1125 EPERM = libc::EPERM,
1126 ENOENT = libc::ENOENT,
[all …]
Dfcntl.rs2 use libc::{self, c_char, c_int, c_uint, size_t, ssize_t};
198 unsafe { libc::open(cstr.as_ptr(), oflag.bits(), mode.bits() as c_uint) }
214 unsafe { libc::openat(dirfd, cstr.as_ptr(), oflag.bits(), mode.bits() as c_uint) }
228 libc::renameat(
266 libc::renameat2(
288 ) -> Result<libc::ssize_t> {
294 Some(dirfd) => libc::readlinkat(
300 None => libc::readlink(
310 let mut v = Vec::with_capacity(libc::PATH_MAX as usize);
341 (libc::PATH_MAX as usize).max(128) << 1
[all …]
/external/rust/crates/mio/src/sys/unix/selector/
Dkqueue.rs17 type Count = libc::c_int;
19 type Count = libc::size_t;
23 type Filter = libc::c_short;
31 type Flags = libc::c_ushort;
39 type UData = *mut libc::c_void;
41 type UData = libc::intptr_t;
45 libc::kevent {
46 ident: $id as libc::uintptr_t,
75 syscall!(fcntl(kq, libc::F_SETFD, libc::FD_CLOEXEC))?; in new()
80 syscall!(fcntl(self.kq, libc::F_DUPFD_CLOEXEC, super::LOWEST_FD)).map(|kq| Selector { in try_clone()
[all …]
Depoll.rs3 use libc::{EPOLLET, EPOLLIN, EPOLLOUT, EPOLLPRI, EPOLLRDHUP};
27 let res = syscall!(epoll_create1(libc::EPOLL_CLOEXEC)); in new()
35 let res = syscall!(syscall(libc::SYS_epoll_create1, libc::O_CLOEXEC)); in new()
42 if let Some(libc::ENOSYS) = err.raw_os_error() { in new()
44 Ok(ep) => match syscall!(fcntl(ep, libc::F_SETFD, libc::FD_CLOEXEC)) { in new()
48 let _ = unsafe { libc::close(ep) }; in new()
70 syscall!(fcntl(self.ep, libc::F_DUPFD_CLOEXEC, super::LOWEST_FD)).map(|ep| Selector { in try_clone()
87 const MAX_SAFE_TIMEOUT: u128 = libc::c_int::max_value() as u128; in select()
96 cmp::min(MAX_SAFE_TIMEOUT, to_ms) as libc::c_int in select()
115 let mut event = libc::epoll_event { in register()
[all …]
/external/libabigail/tests/data/test-types-stability/
Dpr27980-libc.so__cxa_finalize __dso_handle __register_atfork pthread_atfork __aeabi_memcpy __aeabi_read_tp __stack_chk_fail __stack_chk_guard android_unsafe_frame_pointer_chase getprogname strncmp __errno abort android_run_on_all_threads mprotect prctl strerror dlerror dlopen ...
/external/rust/crates/mio/src/sys/unix/
Dnet.rs5 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()
33 libc::SOL_SOCKET, in new_socket()
34 libc::SO_NOSIGPIPE, in new_socket()
35 &1 as *const libc::c_int as *const libc::c_void, in new_socket()
36 size_of::<libc::c_int>() as libc::socklen_t in new_socket()
45 if let Err(err) = syscall!(fcntl(socket, libc::F_SETFL, libc::O_NONBLOCK)) { in new_socket()
[all …]
/external/crosvm/base/src/sys/unix/
Dsignal.rs20 use libc::c_int;
21 use libc::pthread_kill;
22 use libc::pthread_sigmask;
23 use libc::pthread_t;
24 use libc::sigaction;
25 use libc::sigaddset;
26 use libc::sigemptyset;
27 use libc::siginfo_t;
28 use libc::sigismember;
29 use libc::sigpending;
[all …]
Dnet.rs28 use libc::c_int;
29 use libc::in6_addr;
30 use libc::in_addr;
31 use libc::recvfrom;
32 use libc::sa_family_t;
33 use libc::sockaddr;
34 use libc::sockaddr_in;
35 use libc::sockaddr_in6;
36 use libc::socklen_t;
37 use libc::AF_INET;
[all …]
Dmod.rs79 use libc::c_int;
80 use libc::c_long;
81 use libc::fcntl;
82 use libc::pipe2;
83 use libc::syscall;
84 use libc::sysconf;
85 use libc::waitpid;
86 use libc::SYS_getpid;
87 use libc::SYS_getppid;
88 use libc::SYS_gettid;
[all …]
/external/rust/crates/nix/src/sys/socket/
Dsockopt.rs7 use libc::{self, c_int, c_void, socklen_t};
36 /// (`libc::SOL_SOCKET`), *ip protocol* (libc::IPPROTO_IP), *tcp protocol* (`libc::IPPROTO_TCP`),
39 /// * `$flag:path`: a flag name to set. Some examples: `libc::SO_REUSEADDR`, `libc::TCP_NODELAY`,
40 /// `libc::IP_ADD_MEMBERSHIP` and others. Will be passed as the third argument (`option_name`)
54 let res = libc::setsockopt(
81 /// protocol* (libc::IPPROTO_IP), *tcp protocol* (`libc::IPPROTO_TCP`), and more. Please refer
84 /// * A flag to set. Some examples: `libc::SO_REUSEADDR`, `libc::TCP_NODELAY`,
85 /// `libc::SO_ORIGINAL_DST` and others. Will be passed as the third argument (`option_name`) to
99 let res = libc::getsockopt(
134 /// (`lic::SOL_SOCKET`), *ip protocol* (libc::IPPROTO_IP), *tcp protocol* (`libc::IPPROTO_TCP`),
[all …]
Daddr.rs41 /// Convert a std::net::Ipv4Addr into the libc form.
43 pub(crate) const fn ipv4addr_to_libc(addr: net::Ipv4Addr) -> libc::in_addr { in ipv4addr_to_libc()
44 static_assertions::assert_eq_size!(net::Ipv4Addr, libc::in_addr); in ipv4addr_to_libc()
52 /// Convert a std::net::Ipv6Addr into the libc form.
54 pub(crate) const fn ipv6addr_to_libc(addr: &net::Ipv6Addr) -> libc::in6_addr { in ipv6addr_to_libc()
55 static_assertions::assert_eq_size!(net::Ipv6Addr, libc::in6_addr); in ipv6addr_to_libc()
56 // Safe because both are Newtype wrappers around the same libc type in ipv6addr_to_libc()
74 Unix = libc::AF_UNIX,
76 Inet = libc::AF_INET,
78 Inet6 = libc::AF_INET6,
[all …]
/external/libcxx/docs/
DUsingLibcxx.rst2 Using libc++
11 If you already have libc++ installed you can use it with clang.
15 $ clang++ -stdlib=libc++ test.cpp
16 $ clang++ -std=c++11 -stdlib=libc++ test.cpp
18 On OS X and FreeBSD libc++ is the default standard library
19 and the ``-stdlib=libc++`` is not required.
23 If you want to select an alternate installation of libc++ you
28 $ clang++ -std=c++11 -stdlib=libc++ -nostdinc++ \
35 search path. Meaning that the systems dynamic linker will look for libc++ in
44 $ clang++ -stdlib=libc++ -nostdinc++ \
[all …]
DBuildingLibcxx.rst4 Building libc++
19 The basic steps needed to build libc++ are:
26 #. Checkout libc++:
32 #. Checkout libc++abi:
38 #. Configure and build libc++ with libc++abi:
42 Clang is the preferred compiler when building and using libc++.
49 For more information about configuring libc++ see :ref:`CMake Options`.
51 * ``make cxx`` --- will build libc++ and libc++abi.
54 Shared libraries for libc++ and libc++ abi should now be present in llvm/build/lib.
55 See :ref:`using an alternate libc++ installation <alternate libcxx>`
[all …]
/external/rust/crates/parking_lot_core/src/thread_parker/
Dunix.rs14 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 …]
Dlinux.rs12 use libc;
23 type tv_nsec_t = libc::c_long;
25 fn errno() -> libc::c_int { in errno()
28 *libc::__errno_location() in errno()
32 *libc::__errno() in errno()
78 if diff.as_secs() as libc::time_t as u64 != diff.as_secs() { in park_until()
83 // SAFETY: libc::timespec is zero initializable. in park_until()
84 let mut ts: libc::timespec = std::mem::zeroed(); in park_until()
85 ts.tv_sec = diff.as_secs() as libc::time_t; in park_until()
106 fn futex_wait(&self, ts: Option<libc::timespec>) { in futex_wait()
[all …]
/external/rust/crates/libc/
DREADME.md1 # libc - Raw FFI bindings to platforms' system libraries
5 `libc` provides all of the definitions necessary to easily interoperate with C
11 the crate root, so all items are accessible as `libc::foo`. The types and values
12 of all the exported APIs match the platform that libc is compiled for.
17 [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1291-promote-libc.md
25 libc = "0.2"
30 * `std`: by default `libc` links to the standard library. Disable this
31 feature to remove this dependency and be able to use `libc` in `#![no_std]`
34 * `extra_traits`: all `struct`s implemented in `libc` are `Copy` and `Clone`.
46 (libc does not currently have any policy regarding changes to the minimum
[all …]
/external/crosvm/common/p9/src/server/
Dmod.rs56 // Mapping from 9P flags to libc flags.
58 (P9_WRONLY, libc::O_WRONLY),
59 (P9_RDWR, libc::O_RDWR),
60 (P9_CREATE, libc::O_CREAT),
61 (P9_EXCL, libc::O_EXCL),
62 (P9_NOCTTY, libc::O_NOCTTY),
63 (P9_TRUNC, libc::O_TRUNC),
64 (P9_APPEND, libc::O_APPEND),
65 (P9_NONBLOCK, libc::O_NONBLOCK),
66 (P9_DSYNC, libc::O_DSYNC),
[all …]
/external/rust/crates/nix/src/sys/
Dstatfs.rs30 pub type fsid_t = libc::__fsid_t;
34 pub type fsid_t = libc::fsid_t;
38 type type_of_statfs = libc::statfs64;
40 (fd: libc::c_int, buf: *mut type_of_statfs) -> libc::c_int
41 = libc::fstatfs64;
43 (path: *const libc::c_char, buf: *mut type_of_statfs) -> libc::c_int
44 = libc::statfs64;
46 type type_of_statfs = libc::statfs;
48 (fd: libc::c_int, buf: *mut type_of_statfs) -> libc::c_int
49 = libc::fstatfs;
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/docs/
DBuildingLibcxx.rst4 Building libc++
12 The instructions on this page are aimed at vendors who ship libc++ as part of an
14 are a user merely trying to use libc++ in your program, you most likely want to
16 libc++ :ref:`here <using-libcxx>`.
19 If your operating system already provides libc++, it is important to be careful
20 not to replace it. Replacing your system's libc++ installation could render it
22 place to install libc++.
28 The default way of building libc++, libc++abi and libunwind is to root the CMake
47 After building the various ``install-XXX`` targets, shared libraries for libc++, libc++abi and
49 ``<CMAKE_INSTALL_PREFIX>/include/c++/v1``. See :ref:`using an alternate libc++ installation
[all …]
/external/crosvm/devices/src/virtio/fs/
Dpassthrough.rs193 ino: libc::ino64_t,
194 dev: libc::dev_t,
204 impl From<libc::mode_t> for FileType {
205 fn from(mode: libc::mode_t) -> Self { in from()
206 match mode & libc::S_IFMT { in from()
207 libc::S_IFREG => FileType::Regular, in from()
208 libc::S_IFDIR => FileType::Directory, in from()
218 file: Mutex<(File, libc::c_int)>,
261 // libc uses signals to ensure that when one thread changes its
271 let res = unsafe { libc::syscall($syscall_nr, -1, val, -1) };
[all …]
/external/rust/crates/socket2/src/sys/
Dunix.rs51 use libc::ssize_t;
52 use libc::{c_void, in6_addr, in_addr};
58 pub(crate) use libc::c_int;
61 pub(crate) use libc::{AF_INET, AF_INET6};
64 pub(crate) use libc::SOCK_RAW;
66 pub(crate) use libc::SOCK_SEQPACKET;
67 pub(crate) use libc::{SOCK_DGRAM, SOCK_STREAM};
69 pub(crate) use libc::{IPPROTO_ICMP, IPPROTO_ICMPV6, IPPROTO_TCP, IPPROTO_UDP};
71 pub(crate) use libc::{
76 pub(crate) use libc::{MSG_TRUNC, SO_OOBINLINE};
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/vendor/apple/
Dsystem-install-properties.sh.cpp9 // REQUIRES: stdlib=apple-libc++
11 // This file checks various properties of the installation of libc++ when built as
14 // Make sure we install the libc++ headers in the right location.
18 // Make sure we install libc++.1.dylib and libc++experimental.a in the right location.
20 // RUN: stat "%{lib}/libc++.1.dylib"
21 // RUN: stat "%{lib}/libc++experimental.a"
23 // Make sure we install a symlink from libc++.dylib to libc++.1.dylib.
25 // RUN: stat "%{lib}/libc++.dylib"
26 // RUN: readlink "%{lib}/libc++.dylib" | grep "libc++.1.dylib"
37 // XRUNX: otool -L "%{lib}/libc++.1.dylib" | grep '/usr/lib/libc++.1.dylib'
[all …]
/external/rust/crates/mio/src/sys/unix/uds/
Dlistener.rs11 let sockaddr = &sockaddr as *const libc::sockaddr_un as *const libc::sockaddr; in bind() constant
13 let fd = new_socket(libc::AF_UNIX, libc::SOCK_STREAM)?; in bind()
22 let sockaddr = mem::MaybeUninit::<libc::sockaddr_un>::zeroed(); in accept()
24 // This is safe to assume because a `libc::sockaddr_un` filled with `0` in accept()
28 // `libc::AF_UNSPEC`. in accept()
34 sockaddr.sun_family = libc::AF_UNIX as libc::sa_family_t; in accept()
35 let mut socklen = mem::size_of_val(&sockaddr) as libc::socklen_t; in accept()
47 let flags = libc::SOCK_NONBLOCK | libc::SOCK_CLOEXEC; in accept()
50 &mut sockaddr as *mut libc::sockaddr_un as *mut libc::sockaddr, in accept()
66 &mut sockaddr as *mut libc::sockaddr_un as *mut libc::sockaddr, in accept()
[all …]
Dmod.rs10 pub(in crate::sys) fn path_offset(sockaddr: &libc::sockaddr_un) -> usize { in path_offset()
27 …pub(in crate::sys) fn socket_addr(path: &Path) -> io::Result<(libc::sockaddr_un, libc::socklen_t)>…
28 let sockaddr = mem::MaybeUninit::<libc::sockaddr_un>::zeroed();
30 // This is safe to assume because a `libc::sockaddr_un` filled with `0`
34 // `libc::AF_UNSPEC`.
40 sockaddr.sun_family = libc::AF_UNIX as libc::sa_family_t;
48 "path must be no longer than libc::sockaddr_un.sun_path",
54 "path must be shorter than libc::sockaddr_un.sun_path",
61 *dst = *src as libc::c_char;
74 Ok((sockaddr, socklen as libc::socklen_t))
[all …]
/external/bcc/tools/
Dtplist_example.txt9 (such as libc) and executables (such as node) and provide static tracing
44 $ tplist -l c # list probes in libc
45 /lib64/libc.so.6 libc:setjmp
46 /lib64/libc.so.6 libc:longjmp
47 /lib64/libc.so.6 libc:longjmp_target
48 /lib64/libc.so.6 libc:memory_arena_reuse_free_list
49 /lib64/libc.so.6 libc:memory_heap_new
97 libc:memory_malloc_retry [sema 0x0]
98 location #0 /lib64/libc.so.6 0x835c0
100 location #1 /lib64/libc.so.6 0x83778
[all …]

12345678910>>...132