Searched refs:buf (Results 1 - 25 of 221) sorted by relevance

123456789

/bind-9.6-ESV-R11/bin/tests/
H A Dserial_test.c30 char buf[1024]; local
33 while (fgets(buf, sizeof(buf), stdin) != NULL) {
34 buf[sizeof(buf) - 1] = '\0';
35 s = buf;
H A Dinter_test.c36 char buf[128]; local
56 res = inet_ntop(ifdata.af, &ifdata.address.type, buf,
57 sizeof(buf));
66 res = inet_ntop(ifdata.af, &ifdata.netmask.type, buf,
67 sizeof(buf));
72 buf, sizeof(buf));
103 res = inet_ntop(ifdata.af, &ifdata.address.type, buf,
104 sizeof(buf));
113 res = inet_ntop(ifdata.af, &ifdata.netmask.type, buf,
[all...]
H A Dgxbn_test.c49 char buf[128]; local
50 inet_ntop(he->h_addrtype, *c, buf, sizeof(buf));
51 printf("\taddress[%d] = %s\n", i, buf);
/bind-9.6-ESV-R11/unit/atf-src/atf-c/detail/
H A Dsanity.c46 char buf[4096]; local
49 vsnprintf(buf, sizeof(buf), fmt, ap);
51 warnx("%s", buf);
H A Denv.c69 char *buf; local
71 err = atf_text_format(&buf, "%s=%s", name, val);
73 if (putenv(buf) == -1)
76 free(buf);
94 char *buf; local
96 err = atf_text_format(&buf, "%s=", name);
98 if (putenv(buf) == -1)
101 free(buf);
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/tools/idnconv/
H A Dutil.h86 extern void strbuf_init(idnconv_strbuf_t *buf);
87 extern void strbuf_reset(idnconv_strbuf_t *buf);
88 extern char *strbuf_get(idnconv_strbuf_t *buf);
89 extern size_t strbuf_size(idnconv_strbuf_t *buf);
90 extern char *strbuf_copy(idnconv_strbuf_t *buf, const char *str);
91 extern char *strbuf_append(idnconv_strbuf_t *buf, const char *str);
92 extern char *strbuf_alloc(idnconv_strbuf_t *buf, size_t size);
93 extern char *strbuf_double(idnconv_strbuf_t *buf);
94 extern char *strbuf_getline(idnconv_strbuf_t *buf, FILE *fp);
H A Dutil.c437 strbuf_init(idnconv_strbuf_t *buf) { argument
443 buf->str = buf->local_buf;
444 buf->str[0] = '\0';
445 buf->size = sizeof(buf->local_buf);
449 strbuf_reset(idnconv_strbuf_t *buf) { argument
455 if (buf->str != NULL && buf->str != buf
462 strbuf_get(idnconv_strbuf_t *buf) argument
470 strbuf_size(idnconv_strbuf_t *buf) argument
478 strbuf_copy(idnconv_strbuf_t *buf, const char *str) argument
491 strbuf_append(idnconv_strbuf_t *buf, const char *str) argument
507 strbuf_alloc(idnconv_strbuf_t *buf, size_t size) argument
530 strbuf_double(idnconv_strbuf_t *buf) argument
538 strbuf_getline(idnconv_strbuf_t *buf, FILE *fp) argument
[all...]
/bind-9.6-ESV-R11/lib/dns/tests/
H A Dtime_test.c48 char buf[128]; local
54 memset(buf, 0, sizeof(buf));
55 isc_buffer_init(&target, buf, sizeof(buf));
58 ATF_REQUIRE_STREQ(buf, test_text);
76 char buf[128]; local
82 memset(buf, 0, sizeof(buf));
83 isc_buffer_init(&target, buf, sizeo
104 char buf[128]; local
132 char buf[128]; local
160 char buf[128]; local
188 char buf[128]; local
[all...]
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/lib/
H A Drace.c95 unsigned short *buf,
105 unsigned short *buf = NULL; local
131 buf = malloc(sizeof(*buf) * buflen);
132 if (buf == NULL) {
140 r = race_decode_decompress(from, buf, buflen);
145 * Now 'buf' points the decompressed string, which must contain
152 r = idn_ucs4_utf16toucs4(buf, to, tolen);
157 free(buf);
168 race_decode_decompress(const char *from, unsigned short *buf, size_ argument
245 unsigned short *p, *buf = NULL; local
[all...]
H A Ddebug.c66 char *buf = bufs[bufno]; local
73 for (i = 0, p = buf; i < maxbytes; i += 3, s++) {
89 return (buf);
94 char *buf = bufs[bufno]; local
102 p = buf;
127 return (buf);
132 char *buf = bufs[bufno]; local
140 p = buf;
179 return (buf);
184 char *buf local
222 char *buf = bufs[bufno]; local
[all...]
H A Dlog.c71 static void log_to_stderr(int level, const char *buf);
169 char buf[1024]; local
177 (void)vsnprintf(buf, sizeof(buf), fmt, args);
180 (void)vsprintf(buf, fmt, args);
182 (*log_proc)(level, buf);
186 log_to_stderr(int level, const char *buf) { argument
214 fprintf(stderr, "%u: [%s] %s", (unsigned int)getpid(), title, buf);
/bind-9.6-ESV-R11/lib/isc/
H A Dbase32.c59 char buf[9]; local
65 memset(buf, 0, sizeof(buf));
67 buf[0] = base[((source->base[0]>>3)&0x1f)]; /* 5 + */
69 buf[1] = base[(source->base[0]<<2)&0x1c];
70 buf[2] = buf[3] = buf[4] = '=';
71 buf[5] = buf[
222 unsigned char buf[5]; local
[all...]
H A Dprint.c83 char buf[1024]; local
250 sprintf(buf, "%lu",
261 sprintf(buf, "%lu", hi);
263 buf[0] = '\n';
264 sprintf(buf + strlen(buf), "%lu", mid);
265 sprintf(buf + strlen(buf), "%lu", lo);
276 sprintf(buf, alt ? "%#lo" : "%lo",
287 sprintf(buf,
[all...]
H A Dbase64.c56 char buf[5]; local
62 memset(buf, 0, sizeof(buf));
64 buf[0] = base64[(source->base[0]>>2)&0x3f];
65 buf[1] = base64[((source->base[0]<<4)&0x30)|
67 buf[2] = base64[((source->base[1]<<2)&0x3c)|
69 buf[3] = base64[source->base[2]&0x3f];
70 RETERR(str_totext(buf, target));
82 buf[0] = base64[(source->base[0]>>2)&0x3f];
83 buf[
130 unsigned char buf[3]; local
[all...]
H A Dmd5.c46 byteSwap(isc_uint32_t *buf, unsigned words) argument
48 unsigned char *p = (unsigned char *)buf;
51 *buf++ = (isc_uint32_t)((unsigned)p[3] << 8 | p[2]) << 16 |
63 ctx->buf[0] = 0x67452301;
64 ctx->buf[1] = 0xefcdab89;
65 ctx->buf[2] = 0x98badcfe;
66 ctx->buf[3] = 0x10325476;
97 transform(isc_uint32_t buf[4], isc_uint32_t const in[16]) { argument
100 a = buf[0];
101 b = buf[
184 isc_md5_update(isc_md5_t *ctx, const unsigned char *buf, unsigned int len) argument
[all...]
/bind-9.6-ESV-R11/lib/isc/unix/
H A Dstrerror.c47 isc__strerror(int num, char *buf, size_t size) { argument
53 REQUIRE(buf != NULL);
60 snprintf(buf, size, "%s", msg);
62 snprintf(buf, size, "Unknown error: %u", unum);
67 REQUIRE(buf != NULL);
70 snprintf(buf, size, "%s", sys_errlist[num]);
72 snprintf(buf, size, "Unknown error: %u", unum);
/bind-9.6-ESV-R11/unit/atf-src/atf-c/
H A Derror_test.c49 char *buf, size_t buflen)
51 snprintf(buf, buflen, "Test formatting function");
146 char buf[1024]; local
150 atf_error_format(err, buf, sizeof(buf));
151 printf("Error string is: %s\n", buf);
152 ATF_REQUIRE(strcmp(buf, "Error 'test_error'") == 0);
157 atf_error_format(err, buf, sizeof(buf));
158 printf("Error string is: %s\n", buf);
48 test_format(const atf_error_t err ATF_DEFS_ATTRIBUTE_UNUSED, char *buf, size_t buflen) argument
197 char buf[1024]; local
247 char buf[1024]; local
[all...]
/bind-9.6-ESV-R11/lib/isc/unix/include/isc/
H A Dstrerror.h38 * 'buf' to be non NULL.
41 isc__strerror(int num, char *buf, size_t bufsize);
/bind-9.6-ESV-R11/lib/isc/win32/include/isc/
H A Dstrerror.h35 * 'buf' to be non NULL.
38 isc__strerror(int num, char *buf, size_t bufsize);
/bind-9.6-ESV-R11/lib/isc/include/isc/
H A Dmd5.h52 isc_uint32_t buf[4]; member in struct:__anon169
66 isc_md5_update(isc_md5_t *ctx, const unsigned char *buf, unsigned int len);
/bind-9.6-ESV-R11/bin/tests/system/resolver/ans3/
H A Dans.pl41 $sock->recv($buf, 512);
48 $packet = new Net::DNS::Packet(\$buf, 0);
52 ($packet, $err) = new Net::DNS::Packet(\$buf, 0);
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/wsock/wsock11/
H A Ddlldef.h80 char FAR * buf, int buflen);
83 int len, int type, char FAR * buf, int buflen);
/bind-9.6-ESV-R11/contrib/sdb/dir/
H A Ddirdb.c69 char buf[1024]; local
87 CHECKN(snprintf(buf, sizeof(buf),
92 CHECK(dns_sdb_putrr(lookup, "txt", 3600, buf));
99 buf[n] = 0;
100 CHECKN(snprintf(buf, sizeof(buf), "\"symlink\" \"%s\"",
102 CHECK(dns_sdb_putrr(lookup, "txt", 3600, buf));
106 CHECKN(snprintf(buf, sizeof(buf), "\"fil
[all...]
/bind-9.6-ESV-R11/lib/lwres/
H A Dgethost.c81 * by a successful call to lwres_gethostbyname_r() . buf is a buffer of
93 * lwres_gethostbyaddr_r(). buf is a buffer of length len bytes which is
130 * lookups fail or if buf was too small to hold the list of addresses and
132 * the struct hostent. If buf was too small, both lwres_gethostbyname_r()
230 char *buf, int buflen, int *error)
238 res = copytobuf(he, resbuf, buf, buflen);
250 struct hostent *resbuf, char *buf, int buflen,
259 res = copytobuf(he, resbuf, buf, buflen);
270 lwres_gethostent_r(struct hostent *resbuf, char *buf, int buflen, int *error) { argument
272 UNUSED(buf);
229 lwres_gethostbyname_r(const char *name, struct hostent *resbuf, char *buf, int buflen, int *error) argument
249 lwres_gethostbyaddr_r(const char *addr, int len, int type, struct hostent *resbuf, char *buf, int buflen, int *error) argument
296 copytobuf(struct hostent *he, struct hostent *hptr, char *buf, int buflen) argument
[all...]
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/tools/runidn/
H A Dresolver.c129 char *buf, size_t buflen,
219 char *buf, size_t buflen, int *errp)
224 * also copied. They are copied into 'buf', whose length is 'buflen'.
227 * If 'buf' is too small to hold all the data, NULL will be
240 * Allocate aliase table in 'buf'.
247 newhp->h_aliases = (char **)buf;
253 buf += sz;
259 * Allocate address table in 'buf'.
267 newhp->h_addr_list = (char **)buf;
273 buf
218 copy_decode_hostent_static(struct hostent *hp, struct hostent *newhp, char *buf, size_t buflen, int *errp) argument
376 char buf[IDN_NAME_SIZE]; local
536 static hostbuf_t buf; local
564 static hostbuf_t buf; local
592 static hostbuf_t buf; local
623 hostbuf_t buf; local
681 hostbuf_t buf; local
737 hostbuf_t buf; local
790 hostbuf_t buf; local
841 hostbuf_t buf; local
[all...]

Completed in 3030 milliseconds

123456789