/external/crosvm/sys_util/src/ |
D | net.rs | 23 let addr = 0 as *const libc::sockaddr_un; in sun_path_offset() constant 30 fn sockaddr_un<P: AsRef<Path>>(path: P) -> io::Result<(libc::sockaddr_un, libc::socklen_t)> { in sockaddr_un() 31 let mut addr = libc::sockaddr_un { in sockaddr_un() 32 sun_family: libc::AF_UNIX as libc::sa_family_t, in sockaddr_un() 56 *dst = *src as libc::c_char; in sockaddr_un() 66 Ok((addr, len as libc::socklen_t)) in sockaddr_un() 88 match libc::socket(libc::AF_UNIX, libc::SOCK_SEQPACKET, 0) { in connect() 98 let ret = libc::connect(fd, &addr as *const _ as *const _, len); in connect() 113 let ret = libc::socketpair( in pair() 114 libc::AF_UNIX, in pair() [all …]
|
D | lib.rs | 81 use libc::{ 114 unsafe { libc::geteuid() } in geteuid() 121 unsafe { libc::getegid() } in getegid() 128 let ret = unsafe { libc::chown(path.as_ptr(), uid, gid) }; in chown() 149 FlockOperation::LockShared => libc::LOCK_SH, in flock() 150 FlockOperation::LockExclusive => libc::LOCK_EX, in flock() 151 FlockOperation::Unlock => libc::LOCK_UN, in flock() 155 operation |= libc::LOCK_NB; in flock() 159 let ret = unsafe { libc::flock(file.as_raw_fd(), operation) }; in flock() 182 let offset = if offset > libc::off64_t::max_value() as u64 { in fallocate() [all …]
|
D | priority.rs | 9 let rt_limit_arg = libc::rlimit { in set_rt_prio_limit() 10 rlim_cur: limit as libc::rlim_t, in set_rt_prio_limit() 11 rlim_max: limit as libc::rlim_t, in set_rt_prio_limit() 14 let res = unsafe { libc::setrlimit(libc::RLIMIT_RTPRIO, &rt_limit_arg) }; in set_rt_prio_limit() 25 let sched_param = libc::sched_param { in set_rt_round_robin() 31 unsafe { libc::pthread_setschedparam(libc::pthread_self(), libc::SCHED_RR, &sched_param) }; in set_rt_round_robin()
|
D | mmap.rs | 16 use libc::{self, c_int, c_void, read, write}; 76 Protection(libc::PROT_NONE) in none() 82 Protection(libc::PROT_READ | libc::PROT_WRITE) in read_write() 88 Protection(libc::PROT_READ) in read() 94 Protection(self.0 | libc::PROT_READ) in set_read() 100 Protection(self.0 | libc::PROT_WRITE) in set_write() 152 libc::MAP_ANONYMOUS | libc::MAP_SHARED | libc::MAP_NORESERVE, in new_protection() 191 libc::MAP_SHARED, in from_fd_offset_protection() 213 libc::MAP_ANONYMOUS | libc::MAP_SHARED | libc::MAP_NORESERVE, in new_protection_fixed() 239 libc::MAP_SHARED | libc::MAP_NORESERVE, in from_fd_offset_protection_fixed() [all …]
|
D | fork.rs | 11 use libc::{c_long, pid_t, syscall, CLONE_NEWPID, CLONE_NEWUSER, SIGCHLD}; 100 use libc; 102 fn wait_process(pid: libc::pid_t) -> crate::Result<libc::c_int> { in wait_process() 103 let mut status: libc::c_int = 0; in wait_process() 105 if libc::waitpid(pid, &mut status as *mut libc::c_int, 0) < 0 { in wait_process() 108 Ok(libc::WEXITSTATUS(status)) in wait_process()
|
/external/crosvm/p9/src/ |
D | server.rs | 5 use libc; 43 (P9_NOCTTY, libc::O_NOCTTY), 44 (P9_NONBLOCK, libc::O_NONBLOCK), 45 (P9_DSYNC, libc::O_DSYNC), 47 (P9_DIRECT, libc::O_DIRECT), 48 (P9_LARGEFILE, libc::O_LARGEFILE), 49 (P9_DIRECTORY, libc::O_DIRECTORY), 50 (P9_NOFOLLOW, libc::O_NOFOLLOW), 51 (P9_NOATIME, libc::O_NOATIME), 52 (P9_SYNC, libc::O_SYNC), [all …]
|
/external/libcxx/docs/ |
D | BuildingLibcxx.rst | 4 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 …]
|
D | UsingLibcxx.rst | 2 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 …]
|
D | index.rst | 4 "libc++" C++ Standard Library 10 libc++ is a new implementation of the C++ standard library, targeting C++11 and 31 Getting Started with libc++ 60 libc++. 63 of libc++ cannot use. libstdc++ 4.2 (the last GPL2 version) could be 83 libc++ is known to work on the following platforms, using gcc and 91 Mac OS X i386, x86_64 Clang, GCC libc++abi 92 FreeBSD 10+ i386, x86_64, ARM Clang, GCC libcxxrt, libc++abi 93 Linux i386, x86_64 Clang, GCC libc++abi 114 This list contains known issues with libc++ [all …]
|
/external/rust/crates/libc/ |
D | README.md | 3 libc - Raw FFI bindings to platforms' system libraries 6 `libc` provides all of the definitions necessary to easily interoperate with C 12 the crate root, so all items are accessible as `libc::foo`. The types and values 13 of all the exported APIs match the platform that libc is compiled for. 18 [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1291-promote-libc.md 26 libc = "0.2" 31 * `std`: by default `libc` links to the standard library. Disable this 32 feature remove this dependency and be able to use `libc` in `#![no_std]` 35 * `extra_traits`: all `struct`s implemented in `libc` are `Copy` and `Clone`. 62 [`ci/build.sh`](https://github.com/rust-lang/libc/blob/master/ci/build.sh) [all …]
|
D | Cargo.toml.orig | 2 name = "libc" 7 repository = "https://github.com/rust-lang/libc" 8 homepage = "https://github.com/rust-lang/libc" 9 documentation = "http://doc.rust-lang.org/libc" 10 keywords = ["libc", "ffi", "bindings", "operating", "system" ] 15 Raw FFI bindings to platform libraries like libc. 19 travis-ci = { repository = "rust-lang/libc" } 20 appveyor = { repository = "rust-lang/libc", project_name = "rust-lang-libs/libc" } 36 members = ["libc-test"]
|
D | Cargo.toml | 14 name = "libc" 19 description = "Raw FFI bindings to platform libraries like libc.\n" 20 homepage = "https://github.com/rust-lang/libc" 21 documentation = "http://doc.rust-lang.org/libc" 23 keywords = ["libc", "ffi", "bindings", "operating", "system"] 26 repository = "https://github.com/rust-lang/libc" 40 project_name = "rust-lang-libs/libc" 41 repository = "rust-lang/libc" 44 repository = "rust-lang/libc"
|
/external/autotest/client/site_tests/kernel_CryptoAPI/ |
D | kernel_CryptoAPI.py | 94 libc = ctypes.CDLL("libc.so.6", use_errno=True) 98 libc.socket.argtypes = [ ctypes.c_int, ctypes.c_int, ctypes.c_int ] 99 libc.bind.argtypes = [ ctypes.c_int, ctypes.c_void_p, ctypes.c_int ] 100 libc.send.argtypes = [ ctypes.c_int, ctypes.c_void_p, ctypes.c_size_t, 102 libc.recv.argtypes = [ ctypes.c_int, ctypes.c_void_p, ctypes.c_size_t, 105 sock = libc.socket(AF_ALG, SOCK_SEQPACKET, 0) 107 libc.perror("socket") 111 if libc.bind(sock, ctypes.addressof(alg), ctypes.sizeof(alg)) == -1: 112 libc.perror("bind") 115 fd = libc.accept(sock, None, 0) [all …]
|
/external/bcc/tools/ |
D | tplist_example.txt | 9 (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 …]
|
/external/libcxx/docs/DesignDocs/ |
D | ThreadingSupportAPI.rst | 12 to implement the threading parts of libc++, including ``<thread>`` and ``<mutex>``. 14 other. To address this libc++ wraps the underlying threading API in a new and 17 The ``<__threading_support>`` header is where libc++ defines its internal 24 In order to support vendors with custom threading API's libc++ allows the 36 libc++ can be compiled with its internal threading API delegating to an external 38 distribute a thread-agnostic libc++ library, where the users of the library are 39 expected to provide the implementation of the libc++ internal threading API. 42 ``<__external_threading>`` header, which declares the libc++ internal threading 45 The ``-DLIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY`` option allows building libc++ in 50 threading system. This option is only meant to be used by libc++ library [all …]
|
/external/libcxxabi/ |
D | CMakeLists.txt | 56 "Build libc++abi with an externalized threading API. 59 "Build libc++abi with an externalized threading library. 63 # programs to due undefined references to new/delete in libc++abi. Once this 66 "Build libc++abi with definitions for operator new/delete. Normally libc++ 68 option(LIBCXXABI_BUILD_32_BITS "Build 32 bit libc++abi." ${LLVM_BUILD_32_BITS}) 69 option(LIBCXXABI_INCLUDE_TESTS "Generate build targets for the libc++abi unit tests." ${LLVM_INCLUD… 72 option(LIBCXXABI_INSTALL_LIBRARY "Install the libc++abi library." ON) 76 set(LIBCXXABI_LIBCXX_LIBRARY_PATH "" CACHE PATH "The path to libc++ library.") 79 # the libc++abi that is being built. There are two problems with testing a 80 # static libc++abi. In the case of a standalone build, the tests will link the [all …]
|
/external/adhd/cras/client/libcras/src/ |
D | cras_shm.rs | 11 use libc; 38 pub unsafe fn new(fd: libc::c_int) -> Self { in new() 50 addr: *mut libc::c_void, 99 libc::PROT_READ | libc::PROT_WRITE, in new() 112 addr: addr.as_ptr() as *mut libc::c_void, in new() 459 libc::munmap(self.addr as *mut _, mem::size_of::<cras_audio_shm_header>()); in drop() 468 prot: libc::c_int, in cras_mmap_offset() 469 fd: libc::c_int, in cras_mmap_offset() 471 ) -> io::Result<*mut libc::c_void> { in cras_mmap_offset() 472 if offset > libc::off_t::max_value() as usize { in cras_mmap_offset() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/cmake/modules/ |
D | HandleLLVMStdlib.cmake | 1 # This CMake module is responsible for setting the standard library to libc++ 19 check_cxx_compiler_flag("-stdlib=libc++" CXX_COMPILER_SUPPORTS_STDLIB) 20 check_linker_flag("-stdlib=libc++" CXX_LINKER_SUPPORTS_STDLIB) 22 append("-stdlib=libc++" 26 message(WARNING "Can't specify libc++ with '-stdlib='") 29 message(WARNING "Not sure how to specify libc++ for this compiler")
|
/external/libcxx/ |
D | Android.bp | 18 name: "libc++ defaults", 55 name: "libc++_static", 56 defaults: ["libc++ defaults"], 100 "libc++abi", 113 name: "libc++", 129 whole_static_libs: ["libc++_static"], 134 unexported_symbols_list: "lib/libc++unexp.exp", 149 name: "libc++experimental", 150 defaults: ["libc++ defaults"], 157 name: "libc++fs", [all …]
|
/external/cpuinfo/src/arm/linux/ |
D | hwcap.c | 54 void* libc = NULL; in cpuinfo_arm_linux_hwcap_from_getauxval() 58 libc = dlopen("libc.so", RTLD_LAZY); in cpuinfo_arm_linux_hwcap_from_getauxval() 59 if (libc == NULL) { in cpuinfo_arm_linux_hwcap_from_getauxval() 64 getauxval = (getauxval_function_t) dlsym(libc, "getauxval"); in cpuinfo_arm_linux_hwcap_from_getauxval() 74 if (libc != NULL) { in cpuinfo_arm_linux_hwcap_from_getauxval() 75 dlclose(libc); in cpuinfo_arm_linux_hwcap_from_getauxval() 76 libc = NULL; in cpuinfo_arm_linux_hwcap_from_getauxval()
|
/external/e2fsprogs/misc/ |
D | Android.bp | 28 system_shared_libs: ["libc", "libdl"], 102 stl: "libc++_static", 135 system_shared_libs: ["libc", "libdl"], 180 system_shared_libs: ["libc", "libdl"], 196 system_shared_libs: ["libc", "libdl"], 219 system_shared_libs: ["libc", "libdl"], 244 system_shared_libs: ["libc", "libdl"], 260 system_shared_libs: ["libc", "libdl"], 284 system_shared_libs: ["libc", "libdl"], 299 system_shared_libs: ["libc", "libdl"], [all …]
|
/external/strace/tests-m32/ |
D | sigaction.c | 109 sigset_t libc[1]; in main() member 148 sigemptyset(mask.libc); in main() 149 sigaddset(mask.libc, SIGHUP); in main() 150 sigaddset(mask.libc, SIGINT); in main() 161 sigemptyset(mask.libc); in main() 162 sigaddset(mask.libc, SIGQUIT); in main() 163 sigaddset(mask.libc, SIGTERM); in main() 176 sigdelset(mask.libc, SIGHUP); in main()
|
/external/strace/tests/ |
D | sigaction.c | 109 sigset_t libc[1]; in main() member 148 sigemptyset(mask.libc); in main() 149 sigaddset(mask.libc, SIGHUP); in main() 150 sigaddset(mask.libc, SIGINT); in main() 161 sigemptyset(mask.libc); in main() 162 sigaddset(mask.libc, SIGQUIT); in main() 163 sigaddset(mask.libc, SIGTERM); in main() 176 sigdelset(mask.libc, SIGHUP); in main()
|
/external/strace/tests-mx32/ |
D | sigaction.c | 109 sigset_t libc[1]; in main() member 148 sigemptyset(mask.libc); in main() 149 sigaddset(mask.libc, SIGHUP); in main() 150 sigaddset(mask.libc, SIGINT); in main() 161 sigemptyset(mask.libc); in main() 162 sigaddset(mask.libc, SIGQUIT); in main() 163 sigaddset(mask.libc, SIGTERM); in main() 176 sigdelset(mask.libc, SIGHUP); in main()
|
/external/bcc/tests/python/ |
D | test_uprobes.py | 36 libc = ctypes.CDLL("libc.so.6") 37 libc.malloc_stats.restype = None 38 libc.malloc_stats.argtypes = [] 39 libc.malloc_stats() 84 libc = ctypes.CDLL("libc.so.6", use_errno=True) 106 if libc.unshare(0x00020000) == -1: 111 if libc.mount(None, b"/", None, (1<<14)|(1<<18) , None) == -1: 115 if libc.mount(b"tmpfs", b"/tmp", b"tmpfs", 0, None) == -1:
|