Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 161) sorted by relevance

1234567

/bionic/libc/bionic/
Dlanginfo.cpp34 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 …]
Dmalloc_common.cpp71 void* result = Malloc(calloc)(n_elements, elem_size); in calloc() local
72 if (__predict_false(result == nullptr)) { in calloc()
75 return MaybeTagPointer(result); in calloc()
123 void *result; in malloc() local
125 result = dispatch_table->malloc(bytes); in malloc()
127 result = Malloc(malloc)(bytes); in malloc()
129 if (__predict_false(result == nullptr)) { in malloc()
133 return MaybeTagPointer(result); in malloc()
150 void* result = Malloc(memalign)(alignment, bytes); in memalign() local
151 if (__predict_false(result == nullptr)) { in memalign()
[all …]
Dsys_statfs.cpp37 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()
Dfork.cpp41 int result = clone(nullptr, nullptr, (CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD), in __clone_for_fork() local
44 if (result == 0) { in __clone_for_fork()
50 return result; in __clone_for_fork()
56 int result = __clone_for_fork(); in fork() local
58 if (result == 0) { in fork()
72 return result; in fork()
Dlibgen.cpp43 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()
Dfchmod.cpp42 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()
Dsystem_property_set.cpp86 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 …]
Darpa_inet.cpp49 uint32_t result = 0; in inet_aton() local
53 result = parts[0]; in inet_aton()
57 result = (parts[0] << 24) | parts[1]; in inet_aton()
61 result = (parts[0] << 24) | (parts[1] << 16) | parts[2]; in inet_aton()
65 result = (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8) | parts[3]; in inet_aton()
70 if (addr != nullptr) addr->s_addr = htonl(result); in inet_aton()
/bionic/benchmarks/linker_relocation/regen/
Dcommon_types.py67 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 …]
Ddump_relocs.py73 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/
Datomic_benchmark.cpp56 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/
Dgensyscalls.py254 result = syscall_stub_header % syscall
262 result += " pushl %%%s\n" % register
264 result += " .cfi_def_cfa_offset 8\n"
265 result += " .cfi_rel_offset %s, 0\n" % register
268 result += " .cfi_adjust_cfa_offset 4\n"
269 result += " .cfi_rel_offset %s, 0\n" % register
273 result += x86_call_prepare
274 result += mov_result
275 result += x86_call % syscall
278 result += " popl %%%s\n" % register
[all …]
Dgenserv.py28 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.cpp36 __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/tests/libs/
Ddlsym_from_this_functions.cpp25 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/libfdtrack/
Dfdtrack_test.cpp61 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/
Dbug_26110743_test.cpp54 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 …]
Difaddrs_test.cpp195 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 …]
Dgrp_pwd_test.cpp107 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 …]
/bionic/libc/dns/net/
Dnsdispatch.c104 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/
DSymbolDatabase.cpp41 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()
DUtils.h81 std::string result; variable
84 result.append(to_string(item));
85 result.append(delimiter);
87 if (!result.empty()) {
88 result.resize(result.length() - delimiter.length());
90 return result;
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_fmaf.c54 double xy, result; in fmaf() local
58 result = xy + z; in fmaf()
59 EXTRACT_WORDS(hr, lr, result); in fmaf()
63 result - xy == z || /* exact */ in fmaf()
65 return (result); in fmaf()
75 if (result == adjusted_result) in fmaf()
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp530 TimedResult result; in InternalMalloc() local
536 result.setValue<void*>(nullptr); in InternalMalloc()
537 return result; in InternalMalloc()
542 result.setValue<void*>(nullptr); in InternalMalloc()
543 return result; in InternalMalloc()
547 result = TCALL(memalign, MINIMUM_ALIGNMENT_BYTES, real_size); in InternalMalloc()
548 Header* header = reinterpret_cast<Header*>(result.getValue<void*>()); in InternalMalloc()
550 return result; in InternalMalloc()
552 result.setValue<void*>(InitHeader(header, header, size)); in InternalMalloc()
554 result = TCALL(malloc, real_size); in InternalMalloc()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dfnmatch.c150 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 …]

1234567