/freebsd-11-stable/contrib/netbsd-tests/lib/libc/string/ |
H A D | t_strcmp.c | 27 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 D | t_strcpy.c | 27 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 D | t_strcat.c | 27 char buf1[64]; local 93 memcpy(&buf1[a1], tab[t1].val, 96 ret = f(&buf0[a0], &buf1[a1]); 112 &buf1[a1],
|
/freebsd-11-stable/usr.bin/locate/bigram/ |
H A D | locate.bigram.c | 68 u_char buf1[MAXPATHLEN] = " "; variable 76 u_char *oldpath = buf1, *path = buf2; 102 if (path == buf1) { 104 oldpath = buf1; 106 path = buf1;
|
/freebsd-11-stable/usr.bin/cmp/ |
H A D | link.c | 44 char buf1[PATH_MAX], *p1; local 50 if ((len1 = readlink(file1, buf1, sizeof(buf1) - 1)) < 0) { 66 buf1[len1] = '\0'; 74 for (p1 = buf1 + skip1, p2 = buf2 + skip2; *p1 && *p2; p1++, p2++) {
|
/freebsd-11-stable/contrib/netbsd-tests/crypto/opencrypto/ |
H A D | h_comp.c | 48 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 D | h_comp_zlib.c | 47 unsigned char buf1[10000], buf2[10000]; local 64 co1.dst = buf1; 65 co1.dst_len = sizeof(buf1); 72 z.next_in = buf1;
|
H A D | h_comp_zlib_rnd.c | 49 unsigned char buf1[10000], buf2[10000]; local 69 co1.dst = buf1; 70 co1.dst_len = sizeof(buf1); 76 z.next_in = buf1;
|
/freebsd-11-stable/contrib/xz/src/liblzma/common/ |
H A D | memcmplen.h | 25 /// \param buf1 First buffer 33 /// the specified limit from both buf1 and buf2. 43 lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2, argument 64 const uint64_t x = read64ne(buf1 + len) - read64ne(buf2 + len); 97 _mm_loadu_si128((const __m128i *)(buf1 + len)), 114 uint32_t x = read32ne(buf1 + len) - read32ne(buf2 + len); 136 uint32_t x = read32ne(buf1 + len) ^ read32ne(buf2 + len); 157 while (len < limit && buf1[len] == buf2[len])
|
/freebsd-11-stable/usr.sbin/ctm/mkCTM/ |
H A D | mkctm.c | 153 char *buf1 = alloca(strlen(dir1) + strlen(name) + local 162 strcpy(buf1, dir1); 163 strcat(buf1, "/"); strcat(buf1, name); 164 strcat(buf1, "/"); strcat(buf1, de->d_name); 165 fd1 = open(buf1, O_RDONLY); 166 if(fd1 < 0) { err(3, "%s", buf1); } 185 if (p1 == (u_char *)MAP_FAILED) { err(3, "%s", buf1); } 214 buf1, buf 358 char *buf1 = alloca(strlen(dir1) + strlen(name) + local 379 char buf1[BUFSIZ]; local 432 char *buf1 = alloca(strlen(dir1) + strlen(name) + 4); local [all...] |
/freebsd-11-stable/crypto/openssl/engines/ccgost/ |
H A D | gost_crypt.c | 244 unsigned char buf1[8]; local 250 gostcrypt(&(c->cctx), iv, buf1); 252 memcpy(buf1, iv, 8); 254 g = buf1[0] | (buf1[1] << 8) | (buf1[2] << 16) | ((word32) buf1[3] << 24); 256 buf1[0] = (unsigned char)(g & 0xff); 257 buf1[1] = (unsigned char)((g >> 8) & 0xff); 258 buf1[ [all...] |
/freebsd-11-stable/bin/stty/ |
H A D | print.c | 58 char buf1[100], buf2[100]; local 193 (void)snprintf(buf1, sizeof(buf1), "%s = %s;", 195 bput(buf1); 204 (void)snprintf(buf1 + cnt * 8, sizeof(buf1) - cnt * 8, 210 (void)printf("%s\n", buf1); 215 (void)printf("%s\n", buf1);
|
/freebsd-11-stable/contrib/libreadline/examples/ |
H A D | rl-fgets.c | 232 char buf1[256], buf2[256] ; 254 for ( i = 0 ; _fgets(buf1,255,fp) ; i ++ ) ; 259 while ( _fgets(buf1,255,fp) ) { 260 buf1[255] = 0 ; 261 if ( 1 == sscanf(buf1,"%s",buf2) ) { 225 char buf1[256], buf2[256] ; local
|
/freebsd-11-stable/usr.bin/locate/code/ |
H A D | locate.code.c | 107 u_char buf1[MAXPATHLEN] = " "; variable 166 oldpath = buf1; 243 if (path == buf1) { /* swap pointers */ 245 oldpath = buf1; 247 path = buf1;
|
/freebsd-11-stable/lib/libc/iconv/ |
H A D | citrus_esdb.c | 196 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-11-stable/contrib/ntp/sntp/libevent/test/ |
H A D | regress_buffer.c | 1613 struct evbuffer *buf1 = NULL, *buf2 = NULL; local 1615 buf1 = evbuffer_new(); 1616 tt_assert(buf1); 1618 evbuffer_add_reference(buf1, chunk1, len1, ref_done_cb, (void*)111); 1619 evbuffer_add(buf1, ", ", 2); 1620 evbuffer_add_reference(buf1, chunk2, len2, ref_done_cb, (void*)222); 1621 tt_int_op(evbuffer_get_length(buf1), ==, len1+len2+2); 1624 tt_int_op(evbuffer_remove(buf1, tmp, 6), ==, 6); 1626 tt_int_op(evbuffer_remove(buf1, tmp, 5), ==, 5); 1630 tt_int_op(evbuffer_prepend(buf1, " 1689 struct evbuffer *buf1 = NULL, *buf2 = NULL; local 1757 struct evbuffer *buf1 = NULL, *buf2 = NULL; local 1789 struct evbuffer *buf1 = NULL, *buf2 = NULL; local [all...] |
/freebsd-11-stable/sbin/ccdconfig/ |
H A D | ccdconfig.c | 174 char buf1[BUFSIZ]; local 191 sprintf(buf1, "ccd%d", ccd); 192 gctl_ro_param(grq, "geom", -1, buf1); 261 sprintf(buf1, "provider%d", i); 265 gctl_ro_param(grq, buf1, -1, cp); 267 gctl_rw_param(grq, "output", sizeof(buf1), buf1); 271 printf("%s", buf1);
|
/freebsd-11-stable/contrib/gcc/ |
H A D | vmsdbgout.c | 430 char buf1[256]; 443 ASM_NAME_TO_STRING (buf1, XSTR (x, 0)); 444 strcat (str, buf1); 448 ASM_GENERATE_INTERNAL_LABEL (buf1, "L", CODE_LABEL_NUMBER (XEXP (x, 0))); 449 ASM_NAME_TO_STRING (buf2, buf1); 454 ASM_GENERATE_INTERNAL_LABEL (buf1, "L", CODE_LABEL_NUMBER (x)); 455 ASM_NAME_TO_STRING (buf2, buf1); 460 sprintf (buf1, HOST_WIDE_INT_PRINT_DEC, INTVAL (x)); 461 strcat (str, buf1); 467 addr_const_to_string (buf1, XEX 429 char buf1[256]; local [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/net/ |
H A D | h_dns_server.c | 282 char buf1[1024], buf2[1024]; local 368 name2str(p, buf1, sizeof(buf1)), 373 name2str(p, buf1, sizeof(buf1)));
|
/freebsd-11-stable/contrib/libreadline/ |
H A D | mbutil.c | 235 _rl_compare_chars (buf1, pos1, ps1, buf2, pos2, ps2) 236 char *buf1; 245 if ((w1 = _rl_get_char_len (&buf1[pos1], ps1)) <= 0 || 248 (buf1[pos1] != buf2[pos2])) 252 if (buf1[pos1+i] != buf2[pos2+i])
|
/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | snprintf-test.c | 42 char buf1[256], buf2[256]; local 45 ret = rk_vsnprintf (buf1, sizeof(buf1), format, ap); 46 if (ret >= sizeof(buf1)) 51 ret = strcmp (buf1, buf2); 54 format, buf1, buf2);
|
/freebsd-11-stable/usr.bin/netstat/ |
H A D | unix.c | 274 char buf1[33]; local 313 snprintf(buf1, sizeof buf1, "%u/%u/%u", so->so_qlen, 317 buf1, so->so_qlen, so->so_incqlen, so->so_qlimit);
|
/freebsd-11-stable/sys/geom/bde/ |
H A D | g_bde_lock.c | 446 u_char *buf, buf1[16]; local 453 bzero(buf1, sizeof buf1); 454 if (meta != NULL && bcmp(buf1, meta, sizeof buf1))
|
/freebsd-11-stable/contrib/diff/src/ |
H A D | cmp.c | 384 char *buf1 = (char *) buffer1; 441 read1 = block_read (file_desc[1], buf1, bytes_to_read); 447 buf0[read0] = ~buf1[read0]; 448 buf1[read1] = ~buf0[read1]; 496 unsigned char c1 = buf1[first_diff]; 514 unsigned char c1 = buf1[first_diff]; 380 char *buf1 = (char *) buffer1; local
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/stdio/ |
H A D | t_fmemopen.c | 798 char buf0[BUFSIZ], buf1[BUFSIZ]; local 805 buf1[t->n] = 0x1; 812 ATF_CHECK(fread(&buf1[0], 1, sizeof(buf1), fp) == (size_t)t->n); 814 ATF_CHECK(memcmp(&buf0[0], &buf1[0], t->n) == 0); 815 ATF_CHECK((unsigned char)buf1[t->n] == 0x1); 888 char buf0[BUFSIZ], buf1[BUFSIZ]; local 896 buf1[t->n - len] = 0x1; 906 ATF_CHECK(fread(&buf1[0], 1, sizeof(buf1), f [all...] |