/bionic/libc/bionic/ |
D | exec.cpp | 46 static int __execl(const char* name, const char* argv0, ExecVariant variant, va_list ap) { in __execl() argument 69 return (variant == kIsExecLP) ? execvp(name, argv) : execve(name, argv, argp); in __execl() 72 int execl(const char* name, const char* arg, ...) { in execl() argument 75 return __execl(name, arg, kIsExecL, ap); in execl() 78 int execle(const char* name, const char* arg, ...) { in execle() argument 81 return __execl(name, arg, kIsExecLE, ap); in execle() 84 int execlp(const char* name, const char* arg, ...) { in execlp() argument 87 return __execl(name, arg, kIsExecLP, ap); in execlp() 90 int execv(const char* name, char* const* argv) { in execv() argument 91 return execve(name, argv, environ); in execv() [all …]
|
D | gethostname.cpp | 35 struct utsname name; in gethostname() local 36 if (uname(&name) == -1) { in gethostname() 40 size_t name_length = static_cast<size_t>(strlen(name.nodename) + 1); in gethostname() 46 memcpy(buf, name.nodename, name_length); in gethostname()
|
D | pathconf.cpp | 77 static long __pathconf(const struct statfs& s, int name) { in __pathconf() argument 78 switch (name) { in __pathconf() 142 long pathconf(const char* path, int name) { in pathconf() argument 147 return __pathconf(sb, name); in pathconf() 150 long fpathconf(int fd, int name) { in fpathconf() argument 155 return __pathconf(sb, name); in fpathconf()
|
D | malloc_info.cpp | 25 explicit Elem(FILE* fp, const char* name, in Elem() argument 28 this->name = name; in Elem() 30 fprintf(fp, "<%s", name); in Elem() 42 fprintf(fp, "</%s>", name); in ~Elem() 54 const char* name; member in Elem
|
D | grp_pwd.cpp | 77 static int do_getpw_r(int by_name, const char* name, uid_t uid, in do_getpw_r() argument 88 const passwd* src = by_name ? getpwnam(name) : getpwuid(uid); // NOLINT: see above. in do_getpw_r() 127 int getpwnam_r(const char* name, passwd* pwd, in getpwnam_r() argument 129 return do_getpw_r(1, name, -1, pwd, buf, byte_count, result); in getpwnam_r() 139 snprintf(state->name_buffer_, sizeof(state->name_buffer_), "%s", iinfo->name); in android_iinfo_to_passwd() 154 snprintf(state->group_name_buffer_, sizeof(state->group_name_buffer_), "%s", iinfo->name); in android_iinfo_to_group() 172 static passwd* android_name_to_passwd(passwd_state_t* state, const char* name) { in android_name_to_passwd() argument 174 if (!strcmp(android_ids[n].name, name)) { in android_name_to_passwd() 190 static group* android_name_to_group(group_state_t* state, const char* name) { in android_name_to_group() argument 192 if (!strcmp(android_ids[n].name, name)) { in android_name_to_group() [all …]
|
D | fsetxattr.cpp | 38 int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags) { in fsetxattr() argument 40 int result = ___fsetxattr(fd, name, value, size, flags); in fsetxattr() 58 return setxattr(buf, name, value, size, flags); in fsetxattr()
|
D | fgetxattr.cpp | 38 ssize_t fgetxattr(int fd, const char *name, void *value, size_t size) { in fgetxattr() argument 40 ssize_t result = ___fgetxattr(fd, name, value, size); in fgetxattr() 58 return getxattr(buf, name, value, size); in fgetxattr()
|
D | libc_init_common.cpp | 191 static const char* env_match(const char* envstr, const char* name) { in env_match() argument 194 while (envstr[i] == name[i] && name[i] != '\0') { in env_match() 198 if (name[i] == '\0' && envstr[i] == '=') { in env_match() 205 static bool __is_valid_environment_variable(const char* name) { in __is_valid_environment_variable() argument 210 if (name == nullptr) { in __is_valid_environment_variable() 218 if (name[pos] == '\0') { in __is_valid_environment_variable() 221 if (name[pos] == '=' && first_equal_pos < 0) { in __is_valid_environment_variable() 240 static bool __is_unsafe_environment_variable(const char* name) { in __is_unsafe_environment_variable() argument 276 if (env_match(name, unsafe_variable_name) != nullptr) { in __is_unsafe_environment_variable()
|
D | system_properties.cpp | 119 char name[0]; member 121 prop_bt(const char* name, const uint32_t name_length) { in prop_bt() 123 memcpy(this->name, name, name_length); in prop_bt() 124 this->name[name_length] = '\0'; in prop_bt() 140 const prop_info* find(const char* name); 141 bool add(const char* name, unsigned int namelen, const char* value, unsigned int valuelen); 157 prop_bt* new_prop_bt(const char* name, uint32_t namelen, uint_least32_t* const off); 158 prop_info* new_prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen, 166 …prop_bt* find_prop_bt(prop_bt* const bt, const char* name, uint32_t namelen, bool alloc_if_needed); 168 const prop_info* find_property(prop_bt* const trie, const char* name, uint32_t namelen, [all …]
|
/bionic/tools/versioner/src/ |
D | Arch.cpp | 47 Arch arch_from_string(const std::string& name) { in arch_from_string() argument 48 if (name == "arm") { in arch_from_string() 50 } else if (name == "arm64") { in arch_from_string() 52 } else if (name == "mips") { in arch_from_string() 54 } else if (name == "mips64") { in arch_from_string() 56 } else if (name == "x86") { in arch_from_string() 58 } else if (name == "x86_64") { in arch_from_string() 62 errx(1, "unknown architecture '%s'", name.c_str()); in arch_from_string()
|
/bionic/libc/kernel/uapi/sound/ |
D | tlv.h | 36 #define SNDRV_CTL_TLVD_DECLARE_CONTAINER(name,...) unsigned int name[] = { SNDRV_CTL_TLVD_CONTAINER… argument 41 #define SNDRV_CTL_TLVD_DECLARE_DB_SCALE(name,min,step,mute) unsigned int name[] = { SNDRV_CTL_TLVD_… argument 45 #define SNDRV_CTL_TLVD_DECLARE_DB_MINMAX(name,min_dB,max_dB) unsigned int name[] = { SNDRV_CTL_TLVD… argument 46 #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 51 #define SNDRV_CTL_TLVD_DECLARE_DB_RANGE(name,...) unsigned int name[] = { SNDRV_CTL_TLVD_DB_RANGE_I… argument
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | getenv.c | 34 char *__findenv(const char *name, int len, int *offset); 47 __findenv(const char *name, int len, int *offset) in __findenv() argument 54 if (name == NULL || environ == NULL) in __findenv() 57 for (np = name, i = len; i && *cp; i--) in __findenv() 73 getenv(const char *name) in getenv() argument 78 for (np = name; *np && *np != '='; ++np) in getenv() 80 return (__findenv(name, (int)(np - name), &offset)); in getenv()
|
D | setenv.c | 90 setenv(const char *name, const char *value, int rewrite) in setenv() argument 96 if (!name || !*name) { in setenv() 100 for (np = name; *np && *np != '='; ++np) in setenv() 108 if ((C = __findenv(name, (int)(np - name), &offset)) != NULL) { in setenv() 120 while (__findenv(name, (int)(np - name), &tmpoff)) { in setenv() 141 malloc((size_t)((int)(np - name) + l_value + 2)))) in setenv() 143 for (C = environ[offset]; (*C = *name++) && *C != '='; ++C) in setenv() 156 unsetenv(const char *name) in unsetenv() argument 162 if (!name || !*name) { in unsetenv() 166 for (np = name; *np && *np != '='; ++np) in unsetenv() [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/private/ |
D | thread_private.h | 22 #define __THREAD_NAME(name) __CONCAT(_thread_tagname_,name) argument 29 #define _THREAD_PRIVATE_MUTEX(name) \ argument 30 static struct __thread_private_tag_t __THREAD_NAME(name) = { PTHREAD_MUTEX_INITIALIZER, -1 } 31 #define _THREAD_PRIVATE_MUTEX_LOCK(name) \ argument 32 pthread_mutex_lock( &__THREAD_NAME(name)._private_lock ) 33 #define _THREAD_PRIVATE_MUTEX_UNLOCK(name) \ argument 34 pthread_mutex_unlock( &__THREAD_NAME(name)._private_lock )
|
/bionic/libc/include/sys/ |
D | xattr.h | 38 int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags) 40 int setxattr(const char* path, const char* name, const void* value, size_t size, int flags) 42 int lsetxattr(const char* path, const char* name, const void* value, size_t size, int flags) 45 ssize_t fgetxattr(int fd, const char* name, void* value, size_t size) __INTRODUCED_IN(16); 46 ssize_t getxattr(const char* path, const char* name, void* value, size_t size) __INTRODUCED_IN(16); 47 ssize_t lgetxattr(const char* path, const char* name, void* value, size_t size) __INTRODUCED_IN(16); 53 int removexattr(const char* path, const char* name) __INTRODUCED_IN(16); 54 int lremovexattr(const char* path, const char* name) __INTRODUCED_IN(16); 55 int fremovexattr(int fd, const char* name) __INTRODUCED_IN(16);
|
D | system_properties.h | 54 const prop_info* __system_property_find(const char* name); 60 void (*callback)(void* cookie, const char *name, const char *value, uint32_t serial), 94 int __system_property_read(const prop_info* pi, char* name, char* value); 96 int __system_property_get(const char* name, char* value);
|
/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/tools/ |
D | genseccomp.py | 14 def __init__(self, name, value): argument 15 self.names = [name] 22 def add(self, name, value): argument 26 self.names.append(name) 54 dups = [name for name, count in collections.Counter(names).items() if count > 1] 77 for name in names: 80 if not name.startswith("__ARM_NR_"): 81 cpp.stdin.write(prefix + name + ", __NR_" + name + "\n") 83 cpp.stdin.write(prefix + name + ", " + name + "\n") 97 name, value = [w.strip() for w in line.split(",")] [all …]
|
/bionic/tests/libs/ |
D | Android.bp | 18 name: "bionic_testlib_defaults", 42 name: "libgnu-hash-table-library", 60 name: "libsysv-hash-table-library", 75 name: "libdlext_test_norelro", 83 // Library used by dlext tests - different name non-default location 106 name: "libtest_simple", 115 name: "libtest_nodelete_1", 124 name: "libtest_nodelete_2", 133 name: "libtest_nodelete_dt_flags_1", 185 name: "libtest_with_dependency_loop", [all …]
|
/bionic/linker/ |
D | linker_config.cpp | 64 int next_token(std::string* name, std::string* value, std::string* error_msg) { in next_token() argument 75 *name = line.substr(1, line.size() - 2); in next_token() 87 *name = android::base::Trim(line.substr(0, found)); in next_token() 176 std::string name; in parse_config_file() local 180 int result = cp.next_token(&name, &value, &error); in parse_config_file() 194 if (!android::base::StartsWith(name, "dir.")) { in parse_config_file() 199 name.c_str()); in parse_config_file() 216 section_name = name.substr(4); in parse_config_file() 224 std::string name; in parse_config_file() local 228 int result = cp.next_token(&name, &value, &error); in parse_config_file() [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/arch-x86/atom/string/ |
D | ssse3-wcscat-atom.S | 56 # define ENTRY(name) \ argument 57 .type name, @function; \ 58 .globl name; \ 60 name: \ 65 # define END(name) \ argument 67 .size name, .-name
|
/bionic/libc/malloc_debug/ |
D | MapData.h | 41 MapEntry(uintptr_t start, uintptr_t end, uintptr_t offset, const char* name, size_t name_len) in MapEntry() 42 : start(start), end(end), offset(offset), name(name, name_len) {} in MapEntry() 51 std::string name; member
|
/bionic/libc/kernel/uapi/linux/ |
D | nilfs2_api.h | 44 #define NILFS_CPINFO_FNS(flag,name) static inline int nilfs_cpinfo_ ##name(const struct nilfs_cpinf… argument 47 #define NILFS_SUINFO_FNS(flag,name) static inline int nilfs_suinfo_ ##name(const struct nilfs_suinf… argument 65 #define NILFS_SUINFO_UPDATE_FNS(flag,name) static inline void nilfs_suinfo_update_set_ ##name(struc… argument 67 } static inline void nilfs_suinfo_update_clear_ ##name(struct nilfs_suinfo_update * sup) \ 69 } static inline int nilfs_suinfo_update_ ##name(const struct nilfs_suinfo_update * sup) \
|