HomeSort by: relevance | last modified time | path
    Searched refs:buf2 (Results 1 - 25 of 49) sorted by relevancy

1 2

  /src/games/battlestar/
getcom.c 76 getword(char *buf1, char *buf2, int flag)
85 *buf2 = 0;
92 *buf2++ =
96 *buf2++ = *buf1++;
101 *buf2++ =
105 *buf2++ = *buf1++;
109 *buf2++ = *buf1++;
116 *buf2++ = *buf1++;
117 *buf2 = '\0';
  /src/tests/lib/libc/string/
t_strcmp.c 109 char buf2[10] = "xxy"; local in function:ATF_TC_BODY
112 ATF_CHECK(strcmp(buf2, buf2) == 0);
118 ATF_CHECK(strcmp(buf1 + 0, buf2 + 0) < 0);
119 ATF_CHECK(strcmp(buf1 + 1, buf2 + 1) < 0);
120 ATF_CHECK(strcmp(buf1 + 2, buf2 + 2) < 0);
121 ATF_CHECK(strcmp(buf1 + 3, buf2 + 3) == 0);
123 ATF_CHECK(strcmp(buf2 + 0, buf1 + 0) > 0);
124 ATF_CHECK(strcmp(buf2 + 1, buf1 + 1) > 0);
125 ATF_CHECK(strcmp(buf2 + 2, buf1 + 2) > 0)
    [all...]
  /src/regress/sys/arch/i386/ioperm/
ioperm.c 94 unsigned long buf2[32]; local in function:main
113 memset(buf2, 0x00, sizeof(buf2));
114 strcpy((char *)buf2, "foobarbaz");
115 buf2[PORT / 8 / sizeof(unsigned long)] &=
117 ret = i386_set_ioperm(buf2);
125 if (memcmp(buf, buf2, sizeof(buf))) {
133 buf2[PORT / 8 / sizeof(unsigned long)] |=
135 ret = i386_set_ioperm(buf2);
  /src/sys/external/isc/libsodium/dist/test/default/
sodium_utils.c 9 unsigned char buf2[1000]; local in function:main
23 memcpy(buf2, buf1, sizeof buf2);
24 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1));
26 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1));
28 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1));
29 printf("%d\n", sodium_memcmp(buf1, buf2, 0U));
30 sodium_memzero(buf2, sizeof buf2 / 2);
31 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1))
    [all...]
  /src/lib/libresolv/
res_mkupdate.c 92 char buf2[MAXDNAME]; local in function:res_nmkupdate
214 if (!getword_str(buf2, sizeof buf2, &startp, endp))
216 if (!inet_aton(buf2, &ina))
229 if (!getword_str(buf2, sizeof buf2, &startp, endp))
231 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr);
241 if (!getword_str(buf2, sizeof buf2, &startp,
244 n = dn_comp(buf2, cp, buflen
    [all...]
ns_verify.c 237 u_char buf2[MAXDNAME]; local in function:ns_verify
254 n = ns_name_pton(name, buf2, sizeof(buf2));
257 n = ns_name_ntol(buf2, buf, sizeof(buf));
268 n = ns_name_pton(alg, buf2, sizeof(buf2));
271 n = ns_name_ntol(buf2, buf, sizeof(buf));
  /src/tests/crypto/opencrypto/
h_comp.c 48 unsigned char buf1[10000], buf2[100000]; local in function:main
79 co2.dst = buf2;
80 co2.dst_len = sizeof(buf2);
81 buf2[10] = 0x33;
83 fprintf(stderr, "canary: %x\n", buf2[10]);
87 if (memcmp(text, buf2, co2.dst_len))
h_cbc3des.c 57 unsigned char buf[16], buf2[16]; local in function:main
87 memset(&buf2, 0, sizeof(buf2));
92 co2.dst = buf2;
93 co2.dst_len = sizeof(buf2);
h_comp_zlib.c 47 unsigned char buf1[10000], buf2[10000]; local in function:main
77 z.next_out = buf2;
78 z.avail_out = sizeof(buf2);
89 if (memcmp(buf2, text, sizeof(text)))
h_comp_zlib_rnd.c 49 unsigned char buf1[10000], buf2[10000]; local in function:main
81 z.next_out = buf2;
82 z.avail_out = sizeof(buf2);
93 if (memcmp(buf2, text, sizeof(text)))
  /src/usr.bin/locate/bigram/
locate.bigram.c 64 static char buf2[MAXPATHLEN]; variable in typeref:typename:char[]
97 char *oldpath = buf1, *path = buf2;
108 while ( fgets ( path, sizeof(buf2), stdin ) != NULL ) {
122 path = buf2, oldpath = buf1;
124 path = buf1, oldpath = buf2;
  /src/usr.bin/realpath/
realpath.c 109 char buf2[sizeof buf]; local in function:process
139 if ((size_t)snprintf(buf2, sizeof buf2, "%s/%s", buf, path)
140 >= sizeof buf2) {
145 path = buf2;
154 q = path; r = buf; s = buf2;
192 if (q != buf2) {
193 q = buf2;
197 r = buf2;
  /src/usr.bin/locate/code/
locate.code.c 97 static char buf2[MAXPATHLEN]; variable in typeref:typename:char[]
128 path = buf2;
130 while (fgets(path, sizeof(buf2), stdin) != NULL) {
176 path = buf2;
180 oldpath = buf2;
  /src/usr.bin/uuencode/
uuencode.c 136 char buf2[sizeof(buf) * 2 + 1]; local in function:base64_encode
144 rv = b64_ntop(buf, n, buf2, (sizeof(buf2) / sizeof(buf2[0])));
147 printf("%s%s", buf2, (sequence % GROUPS) ? "" : "\n");
  /src/sys/net/agr/
ieee8023ad_lacp_debug.c 157 char buf2[LACP_STATESTR_MAX+1]; local in function:lacp_dump_lacpdu
162 lacp_format_state(du->ldu_actor.lip_state, buf2, sizeof(buf2)));
166 lacp_format_state(du->ldu_partner.lip_state, buf2, sizeof(buf2)));
  /src/sbin/nvmectl/
util.c 127 char buf2[64]; local in function:print_bignum1
159 buf2[0] = '\0';
166 unit_string(bn, unit, scale, buf2, sizeof(buf2));
171 printf("%-31s %s%s\n", title, buf, buf2);
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
sanitizer_printf_test.cc 112 char buf2[1024]; local in function:__sanitizer::TestAgainstLibc
113 snprintf(buf2, sizeof(buf2), fmt, arg1, arg2);
115 EXPECT_STREQ(buf2, buf);
  /src/usr.sbin/eeprom/
ofhandlers.c 214 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; local in function:of_dump
227 memset(buf2, 0, sizeof(buf2));
232 ofio1.of_buf = buf2;
250 ofio1.of_buflen = sizeof(buf2);
292 memset(ofio1.of_buf, 0, sizeof(buf2));
ophandlers.c 206 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; local in function:op_dump
219 memset(buf2, 0, sizeof(buf2));
224 opio1.op_buf = buf2;
242 opio1.op_buflen = sizeof(buf2);
281 memset(opio1.op_buf, 0, sizeof(buf2));
prephandlers.c 186 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; local in function:prep_dump
203 memset(buf2, 0, sizeof(buf2));
207 nvio1.pnv_buf = buf2;
211 nvio1.pnv_buflen = sizeof(buf2);
238 memset(nvio1.pnv_buf, 0, sizeof(buf2));
eehandlers.c 529 u_char *buf2; local in function:doio
531 buf2 = (u_char *)calloc(1, len);
532 if (buf2 == NULL) {
541 free(buf2);
552 if (read(fd, buf2, len) != len) {
559 if (memcmp(buf, buf2, len) == 0)
577 memmove(buf, buf2, len);
580 free(buf2);
  /src/sys/dev/raidframe/
rf_raid1.c 274 char *bf, *buf1, *buf2; local in function:rf_VerifyParityRAID1
406 * buf2 is the beginning of the parity blocks chunk
409 buf2 = bf + (nbytes * layoutPtr->numDataCol);
426 printf("raid%d: RAID1 parity verify %d bytes: i=%d buf1=%lx buf2=%lx buf=%lx\n",
428 (long) buf2, (long) bf);
431 ret = memcmp(buf1, buf2, nbytes);
436 if (buf1[j] != buf2[j])
442 printf("buf2 %02x %02x %02x %02x %02x\n", buf2[0] & 0xff,
443 buf2[1] & 0xff, buf2[2] & 0xff, buf2[3] & 0xff, buf2[4] & 0xff)
    [all...]
  /src/bin/stty/
print.c 62 char buf1[100], buf2[100]; local in function:print
182 (void)snprintf(buf2 + cnt * 8, 9, WD, ccval(p, cc[p->sub]));
186 (void)printf("%s\n", buf2);
191 (void)printf("%s\n", buf2);
  /src/lib/libc/gmon/
gmon.c 393 char buf2[200]; local in function:_mcleanup
458 len = snprintf(buf2, sizeof buf2, "[mcleanup1] kcount %p ssiz %lu\n",
460 (void)write(logfd, buf2, (size_t)len);
483 len = snprintf(buf2, sizeof buf2,
487 (void)write(logfd, buf2, (size_t)len);
  /src/usr.sbin/pf/pfs/
pfs.c 313 char buf1[64], buf2[64], buf3[64]; local in function:display_states
316 print_host(&p->ext, p->af, buf2, sizeof(buf2)),
319 char buf1[64], buf2[64]; local in function:display_states
322 print_host(&p->ext, p->af, buf2, sizeof(buf2)));

Completed in 19 milliseconds

1 2