Home
last modified time | relevance | path

Searched refs:buf2 (Results 1 – 25 of 121) sorted by relevance

12345

/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Dstrncmp-1.c47 unsigned char *buf1, *buf2; in main() local
71 buf2 = p2; in main()
82 test (buf1, buf2, len, 0); in main()
88 test (buf1, buf2, len, 0); in main()
94 test (buf1, buf2, len, 0); in main()
101 test (buf1, buf2, len, 0); in main()
108 test (buf1, buf2, len, 0); in main()
115 test (buf1, buf2, len, 0); in main()
122 test (buf1, buf2, len, 0); in main()
129 test (buf1, buf2, len, 0); in main()
[all …]
H A Dstrcmp-1.c47 unsigned char *buf1, *buf2; in main() local
71 buf2 = p2; in main()
81 test (buf1, buf2, 0); in main()
86 test (buf1, buf2, +1); in main()
91 test (buf1, buf2, -1); in main()
97 test (buf1, buf2, -1); in main()
103 test (buf1, buf2, +1); in main()
109 test (buf1, buf2, -1); in main()
115 test (buf1, buf2, +1); in main()
121 test (buf1, buf2, -1); in main()
[all …]
/openbsd/games/battlestar/
H A Dgetcom.c72 getword(char *buf1, char *buf2, int flag) in getword() argument
81 *buf2 = '\0'; in getword()
88 *buf2++ = tolower((unsigned char)*buf1++); in getword()
91 *buf2++ = *buf1++; in getword()
96 *buf2++ = toupper((unsigned char)*buf1++); in getword()
99 *buf2++ = *buf1++; in getword()
103 *buf2++ = *buf1++; in getword()
110 *buf2++ = *buf1++; in getword()
111 *buf2 = '\0'; in getword()
/openbsd/usr.sbin/tcpdump/
H A Dprint-icmp.c173 char buf2[HOST_NAME_MAX+1+256]; in icmp_print() local
295 (void)snprintf(buf2, sizeof(buf2), "%u", lifetime); in icmp_print()
297 (void)snprintf(buf2, sizeof(buf2), "%u:%02u", in icmp_print()
300 (void)snprintf(buf2, sizeof(buf2), "%u:%02u:%02u", in icmp_print()
303 strlcat(buf, buf2, sizeof(buf)); in icmp_print()
306 (void)snprintf(buf2, sizeof(buf2), " %u:", num); in icmp_print()
307 strlcat(buf, buf2, sizeof(buf)); in icmp_print()
311 (void)snprintf(buf2, sizeof(buf2), " [size %u]", size); in icmp_print()
312 strlcat(buf, buf2, sizeof(buf)); in icmp_print()
318 (void)snprintf(buf2, sizeof(buf2), " {%s %u}", in icmp_print()
[all …]
/openbsd/regress/gnu/egcs/gcc-bounds/
H A Dbuiltins-1.c9 char buf2[50]; in main() local
13 memcpy(buf2, buf, sizeof buf); in main()
14 memcpy(buf2, buf, 105); in main()
16 strncat(buf2, "blahblah", 1000); in main()
17 strncpy(buf2, buf, 1234); in main()
H A Dmemcpy-3.c5 char buf2[8] = "1234567"; in main() local
6 memcpy(buf, buf2, sizeof buf2); in main()
H A Dmemcpy-5.c5 int buf2[10] = {1,2,3,4,5,6,7,8,9,10}; in main() local
6 memcpy(buf, buf2, sizeof buf2); in main()
H A Dmemcpy-6.c5 int buf2[10] = {1,2,3,4,5,6,7,8,9,10}; in main() local
6 memcpy(buf, buf2, sizeof buf2); in main()
H A Dmemcpy-7.c6 char buf2[10] = "123456789"; in main() local
7 memcpy(buf, buf2, sizeof buf2); in main()
/openbsd/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/
H A Dcoremaker.c42 char *buf2; variable
74 buf2 = (char *) -1; in mmapdata()
81 buf2 = (char *) mmap (0, MAPSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in mmapdata()
82 if (buf2 == (char *) -1) in mmapdata()
94 if (buf1[j] != buf2[j]) in mmapdata()
97 buf2 = (char *) -1; in mmapdata()
/openbsd/regress/lib/libc/strlcpy/
H A Dstrlcpytest.c41 char *buf, *buf2, *cp, *ep; in main() local
48 buf2 = malloc(bufsize); in main()
49 if (buf == NULL || buf2 == NULL) { in main()
86 memset(buf2, 'x', bufsize - 1); in main()
87 buf2[bufsize - 1] = '\0'; in main()
88 len = strlcpy(buf, buf2, bufsize / 2); in main()
95 if (memcmp(buf, buf2, len) != 0 || buf[len] != '\0') { in main()
/openbsd/usr.bin/locate/bigram/
H A Dlocate.bigram.c52 u_char buf2[PATH_MAX]; variable
59 u_char *oldpath = buf1, *path = buf2; in main()
65 while (fgets(path, sizeof(buf2), stdin) != NULL) { in main()
86 path = buf2; in main()
90 oldpath = buf2; in main()
/openbsd/usr.sbin/smtpd/
H A Dspfwalk.c167 char buf2[512]; in dispatch_txt() local
219 print_dname(rr->rr_dname, buf2, sizeof(buf2)); in dispatch_txt()
220 buf2[strlen(buf2) - 1] = '\0'; in dispatch_txt()
222 lookup_record(T_A, buf2, &ltgt); in dispatch_txt()
224 lookup_record(T_AAAA, buf2, &ltgt); in dispatch_txt()
253 print_dname(rr->rr_dname, buf2, sizeof(buf2)); in dispatch_txt()
254 buf2[strlen(buf2) - 1] = '\0'; in dispatch_txt()
256 lookup_record(T_MX, buf2, &ltgt); in dispatch_txt()
/openbsd/gnu/usr.bin/perl/hints/
H A Dirix_6.sh588 char buf2[64];
590 buf2[63] = '\0';
593 (void)sprintf(buf2,"%.0f",(double)0.6);
594 if (strcmp(buf1,buf2)) {
598 (void)sprintf(buf2,"%.0f",(double)-0.6);
599 if (strcmp(buf1,buf2)) {
627 char buf2[64];
629 buf2[63] = '\0';
632 (void)sprintf(buf2,"%.0f",(double)1.6);
633 if (strcmp(buf1,buf2)) {
[all …]
/openbsd/lib/libcrypto/err/
H A Derr_prn.c76 char buf2[4096]; in ERR_print_errors_cb() local
87 (void) snprintf(buf2, sizeof(buf2), "%lu:%s:%s:%d:%s\n", es, in ERR_print_errors_cb()
89 if (cb(buf2, strlen(buf2), u) <= 0) in ERR_print_errors_cb()
/openbsd/usr.bin/infocmp/
H A Dinfocmp.c853 buf2[len] = '\0'; in analyze_string()
903 _nc_STRCPY(buf2, in analyze_string()
923 _nc_STRCPY(buf2, in analyze_string()
942 _nc_STRCPY(buf2, "SGR:", sizeof(buf2)); in analyze_string()
954 _nc_STRCPY(buf2, "SGR:", sizeof(buf2)); in analyze_string()
955 _nc_STRCAT(buf2, ecma_highlights[0].to, sizeof(buf2)); in analyze_string()
966 _nc_SPRINTF(buf2, _nc_SLIMIT(sizeof(buf2)) "1;%dr", tp_lines); in analyze_string()
977 _nc_SPRINTF(buf2, _nc_SLIMIT(sizeof(buf2)) "%d;1H", tp_lines); in analyze_string()
982 _nc_SPRINTF(buf2, _nc_SLIMIT(sizeof(buf2)) "%dH", tp_lines); in analyze_string()
997 buf2[0] = *sp; in analyze_string()
[all …]
/openbsd/lib/libkeynote/
H A Dkeynote-sign.c50 char *buf, *buf2, *sig, *algname; in keynote_sign() local
161 buf2 = calloc(sb.st_size + 1, sizeof(char)); in keynote_sign()
162 if (buf2 == NULL) in keynote_sign()
168 if (read(fd, buf2, sb.st_size) == -1) in keynote_sign()
176 sig = kn_sign_assertion(buf, buflen, buf2, algname, flg); in keynote_sign()
180 free(buf2); in keynote_sign()
/openbsd/usr.bin/locate/code/
H A Dlocate.code.c92 u_char buf2[PATH_MAX]; variable
168 path = buf2; in main()
171 while (fgets(path, sizeof(buf2), stdin) != NULL) { in main()
234 path = buf2; in main()
238 oldpath = buf2; in main()
/openbsd/usr.bin/uuencode/
H A Duuencode.c152 char buf2[sizeof(buf) * 2 + 1]; in base64_encode() local
161 rv = b64_ntop(buf, n, buf2, (sizeof(buf2) / sizeof(buf2[0]))); in base64_encode()
164 fprintf(output, "%s%s", buf2, (sequence % GROUPS) ? "" : "\n"); in base64_encode()
/openbsd/usr.sbin/eeprom/
H A Dophandlers.c177 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; in op_dump() local
190 bzero(buf2, sizeof(buf2)); in op_dump()
195 opio1.op_buf = buf2; in op_dump()
213 opio1.op_buflen = sizeof(buf2); in op_dump()
254 bzero(opio1.op_buf, sizeof(buf2)); in op_dump()
/openbsd/gnu/usr.bin/perl/cpan/Test-Harness/t/
H A Dyamlish-output.t72 my @buf2 = ();
81 destination => sub { push @buf2, shift },
82 normalise => sub { return \@buf2 },
/openbsd/regress/sbin/isakmpd/dh/
H A Ddhtest.c47 char buf[DH_MAXSZ], buf2[DH_MAXSZ]; in main() local
66 dh_create_exchange(group2, buf2); in main()
68 dh_create_shared(group, sec, buf2); in main()
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/
H A D20001221-1.c9 char buf2[nibbles + 1]; in foo() local
12 buf2[nibbles] = '\0'; in foo()
41 void *__s = (buf2); in foo()
/openbsd/regress/sbin/iked/dh/
H A Ddhtest.c56 struct ibuf *buf, *buf2; in main() local
71 dh_create_exchange(group2, &buf2, NULL); in main()
77 dh_create_shared(group, &sec, buf2); in main()
/openbsd/gnu/usr.bin/binutils/gdb/gdbserver/
H A Dremote-utils.c279 char *buf2; in putpkt() local
284 buf2 = malloc (PBUFSIZ); in putpkt()
289 p = buf2; in putpkt()
309 if (write (remote_desc, buf2, p - buf2) != p - buf2) in putpkt()
317 fprintf (stderr, "putpkt (\"%s\"); [looking for ack]\n", buf2); in putpkt()
334 free (buf2); in putpkt()
344 free (buf2); in putpkt()

12345