/bionic/libc/bionic/ |
D | langinfo.cpp | 34 const char* result = ""; in nl_langinfo() local 36 case CODESET: result = (MB_CUR_MAX == 1) ? "ASCII" : "UTF-8"; break; in nl_langinfo() 38 case D_T_FMT: result = "%F %T %z"; break; in nl_langinfo() 39 case D_FMT: result = "%F"; break; in nl_langinfo() 40 case T_FMT: result = "%T"; break; in nl_langinfo() 41 case T_FMT_AMPM: result = "%I:%M:%S %p"; break; in nl_langinfo() 42 case AM_STR: result = "AM"; break; in nl_langinfo() 43 case PM_STR: result = "PM"; break; in nl_langinfo() 44 case DAY_1: result = "Sunday"; break; in nl_langinfo() 45 case DAY_2: result = "Monday"; break; in nl_langinfo() [all …]
|
D | malloc_common.cpp | 69 void* result = Malloc(calloc)(n_elements, elem_size); in calloc() local 70 if (__predict_false(result == nullptr)) { in calloc() 73 return MaybeTagPointer(result); in calloc() 112 void *result; in malloc() local 114 result = dispatch_table->malloc(bytes); in malloc() 116 result = Malloc(malloc)(bytes); in malloc() 118 if (__predict_false(result == nullptr)) { in malloc() 122 return MaybeTagPointer(result); in malloc() 139 void* result = Malloc(memalign)(alignment, bytes); in memalign() local 140 if (__predict_false(result == nullptr)) { in memalign() [all …]
|
D | sys_statfs.cpp | 37 int fstatfs(int fd, struct statfs* result) { in fstatfs() argument 38 int rc = __fstatfs64(fd, sizeof(*result), result); in fstatfs() 42 result->f_flags &= ~ST_VALID; in fstatfs() 47 int statfs(const char* path, struct statfs* result) { in statfs() argument 48 int rc = __statfs64(path, sizeof(*result), result); in statfs() 52 result->f_flags &= ~ST_VALID; in statfs()
|
D | libgen.cpp | 43 int result; in __basename_r() local 74 result = len; in __basename_r() 76 return result; in __basename_r() 80 result = -1; in __basename_r() 88 return result; in __basename_r() 99 int result; in __dirname_r() local 133 result = len; in __dirname_r() 139 return result; in __dirname_r() 144 result = -1; in __dirname_r() 152 return result; in __dirname_r()
|
D | fork.cpp | 40 int result = clone(nullptr, nullptr, (CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD), in __clone_for_fork() local 43 if (result == 0) { in __clone_for_fork() 49 return result; in __clone_for_fork() 55 int result = __clone_for_fork(); in fork() local 57 if (result == 0) { in fork() 70 return result; in fork()
|
D | fchmod.cpp | 42 int result = __fchmod(fd, mode); in fchmod() local 43 if (result == 0 || errno != EBADF) { in fchmod() 44 return result; in fchmod() 62 result = chmod(FdPath(fd).c_str(), mode); in fchmod() 63 if (result == -1 && errno == ELOOP) { in fchmod() 70 return result; in fchmod()
|
D | system_property_set.cpp | 86 int result = TEMP_FAILURE_RETRY(recv(socket_.get(), value, sizeof(*value), MSG_WAITALL)); in RecvInt32() local 87 return CheckSendRecvResult(result, sizeof(*value)); in RecvInt32() 95 bool CheckSendRecvResult(int result, int expected_len) { in CheckSendRecvResult() argument 96 if (result == -1) { in CheckSendRecvResult() 98 } else if (result != expected_len) { in CheckSendRecvResult() 184 int result = -1; in send_prop_msg() local 201 result = 0; in send_prop_msg() 215 result = 0; in send_prop_msg() 219 return result; in send_prop_msg() 291 int result = -1; in __system_property_set() local [all …]
|
D | time64.c | 64 # define LOCALTIME_R(clock, result) localtime_r(clock, result) argument 66 # define LOCALTIME_R(clock, result) fake_localtime_r(clock, result) argument 69 # define GMTIME_R(clock, result) gmtime_r(clock, result) argument 71 # define GMTIME_R(clock, result) fake_gmtime_r(clock, result) argument 427 struct tm * fake_localtime_r(const time_t *clock, struct tm *result) { in fake_localtime_r() argument 430 assert(result != NULL); in fake_localtime_r() 433 memset(result, 0, sizeof(*result)); in fake_localtime_r() 437 memcpy(result, static_result, sizeof(*result)); in fake_localtime_r() 438 return result; in fake_localtime_r() 445 struct tm * fake_gmtime_r(const time_t *clock, struct tm *result) { in fake_gmtime_r() argument [all …]
|
D | atexit.cpp | 82 size_t result = round_up_to_page_bytes(MAX(1, capacity * 2)) / sizeof(AtexitEntry); in next_capacity() local 83 CHECK(result > capacity); in next_capacity() 84 return result; in next_capacity() 99 bool result = false; in append_entry() local 105 result = true; in append_entry() 109 return result; in append_entry() 114 AtexitEntry result = array_[idx]; in extract_entry() local 121 return result; in extract_entry() 211 int result = -1; in __cxa_atexit() local 216 result = 0; in __cxa_atexit() [all …]
|
/bionic/benchmarks/linker_relocation/regen/ |
D | common_types.py | 67 result: Dict[str, Any] = {} 68 result['name'] = self.name 69 result['kind'] = self.kind.to_json() 70 result['bind'] = self.bind.to_json() 71 result['defined'] = self.defined 72 result['ver_type'] = self.ver_type 73 result['ver_name'] = self.ver_name 74 return result 96 result: Dict[str, Any] = {} 97 result['name'] = self.name [all …]
|
D | dump_relocs.py | 73 result = m.group(1) 76 result = os.path.basename(path) 77 g_path_to_soname_cache[path] = result 78 return result 82 result = [] 87 result.append(m.group(1)) 88 return result 114 result = {} 133 result[int(num)] = DynSymbol(name, kind_lookup[kind], bind_lookup[bind], ndx != 'UND', 136 return result [all …]
|
/bionic/benchmarks/ |
D | atomic_benchmark.cpp | 56 unsigned result = 0; in BM_atomic_load_relaxed() local 58 result += test_loc.load(std::memory_order_relaxed); in BM_atomic_load_relaxed() 61 sink = result; in BM_atomic_load_relaxed() 66 unsigned result = 0; in BM_atomic_load_acquire() local 68 result += test_loc.load(std::memory_order_acquire); in BM_atomic_load_acquire() 71 sink = result; in BM_atomic_load_acquire() 94 unsigned result = 0; in BM_atomic_fetch_add_relaxed() local 96 result += test_loc.fetch_add(1, std::memory_order_relaxed); in BM_atomic_fetch_add_relaxed() 99 sink = result; in BM_atomic_fetch_add_relaxed() 104 unsigned result = 0; in BM_atomic_fetch_add_seq_cst() local [all …]
|
/bionic/libc/tools/ |
D | gensyscalls.py | 233 result = syscall_stub_header % syscall 241 result += " pushl %%%s\n" % register 243 result += " .cfi_def_cfa_offset 8\n" 244 result += " .cfi_rel_offset %s, 0\n" % register 247 result += " .cfi_adjust_cfa_offset 4\n" 248 result += " .cfi_rel_offset %s, 0\n" % register 252 result += x86_call_prepare 253 result += mov_result 254 result += x86_call % syscall 257 result += " popl %%%s\n" % register [all …]
|
D | genserv.py | 28 result = "\\%0o%s" % (len(self.name),self.name) 29 result += "\\%0o\\%0o" % (((self.port >> 8) & 255), self.port & 255) 31 result += "t" 33 result += "u" 35 result += "\\%0o" % len(self.aliases) 37 result += "\\%0o%s" % (len(alias), alias) 39 return result 42 result = [] # list of Service objects 65 result.append(service) 67 return result
|
/bionic/libc/arch-x86/bionic/ |
D | __set_tls.cpp | 36 __LIBC_HIDDEN__ void __init_user_desc(user_desc* result, bool allocate, void* base_addr) { in __init_user_desc() argument 39 result->entry_number = -1; in __init_user_desc() 44 result->entry_number = (gs & 0xffff) >> 3; in __init_user_desc() 47 result->base_addr = reinterpret_cast<uintptr_t>(base_addr); in __init_user_desc() 49 result->limit = 0xfffff; in __init_user_desc() 51 result->seg_32bit = 1; in __init_user_desc() 52 result->contents = MODIFY_LDT_CONTENTS_DATA; in __init_user_desc() 53 result->read_exec_only = 0; in __init_user_desc() 54 result->limit_in_pages = 1; in __init_user_desc() 55 result->seg_not_present = 0; in __init_user_desc() [all …]
|
/bionic/libfdtrack/ |
D | fdtrack_test.cpp | 61 std::map<int, std::vector<FdtrackFrame>> result; in RunFdtrack() local 65 auto& map = *static_cast<decltype(result)*>(arg); in RunFdtrack() 75 &result); in RunFdtrack() 77 return result; in RunFdtrack() 82 auto result = RunFdtrack([]() { fd = open("/dev/null", O_RDONLY | O_CLOEXEC); }); in TEST() local 85 ASSERT_EQ(1, result.size()); in TEST() 86 ASSERT_EQ(fd, result.begin()->first); in TEST() 87 ASSERT_NE(nullptr, strstr(result.begin()->second.at(0).function_name, "open")); in TEST() 94 auto result = RunFdtrack([]() { in TEST() local 105 ASSERT_EQ(2, result.size()); in TEST() [all …]
|
/bionic/tests/libs/ |
D | dlsym_from_this_functions.cpp | 25 int* result = static_cast<int*>(dlsym(RTLD_DEFAULT, "test_dlsym_symbol")); in lookup_dlsym_symbol_using_RTLD_DEFAULT() local 27 if (result == nullptr) { in lookup_dlsym_symbol_using_RTLD_DEFAULT() 30 return result; in lookup_dlsym_symbol_using_RTLD_DEFAULT() 35 int* result = static_cast<int*>(dlsym(RTLD_DEFAULT, "test_dlsym_symbol2")); in lookup_dlsym_symbol2_using_RTLD_DEFAULT() local 37 if (result == nullptr) { in lookup_dlsym_symbol2_using_RTLD_DEFAULT() 40 return result; in lookup_dlsym_symbol2_using_RTLD_DEFAULT() 45 int* result = static_cast<int*>(dlsym(RTLD_NEXT, "test_dlsym_symbol")); in lookup_dlsym_symbol_using_RTLD_NEXT() local 47 if (result == nullptr) { in lookup_dlsym_symbol_using_RTLD_NEXT() 50 return result; in lookup_dlsym_symbol_using_RTLD_NEXT()
|
/bionic/tests/ |
D | bug_26110743_test.cpp | 54 void* result; in TEST() local 55 ASSERT_EQ(0, pthread_join(t, &result)); in TEST() 56 ASSERT_EQ(nullptr, result); in TEST() 69 void* result; in TEST() local 70 ASSERT_EQ(0, pthread_join(t, &result)); in TEST() 71 ASSERT_EQ(nullptr, result); in TEST() 99 void* result; in TEST() local 100 ASSERT_EQ(0, pthread_join(t, &result)); in TEST() 101 ASSERT_EQ(nullptr, result); in TEST() 114 void* result; in TEST() local [all …]
|
D | grp_pwd_test.cpp | 107 int result; in check_getpwuid_r() local 111 result = getpwuid_r(uid, &pwd_storage, buf, sizeof(buf), &pwd); in check_getpwuid_r() 112 ASSERT_EQ(0, result); in check_getpwuid_r() 122 int result; in check_getpwnam_r() local 126 result = getpwnam_r(username, &pwd_storage, buf, sizeof(buf), &pwd); in check_getpwnam_r() 127 ASSERT_EQ(0, result); in check_getpwnam_r() 306 int result = getpwnam_r("root", &pwd_storage, buf + 1, sizeof(buf) - 1, &pwd); in TEST() local 307 ASSERT_EQ(0, result); in TEST() 319 int result = getpwuid_r(0, &pwd_storage, buf + 1, sizeof(buf) - 1, &pwd); in TEST() local 320 ASSERT_EQ(0, result); in TEST() [all …]
|
D | ifaddrs_test.cpp | 195 std::string result; in FlagsToString() local 196 if ((flags & IFF_UP) != 0) result += " UP"; in FlagsToString() 197 if ((flags & IFF_BROADCAST) != 0) result += " BROADCAST"; in FlagsToString() 198 if ((flags & IFF_DEBUG) != 0) result += " DEBUG"; in FlagsToString() 199 if ((flags & IFF_LOOPBACK) != 0) result += " LOOPBACK"; in FlagsToString() 200 if ((flags & IFF_POINTOPOINT) != 0) result += " POINTOPOINT"; in FlagsToString() 201 if ((flags & IFF_NOTRAILERS) != 0) result += " NOTRAILERS"; in FlagsToString() 202 if ((flags & IFF_RUNNING) != 0) result += " RUNNING"; in FlagsToString() 203 if ((flags & IFF_NOARP) != 0) result += " NOARP"; in FlagsToString() 204 if ((flags & IFF_PROMISC) != 0) result += " PROMISC"; in FlagsToString() [all …]
|
D | netdb_test.cpp | 200 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err); in TEST() local 201 ASSERT_EQ(0, result); in TEST() 210 result = gethostbyname_r("localhost", &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST() 211 ASSERT_EQ(0, result); in TEST() 222 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST() local 223 ASSERT_EQ(0, result); in TEST() 232 result = gethostbyname2_r("localhost", AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST() 233 ASSERT_EQ(0, result); in TEST() 251 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST() local 252 ASSERT_EQ(0, result); in TEST() [all …]
|
/bionic/libc/dns/net/ |
D | nsdispatch.c | 104 int i, result; in nsdispatch() local 123 result = 0; in nsdispatch() 128 result = 0; in nsdispatch() 131 result = (*cb)(retval, cb_data, ap); in nsdispatch() 135 if (result & srclist[i].flags) in nsdispatch() 138 if ((result & NS_UNAVAIL) != 0 && errno == ENOSPC) { in nsdispatch() 143 result &= NS_STATUSMASK; /* clear private flags in result */ in nsdispatch() 145 return (result ? result : NS_NOTFOUND); in nsdispatch()
|
/bionic/tools/versioner/src/ |
D | SymbolDatabase.cpp | 41 std::unordered_set<std::string> result; in getSymbols() local 61 result.insert(symbolNameOrError.get().str()); in getSymbols() 64 return result; in getSymbols() 74 std::map<std::string, NdkSymbolType> result; in parsePlatform() local 92 if (result.count(symbol_name) != 0) { in parsePlatform() 98 result[symbol_name] = symbol_type; in parsePlatform() 102 return result; in parsePlatform() 107 NdkSymbolDatabase result; in parsePlatforms() local 111 result[it.first][type] = it.second; in parsePlatforms() 114 return std::make_optional(std::move(result)); in parsePlatforms()
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | fnmatch.c | 150 int result = FNM_NOMATCH; in fnmatch_ch() local 171 return (result ^ negate); in fnmatch_ch() 189 result = 0; in fnmatch_ch() 221 result = 0; in fnmatch_ch() 230 result = 0; in fnmatch_ch() 238 result = 0; in fnmatch_ch() 243 result = 0; in fnmatch_ch() 252 result = FNM_NOMATCH; in fnmatch_ch() 257 result = 0; in fnmatch_ch() 265 result = 0; in fnmatch_ch() [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | s_fmaf.c | 47 double xy, result; in fmaf() local 51 result = xy + z; in fmaf() 52 EXTRACT_WORDS(hr, lr, result); in fmaf() 56 result - xy == z || /* exact */ in fmaf() 58 return (result); in fmaf() 68 if (result == adjusted_result) in fmaf()
|