Home
last modified time | relevance | path

Searched refs:res (Results 1 – 21 of 21) sorted by relevance

/bionic/libc/include/sys/
Dtime.h69 #define timeradd(a, b, res) \ argument
71 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
72 (res)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
73 if ((res)->tv_usec >= 1000000) { \
74 (res)->tv_usec -= 1000000; \
75 (res)->tv_sec += 1; \
79 #define timersub(a, b, res) \ argument
81 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
82 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
83 if ((res)->tv_usec < 0) { \
[all …]
/bionic/tests/
Dsys_xattr_test.cpp73 int res = fsetxattr(fd, "user.foo", "bar", 4, 0); in TEST() local
76 ASSERT_EQ(0, res); in TEST()
80 ASSERT_EQ(-1, res); in TEST()
91 int res = fsetxattr(fd, "user.foo", "01234567890123456789", 21, 0); in TEST() local
94 ASSERT_EQ(0, res); in TEST()
98 ASSERT_EQ(-1, res); in TEST()
119 ssize_t res = flistxattr(fd, buf, sizeof(buf)); in TEST() local
121 ASSERT_TRUE(res >= 9); in TEST()
122 ASSERT_TRUE(static_cast<size_t>(res) <= sizeof(buf)); in TEST()
123 ASSERT_TRUE(memmem(buf, res, "user.foo", 9) != nullptr); in TEST()
[all …]
Dfortify_test.cpp678 char* res = __strncat_chk(buf, "01234", sizeof(buf) - strlen(buf) - 1, sizeof(buf)); in TEST() local
679 ASSERT_EQ(buf, res); in TEST()
697 char* res = __strncat_chk(buf, "0123456789", 5, sizeof(buf)); in TEST() local
698 ASSERT_EQ(buf, res); in TEST()
715 char* res = __strncat_chk(buf, "0123456789", 5, sizeof(buf)); in TEST() local
716 ASSERT_EQ(buf, res); in TEST()
733 char* res = __strncat_chk(buf, "", 5, sizeof(buf)); in TEST() local
734 ASSERT_EQ(buf, res); in TEST()
752 char* res = __strncat_chk(buf, "01234567", 8, sizeof(buf)); in TEST() local
753 ASSERT_EQ(buf, res); in TEST()
[all …]
Dheap_tagging_level_test.cpp31 int res = prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0); in KernelSupportsTaggedPointers() local
32 return res >= 0 && res & PR_TAGGED_ADDR_ENABLE; in KernelSupportsTaggedPointers()
Dstring_test.cpp346 char* res = strcat(buf, "01234"); in TEST() local
347 ASSERT_EQ(buf, res); in TEST()
359 char* res = strcat(buf, "01234567"); in TEST() local
360 ASSERT_EQ(buf, res); in TEST()
369 char* res = strncat(buf, "01234", sizeof(buf) - strlen(buf) - 1); in TEST() local
370 ASSERT_EQ(buf, res); in TEST()
382 char* res = strncat(buf, "0123456789", 5); in TEST() local
383 ASSERT_EQ(buf, res); in TEST()
395 char* res = strncat(buf, "01234567", 8); in TEST() local
396 ASSERT_EQ(buf, res); in TEST()
[all …]
/bionic/libc/dns/net/
Dgethnamaddr.c93 #define maybe_ok(res, nm, ok) (((res)->options & RES_NOCHECKNAME) != 0U || \ argument
95 #define maybe_hnok(res, hn) maybe_ok((res), (hn), res_hnok) argument
96 #define maybe_dnok(res, dn) maybe_ok((res), (dn), res_dnok) argument
185 debugprintf(const char *msg, res_state res, ...) in debugprintf() argument
189 if (res->options & RES_DEBUG) { in debugprintf()
193 va_start (ap, res); in debugprintf()
201 # define debugprintf(msg, res, num) /*nada*/ argument
218 res_state res, struct hostent *hent, char *buf, size_t buflen, int *he) in getanswer() argument
270 if ((n < 0) || !maybe_ok(res, bp, name_ok)) in getanswer()
295 if ((n < 0) || !maybe_ok(res, bp, name_ok)) { in getanswer()
[all …]
Dgetaddrinfo.c408 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 …]
Dsethostent.c117 res_state res = __res_get_state(); in _hf_gethtbyname()
118 if (res == NULL) in _hf_gethtbyname()
120 if (res->options & RES_USE_INET6) in _hf_gethtbyname()
126 __res_put_state(res); in _hf_gethtbyname()
/bionic/libc/stdio/
Dvfwscanf.c578 uintmax_t res; in __vfwscanf() local
582 res = wcstoimax(buf, NULL, base); in __vfwscanf()
584 res = wcstoumax(buf, NULL, base); in __vfwscanf()
586 *va_arg(ap, void**) = (void*)(uintptr_t)res; in __vfwscanf()
588 *va_arg(ap, intmax_t*) = res; in __vfwscanf()
590 *va_arg(ap, long long*) = res; in __vfwscanf()
592 *va_arg(ap, ssize_t*) = res; in __vfwscanf()
594 *va_arg(ap, ptrdiff_t*) = res; in __vfwscanf()
596 *va_arg(ap, long*) = res; in __vfwscanf()
598 *va_arg(ap, short*) = res; in __vfwscanf()
[all …]
Dvfscanf.cpp671 uintmax_t res; in __svfscanf() local
675 res = strtoumax(buf, nullptr, base); in __svfscanf()
677 res = strtoimax(buf, nullptr, base); in __svfscanf()
680 *va_arg(ap, void**) = (void*)(uintptr_t)res; in __svfscanf()
682 *va_arg(ap, intmax_t*) = res; in __svfscanf()
684 *va_arg(ap, long long*) = res; in __svfscanf()
686 *va_arg(ap, ssize_t*) = res; in __svfscanf()
688 *va_arg(ap, ptrdiff_t*) = res; in __svfscanf()
690 *va_arg(ap, long*) = res; in __svfscanf()
692 *va_arg(ap, short*) = res; in __svfscanf()
[all …]
/bionic/benchmarks/
Dget_heap_size_benchmark.cpp51 int res = pthread_create(t + i, NULL, thread_func, object + i); in BM_mallinfo() local
52 if (res != 0) { in BM_mallinfo()
63 int res = pthread_join(t[i], NULL); in BM_mallinfo() local
64 if (res != 0) { in BM_mallinfo()
Ddlfcn_benchmark.cpp29 int res = dladdr(addr, &info); in bm_dladdr() local
30 if (res == 0) abort(); in bm_dladdr()
34 return res; in bm_dladdr()
/bionic/libc/dns/resolv/
Dres_send.c134 #define EXT(res) ((res)->_u._ext) argument
984 int res, origflags; in connect_with_timeout() local
989 res = __connect(sock, nsap, salen); in connect_with_timeout()
990 if (res < 0 && errno != EINPROGRESS) { in connect_with_timeout()
991 res = -1; in connect_with_timeout()
994 if (res != 0) { in connect_with_timeout()
1001 res = retrying_poll(sock, POLLIN | POLLOUT, &finish); in connect_with_timeout()
1002 if (res <= 0) { in connect_with_timeout()
1003 res = -1; in connect_with_timeout()
1010 " %d connect_with_const timeout returning %d\n", sock, res); in connect_with_timeout()
[all …]
Dres_state.c175 __res_put_state(res_state res __unused) in __res_put_state()
Dres_debug.c1167 struct tm res; in p_secstodate() local
1169 mytime = gmtime_r(&myclock, &res); in p_secstodate()
/bionic/libc/kernel/uapi/linux/
Dvirtio_input.h36 __u32 res; member
Daio_abi.h40 __s64 res; member
Dio_uring.h125 __s32 res; member
/bionic/linker/
Dlinker_cfi.cpp75 void* res = mremap(tmp_start, size, size, MREMAP_MAYMOVE | MREMAP_FIXED, in ~ShadowWrite() local
77 CHECK(res != MAP_FAILED); in ~ShadowWrite()
/bionic/libc/kernel/uapi/rdma/
Dib_user_mad.h86 __u16 res; member
/bionic/libc/dns/include/
Dresolv_private.h235 #define RES_GETLAST(res) (((res)._flags & RES_F_LASTMASK) >> RES_F_LASTSHIFT) argument