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

12

/bind-9.11.3/lib/isc/include/isc/
H A Dregion.h20 unsigned char * base; member in struct:isc_region
25 char * base; member in struct:isc_textregion
33 const void * base; member in struct:isc_constregion
38 const char * base; member in struct:isc_consttextregion
53 _r->base += _l; \
62 _r->base += _l; \
71 _r->base += _l; \
H A Dbuffer.h50 * a == base of buffer.
68 * 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'. */
271 isc__buffer_init(isc_buffer_t *b, void *base, unsigned int length);
273 * \brief Make 'b' refer to the 'length'-byte region starting at base
[all...]
/bind-9.11.3/lib/isc/
H A Dinet_aton.c82 int base; local
98 val = 0; base = 10; digit = 0;
102 base = 16, c = *++cp;
104 base = 8;
116 if (base == 8 && (c == '8' || c == '9'))
118 val = (val * base) + (c - '0');
121 } else if (base == 16 && isascii(c) && isxdigit(c)) {
H A Dparseint.c24 isc_parse_uint32(isc_uint32_t *uip, const char *string, int base) { argument
31 n = strtoul(string, &e, base);
47 isc_parse_uint16(isc_uint16_t *uip, const char *string, int base) { argument
50 result = isc_parse_uint32(&val, string, base);
60 isc_parse_uint8(isc_uint8_t *uip, const char *string, int base) { argument
63 result = isc_parse_uint32(&val, string, base);
H A Dstrtoul.c61 isc_strtoul(const char *nptr, char **endptr, int base) { argument
79 if ((base == 0 || base == 16) &&
83 base = 16;
85 if (base == 0)
86 base = c == '0' ? 8 : 10;
87 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base;
88 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base;
98 if (c >= base)
104 acc *= base;
[all...]
H A Dinet_ntop.c116 struct { int base, len; } best, cur; member in struct:__anon260
128 best.base = -1;
130 cur.base = -1;
134 if (cur.base == -1)
135 cur.base = i, cur.len = 1;
139 if (cur.base != -1) {
140 if (best.base == -1 || cur.len > best.len)
142 cur.base = -1;
146 if (cur.base != -1) {
147 if (best.base
[all...]
H A Dbase64.c37 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length);
55 buf[0] = base64[(source->base[0]>>2)&0x3f];
56 buf[1] = base64[((source->base[0]<<4)&0x30)|
57 ((source->base[1]>>4)&0x0f)];
58 buf[2] = base64[((source->base[1]<<2)&0x3c)|
59 ((source->base[2]>>6)&0x03)];
60 buf[3] = base64[source->base[2]&0x3f];
73 buf[0] = base64[(source->base[0]>>2)&0x3f];
74 buf[1] = base64[((source->base[0]<<4)&0x30)|
75 ((source->base[
234 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length) argument
[all...]
H A Dhex.c37 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length);
53 buf[0] = hex[(source->base[0] >> 4) & 0xf];
54 buf[1] = hex[(source->base[0]) & 0xf];
141 RETERR(hex_decode_char(&ctx, tr->base[i]));
177 memmove(region.base, source, l);
183 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length) { argument
189 memmove(tr.base, base, length);
H A Dresult.c24 unsigned int base; member in struct:resulttable
177 register_table(resulttable_list_t *tables, unsigned int base, argument
183 REQUIRE(base % ISC_RESULTCLASS_SIZE == 0);
194 table->base = base;
195 table->last = base + nresults - 1;
259 if (result >= table->base && result <= table->last) {
260 index = (int)(result - table->base);
292 isc_result_register(unsigned int base, unsigned int nresults, argument
297 return (register_table(&description_tables, base, nresult
302 isc_result_registerids(unsigned int base, unsigned int nresults, const char **ids, isc_msgcat_t *msgcat, int set) argument
[all...]
H A Dstring.c53 isc_string_touint64(char *source, char **end, int base) { argument
60 if ((base < 0) || (base == 1) || (base > 36)) {
69 if (base == 0) {
72 base = 16;
74 base = 8;
76 base = 10;
83 overflow /= base;
94 if ((o - digits) >= base) {
[all...]
H A Dbase32.c38 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length);
49 isc_buffer_t *target, const char base[], char pad)
59 buf[0] = base[((source->base[0]>>3)&0x1f)]; /* 5 + */
61 buf[1] = base[(source->base[0]<<2)&0x1c];
67 buf[1] = base[((source->base[0]<<2)&0x1c)| /* 3 = 8 */
68 ((source->base[1]>>6)&0x03)]; /* 2 + */
69 buf[2] = base[((sourc
48 base32_totext(isc_region_t *source, int wordlength, const char *wordbreak, isc_buffer_t *target, const char base[], char pad) argument
145 const char *base; /*%< Which encoding we are using */ member in struct:__anon215
151 base32_decode_init(base32_decode_ctx_t *ctx, int length, const char base[], isc_boolean_t pad, isc_buffer_t *target) argument
278 base32_tobuffer(isc_lex_t *lexer, const char base[], isc_boolean_t pad, isc_buffer_t *target, int length) argument
325 base32_decodestring(const char *cstr, const char base[], isc_boolean_t pad, isc_buffer_t *target) argument
359 base32_decoderegion(isc_region_t *source, const char base[], isc_boolean_t pad, isc_buffer_t *target) argument
406 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length) argument
[all...]
H A Dbuffer.c21 isc__buffer_init(isc_buffer_t *b, void *base, unsigned int length) { argument
23 * Make 'b' refer to the 'length'-byte region starting at 'base'.
24 * XXXDCL see the comment in buffer.h about base being const.
29 ISC__BUFFER_INIT(b, base, length);
43 isc_buffer_reinit(isc_buffer_t *b, void *base, unsigned int length) { argument
45 * Re-initialize the buffer enough to reconfigure the base of the
54 REQUIRE(base != NULL);
57 (void)memmove(base, b->base, b->length);
58 b->base
421 isc__buffer_putmem(isc_buffer_t *b, const unsigned char *base, unsigned int length) argument
505 unsigned char *base; local
[all...]
/bind-9.11.3/lib/lwres/include/lwres/
H A Dlwbuffer.h45 * a == base of buffer.
63 * base is a valid pointer to length bytes of memory
141 unsigned char *base; member in struct:lwres_buffer
142 /* The following integers are byte offsets from 'base'. */
154 lwres_buffer_init(lwres_buffer_t *b, void *base, unsigned int length);
156 * Make 'b' refer to the 'length'-byte region starting at base.
162 * 'base' is a pointer to a sequence of 'length' bytes.
369 lwres_buffer_putmem(lwres_buffer_t *b, const unsigned char *base,
372 * Copy 'length' bytes of memory at 'base' into 'b'.
377 * 'base' point
[all...]
H A Dlwres.h139 /*! if base != NULL, it will be freed when this structure is freed. */
140 void *base; member in struct:__anon317
163 /*! if base != NULL, it will be freed when this structure is freed. */
164 void *base; member in struct:__anon319
196 /*% if base != NULL, it will be freed when this structure is freed. */
197 void *base; member in struct:__anon321
/bind-9.11.3/lib/lwres/
H A Dlwinetaton.c86 int base; local
105 base = 10;
110 base = 16;
113 base = 8;
125 if (base == 8 && (c == '8' || c == '9'))
127 val = (val * base) + (c - '0');
130 } else if (base == 16 && isascii(c) && isxdigit(c)) {
H A Dcompat.c66 lwres_strtoul(const char *nptr, char **endptr, int base) { argument
84 if ((base == 0 || base == 16) &&
88 base = 16;
90 if (base == 0)
91 base = c == '0' ? 8 : 10;
92 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base;
93 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base;
103 if (c >= base)
109 acc *= base;
[all...]
H A Dlwinetntop.c109 struct { int base, len; } best, cur; member in struct:__anon324
121 best.base = -1;
123 cur.base = -1;
127 if (cur.base == -1)
128 cur.base = i, cur.len = 1;
132 if (cur.base != -1) {
133 if (best.base == -1 || cur.len > best.len)
135 cur.base = -1;
139 if (cur.base != -1) {
140 if (best.base
[all...]
H A Dlwbuffer.c49 * a == base of buffer.
63 * with the memory region of size length bytes starting at location base.
99 * base to b. Conversely, lwres_buffer_getmem() copies length bytes of
100 * memory from b to base.
112 lwres_buffer_init(lwres_buffer_t *b, void *base, unsigned int length) argument
115 * Make 'b' refer to the 'length'-byte region starting at base.
121 b->base = base;
136 b->base = NULL;
224 cp = b->base;
324 lwres_buffer_putmem(lwres_buffer_t *b, const unsigned char *base, unsigned int length) argument
339 lwres_buffer_getmem(lwres_buffer_t *b, unsigned char *base, unsigned int length) argument
[all...]
/bind-9.11.3/bin/tests/
H A Dentropy_test.c27 unsigned char *base; local
30 base = data;
36 printf("%02x ", base[len]);
H A Dentropy2_test.c29 unsigned char *base; local
32 base = data;
38 printf("%02x ", base[len]);
H A Dlwres_test.c35 hexdump(const char *msg, void *base, size_t len) { argument
39 p = base;
42 printf("*** %s (%lu bytes @ %p)\n", msg, (unsigned long)len, base);
82 hexdump("rendered noop request", b.base, b.used);
103 lwres_context_freemem(ctx, b.base, b.length);
104 b.base = NULL;
118 hexdump("rendered noop response", b.base, b.used);
139 lwres_context_freemem(ctx, b.base, b.length);
140 b.base = NULL;
/bind-9.11.3/lib/dns/tests/
H A Drbt_serialize_test.c142 fix_data(dns_rbtnode_t *p, void *base, size_t max, void *arg, argument
148 UNUSED(base);
166 size = max - ((char *)p - (char *)base);
285 char *base; local
321 base = mmap(NULL, filesize,
324 ATF_REQUIRE(base != NULL && base != MAP_FAILED);
327 result = dns_rbt_deserialize_tree(base, filesize, 0, mctx,
341 munmap(base, filesize);
357 char *base, * local
[all...]
/bind-9.11.3/lib/dns/
H A Dpkcs11dh_link.c47 * attribute CKA_BASE (base g)
53 * attribute CKA_BASE (base g)
59 * attribute CKA_BASE (base g)
235 memmove(r.base, secValue + i, attr->ulValueLen - i);
643 *region->base = (val & 0xff00) >> 8;
645 *region->base = (val & 0x00ff);
652 unsigned char *cp = region->base;
668 CK_BYTE *prime = NULL, *base = NULL, *pub = NULL; local
687 base = (CK_BYTE *) attr->pValue;
691 REQUIRE((prime != NULL) && (base !
744 CK_BYTE *prime = NULL, *base = NULL, *pub = NULL; local
924 CK_ATTRIBUTE *prime = NULL, *base = NULL, *pub = NULL, *prv = NULL; local
[all...]
H A Dpkcs11dsa_link.c44 * attribute CKA_BASE (base g)
51 * attribute CKA_BASE (base g)
58 * attribute CKA_BASE (base g)
373 (CK_BYTE_PTR) data->base,
379 (CK_BYTE_PTR) data->base,
399 (pk11_ctx->session, (CK_BYTE_PTR) r.base + 1, &siglen),
407 *r.base = klen;
422 (CK_BYTE_PTR) sig->base + 1,
719 CK_ATTRIBUTE *base = NULL, *pub_key = NULL; local
737 base
788 CK_BYTE *prime, *subprime, *base, *pub_key; local
904 CK_ATTRIBUTE *prime = NULL, *subprime = NULL, *base = NULL; local
[all...]
/bind-9.11.3/bin/tests/timers/
H A Dt_timers.c91 isc_time_t base; local
114 isc_result = isc_time_add(&Tx_lasttime, &interval, &base);
129 isc_result = isc_time_add(&base, &interval, &ulim);
138 isc_result = isc_time_subtract(&base, &interval, &llim);
150 (unsigned long)isc_time_microdiff(&base, &now));
155 (unsigned long)isc_time_microdiff(&now, &base));
439 isc_time_t base; local
457 isc_result = isc_time_add(&Tx_lasttime, &interval, &base);
468 isc_result = isc_time_add(&base, &interval, &ulim);
477 isc_result = isc_time_subtract(&base,
569 isc_time_t base; local
[all...]

Completed in 44 milliseconds

12