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

12345

/bionic/libc/bionic/
H A Dgetpriority.c34 int result = __getpriority(which, who); local
36 return ( result < 0 ) ? result : 20-result;
H A Dstrerror.cpp38 char* result = const_cast<char*>(__strerror_lookup(error_number)); local
39 if (result != nullptr) {
40 return result;
43 result = g_strerror_tls_buffer.get();
44 strerror_r(error_number, result, g_strerror_tls_buffer.size());
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;
44 if (clock_getres(result, &ts) == -1) {
48 *clockid = result;
H A Dpthread_getcpuclockid.cpp40 clockid_t result = ~static_cast<clockid_t>(thread->tid) << 3; local
42 result |= 2;
44 result |= (1 << 2);
46 *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 Dstrsignal.cpp39 char* result = const_cast<char*>(__strsignal_lookup(signal_number)); local
40 if (result != NULL) {
41 return result;
H A D__vsprintf_chk.cpp49 int result = vsnprintf(dest, dest_len_from_compiler, format, va); local
50 if ((size_t) result >= dest_len_from_compiler) {
53 return result;
71 int result = __vsprintf_chk(dest, flags, dest_len_from_compiler, format, va); local
73 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 Dfork.cpp45 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, &(self->tid), NULL); local
47 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, NULL, &(self->tid)); local
49 if (result == 0) {
56 return result;
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.cpp43 const char** result = static_cast<const char**>(dlsym(handle, "g_private_dlopened_string")); local
44 if (result == nullptr) {
50 return *result;
/bionic/libc/arch-x86/bionic/
H A D__set_tls.c37 __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 = (uintptr_t) base_addr;
50 result->limit = PAGE_SIZE;
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/libc/private/
H A DThreadLocalBuffer.h47 T* result = reinterpret_cast<T*>(pthread_getspecific(key_)); local
48 if (result == nullptr) {
49 result = reinterpret_cast<T*>(calloc(1, Size));
50 pthread_setspecific(key_, result);
52 return result;
/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 391 milliseconds

12345