Searched defs:base (Results 1 - 25 of 32) sorted by relevance

12

/bind-9.6-ESV-R11/lib/isc/include/isc/
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_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 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 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 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 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...]
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 Dbuffer.c31 isc__buffer_init(isc_buffer_t *b, void *base, unsigned int length) { argument
33 * Make 'b' refer to the 'length'-byte region starting at 'base'.
34 * XXXDCL see the comment in buffer.h about base being const.
39 ISC__BUFFER_INIT(b, base, length);
53 isc_buffer_reinit(isc_buffer_t *b, void *base, unsigned int length) { argument
55 * Re-initialize the buffer enough to reconfigure the base of the
64 REQUIRE(base != NULL);
66 (void)memmove(base, b->base, b->length);
67 b->base
398 isc__buffer_putmem(isc_buffer_t *b, const unsigned char *base, unsigned int length) argument
429 unsigned char *base; local
[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...]
H A Dlwres.h147 /*! if base != NULL, it will be freed when this structure is freed. */
148 void *base; member in struct:__anon218
171 /*! if base != NULL, it will be freed when this structure is freed. */
172 void *base; member in struct:__anon220
204 /*% if base != NULL, it will be freed when this structure is freed. */
205 void *base; member in struct:__anon222
/bind-9.6-ESV-R11/lib/lwres/
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 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 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 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...]
/bind-9.6-ESV-R11/bin/tests/
H A Dentropy_test.c35 unsigned char *base; local
38 base = data;
44 printf("%02x ", base[len]);
H A Dentropy2_test.c37 unsigned char *base; local
40 base = data;
46 printf("%02x ", base[len]);
H A Dlwres_test.c43 hexdump(const char *msg, void *base, size_t len) { argument
47 p = base;
50 printf("*** %s (%lu bytes @ %p)\n", msg, (unsigned long)len, base);
90 hexdump("rendered noop request", b.base, b.used);
111 lwres_context_freemem(ctx, b.base, b.length);
112 b.base = NULL;
126 hexdump("rendered noop response", b.base, b.used);
147 lwres_context_freemem(ctx, b.base, b.length);
148 b.base = NULL;
/bind-9.6-ESV-R11/bin/dnssec/
H A Ddnssectool.c110 r.base[r.length] = 0;
123 r.base[r.length] = 0;
269 strtotime(const char *str, isc_int64_t now, isc_int64_t base) { argument
278 val = base + offset;
307 DE_CONST(str, r.base);
/bind-9.6-ESV-R11/lib/isc/unix/
H A Dfile.c396 const char *base; local
402 base = isc_file_basename(filename);
403 len = strlen(base) + 1;
407 memmove(buf, base, len);
/bind-9.6-ESV-R11/bin/tests/timers/
H A Dt_timers.c100 isc_time_t base; local
124 isc_result = isc_time_add(&Tx_lasttime, &interval, &base);
139 isc_result = isc_time_add(&base, &interval, &ulim);
148 isc_result = isc_time_subtract(&base, &interval, &llim);
160 (unsigned long)isc_time_microdiff(&base, &now));
165 (unsigned long)isc_time_microdiff(&now, &base));
449 isc_time_t base; local
468 isc_result = isc_time_add(&Tx_lasttime, &interval, &base);
479 isc_result = isc_time_add(&base, &interval, &ulim);
488 isc_result = isc_time_subtract(&base,
580 isc_time_t base; local
[all...]
/bind-9.6-ESV-R11/contrib/sdb/ldap/
H A Dldapdb.c64 char *base; member in struct:ldapdb_data
260 msgid = ldap_search(*ldp, data->base, LDAP_SCOPE_SUBTREE, fltr, NULL, 0);
264 msgid = ldap_search(*ldp, data->base, LDAP_SCOPE_SUBTREE, fltr, NULL, 0);
508 data->base = s;
542 if (*data->base == '\0') {
543 data->base = NULL;
566 if ((data->base != NULL && unhex(data->base) == NULL) ||

Completed in 66 milliseconds

12