Home
last modified time | relevance | path

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

/bionic/libc/include/sys/
Dtime.h60 #define timeradd(a, b, res) \ argument
62 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
63 (res)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
64 if ((res)->tv_usec >= 1000000) { \
65 (res)->tv_usec -= 1000000; \
66 (res)->tv_sec += 1; \
70 #define timersub(a, b, res) \ argument
72 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
73 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
74 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) != NULL); in TEST()
[all …]
Dfortify_test.cpp724 char* res = __strncat_chk(buf, "01234", sizeof(buf) - strlen(buf) - 1, sizeof(buf)); in TEST() local
725 ASSERT_EQ(buf, res); in TEST()
743 char* res = __strncat_chk(buf, "0123456789", 5, sizeof(buf)); in TEST() local
744 ASSERT_EQ(buf, res); in TEST()
761 char* res = __strncat_chk(buf, "0123456789", 5, sizeof(buf)); in TEST() local
762 ASSERT_EQ(buf, res); in TEST()
779 char* res = __strncat_chk(buf, "", 5, sizeof(buf)); in TEST() local
780 ASSERT_EQ(buf, res); in TEST()
798 char* res = __strncat_chk(buf, "01234567", 8, sizeof(buf)); in TEST() local
799 ASSERT_EQ(buf, res); in TEST()
[all …]
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
168 debugprintf(const char *msg, res_state res, ...) in debugprintf() argument
172 if (res->options & RES_DEBUG) { in debugprintf()
176 va_start (ap, res); in debugprintf()
184 # define debugprintf(msg, res, num) /*nada*/ argument
201 res_state res, struct hostent *hent, char *buf, size_t buflen, int *he) in getanswer() argument
253 if ((n < 0) || !maybe_ok(res, bp, name_ok)) in getanswer()
278 if ((n < 0) || !maybe_ok(res, bp, name_ok)) { in getanswer()
[all …]
Dgetaddrinfo.c406 const struct addrinfo *hints, struct addrinfo **res, unsigned netid) in android_getaddrinfo_proxy() argument
413 *res = NULL; in android_getaddrinfo_proxy()
461 struct addrinfo** nextres = res; in android_getaddrinfo_proxy()
552 if (*res) { in android_getaddrinfo_proxy()
553 freeaddrinfo(*res); in android_getaddrinfo_proxy()
554 *res = NULL; in android_getaddrinfo_proxy()
561 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument
563 return android_getaddrinfofornet(hostname, servname, hints, NETID_UNSET, MARK_UNSET, res); in getaddrinfo()
568 const struct addrinfo *hints, unsigned netid, unsigned mark, struct addrinfo **res) in android_getaddrinfofornet() argument
577 return android_getaddrinfofornetcontext(hostname, servname, hints, &netcontext, res); in android_getaddrinfofornet()
[all …]
Dsethostent.c104 res_state res = __res_get_state(); in _hf_gethtbyname()
105 if (res == NULL) in _hf_gethtbyname()
107 if (res->options & RES_USE_INET6) in _hf_gethtbyname()
113 __res_put_state(res); in _hf_gethtbyname()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dvfwscanf.c651 uintmax_t res; in __vfwscanf() local
655 res = wcstoimax(buf, NULL, base); in __vfwscanf()
657 res = wcstoumax(buf, NULL, base); in __vfwscanf()
660 (void *)(uintptr_t)res; in __vfwscanf()
662 *va_arg(ap, intmax_t *) = res; in __vfwscanf()
664 *va_arg(ap, long long *) = res; in __vfwscanf()
666 *va_arg(ap, ssize_t *) = res; in __vfwscanf()
668 *va_arg(ap, ptrdiff_t *) = res; in __vfwscanf()
670 *va_arg(ap, long *) = res; in __vfwscanf()
672 *va_arg(ap, short *) = res; in __vfwscanf()
[all …]
Dvfscanf.c729 uintmax_t res; in __svfscanf() local
733 res = strtoumax(buf, NULL, base); in __svfscanf()
735 res = strtoimax(buf, NULL, base); in __svfscanf()
738 (void *)(uintptr_t)res; in __svfscanf()
740 *va_arg(ap, intmax_t *) = res; in __svfscanf()
742 *va_arg(ap, long long *) = res; in __svfscanf()
744 *va_arg(ap, ssize_t *) = res; in __svfscanf()
746 *va_arg(ap, ptrdiff_t *) = res; in __svfscanf()
748 *va_arg(ap, long *) = res; in __svfscanf()
750 *va_arg(ap, short *) = res; in __svfscanf()
[all …]
/bionic/libc/kernel/uapi/linux/
Dvirtio_input.h40 __u32 res; member
Daio_abi.h41 __s64 res; member
/bionic/libc/dns/resolv/
Dres_send.c133 #define EXT(res) ((res)->_u._ext) argument
980 int res, origflags; in connect_with_timeout() local
987 res = __connect(sock, nsap, salen); in connect_with_timeout()
988 if (res < 0 && errno != EINPROGRESS) { in connect_with_timeout()
989 res = -1; in connect_with_timeout()
992 if (res != 0) { in connect_with_timeout()
1000 res = retrying_select(sock, &rset, &wset, &finish); in connect_with_timeout()
1001 if (res <= 0) { in connect_with_timeout()
1002 res = -1; in connect_with_timeout()
1009 " %d connect_with_timeout returning %d\n", sock, res); in connect_with_timeout()
[all …]
Dres_state.c211 __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/rdma/
Dib_user_mad.h102 __u16 res; member
/bionic/libc/dns/include/
Dresolv_private.h249 #define RES_GETLAST(res) (((res)._flags & RES_F_LASTMASK) >> RES_F_LASTSHIFT) argument