/bionic/libc/arch-x86/bionic/ |
D | __set_tls.c | 37 __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 = (uintptr_t) base_addr; in __init_user_desc() 50 result->limit = PAGE_SIZE; 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/libc/bionic/ |
D | getpriority.c | 34 int result = __getpriority(which, who); in getpriority() local 36 return ( result < 0 ) ? result : 20-result; in getpriority()
|
D | gethostname.c | 36 int result = 0; in gethostname() local 38 result = uname(&name); in gethostname() 39 if (result != -1) in gethostname() 45 result = -1; in gethostname() 50 return result; in gethostname()
|
D | pthread_getcpuclockid.cpp | 40 clockid_t result = ~static_cast<clockid_t>(thread->tid) << 3; in pthread_getcpuclockid() local 42 result |= 2; in pthread_getcpuclockid() 44 result |= (1 << 2); in pthread_getcpuclockid() 46 *clockid = result; in pthread_getcpuclockid()
|
D | __vsprintf_chk.cpp | 49 int result = vsnprintf(dest, dest_len_from_compiler, format, va); in __vsprintf_chk() local 50 if ((size_t) result >= dest_len_from_compiler) { in __vsprintf_chk() 53 return result; in __vsprintf_chk() 71 int result = __vsprintf_chk(dest, flags, dest_len_from_compiler, format, va); in __sprintf_chk() local 73 return result; in __sprintf_chk()
|
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() 94 int result; in dirname_r() local 128 result = len; in dirname_r() 134 return result; in dirname_r() 139 result = -1; in dirname_r() 147 return result; in dirname_r()
|
D | strtold.cpp | 36 long double result; in strtold() local 37 __strtorQ(s, end_ptr, FLT_ROUNDS, &result); in strtold() 38 return result; in strtold()
|
D | sigpending.cpp | 37 int result = __rt_sigpending(&set, sizeof(set)); in sigpending() local 38 if (result != -1) { in sigpending() 41 return result; in sigpending()
|
D | strerror.cpp | 38 char* result = const_cast<char*>(__strerror_lookup(error_number)); in strerror() local 39 if (result != NULL) { in strerror() 40 return result; in strerror()
|
D | fork.cpp | 45 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, &(self->tid), NULL); in fork() local 47 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, NULL, &(self->tid)); in fork() local 49 if (result == 0) { in fork() 56 return result; in fork()
|
D | strsignal.cpp | 39 char* result = const_cast<char*>(__strsignal_lookup(signal_number)); in strsignal() local 40 if (result != NULL) { in strsignal() 41 return result; in strsignal()
|
D | sigwait.cpp | 43 int result = __rt_sigtimedwait(sigset.get(), NULL, NULL, sizeof(sigset)); in sigwait() local 44 if (result >= 0) { in sigwait() 45 *sig = result; in sigwait()
|
D | mmap.cpp | 49 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); in mmap64() local 51 if (result != MAP_FAILED && kernel_has_MADV_MERGEABLE && is_private_anonymous) { in mmap64() 53 int rc = madvise(result, size, MADV_MERGEABLE); in mmap64() 59 return result; in mmap64()
|
D | pthread_sigmask.cpp | 37 int result = sigprocmask(how, new_set, old_set); in pthread_sigmask() local 38 return (result == -1) ? errno : 0; in pthread_sigmask()
|
D | ptrace.cpp | 50 long result = __ptrace(req, pid, addr, data); in ptrace() local 51 if (is_peek && result == 0) { in ptrace() 54 return result; in ptrace()
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | s_fmaf.c | 45 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()
|
D | s_csqrtl.c | 51 long double complex result; in csqrtl() local 97 result = cpackl(t, b / (2 * t)); in csqrtl() 100 result = cpackl(fabsl(b) / (2 * t), copysignl(t, b)); in csqrtl() 105 return (result * 2); in csqrtl() 107 return (result); in csqrtl()
|
D | s_csqrt.c | 51 double complex result; in csqrt() local 97 result = cpack(t, b / (2 * t)); in csqrt() 100 result = cpack(fabs(b) / (2 * t), copysign(t, b)); in csqrt() 105 return (result * 2); in csqrt() 107 return (result); in csqrt()
|
/bionic/libc/tools/ |
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
|
D | gensyscalls.py | 307 result = syscall_stub_header % syscall 315 result += " pushl %%%s\n" % register 317 result += " .cfi_def_cfa_offset 8\n" 318 result += " .cfi_rel_offset %s, 0\n" % register 321 result += " .cfi_adjust_cfa_offset 4\n" 322 result += " .cfi_rel_offset %s, 0\n" % register 326 result += mov_result 327 result += x86_call % syscall 330 result += " popl %%%s\n" % register 332 result += x86_return % syscall [all …]
|
/bionic/libc/dns/net/ |
D | nsdispatch.c | 103 int i, result; in nsdispatch() local 122 result = 0; in nsdispatch() 127 result = 0; in nsdispatch() 130 result = (*cb)(retval, cb_data, ap); in nsdispatch() 134 if (result & srclist[i].flags) in nsdispatch() 138 result &= NS_STATUSMASK; /* clear private flags in result */ in nsdispatch() 140 return (result ? result : NS_NOTFOUND); in nsdispatch()
|
/bionic/libc/private/ |
D | bionic_futex.h | 45 int result = syscall(__NR_futex, ftx, op, value, timeout); in __futex() local 46 if (__predict_false(result == -1)) { in __futex() 47 result = -errno; in __futex() 50 return result; in __futex()
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | fnmatch.c | 152 int result = FNM_NOMATCH; in fnmatch_ch() local 175 return (result ^ negate); in fnmatch_ch() 193 result = 0; in fnmatch_ch() 216 result = 0; in fnmatch_ch() 224 result = 0; in fnmatch_ch() 232 result = 0; in fnmatch_ch() 237 result = 0; in fnmatch_ch() 246 result = FNM_NOMATCH; in fnmatch_ch() 252 result = 0; in fnmatch_ch() 261 result = 0; in fnmatch_ch() [all …]
|
/bionic/tests/ |
D | sstream_test.cpp | 28 T result = T(0); in CheckOverflow() local 29 ss >> result; in CheckOverflow() 30 EXPECT_FALSE(ss.bad()) << value << ' ' << int64_t(result); in CheckOverflow() 31 EXPECT_EQ(should_overflow, ss.fail()) << value << ' ' << int64_t(result); in CheckOverflow() 33 ASSERT_EQ(expected, result) << value; in CheckOverflow()
|
/bionic/libc/tzcode/ |
D | asctime.c | 84 char result[MAX_ASCTIME_BUF_SIZE]; in asctime_r() local 106 (void) sprintf(result, 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()
|