Searched refs:buf2 (Results 1 - 25 of 85) sorted by relevance

1234

/freebsd-9.3-release/lib/libc/resolv/
H A Dres_mkupdate.c101 char buf2[MAXDNAME]; local
225 if (!getword_str(buf2, sizeof buf2, &startp, endp))
227 if (!inet_aton(buf2, &ina))
240 if (!getword_str(buf2, sizeof buf2, &startp, endp))
242 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr);
252 if (!getword_str(buf2, sizeof buf2, &startp,
255 n = dn_comp(buf2, c
[all...]
/freebsd-9.3-release/usr.bin/cmp/
H A Dlink.c43 char buf2[PATH_MAX], *p2; local
55 if ((len2 = readlink(file2, buf2, sizeof(buf2) - 1)) < 0) {
68 buf2[len2] = '\0';
72 for (p1 = buf1 + skip1, p2 = buf2 + skip2; *p1 && *p2; p1++, p2++) {
/freebsd-9.3-release/usr.bin/locate/bigram/
H A Dlocate.bigram.c66 u_char buf2[MAXPATHLEN]; variable
73 u_char *oldpath = buf1, *path = buf2;
76 while (fgets(path, sizeof(buf2), stdin) != NULL) {
97 path = buf2;
101 oldpath = buf2;
/freebsd-9.3-release/contrib/opie/libopie/
H A Dwriterec.c44 char buf[17], buf2[64]; local
51 if (strftime(buf2, sizeof(buf2), " %b %d,%Y %T", localtime(&now)) < 1)
83 if (fprintf(f, "%s %04d %-16s %s %-21s\n", opie->opie_principal, opie->opie_n, opie->opie_seed, opie->opie_val ? opie->opie_val : __opienone, buf2) < 1)
/freebsd-9.3-release/crypto/openssl/crypto/err/
H A Derr_prn.c71 char buf2[4096]; local
79 BIO_snprintf(buf2, sizeof(buf2), "%lu:%s:%s:%d:%s\n", es, buf,
81 if (cb(buf2, strlen(buf2), u) <= 0)
/freebsd-9.3-release/crypto/heimdal/lib/krb5/
H A Dtest_addr.c44 char buf2[1000]; local
62 krb5_print_address(&addresses.val[i], buf2, sizeof(buf2), &len);
64 printf("addr %d: %s (%d/%d)\n", i, buf2, (int)len, (int)strlen(buf2));
66 if (strlen(buf2) > sizeof(buf2))
/freebsd-9.3-release/tools/regression/lib/libc/stdio/
H A Dtest-fmemopen.c48 char buf2[512]; local
73 bzero(buf2, sizeof(buf2));
74 nofr = fread(buf2, 1, sizeof(buf2), fp);
75 assert(nofr == sizeof(buf2));
82 assert(strcmp(str, buf2) == 0);
/freebsd-9.3-release/usr.sbin/ctm/mkCTM/
H A Dmkctm.c155 char *buf2 = alloca(strlen(dir2) + strlen(name) + local
168 strcpy(buf2, dir2);
169 strcat(buf2, "/"); strcat(buf2, name);
170 strcat(buf2, "/"); strcat(buf2, de->d_name);
171 fd2 = open(buf2, O_RDONLY);
172 if(fd2 < 0) { err(3, "%s", buf2); }
189 if (p2 == (u_char *)MAP_FAILED) { err(3, "%s", buf2); }
214 buf1, buf2);
315 char *buf2 = alloca(strlen(dir2) + strlen(name) + local
433 char *buf2 = alloca(strlen(dir2) + strlen(name) + 4); local
[all...]
/freebsd-9.3-release/crypto/openssl/demos/tunala/
H A Dcb.c74 char buf2[256]; /* Used for the issuer name */ local
85 buf1[0] = buf2[0] = '\0';
88 /* Fill buf2 */
89 X509_NAME_oneline(X509_get_issuer_name(ctx->current_cert), buf2, 256);
118 fprintf(fp_cb_ssl_verify, "--> issuer = %s\n", buf2);
/freebsd-9.3-release/usr.bin/locate/code/
H A Dlocate.code.c108 u_char buf2[MAXPATHLEN]; variable
167 path = buf2;
170 while (fgets(path, sizeof(buf2), stdin) != NULL) {
244 path = buf2;
248 oldpath = buf2;
/freebsd-9.3-release/usr.bin/uuencode/
H A Duuencode.c149 char buf2[sizeof(buf) * 2 + 1]; local
158 rv = b64_ntop(buf, n, buf2, (sizeof(buf2) / sizeof(buf2[0])));
161 fprintf(output, "%s%s", buf2, (sequence % GROUPS) ? "" : "\n");
/freebsd-9.3-release/contrib/file/src/
H A Dfsmagic.c311 char buf2[BUFSIZ+BUFSIZ+4]; local
333 (void)strlcpy(buf2, fn, sizeof buf2);
334 buf2[tmp - fn + 1] = '\0';
336 (void)strlcat(buf2, buf, sizeof buf2);
337 tmp = buf2;
/freebsd-9.3-release/sys/geom/bde/
H A Dg_bde_crypt.c85 u_char buf2[8]; local
88 le64enc(buf2, sector);
92 MD5Update(&ct, buf2, sizeof buf2);
100 MD5Update(&ct, buf2, sizeof buf2);
102 bzero(buf2, sizeof buf2);
/freebsd-9.3-release/contrib/ncurses/progs/
H A Dinfocmp.c340 char buf1[MAX_STRING], buf2[MAX_STRING]; local
375 dump_numeric(n2, buf2);
379 (void) printf("\t%s: %s, %s.\n", name, buf1, buf2);
401 dump_string(s2, buf2);
402 if (strcmp(buf1, buf2))
403 (void) printf("\t%s: %s, %s.\n", name, buf1, buf2);
606 char buf2[MAX_TERMINFO_LENGTH]; local
634 (void) strncpy(buf2, sp, len);
635 buf2[len] = '\0';
637 if (_nc_capcmp(cp, buf2))
[all...]
/freebsd-9.3-release/usr.sbin/pkg_install/lib/
H A Dmatch.c370 char *buf, *buf2; local
378 buf2 = NULL;
385 asprintf(&buf2, "%s/%s", buf, CONTENTS_FNAME);
386 if (buf2 == NULL)
389 if (!isfile(buf2) || access(buf2, R_OK) == FAIL)
399 free(buf2);
400 buf2 = NULL;
413 if (buf2 != NULL)
414 free(buf2);
[all...]
/freebsd-9.3-release/contrib/ncurses/ncurses/tinfo/
H A Dparse_entry.c780 char buf2[MAX_TERMINFO_LENGTH]; local
835 for (dp = buf2, bp = tp->Strings[from_ptr->nte_index]; *bp; bp++) {
845 tp->Strings[to_ptr->nte_index] = _nc_save_str(buf2);
885 char buf2[MAX_TERMCAP_LENGTH]; local
887 _nc_str_init(&result, buf2, sizeof(buf2));
902 if (buf2[0]) {
903 acs_chars = _nc_save_str(buf2);
925 char buf2[MAX_TERMCAP_LENGTH]; local
928 _nc_str_init(&result, buf2, sizeo
[all...]
/freebsd-9.3-release/contrib/gdb/gdb/gdbserver/
H A Dremote-utils.c268 char *buf2; local
273 buf2 = malloc (PBUFSIZ);
278 p = buf2;
298 if (write (remote_desc, buf2, p - buf2) != p - buf2)
306 fprintf (stderr, "putpkt (\"%s\"); [looking for ack]\n", buf2);
323 free (buf2);
333 free (buf2);
/freebsd-9.3-release/bin/stty/
H A Dprint.c58 char buf1[100], buf2[100]; local
206 (void)snprintf(buf2 + cnt * 8, sizeof(buf2) - cnt * 8,
211 (void)printf("%s\n", buf2);
216 (void)printf("%s\n", buf2);
/freebsd-9.3-release/contrib/libreadline/
H A Dmbutil.c235 _rl_compare_chars (buf1, pos1, ps1, buf2, pos2, ps2)
239 char *buf2;
246 (w2 = _rl_get_char_len (&buf2[pos2], ps2)) <= 0 ||
248 (buf1[pos1] != buf2[pos2]))
252 if (buf1[pos1+i] != buf2[pos2+i])
/freebsd-9.3-release/contrib/libreadline/examples/
H A Drl-fgets.c232 char buf1[256], buf2[256] ;
261 if ( 1 == sscanf(buf1,"%s",buf2) ) {
262 my_fgets_names[i] = strdup(buf2) ;
225 char buf1[256], buf2[256] ; local
/freebsd-9.3-release/contrib/ntp/sntp/libevent/test/
H A Dregress_buffer.c1613 struct evbuffer *buf1 = NULL, *buf2 = NULL; local
1648 buf2 = evbuffer_new();
1649 tt_assert(buf2);
1651 evbuffer_add(buf2, "I ", 2);
1653 evbuffer_add_buffer(buf2, buf1);
1655 evbuffer_remove(buf2, tmp, 16);
1657 evbuffer_drain(buf2, evbuffer_get_length(buf2));
1660 evbuffer_validate(buf2);
1676 if (buf2)
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-9.3-release/crypto/openssl/crypto/dsa/
H A Ddsa_gen.c116 unsigned char buf[SHA_DIGEST_LENGTH], buf2[SHA_DIGEST_LENGTH]; local
182 memcpy(buf2, seed, SHA_DIGEST_LENGTH);
192 EVP_Digest(buf, SHA_DIGEST_LENGTH, buf2, NULL, HASH, NULL);
194 md[i] ^= buf2[i];
/freebsd-9.3-release/crypto/openssl/fips/dsa/
H A Dfips_dsa_gen.c117 unsigned char buf[SHA_DIGEST_LENGTH], buf2[SHA_DIGEST_LENGTH]; local
193 memcpy(buf2, seed, SHA_DIGEST_LENGTH);
203 EVP_Digest(buf, SHA_DIGEST_LENGTH, buf2, NULL, HASH, NULL);
205 md[i] ^= buf2[i];
/freebsd-9.3-release/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c111 char buf2[MAXPATHLEN]; local
221 (void)snprintf(buf2, sizeof(buf2), "%s/%s", prefix, _MP_DB);
225 cp(buf2, buf, PERM_INSECURE);
609 (void)snprintf(buf2, sizeof(buf2), "%s/%s", prefix, _MP_DB);
610 mv(buf, buf2);
612 (void)snprintf(buf2, sizeof(buf2), "%s/%s", prefix, _SMP_DB);
613 mv(buf, buf2);
[all...]
/freebsd-9.3-release/contrib/cvs/src/
H A Dfilesubr.c595 char *buf1, *buf2; local
616 buf2 = xreadlink (file2);
617 result = (strcmp (buf1, buf2) == 0);
619 free (buf2);
661 buf2 = xmalloc (buf_size);
669 read2 = block_read (fd2, buf2, buf_size);
675 ret = memcmp(buf1, buf2, read1);
679 free (buf2);

Completed in 371 milliseconds

1234