| /freebsd-13.1/contrib/ntp/ntpd/ |
| H A D | refclock_ripencc.c | 3429 pbuf += sprintf(pbuf, in rpt_SW_version() 4051 pbuf += sprintf(pbuf, in rpt_GPS_system_data() 4054 pbuf += sprintf(pbuf, in rpt_GPS_system_data() 4209 pbuf += sprintf(pbuf, in rpt_SV_tracking_status() 4705 pbuf += sprintf(pbuf, in rpt_8F20() 4733 pbuf += sprintf(pbuf, in rpt_8F20() 4741 pbuf += sprintf(pbuf, in rpt_8F20() 4745 pbuf += sprintf(pbuf, in rpt_8F20() 4913 pbuf += sprintf(pbuf, in rpt_8F4B() 5135 pbuf += sprintf(pbuf, in unknown_rpt() [all …]
|
| /freebsd-13.1/contrib/ntp/libntp/ |
| H A D | xsbprintf.c | 39 char *pbuf = (ppbuf) ? *ppbuf : NULL; in xvsbprintf() local 41 if (pbuf && (pend - pbuf > 0)) { in xvsbprintf() 42 size_t blen = (size_t)(pend - pbuf); in xvsbprintf() 43 rc = vsnprintf(pbuf, blen, pfmt, va); in xvsbprintf() 47 pbuf += rc; in xvsbprintf() 49 *pbuf = '\0'; /* fear of bad vsnprintf */ in xvsbprintf() 50 *ppbuf = pbuf; in xvsbprintf()
|
| H A D | socktohost.c | 30 char * pbuf; in socktohost() local 44 LIB_GETBUF(pbuf); in socktohost() 46 if (getnameinfo(&sock->sa, SOCKLEN(sock), pbuf, LIB_BUFLENGTH, in socktohost() 52 TRACE(1, ("%s reversed to %s\n", stoa(sock), pbuf)); in socktohost() 65 a_info = getaddrinfo(pbuf, svc, &hints, &alist); in socktohost() 75 a_info = getaddrinfo(pbuf, svc, &hints, &alist); in socktohost() 81 a_info = getaddrinfo(pbuf, svc, &hints, &alist); in socktohost() 107 return pbuf; /* forward check passed */ in socktohost() 111 TRACE(1, ("%s forward check lookup fail: %s\n", pbuf, in socktohost() 114 snprintf(pliar, LIB_BUFLENGTH, "%s (%s)", stoa(sock), pbuf); in socktohost()
|
| /freebsd-13.1/crypto/openssl/crypto/asn1/ |
| H A D | bio_ndef.c | 45 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg); 46 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, 49 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, 149 *pbuf = p; in ndef_prefix() 155 *plen = *ndef_aux->boundary - *pbuf; in ndef_prefix() 160 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_prefix_free() argument 176 *pbuf = NULL; in ndef_prefix_free() 181 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_suffix_free() argument 185 if (!ndef_prefix_free(b, pbuf, plen, parg)) in ndef_suffix_free() 222 *pbuf = p; in ndef_suffix() [all …]
|
| /freebsd-13.1/sys/dev/pms/RefTisa/sat/src/ |
| H A D | smmisc.c | 91 smhexdump(const char *ptitle, bit8 *pbuf, size_t len) in smhexdump() argument 95 if (!pbuf) in smhexdump() 104 SM_DBG1((" 0x%02x, 0x%02x, 0x%02x, 0x%02x,\n", pbuf[i], pbuf[i+1], pbuf[i+2], pbuf[i+3])); in smhexdump() 109 SM_DBG1((" 0x%02x,", pbuf[i])); in smhexdump()
|
| /freebsd-13.1/sbin/dhclient/ |
| H A D | inet.c | 107 static char pbuf[32]; in piaddr() local 114 strlcpy(pbuf, "<null address>", sizeof(pbuf)); in piaddr() 118 strlcpy(pbuf, s, sizeof(pbuf)); in piaddr() 120 strlcpy(pbuf, "<invalid address>", sizeof(pbuf)); in piaddr() 122 return (pbuf); in piaddr()
|
| /freebsd-13.1/sys/dev/pms/RefTisa/discovery/dm/ |
| H A D | dmmisc.c | 73 dmhexdump(const char *ptitle, bit8 *pbuf, int len) in dmhexdump() argument 77 if (!pbuf) in dmhexdump() 86 DM_DBG1((" 0x%02x, 0x%02x, 0x%02x, 0x%02x,\n", pbuf[i], pbuf[i+1], pbuf[i+2], pbuf[i+3])); in dmhexdump() 91 DM_DBG1((" 0x%02x,", pbuf[i])); in dmhexdump()
|
| /freebsd-13.1/lib/libipsec/ |
| H A D | policy_parse.y | 302 pbuf = malloc(tlen); in init_x_policy() 303 if (pbuf == NULL) { in init_x_policy() 307 memset(pbuf, 0, tlen); in init_x_policy() 308 p = (struct sadb_x_policy *)pbuf; in init_x_policy() 333 pbuf = realloc(pbuf, tlen); 334 if (pbuf == NULL) { 364 memcpy(&pbuf[offset], addr, addr->sa_len); 397 pbuf = NULL; 410 if (pbuf != NULL) 411 free(pbuf); [all …]
|
| /freebsd-13.1/sys/kern/ |
| H A D | kern_physio.c | 48 struct buf *pbuf; in physio() local 103 pbuf = NULL; in physio() 106 pbuf = NULL; in physio() 110 pbuf = uma_zalloc(pbuf_zone, M_WAITOK); in physio() 111 MPASS((pbuf->b_flags & B_MAXPHYS) != 0); in physio() 112 sa = pbuf->b_data; in physio() 114 pages = pbuf->b_pages; in physio() 165 if (pbuf && sa) { in physio() 186 if (pbuf) in physio() 206 if (pbuf) in physio() [all …]
|
| /freebsd-13.1/lib/libsecureboot/ |
| H A D | veopen.c | 187 char pbuf[MAXPATHLEN+1]; in fingerprint_info_lookup() local 198 n = strlcpy(pbuf, path, sizeof(pbuf)); in fingerprint_info_lookup() 199 if (n >= sizeof(pbuf)) in fingerprint_info_lookup() 212 prefix = pbuf; in fingerprint_info_lookup() 219 if (cp < pbuf) in fingerprint_info_lookup() 223 if (cp > pbuf) { in fingerprint_info_lookup() 226 if (cp > pbuf) { in fingerprint_info_lookup() 230 cp = pbuf; in fingerprint_info_lookup() 233 plen = ep - pbuf; in fingerprint_info_lookup() 237 if (cp == pbuf) { in fingerprint_info_lookup() [all …]
|
| /freebsd-13.1/usr.sbin/makefs/ |
| H A D | msdos.c | 221 char pbuf[MAXPATHLEN]; in msdos_populate_dir() local 228 if ((size_t)snprintf(pbuf, sizeof(pbuf), "%s/%s", path, in msdos_populate_dir() 229 cur->name) >= sizeof(pbuf)) { in msdos_populate_dir() 230 warnx("path %s too long", pbuf); in msdos_populate_dir() 250 if ((de = msdosfs_mkdire(pbuf, dir, cur)) == NULL) { in msdos_populate_dir() 251 warn("msdosfs_mkdire %s", pbuf); in msdos_populate_dir() 254 if (msdos_populate_dir(pbuf, de, cur->child, cur, in msdos_populate_dir() 256 warn("msdos_populate_dir %s", pbuf); in msdos_populate_dir() 265 if (msdosfs_mkfile(cur->contents ? cur->contents : pbuf, dir, in msdos_populate_dir() 267 warn("msdosfs_mkfile %s", pbuf); in msdos_populate_dir()
|
| /freebsd-13.1/tools/regression/netinet6/inet6_rth/ |
| H A D | inet6_rth-segments.c | 88 char *pbuf; in test_rth_init() local 92 pbuf = inet6_rth_init((void *)buf, 10, IPV6_RTHDR_TYPE_0, 100); in test_rth_init() 93 checkptr(NULL, pbuf, "buffer too small\0"); in test_rth_init() 95 pbuf = inet6_rth_init((void *)buf, 10240, IPV6_RTHDR_TYPE_0, 0); in test_rth_init() 96 checkptr((caddr_t)&buf, pbuf, "0 segments\0"); in test_rth_init() 98 pbuf = inet6_rth_init((void *)buf, 10240, IPV6_RTHDR_TYPE_0, 127); in test_rth_init() 99 checkptr((caddr_t)&buf, pbuf, "127 segments\0"); in test_rth_init() 101 pbuf = inet6_rth_init((void *)buf, 10240, IPV6_RTHDR_TYPE_0, -1); in test_rth_init() 102 checkptr(NULL, pbuf, "negative number of segments\0"); in test_rth_init() 104 pbuf = inet6_rth_init((void *)buf, 10240, IPV6_RTHDR_TYPE_0, 128); in test_rth_init() [all …]
|
| /freebsd-13.1/contrib/bearssl/src/rsa/ |
| H A D | rsa_i31_pubexp.c | 32 get_pubexp(const unsigned char *pbuf, size_t plen, in get_pubexp() argument 55 while (plen > 0 && *pbuf == 0) { in get_pubexp() 56 pbuf ++; in get_pubexp() 72 || (dplen == plen && dpbuf[0] > pbuf[0])) in get_pubexp() 80 if ((pbuf[plen - 1] & 3) != 3 || (dpbuf[dplen - 1] & 1) != 1) { in get_pubexp() 88 br_i31_decode(p, pbuf, plen); in get_pubexp()
|
| H A D | rsa_i15_pubexp.c | 32 get_pubexp(const unsigned char *pbuf, size_t plen, in get_pubexp() argument 55 while (plen > 0 && *pbuf == 0) { in get_pubexp() 56 pbuf ++; in get_pubexp() 72 || (dplen == plen && dpbuf[0] > pbuf[0])) in get_pubexp() 80 if ((pbuf[plen - 1] & 3) != 3 || (dpbuf[dplen - 1] & 1) != 1) { in get_pubexp() 88 br_i15_decode(p, pbuf, plen); in get_pubexp()
|
| H A D | rsa_i31_modulus.c | 33 const unsigned char *pbuf, *qbuf; in br_rsa_i31_compute_modulus() local 39 pbuf = sk->p; in br_rsa_i31_compute_modulus() 41 while (plen > 0 && *pbuf == 0) { in br_rsa_i31_compute_modulus() 42 pbuf ++; in br_rsa_i31_compute_modulus() 61 br_i31_decode(t, pbuf, plen); in br_rsa_i31_compute_modulus()
|
| H A D | rsa_i15_modulus.c | 33 const unsigned char *pbuf, *qbuf; in br_rsa_i15_compute_modulus() local 39 pbuf = sk->p; in br_rsa_i15_compute_modulus() 41 while (plen > 0 && *pbuf == 0) { in br_rsa_i15_compute_modulus() 42 pbuf ++; in br_rsa_i15_compute_modulus() 61 br_i15_decode(t, pbuf, plen); in br_rsa_i15_compute_modulus()
|
| H A D | rsa_i15_privexp.c | 63 const unsigned char *pbuf, *qbuf; in br_rsa_i15_compute_privexp() local 78 pbuf = sk->p; in br_rsa_i15_compute_privexp() 80 while (plen > 0 && *pbuf == 0) { in br_rsa_i15_compute_privexp() 81 pbuf ++; in br_rsa_i15_compute_privexp() 85 || (pbuf[plen - 1] & 1) != 1) in br_rsa_i15_compute_privexp() 110 br_i15_decode(p, pbuf, plen); in br_rsa_i15_compute_privexp()
|
| /freebsd-13.1/lib/libsecureboot/openpgp/ |
| H A D | opgp_sig.c | 427 char pbuf[MAXPATHLEN]; 435 n = snprintf(pbuf, sizeof(pbuf), "%s%s", filename, *ep); 436 if (n >= (int)sizeof(pbuf)) { 440 if (access(pbuf, R_OK) == 0) { 441 sname = pbuf; 462 char pbuf[MAXPATHLEN]; 469 n = strlcpy(pbuf, sigfile, sizeof(pbuf)); 470 if ((cp = strrchr(pbuf, '.'))) 472 if ((fdata = read_file(pbuf, &fbytes))) { 473 if (openpgp_verify(pbuf, fdata, fbytes, sdata,
|
| /freebsd-13.1/contrib/sendmail/src/ |
| H A D | sasl.c | 249 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local 267 hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), niflags) != 0) 281 sm_snprintf(pbuf, sizeof(pbuf), "%d", ntohs(addr->sin.sin_port)); 284 if (outlen < strlen(hbuf) + strlen(pbuf) + 2) 289 sm_snprintf(out, outlen, "%s;%s", hbuf, pbuf);
|
| /freebsd-13.1/contrib/opie/ |
| H A D | opiesu.c | 248 char pbuf[256]; variable 395 if (!opiereadpass(pbuf, sizeof(pbuf), 0)) 404 if (!opiereadpass(pbuf, sizeof(pbuf), 1)) 413 if (!opiereadpass(pbuf, sizeof(pbuf), 0)) 418 if (!pbuf[0] && !console) { 421 if (!opiereadpass(pbuf, sizeof(pbuf), 1)) 428 if (!strcmp(crypt(pbuf, thisuser.pw_passwd), thisuser.pw_passwd)) 432 if (!opieverify(&opie, pbuf)) {
|
| /freebsd-13.1/usr.sbin/ofwdump/ |
| H A D | ofwdump.c | 158 static void *pbuf = NULL; in ofw_dump_property() local 164 len = ofw_getprop_alloc(fd, n, prop, &pbuf, &pblen, 1); in ofw_dump_property() 168 write(STDOUT_FILENO, pbuf, len); in ofw_dump_property() 170 printf("%.*s\n", len, (char *)pbuf); in ofw_dump_property() 181 ((unsigned char *)pbuf)[i + j]); in ofw_dump_property() 188 if (((char *)pbuf)[len - 1] == '\0' && in ofw_dump_property() 189 strlen(pbuf) == (unsigned)len - 1) { in ofw_dump_property() 198 vlen = strvis(visbuf, pbuf, VIS_TAB | VIS_NL); in ofw_dump_property()
|
| /freebsd-13.1/sys/netsmb/ |
| H A D | smb_smb.c | 301 char *pp, *up, *pbuf, *encpass; in smb_smb_ssnsetup() local 336 iconv_convstr(vcp->vc_toserver, pbuf, pbuf/*, in smb_smb_ssnsetup() 355 plen = strlen(pbuf) + 1; in smb_smb_ssnsetup() 356 pp = pbuf; in smb_smb_ssnsetup() 433 free(pbuf, M_SMBTEMP); in smb_smb_ssnsetup() 504 char *pp, *pbuf, *encpass; in smb_smb_treeconnect() local 527 pbuf = NULL; in smb_smb_treeconnect() 551 plen = strlen(pbuf) + 1; in smb_smb_treeconnect() 552 pp = pbuf; in smb_smb_treeconnect() 593 if (pbuf) in smb_smb_treeconnect() [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/cmd/mktree/ |
| H A D | mktree.c | 157 char *pbuf; in crtfile() local 164 pbuf = (char *)valloc(size); in crtfile() 167 (void) snprintf(pbuf+offset, size-offset, "%s", context); in crtfile() 175 if (write(fd, pbuf, 1024) < 1024) { in crtfile() 182 if (fsetxattr(fd, "user.xattr", pbuf, 1024, 0) < 0) { in crtfile() 190 free(pbuf); in crtfile()
|
| /freebsd-13.1/tests/sys/cddl/zfs/bin/ |
| H A D | mktree.c | 156 char *pbuf; in crtfile() local 163 pbuf = (char *)valloc(size); in crtfile() 166 (void) snprintf(pbuf+offset, size-offset, "%s", context); in crtfile() 174 if (write(fd, pbuf, 1024) < 1024) { in crtfile() 186 if (write(afd, pbuf, 1024) < 1024) { in crtfile() 195 free(pbuf); in crtfile()
|
| /freebsd-13.1/usr.sbin/usbconfig/ |
| H A D | dump.c | 453 char *pbuf; in dump_string_by_index() local 457 pbuf = malloc(256); in dump_string_by_index() 458 if (pbuf == NULL) in dump_string_by_index() 464 str_index, 0, pbuf, 256)) { in dump_string_by_index() 468 len = (uint8_t)pbuf[0]; in dump_string_by_index() 470 printf("0x%02x%s", (uint8_t)pbuf[n], in dump_string_by_index() 478 str_index, pbuf, 256)) { in dump_string_by_index() 481 printf("STRING_0x%02x = <%s>\n", str_index, pbuf); in dump_string_by_index() 484 free(pbuf); in dump_string_by_index()
|