Searched defs:buf (Results 1 - 25 of 246) sorted by relevance

12345678910

/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]);
H A Disc-hmac-fixup.c30 isc_buffer_t buf; local
49 isc_buffer_init(&buf, secret, sizeof(secret));
50 result = isc_base64_decodestring(argv[2], &buf);
55 isc_buffer_usedregion(&buf, &r);
131 isc_buffer_init(&buf, base64, sizeof(base64));
132 result = isc_base64_totext(&r, 0, "", &buf);
137 fprintf(stdout, "%.*s\n", (int)isc_buffer_usedlength(&buf), base64);
/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;
H A Dinter_test.c28 char buf[128]; local
48 res = inet_ntop(ifdata.af, &ifdata.address.type, buf,
49 sizeof(buf));
58 res = inet_ntop(ifdata.af, &ifdata.netmask.type, buf,
59 sizeof(buf));
64 buf, sizeof(buf));
95 res = inet_ntop(ifdata.af, &ifdata.address.type, buf,
96 sizeof(buf));
105 res = inet_ntop(ifdata.af, &ifdata.netmask.type, buf,
[all...]
H A Dgxba_test.c41 char buf[128]; local
42 inet_ntop(he->h_addrtype, *c, buf, sizeof(buf));
43 printf("\taddress[%d] = %s\n", i, buf);
H A Dgxbn_test.c41 char buf[128]; local
42 inet_ntop(he->h_addrtype, *c, buf, sizeof(buf));
43 printf("\taddress[%d] = %s\n", i, buf);
H A Dmaster_test.c31 char buf[64*1024]; local
37 isc_buffer_init(&target, buf, 64*1024);
/bind-9.11.3/lib/isc/include/isc/
H A Dmd5.h67 isc_uint32_t buf[4]; member in struct:__anon240
82 isc_md5_update(isc_md5_t *ctx, const unsigned char *buf, unsigned int len);
/bind-9.11.3/lib/isc/tests/
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);
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 Dlex_test.c63 isc_buffer_t buf; local
76 isc_buffer_init(&buf, &text[0], sizeof(text));
77 isc_buffer_add(&buf, sizeof(text));
79 result = isc_lex_openbuffer(lex, &buf);
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...]
/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/unit/atf-src/atf-c/detail/
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);
H A Dsanity.c42 char buf[4096]; local
45 vsnprintf(buf, sizeof(buf), fmt, ap);
47 warnx("%s", buf);
/bind-9.11.3/lib/dns/tests/
H A Ddh_test.c39 isc_buffer_t buf; local
52 isc_buffer_constinit(&buf, "dh.", 3);
53 isc_buffer_add(&buf, 3);
54 ret = dns_name_fromtext(name, &buf, NULL, 0, NULL);
62 isc_buffer_init(&buf, array, sizeof(array));
63 ret = dst_key_computesecret(key, key, &buf);
65 ret = key->func->computesecret(key, key, &buf);
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 Drsa_test.c184 isc_buffer_t buf; local
197 isc_buffer_constinit(&buf, "rsa.", 4);
198 isc_buffer_add(&buf, 4);
199 ret = dns_name_fromtext(name, &buf, NULL, 0, NULL);
/bind-9.11.3/lib/lwres/
H A Dlwres_noop.c110 unsigned char *buf; local
123 buf = CTXMALLOC(buflen);
124 if (buf == NULL)
126 lwres_buffer_init(b, buf, (unsigned int)buflen);
139 CTXFREE(buf, buflen);
163 unsigned char *buf; local
176 buf = CTXMALLOC(buflen);
177 if (buf == NULL)
179 lwres_buffer_init(b, buf, (unsigned int)buflen);
191 CTXFREE(buf, bufle
[all...]
H A Dlwres_gnba.c111 unsigned char *buf; local
126 buf = CTXMALLOC(buflen);
127 if (buf == NULL)
129 lwres_buffer_init(b, buf, (unsigned int)buflen);
142 CTXFREE(buf, buflen);
168 unsigned char *buf; local
190 buf = CTXMALLOC(buflen);
191 if (buf == NULL)
193 lwres_buffer_init(b, buf, (unsigned int)buflen);
205 CTXFREE(buf, bufle
[all...]
/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++/detail/
H A Dexceptions_test.cpp52 test_format(const atf_error_t err, char *buf, size_t buflen) argument
59 snprintf(buf, buflen, "Message: %s", data->m_msg);
/bind-9.11.3/contrib/idn/idnkit-1.0-src/lib/
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/contrib/idn/idnkit-1.0-src/wsock/wsock11/
H A Ddllfunc.c161 const char FAR * name, char FAR * buf, int buflen)
174 buf, buflen);
176 idnHook(hWnd, wMsg, buf, encodeCtx);
181 buf, buflen);
191 int len, int type, char FAR * buf, int buflen)
200 idnHook(hWnd, wMsg, buf, encodeCtx);
206 buf, buflen);
160 WSAAsyncGetHostByName(HWND hWnd, u_int wMsg, const char FAR * name, char FAR * buf, int buflen) argument
190 WSAAsyncGetHostByAddr(HWND hWnd, u_int wMsg, const char FAR * addr, int len, int type, char FAR * buf, int buflen) argument

Completed in 23 milliseconds

12345678910