Home
last modified time | relevance | path

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

12345

/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 …]
Dstrerror.cpp37 char* result = const_cast<char*>(__strerror_lookup(error_number)); in strerror() local
38 if (result != nullptr) { in strerror()
39 return result; in strerror()
43 result = tls.strerror_buf; in strerror()
44 strerror_r(error_number, result, sizeof(tls.strerror_buf)); in strerror()
45 return result; in strerror()
Dfchmod.cpp40 int result = ___fchmod(fd, mode); in fchmod() local
42 if ((result == 0) || (errno != EBADF)) { in fchmod()
43 return result; in fchmod()
63 result = chmod(buf, mode); in fchmod()
64 if ((result == -1) && (errno == ELOOP)) { in fchmod()
71 return result; in fchmod()
Dstatvfs.cpp51 int fstatfs(int fd, struct statfs* result) { in fstatfs() argument
52 int rc = __fstatfs64(fd, sizeof(*result), result); in fstatfs()
56 result->f_flags &= ~ST_VALID; in fstatfs()
61 int statfs(const char* path, struct statfs* result) { in statfs() argument
62 int rc = __statfs64(path, sizeof(*result), result); in statfs()
66 result->f_flags &= ~ST_VALID; in statfs()
71 int statvfs(const char* path, struct statvfs* result) { in statvfs() argument
77 __statfs_to_statvfs(tmp, result); in statvfs()
82 int fstatvfs(int fd, struct statvfs* result) { in fstatvfs() argument
88 __statfs_to_statvfs(tmp, result); in fstatvfs()
Dgetpriority.cpp34 int result = __getpriority(which, who); in getpriority() local
35 return (result < 0) ? result : 20-result; in getpriority()
Dclock_getcpuclockid.cpp38 clockid_t result = ~static_cast<clockid_t>(pid) << 3; in clock_getcpuclockid() local
40 result |= 2; in clock_getcpuclockid()
43 if (clock_getres(result, nullptr) == -1) { in clock_getcpuclockid()
47 *clockid = result; in clock_getcpuclockid()
Dpthread_getcpuclockid.cpp38 clockid_t result = ~static_cast<clockid_t>(tid) << 3; in pthread_getcpuclockid() local
40 result |= 2; in pthread_getcpuclockid()
42 result |= (1 << 2); in pthread_getcpuclockid()
44 *clockid = result; in pthread_getcpuclockid()
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()
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()
Dstrtold.cpp36 long double result; in strtold() local
37 __strtorQ(s, end_ptr, FLT_ROUNDS, &result); in strtold()
38 return result; in strtold()
Dsigpending.cpp37 int result = __rt_sigpending(&set, sizeof(set)); in sigpending() local
38 if (result != -1) { in sigpending()
41 return result; in sigpending()
Dstrsignal.cpp38 char* result = const_cast<char*>(__strsignal_lookup(signal_number)); in strsignal() local
39 if (result != NULL) { in strsignal()
40 return result; in strsignal()
Dfork.cpp39 int result = clone(nullptr, in fork() local
46 if (result == 0) { in fork()
54 return result; in fork()
Dsigwait.cpp43 int result = __rt_sigtimedwait(sigset.get(), NULL, NULL, sizeof(sigset)); in sigwait() local
44 if (result >= 0) { in sigwait()
45 *sig = result; in sigwait()
/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()
Dnamespaces_root.cpp59 const char** result = static_cast<const char**>(dlsym(handle, "g_private_dlopened_string")); in ns_get_dlopened_string() local
60 if (result == nullptr) { in ns_get_dlopened_string()
66 return *result; in ns_get_dlopened_string()
/bionic/benchmarks/
Datomic_benchmark.cpp54 unsigned result = 0; in BM_load_relaxed() local
56 result += test_loc.load(std::memory_order_relaxed); in BM_load_relaxed()
59 sink = result; in BM_load_relaxed()
64 unsigned result = 0; in BM_load_acquire() local
66 result += test_loc.load(std::memory_order_acquire); in BM_load_acquire()
69 sink = result; in BM_load_acquire()
92 unsigned result = 0; in BM_fetch_add_relaxed() local
94 result += test_loc.fetch_add(1, std::memory_order_relaxed); in BM_fetch_add_relaxed()
97 sink = result; in BM_fetch_add_relaxed()
102 unsigned result = 0; in BM_fetch_add_seq_cst() local
[all …]
/bionic/libc/arch-x86/bionic/
D__set_tls.cpp37 __LIBC_HIDDEN__ void __init_user_desc(struct user_desc* result, bool allocate, void* base_addr) { in __init_user_desc() argument
40 result->entry_number = -1; in __init_user_desc()
45 result->entry_number = (gs & 0xffff) >> 3; in __init_user_desc()
48 result->base_addr = reinterpret_cast<uintptr_t>(base_addr); in __init_user_desc()
50 result->limit = 0xfffff; in __init_user_desc()
52 result->seg_32bit = 1; in __init_user_desc()
53 result->contents = MODIFY_LDT_CONTENTS_DATA; in __init_user_desc()
54 result->read_exec_only = 0; in __init_user_desc()
55 result->limit_in_pages = 1; in __init_user_desc()
56 result->seg_not_present = 0; in __init_user_desc()
[all …]
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_fmaf.c45 double xy, result; in fmaf() local
49 result = xy + z; in fmaf()
50 EXTRACT_WORDS(hr, lr, result); in fmaf()
54 result - xy == z || /* exact */ in fmaf()
56 return (result); in fmaf()
66 if (result == adjusted_result) in fmaf()
/bionic/tests/
Dbug_26110743_test.cpp51 void* result; in TEST() local
52 ASSERT_EQ(0, pthread_join(t, &result)); in TEST()
53 ASSERT_EQ(NULL, result); in TEST()
66 void* result; in TEST() local
67 ASSERT_EQ(0, pthread_join(t, &result)); in TEST()
68 ASSERT_EQ(NULL, result); in TEST()
95 void* result; in TEST() local
96 ASSERT_EQ(0, pthread_join(t, &result)); in TEST()
97 ASSERT_EQ(NULL, result); in TEST()
110 void* result; in TEST() local
[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/libc/tools/
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
Dgensyscalls.py324 result = syscall_stub_header % syscall
332 result += " pushl %%%s\n" % register
334 result += " .cfi_def_cfa_offset 8\n"
335 result += " .cfi_rel_offset %s, 0\n" % register
338 result += " .cfi_adjust_cfa_offset 4\n"
339 result += " .cfi_rel_offset %s, 0\n" % register
343 result += x86_call_prepare
344 result += mov_result
345 result += x86_call % syscall
348 result += " popl %%%s\n" % register
[all …]
/bionic/tools/versioner/src/
DUtils.h79 std::string result; variable
82 result.append(to_string(item));
83 result.append(delimiter);
85 if (!result.empty()) {
86 result.resize(result.length() - delimiter.length());
88 return result;
/bionic/libc/tzcode/
Dasctime.c84 char result[MAX_ASCTIME_BUF_SIZE]; in asctime_r() local
106 snprintf(result, sizeof(result), /* Android change: use snprintf. */ in asctime_r()
112 if (strlen(result) < STD_ASCTIME_BUF_SIZE || buf == buf_asctime) in asctime_r()
113 return strcpy(buf, result); in asctime_r()

12345