Home
last modified time | relevance | path

Searched refs:rs (Results 1 – 8 of 8) sorted by relevance

/bionic/libc/dns/net/
Dgetservent.c38 struct servent* getservent_r(res_static rs) { in getservent_r() argument
47 p = rs->servent_ptr; in getservent_r()
68 p2 = realloc( (char*)rs->servent.s_aliases, total ); in getservent_r()
73 rs->servent.s_aliases = (char**) p2; in getservent_r()
75 rs->servent.s_name = p2; in getservent_r()
77 rs->servent.s_proto = p2; in getservent_r()
80 memcpy( rs->servent.s_name, p+1, namelen ); in getservent_r()
81 rs->servent.s_name[namelen] = 0; in getservent_r()
88 rs->servent.s_port = htons(port); in getservent_r()
89 rs->servent.s_proto = p[2] == 't' ? "tcp" : "udp"; in getservent_r()
[all …]
Dsethostent.c71 res_static rs = __res_get_static(); in sethostent() local
72 if (rs) sethostent_r(&rs->hostf); in sethostent()
78 res_static rs = __res_get_static(); in endhostent() local
79 if (rs) endhostent_r(&rs->hostf); in endhostent()
Dgethnamaddr.c1540 res_static rs = __res_get_static(); /* Use res_static to provide thread-safety. */ in gethostbyname() local
1542 gethostbyname_r(name, &rs->host, rs->hostbuf, sizeof(rs->hostbuf), &result, &h_errno); in gethostbyname()
1550 res_static rs = __res_get_static(); /* Use res_static to provide thread-safety. */ in gethostbyname2() local
1552 gethostbyname2_r(name, af, &rs->host, rs->hostbuf, sizeof(rs->hostbuf), &result, &h_errno); in gethostbyname2()
1586 res_static rs = __res_get_static(); /* Use res_static to provide thread-safety. */ in android_gethostbynamefornetcontext() local
1587 hp = gethostbyname_internal(name, af, res, &rs->host, rs->hostbuf, sizeof(rs->hostbuf), in android_gethostbynamefornetcontext()
1617 res_static rs = __res_get_static(); /* Use res_static to provide thread-safety. */ in android_gethostbyaddrfornetcontext_proxy() local
1618 return android_gethostbyaddrfornetcontext_proxy_internal(addr, len, af, &rs->host, rs->hostbuf, in android_gethostbyaddrfornetcontext_proxy()
1619 sizeof(rs->hostbuf), &h_errno, netcontext); in android_gethostbyaddrfornetcontext_proxy()
1625 res_static rs = __res_get_static(); in gethostent() local
[all …]
/bionic/libc/upstream-openbsd/lib/libc/crypt/
Darc4random.c56 } *rs; variable
76 if (rs == NULL) { in _rs_init()
77 if (_rs_allocate(&rs, &rsx) == -1) in _rs_init()
93 if (!rs) in _rs_stir()
100 rs->rs_have = 0; in _rs_stir()
103 rs->rs_count = 1600000; in _rs_stir()
110 if (!rs || rs->rs_count <= len) in _rs_stir_if_needed()
112 if (rs->rs_count <= len) in _rs_stir_if_needed()
113 rs->rs_count = 0; in _rs_stir_if_needed()
115 rs->rs_count -= len; in _rs_stir_if_needed()
[all …]
/bionic/libc/upstream-openbsd/android/include/
Darc4random.h62 if (rs) in _rs_forkdetect()
63 memset(rs, 0, sizeof(*rs)); in _rs_forkdetect()
73 struct _rs rs; in _rs_allocate() member
83 *rsp = &p->rs; in _rs_allocate()
/bionic/libc/dns/resolv/
Dres_state.c71 _res_static_done( res_static rs ) in _res_static_done() argument
77 if (rs->hostf) { /* should not happen in theory, but just be safe */ in _res_static_done()
78 fclose(rs->hostf); in _res_static_done()
79 rs->hostf = NULL; in _res_static_done()
81 free(rs->servent.s_aliases); in _res_static_done()
/bionic/libc/kernel/uapi/asm-mips/asm/
Dinst.h750 …__BITFIELD_FIELD(unsigned int opcode : 6, __BITFIELD_FIELD(unsigned int rs : 5, __BITFIELD_FIELD(u…
754 …__BITFIELD_FIELD(unsigned int opcode : 6, __BITFIELD_FIELD(unsigned int rs : 5, __BITFIELD_FIELD(u…
758 …__BITFIELD_FIELD(unsigned int opcode : 6, __BITFIELD_FIELD(unsigned int rs : 5, __BITFIELD_FIELD(u…
762 …__BITFIELD_FIELD(unsigned int opcode : 6, __BITFIELD_FIELD(unsigned int rs : 5, __BITFIELD_FIELD(u…
766 …__BITFIELD_FIELD(unsigned int opcode : 6, __BITFIELD_FIELD(unsigned int rs : 5, __BITFIELD_FIELD(u…
770 …__BITFIELD_FIELD(unsigned int opcode : 6, __BITFIELD_FIELD(unsigned int rs : 5, __BITFIELD_FIELD(u…
778 …__BITFIELD_FIELD(unsigned int opcode : 6, __BITFIELD_FIELD(unsigned int rs : 5, __BITFIELD_FIELD(u…
794 …__BITFIELD_FIELD(unsigned int opcode : 6, __BITFIELD_FIELD(unsigned int rs : 5, __BITFIELD_FIELD(u…
802 …e : 6, __BITFIELD_FIELD(signed int s10 : 10, __BITFIELD_FIELD(unsigned int rs : 5, __BITFIELD_FIEL…
810 …__BITFIELD_FIELD(unsigned int opcode : 6, __BITFIELD_FIELD(unsigned int rs : 5, __BITFIELD_FIELD(u…
[all …]
/bionic/libc/
Dsymbol_ordering102 rs