/bionic/libc/bionic/ |
H A D | getpriority.c | 34 int result = __getpriority(which, who); local 36 return ( result < 0 ) ? result : 20-result;
|
H A D | strerror.cpp | 38 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 D | sigpending.cpp | 37 int result = __rt_sigpending(&set, sizeof(set)); local 38 if (result != -1) { 41 return result;
|
H A D | strtold.cpp | 36 long double result; local 37 __strtorQ(s, end_ptr, FLT_ROUNDS, &result); 38 return result;
|
H A D | clock_getcpuclockid.cpp | 38 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 D | pthread_getcpuclockid.cpp | 40 clockid_t result = ~static_cast<clockid_t>(thread->tid) << 3; local 42 result |= 2; 44 result |= (1 << 2); 46 *clockid = result;
|
H A D | fchmod.cpp | 40 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 D | strsignal.cpp | 39 char* result = const_cast<char*>(__strsignal_lookup(signal_number)); local 40 if (result != NULL) { 41 return result;
|
H A D | __vsprintf_chk.cpp | 49 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 D | sigwait.cpp | 43 int result = __rt_sigtimedwait(sigset.get(), NULL, NULL, sizeof(sigset)); local 44 if (result >= 0) { 45 *sig = result;
|
H A D | statvfs.cpp | 51 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 D | fork.cpp | 45 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 D | pthread_sigmask.cpp | 37 int result = sigprocmask(how, new_set, old_set); local 38 return (result == -1) ? errno : 0;
|
H A D | ptrace.cpp | 50 long result = __ptrace(req, pid, addr, data); local 51 if (is_peek && result == 0) { 54 return result;
|
H A D | mmap.cpp | 49 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); local 51 if (result != MAP_FAILED && kernel_has_MADV_MERGEABLE && is_private_anonymous) { 53 int rc = madvise(result, size, MADV_MERGEABLE); 59 return result;
|
H A D | sysinfo.cpp | 53 int result = 0; local 57 ++result; 60 return result; 69 int result = 0; local 79 ++result; 83 return result;
|
H A D | libgen.cpp | 46 int result; local 77 result = len; 79 return result; 83 result = -1; 91 return result; 97 int result; local 131 result = len; 137 return result; 142 result = -1; 150 return result; [all...] |
/bionic/tests/libs/ |
H A D | dlsym_from_this_functions.cpp | 25 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;
|
/bionic/libc/arch-x86/bionic/ |
H A D | __set_tls.c | 37 __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 D | s_fmaf.c | 45 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 D | ThreadLocalBuffer.h | 47 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 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 [all...] |
/bionic/libc/dns/net/ |
H A D | nsdispatch.c | 104 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/libc/upstream-netbsd/lib/libc/stdlib/ |
H A D | reallocarr.c | 59 int saved_errno, result; local 87 result = errno; 89 result = 0; 93 return result;
|
/bionic/libc/tzcode/ |
H A D | asctime.c | 84 char result[MAX_ASCTIME_BUF_SIZE]; local 106 (void) snprintf(result, sizeof(result), /* Android change: use snprintf. */ 112 if (strlen(result) < STD_ASCTIME_BUF_SIZE || buf == buf_asctime) 113 return strcpy(buf, result);
|