Searched refs:result (Results 1 - 25 of 151) sorted by relevance

1234567

/bionic/libc/bionic/
H A Dlanginfo.cpp34 const char* result = ""; local
36 case CODESET: result = (MB_CUR_MAX == 1) ? "ASCII" : "UTF-8"; break;
38 case D_T_FMT: result = "%F %T %z"; break;
39 case D_FMT: result = "%F"; break;
40 case T_FMT: result = "%T"; break;
41 case T_FMT_AMPM: result = "%I:%M:%S %p"; break;
42 case AM_STR: result = "AM"; break;
43 case PM_STR: result = "PM"; break;
44 case DAY_1: result = "Sunday"; break;
45 case DAY_2: result
[all...]
H A Dgetpriority.cpp34 int result = __getpriority(which, who); local
35 return (result < 0) ? result : 20-result;
H A Dstrerror.cpp37 char* result = const_cast<char*>(__strerror_lookup(error_number)); local
38 if (result != nullptr) {
39 return result;
43 result = tls.strerror_buf;
44 strerror_r(error_number, result, sizeof(tls.strerror_buf));
45 return result;
H A Dstrtold.cpp38 long double result; local
39 __strtorQ(s, end_ptr, FLT_ROUNDS, &result);
40 return result;
H A Dclock_getcpuclockid.cpp38 clockid_t result = ~static_cast<clockid_t>(pid) << 3; local
40 result |= 2;
43 if (clock_getres(result, nullptr) == -1) {
47 *clockid = result;
H A Dpthread_getcpuclockid.cpp38 clockid_t result = ~static_cast<clockid_t>(tid) << 3;
40 result |= 2;
42 result |= (1 << 2);
44 *clockid = result;
H A Dfchmod.cpp42 int result = ___fchmod(fd, mode); local
43 if (result == 0 || errno != EBADF) {
44 return result;
62 result = chmod(FdPath(fd).c_str(), mode);
63 if (result == -1 && errno == ELOOP) {
70 return result;
H A Dfork.cpp40 int result = clone(nullptr, local
47 if (result == 0) {
55 return result;
H A Dstrsignal.cpp38 char* result = const_cast<char*>(__strsignal_lookup(signal_number)); local
39 if (result != NULL) {
40 return result;
H A Dstatvfs.cpp51 int fstatfs(int fd, struct statfs* result) { argument
52 int rc = __fstatfs64(fd, sizeof(*result), result);
56 result->f_flags &= ~ST_VALID;
61 int statfs(const char* path, struct statfs* result) { argument
62 int rc = __statfs64(path, sizeof(*result), result);
66 result->f_flags &= ~ST_VALID;
71 int statvfs(const char* path, struct statvfs* result) { argument
77 __statfs_to_statvfs(tmp, result);
82 fstatvfs(int fd, struct statvfs* result) argument
[all...]
H A Dfgetxattr.cpp42 ssize_t result = ___fgetxattr(fd, name, value, size); local
44 if (result != -1 || errno != EBADF) {
45 return result;
H A Dflistxattr.cpp42 ssize_t result = ___flistxattr(fd, list, size); local
43 if (result != -1 || errno != EBADF) {
44 return result;
H A Dfsetxattr.cpp42 int result = ___fsetxattr(fd, name, value, size, flags); local
43 if (result == 0 || errno != EBADF) {
44 return result;
H A Dptrace.cpp50 long result = __ptrace(req, pid, addr, data); local
51 if (is_peek && result == 0) {
54 return result;
H A Darpa_inet.cpp49 uint32_t result = 0; local
53 result = parts[0];
57 result = (parts[0] << 24) | parts[1];
61 result = (parts[0] << 24) | (parts[1] << 16) | parts[2];
65 result = (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8) | parts[3];
70 if (addr != nullptr) addr->s_addr = htonl(result);
/bionic/tests/libs/
H A Ddlsym_from_this_functions.cpp25 int* result = static_cast<int*>(dlsym(RTLD_DEFAULT, "test_dlsym_symbol")); local
27 if (result == nullptr) {
30 return result;
35 int* result = static_cast<int*>(dlsym(RTLD_DEFAULT, "test_dlsym_symbol2")); local
37 if (result == nullptr) {
40 return result;
45 int* result = static_cast<int*>(dlsym(RTLD_NEXT, "test_dlsym_symbol")); local
47 if (result == nullptr) {
50 return result;
H A Dnamespaces_root.cpp59 const char** result = static_cast<const char**>(dlsym(handle, "g_private_dlopened_string")); local
60 if (result == nullptr) {
66 return *result;
/bionic/libc/arch-x86/bionic/
H A D__set_tls.cpp36 __LIBC_HIDDEN__ void __init_user_desc(user_desc* result, bool allocate, void* base_addr) { argument
39 result->entry_number = -1;
44 result->entry_number = (gs & 0xffff) >> 3;
47 result->base_addr = reinterpret_cast<uintptr_t>(base_addr);
49 result->limit = 0xfffff;
51 result->seg_32bit = 1;
52 result->contents = MODIFY_LDT_CONTENTS_DATA;
53 result->read_exec_only = 0;
54 result->limit_in_pages = 1;
55 result
[all...]
/bionic/libm/upstream-freebsd/lib/msun/src/
H A Ds_fmaf.c45 double xy, result; local
49 result = xy + z;
50 EXTRACT_WORDS(hr, lr, result);
51 /* Common case: The double precision result is fine. */
54 result - xy == z || /* exact */
56 return (result);
59 * If result is inexact, and exactly halfway between two float values,
66 if (result == adjusted_result)
/bionic/benchmarks/
H A Datomic_benchmark.cpp56 unsigned result = 0; local
58 result += test_loc.load(std::memory_order_relaxed);
61 sink = result;
66 unsigned result = 0; local
68 result += test_loc.load(std::memory_order_acquire);
71 sink = result;
94 unsigned result = 0; local
96 result += test_loc.fetch_add(1, std::memory_order_relaxed);
99 sink = result;
104 unsigned result local
117 unsigned result = 0; local
128 unsigned result = 0; local
141 unsigned result = 0; local
[all...]
/bionic/linker/
H A Dlinker_globals.cpp54 std::string result{"Warning: "};
58 android::base::StringAppendV(&result, fmt, ap);
61 android::base::StringAppendF(&result,
66 DL_WARN("%s", result.c_str());
/bionic/libc/tools/
H A 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
[all...]
/bionic/libc/dns/net/
H A Dnsdispatch.c104 int i, result; local
123 result = 0;
128 result = 0;
131 result = (*cb)(retval, cb_data, ap);
135 if (result & srclist[i].flags)
138 if ((result & NS_UNAVAIL) != 0 && errno == ENOSPC) {
143 result &= NS_STATUSMASK; /* clear private flags in result */
145 return (result ? result
[all...]
/bionic/tests/
H A Dbug_26110743_test.cpp51 void* result; local
52 ASSERT_EQ(0, pthread_join(t, &result));
53 ASSERT_EQ(NULL, result);
66 void* result; local
67 ASSERT_EQ(0, pthread_join(t, &result));
68 ASSERT_EQ(NULL, result);
95 void* result; local
96 ASSERT_EQ(0, pthread_join(t, &result));
97 ASSERT_EQ(NULL, result);
110 void* result; local
[all...]
/bionic/libc/upstream-netbsd/lib/libc/stdlib/
H A Dreallocarr.c59 int saved_errno, result; local
87 result = errno;
89 result = 0;
93 return result;

Completed in 2616 milliseconds

1234567