Searched refs:buf1 (Results 1 - 25 of 75) sorted by relevance

123

/freebsd-current/sys/contrib/libsodium/test/default/
H A Dcodecs.c7 unsigned char buf1[1000]; local
37 if (sodium_hex2bin(buf1, 1U, hex, 8U, NULL, &bin_len, &hex_end) != -1) {
43 if (sodium_hex2bin(buf1, 4U, hex, 12U, ":", &bin_len, &hex_end) != -1) {
51 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":",
58 if (sodium_hex2bin(buf1, sizeof buf1, hex, 13U, ":",
65 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":",
71 if (sodium_hex2bin(buf1, sizeo
[all...]
H A Dsodium_utils.c8 unsigned char buf1[1000]; local
22 randombytes_buf(buf1, sizeof buf1);
23 memcpy(buf2, buf1, sizeof buf2);
24 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1));
25 sodium_memzero(buf1, 0U);
26 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1));
27 sodium_memzero(buf1, sizeo
[all...]
/freebsd-current/contrib/netbsd-tests/lib/libc/string/
H A Dt_strcmp.c27 char buf1[64]; local
81 memcpy(&buf1[a1], tab[t].val1,
84 ret = f(&buf0[a0], &buf1[a1]);
92 &buf0[a0], &buf1[a1], ret);
108 char buf1[10] = "xxx"; local
111 ATF_CHECK(strcmp(buf1, buf1) == 0);
118 ATF_CHECK(strcmp(buf1 + 0, buf2 + 0) < 0);
119 ATF_CHECK(strcmp(buf1 + 1, buf2 + 1) < 0);
120 ATF_CHECK(strcmp(buf1
[all...]
H A Dt_strcpy.c27 char buf1[64]; local
90 memcpy(&buf1[a1], tab[t].val, tab[t].len + 1);
91 ret = f(&buf0[a0], &buf1[a1]);
107 if (memcmp(&buf0[a0], &buf1[a1],
H A Dt_strcat.c27 char buf1[64]; local
93 memcpy(&buf1[a1], tab[t1].val,
96 ret = f(&buf0[a0], &buf1[a1]);
112 &buf1[a1],
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/
H A Dtmpfile_001_pos.c43 char buf1[BSZ], buf2[BSZ] = {0}; local
51 fill_random(buf1, BSZ);
57 if (write(fd, buf1, BSZ) < 0)
63 if (memcmp(buf1, buf2, BSZ) != 0)
68 if (fsetxattr(fd, "user.test", buf1, BSZ, 0) < 0)
74 if (memcmp(buf1, buf2, BSZ) != 0)
/freebsd-current/tests/sys/geom/class/eli/
H A Dunaligned_io.c51 char *buf1, *buf2; local
77 buf1 = mmap(NULL, bufsz, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE,
79 if (buf1 == MAP_FAILED)
86 arc4random_buf(buf1, bufsz);
87 n = pwrite(fd, buf1, bufsz, 0);
98 * Read test: read the first 2 sectors into buf1, then do the same with
103 n = pread(fd, buf1, iosz, 0);
110 if (memcmp(buf1, buf2 + i, iosz) != 0)
118 arc4random_buf(buf1, bufsz);
120 n = pwrite(fd, buf1
[all...]
/freebsd-current/usr.bin/cmp/
H A Dlink.c43 char buf1[PATH_MAX], *p1; local
49 if ((len1 = readlink(file1, buf1, sizeof(buf1) - 1)) < 0) {
65 buf1[len1] = '\0';
73 for (p1 = buf1 + skip1, p2 = buf2 + skip2;
/freebsd-current/usr.bin/locate/bigram/
H A Dlocate.bigram.c44 u_char buf1[LOCATE_PATH_MAX] = " "; variable
52 u_char *oldpath = buf1, *path = buf2;
78 if (path == buf1) {
80 oldpath = buf1;
82 path = buf1;
/freebsd-current/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_comp.c48 unsigned char buf1[10000], buf2[100000]; local
64 co1.dst = buf1;
65 co1.dst_len = sizeof(buf1);
71 buf1[co1.dst_len - 8]++; /* modify CRC */
73 write(1, buf1, co1.dst_len);
78 co2.src = buf1;
H A Dh_comp_zlib_rnd.c49 unsigned char buf1[10000], buf2[10000]; local
69 co1.dst = buf1;
70 co1.dst_len = sizeof(buf1);
76 z.next_in = buf1;
H A Dh_comp_zlib.c47 unsigned char buf1[10000], buf2[10000]; local
64 co1.dst = buf1;
65 co1.dst_len = sizeof(buf1);
72 z.next_in = buf1;
/freebsd-current/contrib/xz/src/liblzma/common/
H A Dmemcmplen.h35 /// \param buf1 First buffer
43 /// the specified limit from both buf1 and buf2.
53 lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2, argument
70 const uint64_t x = read64ne(buf1 + len) - read64ne(buf2 + len);
106 _mm_loadu_si128((const __m128i *)(buf1 + len)),
123 uint32_t x = read32ne(buf1 + len) - read32ne(buf2 + len);
145 uint32_t x = read32ne(buf1 + len) ^ read32ne(buf2 + len);
166 while (len < limit && buf1[len] == buf2[len])
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dget_diff.c47 char buf1[DEV_BSIZE], buf2[DEV_BSIZE]; local
67 while ((bytes = pread(fd1, buf1, DEV_BSIZE, off)) > 0) {
73 * but ensure that a comparison of buf1 and
76 buf2[0] = ~buf1[0];
82 if (memcmp(buf1, buf2, bytes) == 0) {
/freebsd-current/crypto/openssl/test/
H A Dpackettest.c243 char buf1[10], buf2[10]; local
248 memset(buf1, 'x', 10);
252 if (!TEST_true(PACKET_buf_init(&pkt, (unsigned char*)buf1, 10))
255 || !TEST_strn_eq(data, buf1, 10)
270 char buf1[10], buf2[10]; local
273 memset(buf1, 'x', 10);
277 if (!TEST_true(PACKET_buf_init(&pkt, (unsigned char*)buf1, 10))
305 unsigned char buf1[BUF_LEN] = { 0 }; local
309 if (!TEST_true(PACKET_buf_init(&pkt, buf1, 4))
311 || !TEST_true(PACKET_buf_init(&pkt, buf1, BUF_LE
350 unsigned char buf1[BUF_LEN]; local
375 unsigned char buf1[1024]; local
399 unsigned char buf1[1024]; local
423 unsigned char buf1[BUF_LEN]; local
[all...]
/freebsd-current/usr.bin/locate/code/
H A Dlocate.code.c91 u_char buf1[LOCATE_PATH_MAX] = " "; variable
141 oldpath = buf1;
211 if (path == buf1) { /* swap pointers */
213 oldpath = buf1;
215 path = buf1;
/freebsd-current/contrib/bearssl/src/hash/
H A Dghash_pwr8.c123 const unsigned char *buf1, *buf2; local
134 buf1 = data;
149 buf2 = buf1 + (num4 << 6);
255 lxvw4x(52, %[cc0], %[buf1])
256 lxvw4x(53, %[cc1], %[buf1])
257 lxvw4x(54, %[cc2], %[buf1])
258 lxvw4x(55, %[cc3], %[buf1])
263 addi(%[buf1], %[buf1], 64)
382 : [buf1] "
[all...]
H A Dghash_pclmul.c235 const unsigned char *buf1, *buf2; local
242 * We split data into two chunks. First chunk starts at buf1
247 buf1 = data; local
250 buf2 = buf1 + (num4 << 6);
304 aw0 = _mm_loadu_si128((void *)(buf1 + 0));
305 aw1 = _mm_loadu_si128((void *)(buf1 + 16));
306 aw2 = _mm_loadu_si128((void *)(buf1 + 32));
307 aw3 = _mm_loadu_si128((void *)(buf1 + 48));
312 buf1 += 64;
/freebsd-current/bin/stty/
H A Dprint.c50 char buf1[100], buf2[100]; local
192 (void)snprintf(buf1, sizeof(buf1), "%s = %s;",
194 bput(buf1);
203 (void)snprintf(buf1 + cnt * 8, sizeof(buf1) - cnt * 8,
209 (void)printf("%s\n", buf1);
214 (void)printf("%s\n", buf1);
/freebsd-current/lib/libc/iconv/
H A Dcitrus_esdb.c196 char buf1[PATH_MAX], buf2[PATH_MAX], path[PATH_MAX]; local
200 realname = _lookup_alias(path, esname, buf1, sizeof(buf1),
317 char buf1[PATH_MAX]; local
319 snprintf(buf1, sizeof(buf1), "%.*s",
322 if ((p = strchr(buf1, '/')) != NULL)
323 memmove(buf1, p + 1, strlen(p) - 1);
324 if ((p = strstr(buf1, ".esdb")) != NULL)
326 snprintf(buf, sizeof(buf), "%s/%.*s", buf1,
[all...]
/freebsd-current/sbin/ccdconfig/
H A Dccdconfig.c170 char buf1[BUFSIZ]; local
187 sprintf(buf1, "ccd%d", ccd);
188 gctl_ro_param(grq, "geom", -1, buf1);
257 sprintf(buf1, "provider%d", i);
261 gctl_ro_param(grq, buf1, -1, cp);
263 buf1[0] = '\0';
264 gctl_add_param(grq, "output", sizeof(buf1), buf1,
269 printf("%s", buf1);
/freebsd-current/contrib/ntp/sntp/libevent/test/
H A Dregress_buffer.c461 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
463 buf1 = evbuffer_new();
464 tt_assert(buf1);
469 tt_int_op(evbuffer_add_reference(buf1, "foo", 3, NULL, NULL), ==, 0);
470 tt_int_op(evbuffer_prepend(buf1, "", 0), ==, 0);
471 tt_int_op(evbuffer_remove_buffer(buf1, buf2, 1), ==, 1);
472 tt_int_op(evbuffer_add(buf1, "bar", 3), ==, 0);
473 tt_mem_op(evbuffer_pullup(buf1, -1), ==, "oobar", 5);
475 evbuffer_validate(buf1);
479 if (buf1)
488 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
2058 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
2134 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
2202 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
2245 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
2342 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
[all...]
/freebsd-current/contrib/libevent/test/
H A Dregress_buffer.c461 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
463 buf1 = evbuffer_new();
464 tt_assert(buf1);
469 tt_int_op(evbuffer_add_reference(buf1, "foo", 3, NULL, NULL), ==, 0);
470 tt_int_op(evbuffer_prepend(buf1, "", 0), ==, 0);
471 tt_int_op(evbuffer_remove_buffer(buf1, buf2, 1), ==, 1);
472 tt_int_op(evbuffer_add(buf1, "bar", 3), ==, 0);
473 tt_mem_op(evbuffer_pullup(buf1, -1), ==, "oobar", 5);
475 evbuffer_validate(buf1);
479 if (buf1)
488 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
2058 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
2134 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
2202 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
2245 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
2342 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
[all...]
/freebsd-current/sys/contrib/dev/mediatek/mt76/
H A Ddma.h36 __le32 buf1; member in struct:mt76_desc
/freebsd-current/contrib/netbsd-tests/lib/libc/net/
H A Dh_dns_server.c282 char buf1[1024], buf2[1024]; local
368 name2str(p, buf1, sizeof(buf1)),
373 name2str(p, buf1, sizeof(buf1)));

Completed in 184 milliseconds

123