Searched refs:base (Results 1 - 25 of 189) sorted by relevance

12345678

/bind-9.6-ESV-R11/lib/isc/include/isc/
H A Dparseint.h37 isc_parse_uint32(isc_uint32_t *uip, const char *string, int base);
40 isc_parse_uint16(isc_uint16_t *uip, const char *string, int base);
43 isc_parse_uint8(isc_uint8_t *uip, const char *string, int base);
45 * Parse the null-terminated string 'string' containing a base 'base'
47 * The base is interpreted
54 *\li 0 <= 'base' <= 36
58 *\li #ISC_R_BADNUMBER The string is not numeric (in the given base)
H A Dregion.h28 unsigned char * base; member in struct:isc_region
33 char * base; member in struct:isc_textregion
41 const void * base; member in struct:isc_constregion
46 const char * base; member in struct:isc_consttextregion
61 _r->base += _l; \
70 _r->base += _l; \
79 _r->base += _l; \
H A Dbuffer.h61 * a == base of buffer.
79 * base is a valid pointer to length bytes of memory
141 #define isc_buffer_base(b) ((void *)(b)->base) /*a*/
143 ((void *)((unsigned char *)(b)->base + (b)->current)) /*b*/
145 ((void *)((unsigned char *)(b)->base + (b)->active)) /*c*/
147 ((void *)((unsigned char *)(b)->base + (b)->used)) /*d*/
170 void *base; member in struct:isc_buffer
172 /*! The following integers are byte offsets from 'base'. */
225 isc__buffer_init(isc_buffer_t *b, void *base, unsigned int length);
227 * \brief Make 'b' refer to the 'length'-byte region starting at base
[all...]
/bind-9.6-ESV-R11/lib/isc/
H A Dinet_ntop.c121 struct { int base, len; } best, cur; member in struct:__anon182
133 best.base = -1;
134 cur.base = -1;
137 if (cur.base == -1)
138 cur.base = i, cur.len = 1;
142 if (cur.base != -1) {
143 if (best.base == -1 || cur.len > best.len)
145 cur.base = -1;
149 if (cur.base != -1) {
150 if (best.base
[all...]
H A Dstrtoul.c70 isc_strtoul(const char *nptr, char **endptr, int base) { argument
88 if ((base == 0 || base == 16) &&
92 base = 16;
94 if (base == 0)
95 base = c == '0' ? 8 : 10;
96 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base;
97 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base;
107 if (c >= base)
113 acc *= base;
[all...]
H A Dbase32.c46 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length);
57 isc_buffer_t *target, const char base[])
67 buf[0] = base[((source->base[0]>>3)&0x1f)]; /* 5 + */
69 buf[1] = base[(source->base[0]<<2)&0x1c];
75 buf[1] = base[((source->base[0]<<2)&0x1c)| /* 3 = 8 */
76 ((source->base[1]>>6)&0x03)]; /* 2 + */
77 buf[2] = base[((sourc
56 base32_totext(isc_region_t *source, int wordlength, const char *wordbreak, isc_buffer_t *target, const char base[]) argument
144 const char *base; /*%< Which encoding we are using */ member in struct:__anon148
149 base32_decode_init(base32_decode_ctx_t *ctx, int length, const char base[], isc_buffer_t *target) argument
255 base32_tobuffer(isc_lex_t *lexer, const char base[], isc_buffer_t *target, int length) argument
297 base32_decodestring(const char *cstr, const char base[], isc_buffer_t *target) argument
324 base32_decoderegion(isc_region_t *source, const char base[], isc_buffer_t *target) argument
364 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length) argument
[all...]
H A Dinet_aton.c91 int base, n; local
106 val = 0; base = 10; digit = 0;
110 base = 16, c = *++cp;
112 base = 8;
124 if (base == 8 && (c == '8' || c == '9'))
126 val = (val * base) + (c - '0');
129 } else if (base == 16 && isascii(c) && isxdigit(c)) {
H A Dparseint.c33 isc_parse_uint32(isc_uint32_t *uip, const char *string, int base) { argument
40 n = strtoul(string, &e, base);
56 isc_parse_uint16(isc_uint16_t *uip, const char *string, int base) { argument
59 result = isc_parse_uint32(&val, string, base);
69 isc_parse_uint8(isc_uint8_t *uip, const char *string, int base) { argument
72 result = isc_parse_uint32(&val, string, base);
H A Dresult.c35 unsigned int base; member in struct:resulttable
116 register_table(unsigned int base, unsigned int nresults, const char **text, argument
121 REQUIRE(base % ISC_RESULTCLASS_SIZE == 0);
132 table->base = base;
133 table->last = base + nresults - 1;
185 if (result >= table->base && result <= table->last) {
186 index = (int)(result - table->base);
208 isc_result_register(unsigned int base, unsigned int nresults, argument
213 return (register_table(base, nresult
[all...]
H A Dbase64.c46 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length);
64 buf[0] = base64[(source->base[0]>>2)&0x3f];
65 buf[1] = base64[((source->base[0]<<4)&0x30)|
66 ((source->base[1]>>4)&0x0f)];
67 buf[2] = base64[((source->base[1]<<2)&0x3c)|
68 ((source->base[2]>>6)&0x03)];
69 buf[3] = base64[source->base[2]&0x3f];
82 buf[0] = base64[(source->base[0]>>2)&0x3f];
83 buf[1] = base64[((source->base[0]<<4)&0x30)|
84 ((source->base[
243 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length) argument
[all...]
H A Dregion.c40 if ((result = memcmp(r1->base, r2->base, l)) != 0)
H A Dhex.c46 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length);
62 buf[0] = hex[(source->base[0] >> 4) & 0xf];
63 buf[1] = hex[(source->base[0]) & 0xf];
150 RETERR(hex_decode_char(&ctx, tr->base[i]));
186 memmove(region.base, source, l);
192 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length) { argument
198 memmove(tr.base, base, length);
H A Dstring.c62 isc_string_touint64(char *source, char **end, int base) { argument
69 if ((base < 0) || (base == 1) || (base > 36)) {
78 if (base == 0) {
81 base = 16;
83 base = 8;
85 base = 10;
92 overflow /= base;
103 if ((o - digits) >= base) {
[all...]
/bind-9.6-ESV-R11/lib/lwres/
H A Dlwinetntop.c118 struct { int base, len; } best, cur; member in struct:__anon225
130 best.base = -1;
132 cur.base = -1;
136 if (cur.base == -1)
137 cur.base = i, cur.len = 1;
141 if (cur.base != -1) {
142 if (best.base == -1 || cur.len > best.len)
144 cur.base = -1;
148 if (cur.base != -1) {
149 if (best.base
[all...]
H A Dstrtoul.c76 lwres_strtoul(const char *nptr, char **endptr, int base) { argument
94 if ((base == 0 || base == 16) &&
98 base = 16;
100 if (base == 0)
101 base = c == '0' ? 8 : 10;
102 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base;
103 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base;
113 if (c >= base)
119 acc *= base;
[all...]
H A Dlwinetaton.c95 int base, n; local
113 base = 10;
118 base = 16;
121 base = 8;
133 if (base == 8 && (c == '8' || c == '9'))
135 val = (val * base) + (c - '0');
138 } else if (base == 16 && isascii(c) && isxdigit(c)) {
H A Dlwbuffer.c58 * a == base of buffer.
72 * with the memory region of size length bytes starting at location base.
108 * base to b. Conversely, lwres_buffer_getmem() copies length bytes of
109 * memory from b to base.
121 lwres_buffer_init(lwres_buffer_t *b, void *base, unsigned int length) argument
124 * Make 'b' refer to the 'length'-byte region starting at base.
130 b->base = base;
145 b->base = NULL;
233 cp = b->base;
333 lwres_buffer_putmem(lwres_buffer_t *b, const unsigned char *base, unsigned int length) argument
348 lwres_buffer_getmem(lwres_buffer_t *b, unsigned char *base, unsigned int length) argument
[all...]
H A Dlwresutil.c53 * void *base;
150 data = b->base + b->current;
198 string = (char *)b->base + b->current;
260 b_in.base = NULL;
261 b_out.base = NULL;
294 ret = lwres_context_sendrecv(ctx, b_out.base, b_out.length, buffer,
320 CTXFREE(b_out.base, b_out.length);
321 b_out.base = NULL;
335 response->base = buffer;
343 if (b_out.base !
[all...]
/bind-9.6-ESV-R11/lib/dns/rdata/generic/
H A Dnaptr_35.c173 RETERR(mem_tobuffer(target, sr.base, 4));
211 RETERR(mem_tobuffer(target, sr.base, 4));
217 RETERR(mem_tobuffer(target, sr.base, sr.base[0] + 1));
218 isc_region_consume(&sr, sr.base[0] + 1);
223 RETERR(mem_tobuffer(target, sr.base, sr.base[0] + 1));
224 isc_region_consume(&sr, sr.base[0] + 1);
229 RETERR(mem_tobuffer(target, sr.base, sr.base[
[all...]
/bind-9.6-ESV-R11/lib/dns/
H A Drbtdb.h38 dns_rbtdb_create(isc_mem_t *mctx, dns_name_t *base, dns_dbtype_t type,
H A Drbtdb64.h39 dns_rbtdb64_create(isc_mem_t *mctx, dns_name_t *base, dns_dbtype_t type,
H A Dtcpmsg.c77 region.base = isc_mem_get(tcpmsg->mctx, tcpmsg->size);
79 if (region.base == NULL) {
85 isc_buffer_init(&tcpmsg->buffer, region.base, region.length);
140 tcpmsg->buffer.base = NULL;
173 if (tcpmsg->buffer.base != NULL) {
174 isc_mem_put(tcpmsg->mctx, tcpmsg->buffer.base,
176 tcpmsg->buffer.base = NULL;
189 region.base = (unsigned char *)&tcpmsg->size;
213 tcpmsg->buffer.base = NULL;
222 if (tcpmsg->buffer.base
[all...]
/bind-9.6-ESV-R11/lib/lwres/include/lwres/
H A Dlwbuffer.h54 * a == base of buffer.
72 * base is a valid pointer to length bytes of memory
150 unsigned char *base; member in struct:lwres_buffer
151 /* The following integers are byte offsets from 'base'. */
163 lwres_buffer_init(lwres_buffer_t *b, void *base, unsigned int length);
165 * Make 'b' refer to the 'length'-byte region starting at base.
171 * 'base' is a pointer to a sequence of 'length' bytes.
378 lwres_buffer_putmem(lwres_buffer_t *b, const unsigned char *base,
381 * Copy 'length' bytes of memory at 'base' into 'b'.
386 * 'base' point
[all...]
/bind-9.6-ESV-R11/lib/isccc/
H A Dccmsg.c83 region.base = isc_mem_get(ccmsg->mctx, ccmsg->size);
85 if (region.base == NULL) {
90 isc_buffer_init(&ccmsg->buffer, region.base, region.length);
143 ccmsg->buffer.base = NULL;
175 if (ccmsg->buffer.base != NULL) {
176 isc_mem_put(ccmsg->mctx, ccmsg->buffer.base,
178 ccmsg->buffer.base = NULL;
191 region.base = (unsigned char *)&ccmsg->size;
214 if (ccmsg->buffer.base == NULL)
217 isc_mem_put(ccmsg->mctx, ccmsg->buffer.base, ccms
[all...]
/bind-9.6-ESV-R11/bin/named/
H A Dlwdnoop.c62 r.base = lwb.base;
64 client->sendbuf = r.base;
80 lwres_context_freemem(client->clientmgr->lwctx, lwb.base, lwb.length);

Completed in 3699 milliseconds

12345678