/bionic/benchmarks/linker_relocation/gen/ |
D | Android.bp | 3 name: "linker_reloc_bench_all_libs", 178 name: "linker_reloc_bench_main", 249 name: "liblinker_reloc_bench_000", 316 name: "liblinker_reloc_bench_001", 332 name: "liblinker_reloc_bench_002", 354 name: "liblinker_reloc_bench_003", 363 name: "liblinker_reloc_bench_004", 372 name: "liblinker_reloc_bench_005", 384 name: "liblinker_reloc_bench_006", 394 name: "liblinker_reloc_bench_007", [all …]
|
/bionic/tests/libs/ |
D | Android.bp | 18 name: "bionic_testlib_defaults", 46 name: "libtest_elftls_shared_var", 53 name: "libtest_elftls_shared_var_ie", 61 name: "libtest_elftls_tprel", 68 name: "elftls_dlopen_ie_error_helper", 75 name: "libtest_elftls_dynamic", 83 name: "libtest_elftls_dynamic_filler_1", 93 name: "libtest_elftls_dynamic_filler_2", 103 name: "libtest_elftls_dynamic_filler_3", 116 name: "libgnu-hash-table-library", [all …]
|
/bionic/libc/bionic/ |
D | exec.cpp | 50 static int __execl(const char* name, const char* argv0, va_list ap) { in __execl() argument 73 return (variant == ExecLP) ? execvp(name, argv) : execve(name, argv, argp); in __execl() 76 int execl(const char* name, const char* arg, ...) { in execl() argument 79 int result = __execl<ExecL>(name, arg, ap); in execl() 84 int execle(const char* name, const char* arg, ...) { in execle() argument 87 int result = __execl<ExecLE>(name, arg, ap); in execle() 92 int execlp(const char* name, const char* arg, ...) { in execlp() argument 95 int result = __execl<ExecLP>(name, arg, ap); in execlp() 100 int execv(const char* name, char* const* argv) { in execv() argument 101 return execve(name, argv, environ); in execv() [all …]
|
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() 275 char name[kGrpPwdBufferSize]; in Find() local 276 CopyFieldToString(name, line->fields[0], sizeof(name)); in Find() 279 name, filename_, required_prefix_); in Find() 302 bool MmapFile::FindByName(const char* name, Line* line) { in FindByName() argument [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 | libc_init_common.cpp | 188 static const char* env_match(const char* envstr, const char* name) { in env_match() argument 191 while (envstr[i] == name[i] && name[i] != '\0') { in env_match() 195 if (name[i] == '\0' && envstr[i] == '=') { in env_match() 202 static bool __is_valid_environment_variable(const char* name) { in __is_valid_environment_variable() argument 207 if (name == nullptr) { in __is_valid_environment_variable() 215 if (name[pos] == '\0') { in __is_valid_environment_variable() 218 if (name[pos] == '=' && first_equal_pos < 0) { in __is_valid_environment_variable() 237 static bool __is_unsafe_environment_variable(const char* name) { in __is_unsafe_environment_variable() argument 278 if (env_match(name, unsafe_variable_name) != nullptr) { in __is_unsafe_environment_variable()
|
/bionic/libc/private/ |
D | bionic_ifuncs.h | 43 #define DEFINE_IFUNC_FOR(name) \ argument 44 name##_func name __attribute__((ifunc(#name "_resolver"))); \ 46 name##_func* name##_resolver IFUNC_ARGS 48 #define DECLARE_FUNC(type, name) \ argument 50 type name 52 #define RETURN_FUNC(type, name) { \ argument 53 DECLARE_FUNC(type, name); \ 54 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/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_ERROR, "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()
|
D | prop_area.cpp | 157 prop_bt* prop_area::new_prop_bt(const char* name, uint32_t namelen, uint_least32_t* const off) { in new_prop_bt() argument 161 prop_bt* bt = new (p) prop_bt(name, namelen); in new_prop_bt() 169 prop_info* prop_area::new_prop_info(const char* name, uint32_t namelen, const char* value, in new_prop_info() argument 189 info = new (p) prop_info(name, namelen, long_value_offset); in new_prop_info() 191 info = new (p) prop_info(name, namelen, value, valuelen); in new_prop_info() 226 prop_bt* prop_area::find_prop_bt(prop_bt* const bt, const char* name, uint32_t namelen, in find_prop_bt() argument 234 const int ret = cmp_prop_name(name, namelen, current->name, current->namelen); in find_prop_bt() 249 prop_bt* new_bt = new_prop_bt(name, namelen, &new_offset); in find_prop_bt() 265 prop_bt* new_bt = new_prop_bt(name, namelen, &new_offset); in find_prop_bt() 275 const prop_info* prop_area::find_property(prop_bt* const trie, const char* name, uint32_t namelen, in find_property() argument [all …]
|
/bionic/linker/ |
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_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_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/libc/upstream-openbsd/lib/libc/stdlib/ |
D | setenv.c | 91 setenv(const char *name, const char *value, int rewrite) in setenv() argument 97 if (!name || !*name) { in setenv() 101 for (np = name; *np && *np != '='; ++np) in setenv() 109 if ((C = __findenv(name, (int)(np - name), &offset)) != NULL) { in setenv() 121 while (__findenv(name, (int)(np - name), &tmpoff)) { in setenv() 144 malloc((int)(np - name) + l_value + 2))) in setenv() 146 for (C = environ[offset]; (*C = *name++) && *C != '='; ++C) in setenv() 159 unsetenv(const char *name) in unsetenv() argument 165 if (!name || !*name) { in unsetenv() 169 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/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 = m.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])) 99 name = m.group(1) [all …]
|
/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/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 …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | tempnam.c | 46 char *f, *name; in tempnam() local 48 if (!(name = malloc(PATH_MAX))) in tempnam() 55 len = snprintf(name, PATH_MAX, "%s%s%sXXXXXXXXXX", f, in tempnam() 61 if ((f = _mktemp(name))) in tempnam() 67 len = snprintf(name, PATH_MAX, "%s%s%sXXXXXXXXXX", f, in tempnam() 73 if ((f = _mktemp(name))) in tempnam() 78 len = snprintf(name, PATH_MAX, "%s%sXXXXXXXXX", f, pfx); in tempnam() 83 if ((f = _mktemp(name))) in tempnam() 87 len = snprintf(name, PATH_MAX, "%s%sXXXXXXXXX", f, pfx); in tempnam() 92 if ((f = _mktemp(name))) in tempnam() [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/ |
D | TEST_MAPPING | 4 "name": "CtsBionicTestCases" 7 "name": "fdtrack_test" 10 "name": "gwp_asan_unittest" 13 "name": "malloc_debug_system_tests" 16 "name": "malloc_hooks_system_tests" 19 "name": "memunreachable_unit_test"
|
/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/libc/tzcode/ |
D | localtime.c | 376 tzloadbody(char const *name, struct state *sp, bool doextend, in tzloadbody() argument 392 if (! name) { in tzloadbody() 393 name = TZDEFAULT; in tzloadbody() 394 if (! name) in tzloadbody() 401 fid = __bionic_open_tzdata(name, &entry_length); in tzloadbody() 403 if (name[0] == ':') in tzloadbody() 404 ++name; in tzloadbody() 405 doaccess = name[0] == '/'; in tzloadbody() 410 if (sizeof lsp->fullname - 1 <= strlen(p) + strlen(name)) in tzloadbody() 414 strcat(fullname, name); in tzloadbody() [all …]
|