Home
last modified time | relevance | path

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

12345678910>>...169

/external/rust/crates/nix/src/
Derrno.rs16 use libc::{c_int, c_void};
25 unsafe { libc::__error() }
29 unsafe { libc::__errno() }
37 unsafe { libc::__errno_location() }
41 unsafe { libc::___errno() }
45 unsafe { libc::_errnop() }
49 unsafe { libc::_Errno() }
169 impl ErrnoSentinel for libc::sighandler_t {
171 libc::SIG_ERR in sentinel()
842 EPERM = libc::EPERM,
[all …]
/external/rust/crates/rustix/src/backend/libc/
Dc.rs1 //! Libc and supplemental types and constants.
5 // Import everything from libc, but we'll add some stuff and override some
7 pub(crate) use libc::*;
87 pub(crate) const MSG_DONTWAIT: c_int = libc::MSG_NONBLOCK;
89 // TODO: Remove once https://github.com/rust-lang/libc/pull/3377 is merged and released.
96 // difference, but we still need to manually import it since `libc` doesn't
111 pub(super) use libc::_Vx_ticks64_t as _Vx_ticks_t;
113 pub(super) use libc::fallocate64 as fallocate;
116 pub(super) use libc::open64 as open;
123 pub(super) use libc::posix_fallocate64 as posix_fallocate;
[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/cronet/buildtools/third_party/libc++/
DBUILD.gn9 # Used by libc++ and libc++abi.
10 # See //build/config/c++:runtime_library for the config used by users of libc++.
15 # libc++ wants to redefine the macros WIN32_LEAN_AND_MEAN and _CRT_RAND_S
22 # upstream libc++ requires C++20 so we have to make an exception here.
34 # Explicitly set version macros to Windows 7 to prevent libc++ from adding a
50 target(_libcxx_target_type, "libc++") {
51 # Most things that need to depend on libc++ should do so via the implicit
52 # 'common_deps' dependency below. Some targets that package libc++.so may
53 # need to explicitly depend on libc++.
59 # This target packages libc++.so, so must have an explicit dependency on
[all …]
/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/bazelbuild-rules_rust/examples/crate_universe/vendor_local_pkgs/crates/num_cpus-1.16.0/
DBUILD.bazel83 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(not(windows))
86 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(not(windows))
89 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(not(windows))
92 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(not(windows))
95 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(not(windows))
98 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(not(windows))
101 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(not(windows))
104 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(not(windows))
107 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(not(windows))
110 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(not(windows))
[all …]
/external/bazelbuild-rules_rust/examples/crate_universe/vendor_local_manifests/crates/num_cpus-1.16.0/
DBUILD.bazel83 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(not(windows))
86 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(not(windows))
89 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(not(windows))
92 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(not(windows))
95 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(not(windows))
98 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(not(windows))
101 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(not(windows))
104 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(not(windows))
107 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(not(windows))
110 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(not(windows))
[all …]
/external/rust/crates/unsafe-libyaml/src/
Dapi.rs6 libc, yaml_break_t, yaml_document_t, yaml_emitter_state_t, yaml_emitter_t, yaml_encoding_t,
25 pub(crate) unsafe fn yaml_malloc(size: size_t) -> *mut libc::c_void { in yaml_malloc()
29 pub(crate) unsafe fn yaml_realloc(ptr: *mut libc::c_void, size: size_t) -> *mut libc::c_void { in yaml_realloc()
37 pub(crate) unsafe fn yaml_free(ptr: *mut libc::c_void) { in yaml_free()
47 strdup(str as *mut libc::c_char) as *mut yaml_char_t in yaml_strdup()
56 *start as *mut libc::c_void, in yaml_string_extend()
57 (((*end).c_offset_from(*start) as libc::c_long).force_mul(2_i64)) as size_t, in yaml_string_extend()
60 new_start.wrapping_offset((*end).c_offset_from(*start) as libc::c_long as isize) in yaml_string_extend()
61 as *mut libc::c_void, in yaml_string_extend()
63 (*end).c_offset_from(*start) as libc::c_ulong, in yaml_string_extend()
[all …]
Dreader.rs6 libc, yaml_parser_t, PointerExt, YAML_ANY_ENCODING, YAML_READER_ERROR, YAML_UTF16BE_ENCODING,
13 problem: *const libc::c_char, in yaml_parser_set_reader_error()
15 value: libc::c_int, in yaml_parser_set_reader_error()
25 const BOM_UTF8: *const libc::c_char = b"\xEF\xBB\xBF\0" as *const u8 as *const libc::c_char; constant
26 const BOM_UTF16LE: *const libc::c_char = b"\xFF\xFE\0" as *const u8 as *const libc::c_char; constant
27 const BOM_UTF16BE: *const libc::c_char = b"\xFE\xFF\0" as *const u8 as *const libc::c_char; constant
34 .c_offset_from((*parser).raw_buffer.pointer) as libc::c_long) in yaml_parser_determine_encoding()
44 .c_offset_from((*parser).raw_buffer.pointer) as libc::c_long in yaml_parser_determine_encoding()
47 (*parser).raw_buffer.pointer as *const libc::c_void, in yaml_parser_determine_encoding() constant
48 BOM_UTF16LE as *const libc::c_void, in yaml_parser_determine_encoding() constant
[all …]
/external/rust/crates/nix/src/sys/socket/
Dsockopt.rs7 use libc::{self, c_int, c_void, socklen_t};
32 /// (`libc::SOL_SOCKET`), *ip protocol* (libc::IPPROTO_IP), *tcp protocol* (`libc::IPPROTO_TCP`),
35 /// * `$flag:path`: a flag name to set. Some examples: `libc::SO_REUSEADDR`, `libc::TCP_NODELAY`,
36 /// `libc::IP_ADD_MEMBERSHIP` and others. Will be passed as the third argument (`option_name`)
50 let res = libc::setsockopt(
77 /// protocol* (libc::IPPROTO_IP), *tcp protocol* (`libc::IPPROTO_TCP`), and more. Please refer
80 /// * A flag to set. Some examples: `libc::SO_REUSEADDR`, `libc::TCP_NODELAY`,
81 /// `libc::SO_ORIGINAL_DST` and others. Will be passed as the third argument (`option_name`) to
95 let res = libc::getsockopt(
130 /// (`libc::SOL_SOCKET`), *ip protocol* (libc::IPPROTO_IP), *tcp protocol* (`libc::IPPROTO_TCP`),
[all …]
Daddr.rs32 /// Convert a std::net::Ipv4Addr into the libc form.
34 pub(crate) const fn ipv4addr_to_libc(addr: net::Ipv4Addr) -> libc::in_addr { in ipv4addr_to_libc()
35 libc::in_addr { in ipv4addr_to_libc()
40 /// Convert a std::net::Ipv6Addr into the libc form.
42 pub(crate) const fn ipv6addr_to_libc(addr: &net::Ipv6Addr) -> libc::in6_addr { in ipv6addr_to_libc()
43 libc::in6_addr { in ipv6addr_to_libc()
60 Unix = libc::AF_UNIX,
62 Inet = libc::AF_INET,
64 Inet6 = libc::AF_INET6,
67 Netlink = libc::AF_NETLINK,
[all …]
/external/crosvm/base/src/sys/linux/
Dsignal.rs16 use libc::c_int;
17 use libc::pthread_kill;
18 use libc::pthread_sigmask;
19 use libc::pthread_t;
20 use libc::sigaction;
21 use libc::sigaddset;
22 use libc::sigemptyset;
23 use libc::siginfo_t;
24 use libc::sigismember;
25 use libc::sigpending;
[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/nix/src/sys/
Dstatfs.rs20 pub type fsid_t = libc::__fsid_t;
23 pub type fsid_t = libc::fsid_t;
27 type type_of_statfs = libc::statfs64;
29 (fd: libc::c_int, buf: *mut type_of_statfs) -> libc::c_int
30 = libc::fstatfs64;
32 (path: *const libc::c_char, buf: *mut type_of_statfs) -> libc::c_int
33 = libc::statfs64;
35 type type_of_statfs = libc::statfs;
37 (fd: libc::c_int, buf: *mut type_of_statfs) -> libc::c_int
38 = libc::fstatfs;
[all …]
/external/bazelbuild-rules_rust/examples/crate_universe/vendor_local_manifests/crates/errno-0.3.8/
DBUILD.bazel86 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
89 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
92 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
95 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
98 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
104 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
107 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
110 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
113 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
116 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
[all …]
/external/bazelbuild-rules_rust/examples/crate_universe/vendor_local_pkgs/crates/socket2-0.4.10/
DBUILD.bazel86 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
89 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
92 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
95 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
98 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
104 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
107 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
110 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
113 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
116 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
[all …]
/external/bazelbuild-rules_rust/examples/crate_universe/vendor_local_pkgs/crates/socket2-0.5.5/
DBUILD.bazel86 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
89 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
92 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
95 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
98 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
104 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
107 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
110 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
113 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
116 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
[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 …]
/external/bazelbuild-rules_rust/examples/crate_universe/vendor_local_manifests/crates/socket2-0.5.5/
DBUILD.bazel86 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
89 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
92 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
95 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
98 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
104 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
107 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
110 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
113 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
116 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
[all …]
/external/bazelbuild-rules_rust/examples/crate_universe/vendor_local_pkgs/crates/mio-0.8.10/
DBUILD.bazel88 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
91 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
94 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
97 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
100 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
106 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
109 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
112 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
115 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
118 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
[all …]
/external/bazelbuild-rules_rust/examples/crate_universe/vendor_local_manifests/crates/mio-0.8.10/
DBUILD.bazel88 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
91 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
94 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
97 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
100 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
106 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
109 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
112 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
115 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
118 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
[all …]
/external/bazelbuild-rules_rust/examples/crate_universe/vendor_local_pkgs/crates/parking_lot_core-0.9.9/
DBUILD.bazel88 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
91 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
94 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
97 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
100 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
106 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
109 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
112 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
115 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
118 "//vendor_local_pkgs/crates/libc-0.2.153:libc", # cfg(unix)
[all …]
/external/bazelbuild-rules_rust/examples/crate_universe/vendor_local_manifests/crates/parking_lot_core-0.9.9/
DBUILD.bazel88 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
91 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
94 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
97 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
100 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
106 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
109 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
112 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
115 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
118 "//vendor_local_manifests/crates/libc-0.2.153:libc", # cfg(unix)
[all …]

12345678910>>...169