/bionic/ |
D | TEST_MAPPING | 4 "name": "bionic-unit-tests" 7 "name": "bionic-unit-tests-static" 10 "name": "linker-unit-tests" 13 "name": "CtsBionicTestCases" 16 "name": "CtsGwpAsanTestCases" 19 "name": "CtsTaggingHostTestCases" 22 "name": "debuggerd_test" 25 "name": "fdtrack_test" 28 "name": "gwp_asan_unittest" 31 "name": "malloc_debug_unit_tests" [all …]
|
/bionic/benchmarks/linker_relocation/gen/ |
D | Android.bp | 7 name: "linker_reloc_bench_all_libs", 182 name: "linker_reloc_bench_main", 253 name: "liblinker_reloc_bench_000", 320 name: "liblinker_reloc_bench_001", 336 name: "liblinker_reloc_bench_002", 358 name: "liblinker_reloc_bench_003", 367 name: "liblinker_reloc_bench_004", 376 name: "liblinker_reloc_bench_005", 388 name: "liblinker_reloc_bench_006", 398 name: "liblinker_reloc_bench_007", [all …]
|
/bionic/libc/private/ |
D | bionic_ifuncs.h | 45 #define DEFINE_IFUNC_FOR(name) \ argument 46 name##_func name __attribute__((ifunc(#name "_resolver"))); \ 49 name##_func* name##_resolver IFUNC_ARGS 51 #define DECLARE_FUNC(type, name) \ argument 53 type name 55 #define RETURN_FUNC(type, name) { \ argument 56 DECLARE_FUNC(type, name); \ 57 return name; \
|
D | thread_private.h | 18 #define __MUTEX_NAME(name) __CONCAT(__libc_mutex_,name) argument 19 #define _THREAD_PRIVATE_MUTEX(name) static pthread_mutex_t __MUTEX_NAME(name) = PTHREAD_MUTEX_INITI… argument 20 #define _THREAD_PRIVATE_MUTEX_LOCK(name) pthread_mutex_lock(&__MUTEX_NAME(name)) argument 21 #define _THREAD_PRIVATE_MUTEX_UNLOCK(name) pthread_mutex_unlock(&__MUTEX_NAME(name)) argument
|
/bionic/libc/bionic/ |
D | exec.cpp | 52 static int __execl(const char* name, const char* argv0, va_list ap) { in __execl() argument 75 return (variant == ExecLP) ? execvp(name, argv) : execve(name, argv, argp); in __execl() 78 int execl(const char* name, const char* arg, ...) { in execl() argument 81 int result = __execl<ExecL>(name, arg, ap); in execl() 86 int execle(const char* name, const char* arg, ...) { in execle() argument 89 int result = __execl<ExecLE>(name, arg, ap); in execle() 94 int execlp(const char* name, const char* arg, ...) { in execlp() argument 97 int result = __execl<ExecLP>(name, arg, ap); in execlp() 102 int execv(const char* name, char* const* argv) { in execv() argument 103 return execve(name, argv, environ); in execv() [all …]
|
D | system_property_api.cpp | 68 const prop_info* __system_property_find(const char* name) { in __system_property_find() argument 69 return system_properties.Find(name); in __system_property_find() 73 int __system_property_read(const prop_info* pi, char* name, char* value) { in __system_property_read() argument 74 return system_properties.Read(pi, name, value); in __system_property_read() 79 void (*callback)(void* cookie, const char* name, in __system_property_read_callback() argument 86 int __system_property_get(const char* name, char* value) { in __system_property_get() argument 87 return system_properties.Get(name, value); in __system_property_get() 96 int __system_property_add(const char* name, unsigned int namelen, const char* value, in __system_property_add() argument 98 return system_properties.Add(name, namelen, value, valuelen); in __system_property_add()
|
D | grp_pwd_file.cpp | 97 const char* name() const { in name() function 116 if (name() == nullptr || dir() == nullptr || shell() == nullptr) { in ToPasswdState() 133 CopyFieldToString(passwd_state->name_buffer_, name(), sizeof(passwd_state->name_buffer_)); in ToPasswdState() 156 const char* name() const { in name() function 166 if (name() == nullptr || gid() == nullptr) { in ToGroupState() 177 CopyFieldToString(group_state->group_name_buffer_, name(), in ToGroupState() 276 char name[kGrpPwdBufferSize]; in Find() local 277 CopyFieldToString(name, line->fields[0], sizeof(name)); in Find() 280 name, filename_, required_prefix_); in Find() 304 bool MmapFile::FindByName(const char* name, Line* line) { in FindByName() argument [all …]
|
/bionic/linker/ |
D | linker_note_gnu_property.cpp | 43 const ElfW(Addr) load_bias, const char* name) { in GnuPropertySection() argument 45 auto note_gnu_property = FindSegment(phdr, phdr_count, load_bias, name); in GnuPropertySection() 47 if (note_gnu_property && SanityCheck(note_gnu_property, name)) { in GnuPropertySection() 49 Parse(note_gnu_property, name); in GnuPropertySection() 56 const char* name) const { in ElfW() 65 TRACE("\"%s\" PT_GNU_PROPERTY: found at segment index %zu", name, i); in ElfW() 72 name, static_cast<size_t>(phdr[i].p_memsz), sizeof(ElfW(NhdrGNUProperty))); in ElfW() 84 name, static_cast<size_t>(phdr[i].p_memsz), in ElfW() 93 TRACE("\"%s\" PT_GNU_PROPERTY: not found", name); in ElfW() 98 const char* name) const { in SanityCheck() [all …]
|
D | linker_translate_path.cpp | 34 #define APEX_LIB(apex, name) \ argument 35 { "/system/lib64/" name, "/apex/" apex "/lib64/" name } 37 #define APEX_LIB(apex, name) \ argument 38 { "/system/lib/" name, "/apex/" apex "/lib/" name } 50 bool translateSystemPathToApexPath(const char* name, std::string* out_name_to_apex) { in translateSystemPathToApexPath() argument 56 if (name == nullptr) { in translateSystemPathToApexPath() 60 auto comparator = [name](auto p) { return strcmp(name, p[0]) == 0; }; in translateSystemPathToApexPath()
|
D | linker_config.cpp | 73 int next_token(std::string* name, std::string* value, std::string* error_msg) { in next_token() argument 84 *name = line.substr(1, line.size() - 2); in next_token() 91 *name = android::base::Trim(line.substr(0, found_assign)); in next_token() 97 *name = android::base::Trim(line.substr(0, found_append)); in next_token() 200 std::string name; in parse_config_file() local 204 int result = cp.next_token(&name, &value, &error); in parse_config_file() 218 if (!android::base::StartsWith(name, "dir.")) { in parse_config_file() 223 name.c_str()); in parse_config_file() 266 section_name = name.substr(4); in parse_config_file() 276 std::string name; in parse_config_file() local [all …]
|
D | linker_gnu_hash.h | 46 static std::pair<uint32_t, uint32_t> calculate_gnu_hash_simple(const char* name) { in calculate_gnu_hash_simple() argument 48 const uint8_t* name_bytes = reinterpret_cast<const uint8_t*>(name); in calculate_gnu_hash_simple() 53 return { h, reinterpret_cast<const char*>(name_bytes) - name }; in calculate_gnu_hash_simple() 56 static inline std::pair<uint32_t, uint32_t> calculate_gnu_hash(const char* name) { in calculate_gnu_hash() argument 58 return calculate_gnu_hash_neon(name); in calculate_gnu_hash() 60 return calculate_gnu_hash_simple(name); in calculate_gnu_hash()
|
/bionic/tests/libs/ |
D | Android.bp | 22 name: "bionic_testlib_defaults", 53 name: "libtest_elftls_shared_var", 60 name: "libtest_elftls_shared_var_ie", 68 name: "libtest_elftls_tprel", 75 name: "elftls_dlopen_ie_error_helper", 82 name: "libtest_elftls_dynamic", 90 name: "thread_exit_cb_helper", 97 name: "tls_properties_helper", 106 name: "libtest_elftls_dynamic_filler_1", 116 name: "libtest_elftls_dynamic_filler_2", [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | setenv.c | 92 setenv(const char *name, const char *value, int rewrite) in setenv() argument 98 if (!name || !*name) { in setenv() 102 for (np = name; *np && *np != '='; ++np) in setenv() 110 if ((C = __findenv(name, (int)(np - name), &offset)) != NULL) { in setenv() 122 while (__findenv(name, (int)(np - name), &tmpoff)) { in setenv() 145 malloc((int)(np - name) + l_value + 2))) in setenv() 147 for (C = environ[offset]; (*C = *name++) && *C != '='; ++C) in setenv() 160 unsetenv(const char *name) in unsetenv() argument 166 if (!name || !*name) { in unsetenv() 170 for (np = name; *np && *np != '='; ++np) in unsetenv() [all …]
|
D | getenv.c | 46 __findenv(const char *name, int len, int *offset) in __findenv() argument 52 if (name == NULL || environ == NULL) in __findenv() 55 for (np = name, i = len; i && *cp; i--) in __findenv() 71 getenv(const char *name) in getenv() argument 76 for (np = name; *np && *np != '='; ++np) in getenv() 78 return (__findenv(name, (int)(np - name), &offset)); in getenv()
|
/bionic/libc/system_properties/ |
D | system_properties.cpp | 125 const prop_info* SystemProperties::Find(const char* name) { in Find() argument 130 prop_area* pa = contexts_->GetPropAreaForName(name); in Find() 132 async_safe_format_log(ANDROID_LOG_WARN, "libc", "Access denied finding property \"%s\"", name); in Find() 136 return pa->find(name); in Find() 139 static bool is_read_only(const char* name) { in is_read_only() argument 140 return strncmp(name, "ro.", 3) == 0; in is_read_only() 153 prop_area* pa = contexts_->GetPropAreaForName(pi->name); in ReadMutablePropertyValue() 174 int SystemProperties::Read(const prop_info* pi, char* name, char* value) { in Read() argument 176 if (name != nullptr) { in Read() 177 size_t namelen = strlcpy(name, pi->name, PROP_NAME_MAX); in Read() [all …]
|
D | prop_info.cpp | 38 prop_info::prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen) { in prop_info() argument 39 memcpy(this->name, name, namelen); in prop_info() 40 this->name[namelen] = '\0'; in prop_info() 46 prop_info::prop_info(const char* name, uint32_t namelen, uint32_t long_offset) { in prop_info() argument 47 memcpy(this->name, name, namelen); in prop_info() 48 this->name[namelen] = '\0'; in prop_info()
|
/bionic/libc/kernel/uapi/sound/ |
D | tlv.h | 35 #define SNDRV_CTL_TLVD_DECLARE_CONTAINER(name,...) unsigned int name[] = { SNDRV_CTL_TLVD_CONTAINER… argument 39 #define SNDRV_CTL_TLVD_DECLARE_DB_SCALE(name,min,step,mute) unsigned int name[] = { SNDRV_CTL_TLVD_… argument 44 #define SNDRV_CTL_TLVD_DECLARE_DB_MINMAX(name,min_dB,max_dB) unsigned int name[] = { SNDRV_CTL_TLVD… argument 45 #define SNDRV_CTL_TLVD_DECLARE_DB_MINMAX_MUTE(name,min_dB,max_dB) unsigned int name[] = { SNDRV_CTL… argument 49 #define SNDRV_CTL_TLVD_DECLARE_DB_LINEAR(name,min_dB,max_dB) unsigned int name[] = { SNDRV_CTL_TLVD… argument 53 #define SNDRV_CTL_TLVD_DECLARE_DB_RANGE(name,...) unsigned int name[] = { SNDRV_CTL_TLVD_DB_RANGE_I… argument
|
/bionic/libc/kernel/uapi/asm-riscv/asm/ |
D | kvm.h | 92 #define KVM_REG_RISCV_CONFIG_REG(name) (offsetof(struct kvm_riscv_config, name) / sizeof(unsigned l… argument 94 #define KVM_REG_RISCV_CORE_REG(name) (offsetof(struct kvm_riscv_core, name) / sizeof(unsigned long)) argument 96 #define KVM_REG_RISCV_CSR_REG(name) (offsetof(struct kvm_riscv_csr, name) / sizeof(unsigned long)) argument 98 #define KVM_REG_RISCV_TIMER_REG(name) (offsetof(struct kvm_riscv_timer, name) / sizeof(__u64)) argument 100 #define KVM_REG_RISCV_FP_F_REG(name) (offsetof(struct __riscv_f_ext_state, name) / sizeof(__u32)) argument 102 #define KVM_REG_RISCV_FP_D_REG(name) (offsetof(struct __riscv_d_ext_state, name) / sizeof(__u64)) argument
|
/bionic/libc/tools/ |
D | genseccomp.py | 20 def __init__(self, name, value): argument 21 self.names = [name] 28 def add(self, name, value): argument 32 self.names.append(name) 50 name = match.group(1) 51 priorities.append(name) 75 for name in priorities: 76 if name in syscall_dict.keys(): 77 priority_syscalls.append((name, syscall_dict[name])) 107 name = m.group(1) [all …]
|
/bionic/tests/ |
D | system_properties_test.cpp | 68 char name[PROP_NAME_MAX]; in hierarchical_test_callback() local 71 __system_property_read(pi, name, value); in hierarchical_test_callback() 75 ASSERT_EQ(3, sscanf(name, "property_%d.%d.%d", &name_i, &name_j, &name_k)); in hierarchical_test_callback() 102 char name[PROP_NAME_MAX + 11]; in TEST() local 103 name[0] = 'p'; in TEST() 104 for (size_t i = 1; i < sizeof(name); i++) { in TEST() 105 name[i] = 'x'; in TEST() 108 name[sizeof(name)-1] = '\0'; in TEST() 109 ASSERT_EQ(0, system_properties.Add(name, strlen(name), "value", 5)); in TEST() 121 ASSERT_EQ(5, system_properties.Get(name, propvalue)); in TEST() [all …]
|
D | struct_layout_test.cpp | 28 #define CHECK_SIZE(name, size) \ in tests() argument 29 check_size(#name, sizeof(name), size); in tests() 30 #define CHECK_OFFSET(name, field, offset) \ in tests() argument 31 check_offset(#name, #field, offsetof(name, field), offset); in tests() 128 auto check_size = [&](const char* name, size_t size, size_t expected_size) { in TEST() argument 129 EXPECT_EQ(expected_size, size) << "sizeof(" << name << ")"; in TEST() 134 auto check_offset = [&](const char* name, const char* field, size_t offset, in TEST() 136 EXPECT_EQ(expected_offset, offset) << "offsetof(" << name << ", " << field << ")"; in TEST() 148 auto print_size = [&](const char* name, size_t size, size_t expected_size) { in TEST() argument 150 printf(" CHECK_SIZE(%s, %zu);\n", name, size); in TEST() [all …]
|
/bionic/libc/dns/resolv/ |
D | res_query.c | 129 const char *name, /* domain name */ in res_nquery() argument 146 printf(";; res_query(%s, %d, %d)\n", name, class, type); in res_nquery() 149 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, in res_nquery() 223 const char *name, /* domain name */ in res_nsearch() argument 241 for (cp = name; *cp != '\0'; cp++) in res_nsearch() 244 if (cp > name && *--cp == '.') in res_nsearch() 248 if (!dots && (cp = res_hostalias(statp, name, tmp, sizeof tmp))!= NULL) in res_nsearch() 258 ret = res_nquerydomain(statp, name, NULL, class, type, in res_nsearch() 294 ret = res_nquerydomain(statp, name, *domain, in res_nsearch() 351 ret = res_nquerydomain(statp, name, NULL, class, type, in res_nsearch() [all …]
|
/bionic/libc/system_properties/include/system_properties/ |
D | prop_area.h | 80 char name[0]; member 82 prop_bt(const char* name, const uint32_t name_length) { in prop_bt() 84 memcpy(this->name, name, name_length); in prop_bt() 85 this->name[name_length] = '\0'; in prop_bt() 125 const prop_info* find(const char* name); 126 bool add(const char* name, unsigned int namelen, const char* value, unsigned int valuelen); 147 prop_bt* new_prop_bt(const char* name, uint32_t namelen, uint_least32_t* const off); 148 prop_info* new_prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen, 156 …prop_bt* find_prop_bt(prop_bt* const bt, const char* name, uint32_t namelen, bool alloc_if_needed); 158 const prop_info* find_property(prop_bt* const trie, const char* name, uint32_t namelen,
|
/bionic/libc/arch-x86_64/string/ |
D | sse2-strcat-slm.S | 48 # define ENTRY(name) \ argument 49 .type name, @function; \ 50 .globl name; \ 52 name: \ 57 # define END(name) \ argument 59 .size name, .-name
|
/bionic/benchmarks/spawn/include/ |
D | spawn_benchmark.h | 36 static inline std::string test_program(const char* name) { in test_program() argument 38 return android::base::GetExecutableDirectory() + "/" + name + "64"; in test_program() 40 return android::base::GetExecutableDirectory() + "/" + name + "32"; in test_program() 44 #define SPAWN_BENCHMARK(name, ...) \ argument 45 BENCHMARK_CAPTURE(BM_spawn_test, name, (const char*[]) { __VA_ARGS__, nullptr }) \
|