/bionic/libc/upstream-netbsd/lib/libc/isc/ |
D | ev_streams.c | 48 static int copyvec(evStream *str, const struct iovec *iov, int iocnt); 49 static void consume(evStream *str, size_t bytes); 50 static void done(evContext opaqueCtx, evStream *str); 136 evStream *str = id.opaque; in evTimeRW() local 140 str->timer = timer; in evTimeRW() 141 str->flags |= EV_STR_TIMEROK; in evTimeRW() 147 evStream *str = id.opaque; in evUntimeRW() local 151 str->flags &= ~EV_STR_TIMEROK; in evUntimeRW() 211 copyvec(evStream *str, const struct iovec *iov, int iocnt) { in copyvec() argument 214 str->iovOrig = (struct iovec *)memget(sizeof(struct iovec) * iocnt); in copyvec() [all …]
|
/bionic/benchmarks/ |
D | stdio_benchmark.cpp | 244 char* str; in ParseMap() local 248 *start = strtoul(old_str, &str, 16); in ParseMap() 249 if (old_str == str || *str++ != '-') return 0; in ParseMap() 252 old_str = str; in ParseMap() 253 *end = strtoul(old_str, &str, 16); in ParseMap() 254 if (old_str == str || !std::isspace(*str++)) return 0; in ParseMap() 255 while (std::isspace(*str)) str++; in ParseMap() 258 if (*str == '\0') return 0; in ParseMap() 259 permissions[0] = *str; in ParseMap() 260 str++; in ParseMap() [all …]
|
/bionic/benchmarks/linker_relocation/regen/ |
D | common_types.py | 35 def to_json(self) -> str: 39 def from_json(obj: str) -> 'SymKind': argument 47 def to_json(self) -> str: 51 def from_json(obj: str) -> 'SymBind': argument 56 def __init__(self, name: str, kind: SymKind, bind: SymBind, defined: bool, argument 57 ver_type: Optional[str], ver_name: Optional[str]): argument 59 self.name: str = name 63 self.ver_type: Optional[str] = ver_type 64 self.ver_name: Optional[str] = ver_name 66 def to_json(self) -> Dict[str, Any]: [all …]
|
D | dump_relocs.py | 55 g_readelf_cache: Dict[str, str] = {} 56 g_path_to_soname_cache: Dict[Path, str] = {} 58 def do_readelf_query(arguments: List[str]) -> List[str]: argument 67 def get_elf_soname(path: Path) -> str: 69 out = do_readelf_query(['-d', str(path)]) 81 def get_elf_needed(path: Path) -> List[str]: 83 out = do_readelf_query(['-d', str(path)]) 115 out = do_readelf_query(['--dyn-syms', str(path)]) 154 out = do_readelf_query(['-r', str(path)]) 197 libraries: Dict[str, LoadedLibrary] = {} [all …]
|
D | gen_bench.py | 56 kBionicSonames: Set[str] = set([ 65 kBionicIgnoredSymbols: Set[str] = set([ 129 Definitions = Dict[str, LoadedLibrary] 132 defs: Dict[str, LoadedLibrary] = {} 156 def rot13(text: str) -> str: argument 159 assert isinstance(result, str) 168 def trans_sym(name: str, ver: Optional[str]) -> Optional[str]: argument 179 versions: Dict[Optional[str], List[str]] = {} 265 self._names: Dict[LoadedLibrary, str] = {} 273 def name(self, lib: LoadedLibrary) -> str: [all …]
|
/bionic/libc/bionic/ |
D | wcstod.cpp | 40 float_type wcstod(const wchar_t* str, wchar_t** end, float_type strtod_fn(const char*, char**)) { in wcstod() argument 41 const wchar_t* original_str = str; in wcstod() 42 while (iswspace(*str)) { in wcstod() 43 str++; in wcstod() 47 size_t max_len = wcsspn(str, L"-+0123456789.xXeEpP()nNaAiIfFtTyY"); in wcstod() 53 ascii_str[i] = str[i] & 0xff; in wcstod() 88 *end = const_cast<wchar_t*>(str) + actual_len; in wcstod()
|
D | strnlen.c | 30 size_t strnlen(const char* str, size_t maxlen) in strnlen() argument 32 char* p = memchr(str, 0, maxlen); in strnlen() 37 return (p - str); in strnlen()
|
/bionic/libc/arch-arm64/generic/bionic/ |
D | memset.S | 114 str val, [dstin] 115 str val, [dstend, -8] 119 str valw, [dstin] 120 str valw, [dstend, -4] 130 str q0, [dstin] 132 str q0, [dstend, -16] 134 str q0, [dstin, 16] 135 str q0, [dstend, -32] 142 str q0, [dstin, 16] 152 str q0, [dstin] [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | setenv.c | 43 putenv(char *str) in putenv() argument 49 for (cp = str; *cp && *cp != '='; ++cp) in putenv() 56 if (__findenv(str, (int)(cp - str), &offset) != NULL) { in putenv() 57 environ[offset++] = str; in putenv() 59 while (__findenv(str, (int)(cp - str), &offset)) { in putenv() 79 environ[cnt] = str; in putenv()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | vasprintf.c | 29 vasprintf(char **str, const char *fmt, __va_list ap) in vasprintf() argument 54 *str = (char *)_base; in vasprintf() 56 *str = (char *)f._bf._base; in vasprintf() 62 *str = NULL; in vasprintf()
|
D | vsscanf.c | 46 vsscanf(const char *str, const char *fmt, __va_list ap) in vsscanf() argument 53 f._bf._base = f._p = (unsigned char *)str; in vsscanf() 54 f._bf._size = f._r = strlen(str); in vsscanf()
|
D | vswscanf.c | 52 vswscanf(const wchar_t * __restrict str, const wchar_t * __restrict fmt, in vswscanf() argument 67 len = wcslen(str) * MB_CUR_MAX; in vswscanf() 71 strp = str; in vswscanf()
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | strlen.c | 35 strlen(const char *str) in strlen() argument 39 for (s = str; *s; ++s) in strlen() 41 return (s - str); in strlen()
|
D | strdup.c | 39 strdup(const char *str) in strdup() argument 44 siz = strlen(str) + 1; in strdup() 47 (void)memcpy(copy, str, siz); in strdup()
|
D | strndup.c | 26 strndup(const char *str, size_t maxlen) in strndup() argument 31 len = strnlen(str, maxlen); in strndup() 34 (void)memcpy(copy, str, len); in strndup()
|
/bionic/linker/ |
D | linker_block_allocator_test.cpp | 50 char str[5]; member 57 char str[1009]; member 134 page2_ptr->str[23] = 27; in protect_all() 135 page1_ptr->str[13] = 11; in protect_all() 141 page1_ptr->str[11] = 7; in protect_all()
|
D | linker_utils.cpp | 39 void format_string(std::string* str, const std::vector<std::pair<std::string, std::string>>& params… in format_string() argument 41 while (pos < str->size()) { in format_string() 42 pos = str->find("$", pos); in format_string() 47 if (str->substr(pos + 1, token.size()) == token) { in format_string() 48 str->replace(pos, token.size() + 1, replacement); in format_string() 52 } else if (str->substr(pos + 1, token.size() + 2) == "{" + token + "}") { in format_string() 53 str->replace(pos, token.size() + 3, replacement); in format_string()
|
/bionic/libc/arch-arm/cortex-a15/bionic/ |
D | string_copy.S | 208 str r2, [r0], #3 210 str r2, [r0] 247 str r2, [r0], #4 252 str r2, [r0], #4 261 str r2, [r0], #4 314 str r2, [r0], #4 320 str r2, [r0], #4 326 str r2, [r0], #4 387 str r2, [r0], #4 392 str r2, [r0], #4
|
D | strcat.S | 224 str r2, [r0] 253 str r2, [r0], #4 258 str r2, [r0], #4 263 str r2, [r0], #4 312 str r2, [r0], #4 318 str r2, [r0], #4 324 str r2, [r0], #4 381 str r2, [r0], #4 386 str r2, [r0], #4
|
/bionic/tools/versioner/src/ |
D | DeclarationDatabase.cpp | 75 return asm_attr->getLabel().str(); in getDeclName() 87 return identifier->getName().str(); in getDeclName() 176 if (auto it = prefix_map.find(fragments[0].str()); it != prefix_map.end()) { in VisitDeclaratorDecl() 180 annotation.str().c_str()); in VisitDeclaratorDecl() 204 .filename = filename.str(), in VisitDeclaratorDecl() 359 std::string result = ss.str(); in to_string() 390 std::string result = ss.str(); in to_string() 401 return ss.str(); in to_string()
|
/bionic/libc/tools/ |
D | genseccomp.py | 61 raise RuntimeError("blocklist item not in bionic - aborting " + str( 101 value = eval(token_re.sub(lambda x: str(constants[x.group(0)]), 184 bpf[i] = statement.format(fail=str(len(bpf) - i), 185 allow=str(len(bpf) - i - 1)) 193 bpf.insert(0, BPF_JGE.format(ranges[0].begin, 0, str(len(bpf))) + ',') 271 parser.add_argument("base_file", metavar="base-file", type=str, 273 parser.add_argument("files", metavar="FILE", type=str, nargs="+",
|
D | genfunctosyscallnrs.py | 29 … out_file.write("#define __" + arch + "_" + func + " " + str(syscall_NRs[arch][syscall]) + ";\n") 37 parser.add_argument("base_file", metavar="base-file", type=str, 39 parser.add_argument("files", metavar="FILE", type=str, nargs="+",
|
/bionic/libc/malloc_debug/ |
D | debug_log.h | 40 #define error_log_string(str) async_safe_write_log(ANDROID_LOG_ERROR, "malloc_debug", (str)) argument
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
D | hsearch_r.c | 60 hsearch_hash(size_t offset_basis, const char *str) in hsearch_hash() argument 65 while (*str != '\0') { in hsearch_hash() 66 hash ^= (uint8_t)*str++; in hsearch_hash()
|
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
D | glob.c | 1001 g_opendir(Char *str, glob_t *pglob) in g_opendir() argument 1005 if (*str == EOS) in g_opendir() 1008 if (g_Ctoc(str, buf, sizeof(buf))) { in g_opendir() 1049 g_strchr(const Char *str, wchar_t ch) in g_strchr() argument 1053 if (*str == ch) in g_strchr() 1054 return (str); in g_strchr() 1055 } while (*str++); in g_strchr() 1060 g_Ctoc(const Char *str, char *buf, size_t len) in g_Ctoc() argument 1067 clen = wcrtomb(buf, CHAR(*str), &mbs); in g_Ctoc() 1070 *buf = (char)CHAR(*str); in g_Ctoc() [all …]
|