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

1234567891011>>

/bind-9.11.3/lib/isc/tests/
H A Dprint_test.c46 char buf[10000]; local
60 memset(buf, 0xff, sizeof(buf));
61 n = isc_print_snprintf(buf, sizeof(buf), "%qu", ll);
63 ATF_CHECK_STREQ(buf, "8589934592");
65 memset(buf, 0xff, sizeof(buf));
66 n = isc_print_snprintf(buf, sizeof(buf), "
128 char buf[10000]; local
[all...]
H A Dfile_test.c50 char buf[1024]; local
54 result = isc_file_sanitize("testdata/file", NAME, "test", buf, 1024);
56 ATF_CHECK(strcmp(buf, F(NAME)) == 0);
59 result = isc_file_sanitize("testdata/file", NAME, "test", buf, 1024);
61 ATF_CHECK(strcmp(buf, F(TRUNC_SHA)) == 0);
64 result = isc_file_sanitize("testdata/file", NAME, "test", buf, 1024);
66 ATF_CHECK(strcmp(buf, F(SHA)) == 0);
68 result = isc_file_sanitize("testdata/file", BAD1, "test", buf, 1024);
70 ATF_CHECK(strcmp(buf, F(BADHASH1)) == 0);
72 result = isc_file_sanitize("testdata/file", BAD2, "test", buf, 102
[all...]
H A Dinet_ntop_test.c26 char buf[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")]; local
48 isc_net_ntop(testdata[i].family, abuf, buf, sizeof(buf));
49 ATF_CHECK_STREQ(buf, testdata[i].address);
H A Dtime_test.c24 char buf[ISC_FORMATHTTPTIMESTAMP_SIZE]; local
30 isc_time_formathttptimestamp(&t, buf, sizeof(buf));
31 result = isc_time_parsehttptimestamp(buf, &x);
/bind-9.11.3/bin/tools/
H A Darpaname.c22 unsigned char buf[16]; local
28 if (inet_pton(AF_INET6, argv[1], buf) == 1) {
30 fprintf(stdout, "%X.%X.", buf[i] & 0xf,
31 (buf[i] >> 4) & 0xf);
36 if (inet_pton(AF_INET, argv[1], buf) == 1) {
38 buf[3], buf[2], buf[1], buf[0]);
/bind-9.11.3/bin/tests/
H A Dserial_test.c22 char buf[1024]; local
25 while (fgets(buf, sizeof(buf), stdin) != NULL) {
26 buf[sizeof(buf) - 1] = '\0';
27 s = buf;
/bind-9.11.3/bin/tests/system/tsiggss/
H A Dauthsock.pl50 $client->recv(my $buf, 8, 0);
51 my ($version, $req_len) = unpack('N N', $buf);
59 $client->recv(my $buf, $req_len - 8, 0);
66 $key_data) = unpack('Z* Z* Z* Z* Z* N/a', $buf);
68 if ($req_len != length($buf)+8) {
69 printf("Length mismatch %u %u\n", $req_len, length($buf)+8);
/bind-9.11.3/lib/dns/tests/
H A Dtime_test.c40 char buf[128]; local
46 memset(buf, 0, sizeof(buf));
47 isc_buffer_init(&target, buf, sizeof(buf));
50 ATF_REQUIRE_STREQ(buf, test_text);
68 char buf[128]; local
74 memset(buf, 0, sizeof(buf));
75 isc_buffer_init(&target, buf, sizeo
96 char buf[128]; local
124 char buf[128]; local
152 char buf[128]; local
180 char buf[128]; local
[all...]
H A Dprivate_test.c54 unsigned char *buf, size_t len)
58 buf[0] = testcase->alg;
59 buf[1] = (testcase->keyid & 0xff00) >> 8;
60 buf[2] = (testcase->keyid & 0xff);
61 buf[3] = testcase->remove;
62 buf[4] = testcase->complete;
63 private->data = buf;
76 isc_buffer_t buf; local
107 isc_buffer_init(&buf, bufdata, sizeof(bufdata));
109 dns_rdatatype_nsec3param, &params, &buf);
53 make_signing(signing_testcase_t *testcase, dns_rdata_t *private, unsigned char *buf, size_t len) argument
152 isc_buffer_t buf; local
197 isc_buffer_t buf; local
[all...]
/bind-9.11.3/unit/atf-src/atf-c/detail/
H A Dsanity.c42 char buf[4096]; local
45 vsnprintf(buf, sizeof(buf), fmt, ap);
47 warnx("%s", buf);
H A Denv.c75 char *buf; local
77 err = atf_text_format(&buf, "%s=%s", name, val);
79 if (putenv(buf) == -1)
82 free(buf);
100 char *buf; local
102 err = atf_text_format(&buf, "%s=", name);
104 if (putenv(buf) == -1)
107 free(buf);
/bind-9.11.3/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.11.3/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...]
/bind-9.11.3/lib/isc/unix/
H A Dstrerror.c38 isc__strerror(int num, char *buf, size_t size) { argument
44 REQUIRE(buf != NULL);
51 snprintf(buf, size, "%s", msg);
53 snprintf(buf, size, "Unknown error: %u", unum);
58 REQUIRE(buf != NULL);
61 snprintf(buf, size, "%s", sys_errlist[num]);
63 snprintf(buf, size, "Unknown error: %u", unum);
/bind-9.11.3/bin/tests/system/rndc/
H A Dgencheck.c24 check(const char *buf, ssize_t count, size_t *start) { argument
33 if (buf[i] == '\n')
35 if (buf[i] != chars[*start])
48 char buf[1024]; local
66 while ((count = read(fd, buf, sizeof(buf))) != 0) {
70 if (!check(buf, count, &start))
/bind-9.11.3/unit/atf-src/atf-c/
H A Derror_test.c44 char *buf, size_t buflen)
46 snprintf(buf, buflen, "Test formatting function");
141 char buf[1024]; local
145 atf_error_format(err, buf, sizeof(buf));
146 printf("Error string is: %s\n", buf);
147 ATF_REQUIRE(strcmp(buf, "Error 'test_error'") == 0);
152 atf_error_format(err, buf, sizeof(buf));
153 printf("Error string is: %s\n", buf);
43 test_format(const atf_error_t err ATF_DEFS_ATTRIBUTE_UNUSED, char *buf, size_t buflen) argument
192 char buf[1024]; local
242 char buf[1024]; local
[all...]
/bind-9.11.3/bin/named/
H A Dfuzz.c54 void *buf; local
85 buf = malloc(65536);
86 RUNTIME_CHECK(buf != NULL);
92 length = read(0, buf, 65536);
115 sent = sendto(sockfd, buf, length, 0,
120 recvfrom(sockfd, buf, 65536, MSG_DONTWAIT, NULL, NULL);
128 free(buf);
147 char *buf, *rbuf; local
196 buf = malloc(65536);
198 RUNTIME_CHECK(buf !
324 char *buf; local
[all...]
/bind-9.11.3/bin/tests/system/resolver/ans8/
H A Dans.pl39 my ($buf) = @_;
43 $request = new Net::DNS::Packet(\$buf, 0);
47 ($request, $err) = new Net::DNS::Packet(\$buf, 0);
73 my ($buf) = @_;
77 $request = new Net::DNS::Packet(\$buf, 0);
81 ($request, $err) = new Net::DNS::Packet(\$buf, 0);
116 my $buf;
117 $udpsock->recv($buf, 512);
118 my $result = handleUDP($buf);
123 my $buf;
[all...]
/bind-9.11.3/lib/isc/unix/include/isc/
H A Dstrerror.h29 * 'buf' to be non NULL.
32 isc__strerror(int num, char *buf, size_t bufsize);
/bind-9.11.3/lib/isc/win32/include/isc/
H A Dstrerror.h26 * 'buf' to be non NULL.
29 isc__strerror(int num, char *buf, size_t bufsize);
/bind-9.11.3/lib/isc/
H A Dbase32.c51 char buf[9]; local
57 memset(buf, 0, sizeof(buf));
59 buf[0] = base[((source->base[0]>>3)&0x1f)]; /* 5 + */
61 buf[1] = base[(source->base[0]<<2)&0x1c];
62 buf[2] = buf[3] = buf[4] = pad;
63 buf[5] = buf[
235 unsigned char buf[5]; local
[all...]
H A Dbase64.c47 char buf[5]; local
53 memset(buf, 0, sizeof(buf));
55 buf[0] = base64[(source->base[0]>>2)&0x3f];
56 buf[1] = base64[((source->base[0]<<4)&0x30)|
58 buf[2] = base64[((source->base[1]<<2)&0x3c)|
60 buf[3] = base64[source->base[2]&0x3f];
61 RETERR(str_totext(buf, target));
73 buf[0] = base64[(source->base[0]>>2)&0x3f];
74 buf[
121 unsigned char buf[3]; local
[all...]
/bind-9.11.3/lib/dns/
H A Dopenssleddsa_link.c53 unsigned char buf[PUBPREFIXLEN + DNS_KEY_ED25519SIZE]; local
56 memmove(buf, ed25519_pub_prefix, PUBPREFIXLEN);
57 memmove(buf + PUBPREFIXLEN, key, DNS_KEY_ED25519SIZE);
58 p = buf;
65 unsigned char buf[PUBPREFIXLEN + DNS_KEY_ED25519SIZE]; local
73 p = buf;
78 memmove(key, buf + len - DNS_KEY_ED25519SIZE, DNS_KEY_ED25519SIZE);
89 unsigned char buf[PUBPREFIXLEN + DNS_KEY_ED448SIZE]; local
92 memmove(buf, ed448_pub_prefix, PUBPREFIXLEN);
93 memmove(buf
101 unsigned char buf[PUBPREFIXLEN + DNS_KEY_ED448SIZE]; local
127 unsigned char buf[PRIVPREFIXLEN + DNS_KEY_ED25519SIZE]; local
140 unsigned char buf[PRIVPREFIXLEN + DNS_KEY_ED25519SIZE]; local
164 unsigned char buf[PRIVPREFIXLEN + DNS_KEY_ED448SIZE]; local
177 unsigned char buf[PRIVPREFIXLEN + DNS_KEY_ED448SIZE]; local
199 isc_buffer_t *buf = NULL; local
214 isc_buffer_t *buf = (isc_buffer_t *) dctx->ctxdata.generic; local
225 isc_buffer_t *buf = (isc_buffer_t *) dctx->ctxdata.generic; local
259 isc_buffer_t *buf = (isc_buffer_t *) dctx->ctxdata.generic; local
308 isc_buffer_t *buf = (isc_buffer_t *) dctx->ctxdata.generic; local
513 unsigned char *buf = NULL; local
[all...]

Completed in 47 milliseconds

1234567891011>>