/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_ripencc.c | 3213 /* pbuf is the pointer to the current location of the text output */ 3215 *pbuf; variable 3278 pbuf += sprintf(pbuf, "\nChannel A Configuration"); in rpt_chan_A_config() 3283 pbuf += sprintf(pbuf, "\n Transmit speed: %s at %s", in rpt_chan_A_config() 3287 pbuf += sprintf(pbuf, "\n Receive speed: %s at %s", in rpt_chan_A_config() 3295 pbuf += sprintf(pbuf, "\ in rpt_chan_A_config() [all...] |
/freebsd/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 | 29 char * pbuf; in socktohost() 43 LIB_GETBUF(pbuf); in socktohost() 45 if (getnameinfo(&sock->sa, SOCKLEN(sock), pbuf, LIB_BUFLENGTH, in socktohost() 51 TRACE(1, ("%s reversed to %s\n", stoa(sock), pbuf)); in socktohost() 64 a_info = getaddrinfo(pbuf, svc, &hints, &alist); in socktohost() 74 a_info = getaddrinfo(pbuf, svc, &hints, &alist); in socktohost() 80 a_info = getaddrinfo(pbuf, svc, &hints, &alist); in socktohost() 106 return pbuf; /* forward check passed */ in socktohost() 110 TRACE(1, ("%s forward check lookup fail: %s\n", pbuf, in socktohost() 113 snprintf(pliar, LIB_BUFLENGTH, "%s (%s)", stoa(sock), pbuf); in socktohost() 30 char * pbuf; socktohost() local [all...] |
/freebsd/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, 48 static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg); 49 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, 129 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix() argument 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 [all …]
|
/freebsd/lib/libipsec/ |
H A D | policy_parse.y | 72 static caddr_t pbuf = NULL; /* sadb_x_policy buffer */ variable 73 static int tlen = 0; /* total length of pbuf */ 74 static int offset = 0; /* offset of pbuf */ 298 pbuf = malloc(tlen); in init_x_policy() 299 if (pbuf == NULL) { in init_x_policy() 303 memset(pbuf, 0, tlen); in init_x_policy() 304 p = (struct sadb_x_policy *)pbuf; in init_x_policy() 328 pbuf = realloc(pbuf, tlen); in set_x_request() 329 if (pbuf in set_x_request() [all...] |
/freebsd/sys/dev/pms/RefTisa/sat/src/ |
H A D | smmisc.c | 90 smhexdump(const char *ptitle, bit8 *pbuf, size_t len) in smhexdump() argument 94 if (!pbuf) in smhexdump() 103 SM_DBG1((" 0x%02x, 0x%02x, 0x%02x, 0x%02x,\n", pbuf[i], pbuf[i+1], pbuf[i+2], pbuf[i+3])); in smhexdump() 108 SM_DBG1((" 0x%02x,", pbuf[i])); in smhexdump()
|
/freebsd/sbin/dhclient/ |
H A D | inet.c | 105 static char pbuf[32]; in piaddr() local 112 strlcpy(pbuf, "<null address>", sizeof(pbuf)); in piaddr() 116 strlcpy(pbuf, s, sizeof(pbuf)); in piaddr() 118 strlcpy(pbuf, "<invalid address>", sizeof(pbuf)); in piaddr() 120 return (pbuf); in piaddr()
|
/freebsd/sys/dev/pms/RefTisa/discovery/dm/ |
H A D | dmmisc.c | 72 dmhexdump(const char *ptitle, bit8 *pbuf, int len) in dmhexdump() argument 76 if (!pbuf) in dmhexdump() 85 DM_DBG1((" 0x%02x, 0x%02x, 0x%02x, 0x%02x,\n", pbuf[i], pbuf[i+1], pbuf[i+2], pbuf[i+3])); in dmhexdump() 90 DM_DBG1((" 0x%02x,", pbuf[i])); in dmhexdump()
|
/freebsd/sys/kern/ |
H A D | kern_physio.c | 43 struct buf *pbuf; in physio() local 92 pbuf = NULL; in physio() 95 pbuf = NULL; in physio() 99 pbuf = uma_zalloc(pbuf_zone, M_WAITOK); in physio() 100 MPASS((pbuf->b_flags & B_MAXPHYS) != 0); in physio() 101 sa = pbuf->b_data; in physio() 103 pages = pbuf->b_pages; in physio() 160 if (pbuf && sa) { in physio() 181 if (pbuf) in physio() 201 if (pbuf) in physio() [all...] |
/freebsd/lib/libsecureboot/ |
H A D | veopen.c | 192 char pbuf[MAXPATHLEN+1]; in fingerprint_info_lookup() local 203 n = strlcpy(pbuf, path, sizeof(pbuf)); in fingerprint_info_lookup() 204 if (n >= sizeof(pbuf)) in fingerprint_info_lookup() 218 prefix = pbuf; in fingerprint_info_lookup() 220 cp = &pbuf[fip->fi_prefix_len]; in fingerprint_info_lookup() 225 if (cp < pbuf) in fingerprint_info_lookup() 229 if (cp > pbuf) { in fingerprint_info_lookup() 230 for ( ; cp >= pbuf && *cp != '/'; cp--) in fingerprint_info_lookup() 232 if (cp > pbuf) { in fingerprint_info_lookup() 236 cp = pbuf; in fingerprint_info_lookup() [all …]
|
/freebsd/usr.sbin/makefs/ |
H A D | msdos.c | 215 char pbuf[MAXPATHLEN]; in msdos_populate_dir() local 222 if ((size_t)snprintf(pbuf, sizeof(pbuf), "%s/%s", path, in msdos_populate_dir() 223 cur->name) >= sizeof(pbuf)) { in msdos_populate_dir() 224 warnx("path %s too long", pbuf); in msdos_populate_dir() 244 if ((de = msdosfs_mkdire(pbuf, dir, cur)) == NULL) { in msdos_populate_dir() 245 warn("msdosfs_mkdire %s", pbuf); in msdos_populate_dir() 248 if (msdos_populate_dir(pbuf, de, cur->child, cur, in msdos_populate_dir() 250 warn("msdos_populate_dir %s", pbuf); in msdos_populate_dir() 259 if (msdosfs_mkfile(cur->contents ? cur->contents : pbuf, dir, in msdos_populate_dir() 261 warn("msdosfs_mkfile %s", pbuf); in msdos_populate_dir()
|
/freebsd/tools/regression/netinet6/inet6_rth/ |
H A D | inet6_rth-segments.c | 85 char *pbuf; in test_rth_init() local 89 pbuf = inet6_rth_init((void *)buf, 10, IPV6_RTHDR_TYPE_0, 100); in test_rth_init() 90 checkptr(NULL, pbuf, "buffer too small\0"); in test_rth_init() 92 pbuf = inet6_rth_init((void *)buf, 10240, IPV6_RTHDR_TYPE_0, 0); in test_rth_init() 93 checkptr((caddr_t)&buf, pbuf, "0 segments\0"); in test_rth_init() 95 pbuf = inet6_rth_init((void *)buf, 10240, IPV6_RTHDR_TYPE_0, 127); in test_rth_init() 96 checkptr((caddr_t)&buf, pbuf, "127 segments\0"); in test_rth_init() 98 pbuf = inet6_rth_init((void *)buf, 10240, IPV6_RTHDR_TYPE_0, -1); in test_rth_init() 99 checkptr(NULL, pbuf, "negative number of segments\0"); in test_rth_init() 101 pbuf = inet6_rth_init((void *)buf, 10240, IPV6_RTHDR_TYPE_0, 128); in test_rth_init() [all …]
|
/freebsd/lib/libsecureboot/openpgp/ |
H A D | opgp_sig.c | 434 char pbuf[MAXPATHLEN]; 442 n = snprintf(pbuf, sizeof(pbuf), "%s%s", filename, *ep); 443 if (n >= (int)sizeof(pbuf)) { 447 if (access(pbuf, R_OK) == 0) { 448 sname = pbuf; 469 char pbuf[MAXPATHLEN]; 477 n = strlcpy(pbuf, sigfile, sizeof(pbuf)); 478 if (n < sizeof(pbuf)) { 479 if ((cp = strrchr(pbuf, '.'))) 481 if ((fdata = read_file(pbuf, &fbytes))) { [all …]
|
/freebsd/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_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_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_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()
|
H A D | rsa_i31_privexp.c | 63 const unsigned char *pbuf, *qbuf; in br_rsa_i31_compute_privexp() local 78 pbuf = sk->p; in br_rsa_i31_compute_privexp() 80 while (plen > 0 && *pbuf == 0) { in br_rsa_i31_compute_privexp() 81 pbuf ++; in br_rsa_i31_compute_privexp() 85 || (pbuf[plen - 1] & 1) != 1) in br_rsa_i31_compute_privexp() 110 br_i31_decode(p, pbuf, plen); in br_rsa_i31_compute_privexp()
|
/freebsd/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/sys/netsmb/ |
H A D | smb_smb.c | 298 char *pp, *up, *pbuf, *encpass; in smb_smb_ssnsetup() local 317 pbuf = malloc(SMB_MAXPASSWORDLEN + 1, M_SMBTEMP, M_WAITOK); in smb_smb_ssnsetup() 326 iconv_convstr(vcp->vc_toupper, pbuf, in smb_smb_ssnsetup() 329 strncpy(pbuf, smb_vc_getpass(vcp), SMB_MAXPASSWORDLEN); in smb_smb_ssnsetup() 330 pbuf[SMB_MAXPASSWORDLEN] = '\0'; in smb_smb_ssnsetup() 333 iconv_convstr(vcp->vc_toserver, pbuf, pbuf/*, in smb_smb_ssnsetup() 338 smb_encrypt(pbuf, vcp->vc_ch, encpass); in smb_smb_ssnsetup() 341 strncpy(pbuf, smb_vc_getpass(vcp), in smb_smb_ssnsetup() 343 pbuf[SMB_MAXPASSWORDLEN] = '\0'; in smb_smb_ssnsetup() 345 iconv_convstr(vcp->vc_toserver, pbuf, in smb_smb_ssnsetup() [all …]
|
/freebsd/usr.sbin/ofwdump/ |
H A D | ofwdump.c | 157 static void *pbuf = NULL; in ofw_dump_property() local 163 len = ofw_getprop_alloc(fd, n, prop, &pbuf, &pblen, 1); in ofw_dump_property() 167 write(STDOUT_FILENO, pbuf, len); in ofw_dump_property() 169 printf("%.*s\n", len, (char *)pbuf); in ofw_dump_property() 180 ((unsigned char *)pbuf)[i + j]); in ofw_dump_property() 187 if (((char *)pbuf)[len - 1] == '\0' && in ofw_dump_property() 188 strlen(pbuf) == (unsigned)len - 1) { in ofw_dump_property() 197 vlen = strvis(visbuf, pbuf, VIS_TAB | VIS_NL); in ofw_dump_property()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
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/tests/sys/cddl/zfs/bin/ |
H A D | mktree.c | 154 char *pbuf; in crtfile() local 161 pbuf = (char *)valloc(size); in crtfile() 164 (void) snprintf(pbuf+offset, size-offset, "%s", context); in crtfile() 172 if (write(fd, pbuf, 1024) < 1024) { in crtfile() 184 if (write(afd, pbuf, 1024) < 1024) { in crtfile() 193 free(pbuf); in crtfile()
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | iruserok.c | 226 char pbuf[MaxPathLen]; in iruserok() local 242 snprintf (pbuf, sizeof(pbuf), "%s/.rhosts", pwd->pw_dir); in iruserok() 252 hostf = fopen(pbuf, "r"); in iruserok() 262 if (lstat(pbuf, &sbuf) < 0) in iruserok()
|