/bionic/libc/include/sys/ |
D | time.h | 82 #define timeradd(a, b, res) \ argument 84 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ 85 (res)->tv_usec = (a)->tv_usec + (b)->tv_usec; \ 86 if ((res)->tv_usec >= 1000000) { \ 87 (res)->tv_usec -= 1000000; \ 88 (res)->tv_sec += 1; \ 92 #define timersub(a, b, res) \ argument 94 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 95 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ 96 if ((res)->tv_usec < 0) { \ [all …]
|
/bionic/tests/ |
D | sys_xattr_test.cpp | 75 int res = fsetxattr(fd, "user.foo", "bar", 4, 0); in TEST() local 78 ASSERT_EQ(0, res); in TEST() 82 ASSERT_EQ(-1, res); in TEST() 93 int res = fsetxattr(fd, "user.foo", "01234567890123456789", 21, 0); in TEST() local 96 ASSERT_EQ(0, res); in TEST() 100 ASSERT_EQ(-1, res); in TEST() 121 ssize_t res = flistxattr(fd, buf, sizeof(buf)); in TEST() local 123 ASSERT_TRUE(res >= 9); in TEST() 124 ASSERT_TRUE(static_cast<size_t>(res) <= sizeof(buf)); in TEST() 125 ASSERT_TRUE(memmem(buf, res, "user.foo", 9) != nullptr); in TEST() [all …]
|
D | fortify_test.cpp | 681 char* res = __strncat_chk(buf, "01234", sizeof(buf) - strlen(buf) - 1, sizeof(buf)); in TEST() local 682 ASSERT_EQ(buf, res); in TEST() 700 char* res = __strncat_chk(buf, "0123456789", 5, sizeof(buf)); in TEST() local 701 ASSERT_EQ(buf, res); in TEST() 718 char* res = __strncat_chk(buf, "0123456789", 5, sizeof(buf)); in TEST() local 719 ASSERT_EQ(buf, res); in TEST() 736 char* res = __strncat_chk(buf, "", 5, sizeof(buf)); in TEST() local 737 ASSERT_EQ(buf, res); in TEST() 755 char* res = __strncat_chk(buf, "01234567", 8, sizeof(buf)); in TEST() local 756 ASSERT_EQ(buf, res); in TEST() [all …]
|
D | heap_tagging_level_test.cpp | 37 int res = prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0); in KernelSupportsTaggedPointers() local 38 return res >= 0 && res & PR_TAGGED_ADDR_ENABLE; in KernelSupportsTaggedPointers()
|
D | string_test.cpp | 358 char* res = strcat(buf, "01234"); in TEST() local 359 ASSERT_EQ(buf, res); in TEST() 371 char* res = strcat(buf, "01234567"); in TEST() local 372 ASSERT_EQ(buf, res); in TEST() 381 char* res = strncat(buf, "01234", sizeof(buf) - strlen(buf) - 1); in TEST() local 382 ASSERT_EQ(buf, res); in TEST() 394 char* res = strncat(buf, "0123456789", 5); in TEST() local 395 ASSERT_EQ(buf, res); in TEST() 407 char* res = strncat(buf, "01234567", 8); in TEST() local 408 ASSERT_EQ(buf, res); in TEST() [all …]
|
/bionic/libc/dns/net/ |
D | gethnamaddr.c | 92 #define maybe_ok(res, nm, ok) (((res)->options & RES_NOCHECKNAME) != 0U || \ argument 94 #define maybe_hnok(res, hn) maybe_ok((res), (hn), res_hnok) argument 95 #define maybe_dnok(res, dn) maybe_ok((res), (dn), res_dnok) argument 184 debugprintf(const char *msg, res_state res, ...) in debugprintf() argument 188 if (res->options & RES_DEBUG) { in debugprintf() 192 va_start (ap, res); in debugprintf() 200 # define debugprintf(msg, res, num) /*nada*/ argument 217 res_state res, struct hostent *hent, char *buf, size_t buflen, int *he) in getanswer() argument 269 if ((n < 0) || !maybe_ok(res, bp, name_ok)) in getanswer() 294 if ((n < 0) || !maybe_ok(res, bp, name_ok)) { in getanswer() [all …]
|
D | getaddrinfo.c | 408 const struct addrinfo *hints, struct addrinfo **res, unsigned netid) in android_getaddrinfo_proxy() argument 415 *res = NULL; in android_getaddrinfo_proxy() 462 struct addrinfo** nextres = res; in android_getaddrinfo_proxy() 553 if (*res) { in android_getaddrinfo_proxy() 554 freeaddrinfo(*res); in android_getaddrinfo_proxy() 555 *res = NULL; in android_getaddrinfo_proxy() 564 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument 566 return android_getaddrinfofornet(hostname, servname, hints, NETID_UNSET, MARK_UNSET, res); in getaddrinfo() 572 const struct addrinfo *hints, unsigned netid, unsigned mark, struct addrinfo **res) in android_getaddrinfofornet() argument 581 return android_getaddrinfofornetcontext(hostname, servname, hints, &netcontext, res); in android_getaddrinfofornet() [all …]
|
D | sethostent.c | 114 res_state res = __res_get_state(); in _hf_gethtbyname() 115 if (res == NULL) in _hf_gethtbyname() 117 if (res->options & RES_USE_INET6) in _hf_gethtbyname() 123 __res_put_state(res); in _hf_gethtbyname()
|
/bionic/libc/stdio/ |
D | vfwscanf.cpp | 544 uintmax_t res; in __vfwscanf() local 548 res = wcstoimax(buf, NULL, base); in __vfwscanf() 550 res = wcstoumax(buf, NULL, base); in __vfwscanf() 552 *va_arg(ap, void**) = reinterpret_cast<void*>(res); in __vfwscanf() 554 *va_arg(ap, intmax_t*) = res; in __vfwscanf() 556 *va_arg(ap, long long*) = res; in __vfwscanf() 558 *va_arg(ap, ssize_t*) = res; in __vfwscanf() 560 *va_arg(ap, ptrdiff_t*) = res; in __vfwscanf() 562 *va_arg(ap, long*) = res; in __vfwscanf() 564 *va_arg(ap, short*) = res; in __vfwscanf() [all …]
|
D | vfscanf.cpp | 641 uintmax_t res; in __svfscanf() local 645 res = strtoumax(buf, nullptr, base); in __svfscanf() 647 res = strtoimax(buf, nullptr, base); in __svfscanf() 650 *va_arg(ap, void**) = reinterpret_cast<void*>(res); in __svfscanf() 652 *va_arg(ap, intmax_t*) = res; in __svfscanf() 654 *va_arg(ap, long long*) = res; in __svfscanf() 656 *va_arg(ap, ssize_t*) = res; in __svfscanf() 658 *va_arg(ap, ptrdiff_t*) = res; in __svfscanf() 660 *va_arg(ap, long*) = res; in __svfscanf() 662 *va_arg(ap, short*) = res; in __svfscanf() [all …]
|
/bionic/tests/libs/ |
D | stack_tagging_helper.cpp | 58 T* res; in mte_increment_tag() local 62 : [Res] "=r"(res) in mte_increment_tag() 65 return res; in mte_increment_tag() 128 int res = waitpid(pid, &wstatus, 0); in vfork_parent() local 129 CHECK(res == pid); in vfork_parent() 203 int res = sigaltstack(&ss, &old_ss); in SigAltStackScoped() local 204 CHECK(res == 0); in SigAltStackScoped() 208 int res = sigaltstack(&old_ss, nullptr); in ~SigAltStackScoped() local 209 CHECK(res == 0); in ~SigAltStackScoped() 225 int res = sigaction(signo, &sa, &oldsa); in SigActionScoped() local [all …]
|
/bionic/benchmarks/ |
D | dlfcn_benchmark.cpp | 29 int res = dladdr(addr, &info); in bm_dladdr() local 30 if (res == 0) abort(); in bm_dladdr() 34 return res; in bm_dladdr()
|
D | get_heap_size_benchmark.cpp | 49 int res = pthread_create(t + i, NULL, thread_func, object + i); in BM_mallinfo() local 50 if (res != 0) { in BM_mallinfo() 61 int res = pthread_join(t[i], NULL); in BM_mallinfo() local 62 if (res != 0) { in BM_mallinfo()
|
D | syscall_mm_benchmark.cpp | 336 int res = mprotect(addr, params.size, params.initial_prot); in MprotectBenchmark() local 338 if (res != 0) { in MprotectBenchmark()
|
/bionic/libc/dns/resolv/ |
D | res_send.c | 134 #define EXT(res) ((res)->_u._ext) argument 983 int res, origflags; in connect_with_timeout() local 988 res = __connect(sock, nsap, salen); in connect_with_timeout() 989 if (res < 0 && errno != EINPROGRESS) { in connect_with_timeout() 990 res = -1; in connect_with_timeout() 993 if (res != 0) { in connect_with_timeout() 1000 res = retrying_poll(sock, POLLIN | POLLOUT, &finish); in connect_with_timeout() 1001 if (res <= 0) { in connect_with_timeout() 1002 res = -1; in connect_with_timeout() 1009 " %d connect_with_const timeout returning %d\n", sock, res); in connect_with_timeout() [all …]
|
D | res_state.c | 156 __res_put_state(res_state res __unused) in __res_put_state()
|
D | res_debug.c | 1185 struct tm res; in p_secstodate() local 1187 mytime = gmtime_r(&myclock, &res); in p_secstodate()
|
/bionic/libc/kernel/uapi/linux/ |
D | virtio_input.h | 24 __le32 res; member
|
D | aio_abi.h | 28 __s64 res; member
|
D | acrn.h | 185 } res[ACRN_MMIODEV_RES_NUM]; member
|
D | io_uring.h | 218 __s32 res; member
|
/bionic/libc/kernel/uapi/rdma/ |
D | ib_user_mad.h | 74 __u16 res; member
|
/bionic/linker/ |
D | linker_cfi.cpp | 75 void* res = mremap(tmp_start, size, size, MREMAP_MAYMOVE | MREMAP_FIXED, in ~ShadowWrite() local 77 CHECK(res != MAP_FAILED); in ~ShadowWrite()
|
/bionic/libc/dns/include/ |
D | resolv_private.h | 236 #define RES_GETLAST(res) (((res)._flags & RES_F_LASTMASK) >> RES_F_LASTSHIFT) argument
|
/bionic/libc/malloc_debug/ |
D | malloc_debug.cpp | 129 ScopedTimer(TimedResult& res) : res_(res) { res_.start_ns = Nanotime(); } in ScopedTimer() argument
|