/bind-9.11.3/lib/isc/tests/ |
H A D | print_test.c | 46 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 D | file_test.c | 50 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 D | inet_ntop_test.c | 26 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 D | time_test.c | 24 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 D | arpaname.c | 22 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 D | serial_test.c | 22 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 D | authsock.pl | 50 $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 D | time_test.c | 40 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 D | private_test.c | 54 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, ¶ms, &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 D | sanity.c | 42 char buf[4096]; local 45 vsnprintf(buf, sizeof(buf), fmt, ap); 47 warnx("%s", buf);
|
H A D | env.c | 75 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 D | util.h | 86 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 D | util.c | 437 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 D | race.c | 95 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 D | debug.c | 66 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 D | strerror.c | 38 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 D | gencheck.c | 24 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 D | error_test.c | 44 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 D | fuzz.c | 54 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 D | ans.pl | 39 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 D | strerror.h | 29 * '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 D | strerror.h | 26 * 'buf' to be non NULL. 29 isc__strerror(int num, char *buf, size_t bufsize);
|
/bind-9.11.3/lib/isc/ |
H A D | base32.c | 51 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 D | base64.c | 47 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 D | openssleddsa_link.c | 53 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...] |