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

123456

/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 Dsigpending.cpp37 int result = __rt_sigpending(&set, sizeof(set)); local
38 if (result != -1) {
41 return result;
H A Dstrtold.cpp36 long double result; local
37 __strtorQ(s, end_ptr, FLT_ROUNDS, &result);
38 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.cpp40 int result = ___fchmod(fd, mode); local
42 if ((result == 0) || (errno != EBADF)) {
43 return result;
63 result = chmod(buf, mode);
64 if ((result == -1) && (errno == ELOOP)) {
71 return result;
H A Dfork.cpp39 int result = clone(nullptr, local
46 if (result == 0) {
54 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 Dsigwait.cpp43 int result = __rt_sigtimedwait(sigset.get(), NULL, NULL, sizeof(sigset)); local
44 if (result >= 0) {
45 *sig = 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 Dpthread_sigmask.cpp37 int result = sigprocmask(how, new_set, old_set); local
38 return (result == -1) ? errno : 0;
H A Dflistxattr.cpp40 ssize_t result = ___flistxattr(fd, list, size); local
42 if ((result != -1) || (errno != EBADF)) {
43 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.cpp37 __LIBC_HIDDEN__ void __init_user_desc(struct user_desc* result, bool allocate, void* base_addr) { argument
40 result->entry_number = -1;
45 result->entry_number = (gs & 0xffff) >> 3;
48 result->base_addr = reinterpret_cast<uintptr_t>(base_addr);
50 result->limit = 0xfffff;
52 result->seg_32bit = 1;
53 result->contents = MODIFY_LDT_CONTENTS_DATA;
54 result->read_exec_only = 0;
55 result->limit_in_pages = 1;
56 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.cpp54 unsigned result = 0; local
56 result += test_loc.load(std::memory_order_relaxed);
59 sink = result;
64 unsigned result = 0; local
66 result += test_loc.load(std::memory_order_acquire);
69 sink = result;
92 unsigned result = 0; local
94 result += test_loc.fetch_add(1, std::memory_order_relaxed);
97 sink = result;
102 unsigned result local
115 unsigned result = 0; local
126 unsigned result = 0; local
139 unsigned result = 0; local
[all...]
/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 906 milliseconds

123456