Home
last modified time | relevance | path

Searched refs:pbuf (Results 1 – 25 of 124) sorted by relevance

12345

/freebsd/contrib/ntp/ntpd/
H A Drefclock_ripencc.c3429 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/contrib/ntp/libntp/
H A Dxsbprintf.c39 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 Dsocktohost.c29 char * pbuf; in socktohost() local
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()
/freebsd/crypto/openssl/crypto/asn1/
H A Dbio_ndef.c45 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()
224 *pbuf = p; in ndef_suffix()
[all …]
/freebsd/sys/dev/pms/RefTisa/sat/src/
H A Dsmmisc.c90 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 Dinet.c105 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 Ddmmisc.c72 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/lib/libipsec/
H A Dpolicy_parse.y298 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 == NULL) { in set_x_request()
358 memcpy(&pbuf[offset], addr, addr->sa_len); in set_sockaddr()
389 pbuf = NULL; in policy_parse()
402 if (pbuf != NULL) in policy_parse()
403 free(pbuf); in policy_parse()
[all …]
/freebsd/sys/kern/
H A Dkern_physio.c43 struct buf *pbuf; in physio() local
98 pbuf = NULL; in physio()
101 pbuf = NULL; in physio()
105 pbuf = uma_zalloc(pbuf_zone, M_WAITOK); in physio()
106 MPASS((pbuf->b_flags & B_MAXPHYS) != 0); in physio()
107 sa = pbuf->b_data; in physio()
109 pages = pbuf->b_pages; in physio()
166 if (pbuf && sa) { in physio()
187 if (pbuf) in physio()
207 if (pbuf) in physio()
[all …]
/freebsd/lib/libsecureboot/
H A Dveopen.c192 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()
225 if (cp < pbuf) in fingerprint_info_lookup()
229 if (cp > pbuf) { in fingerprint_info_lookup()
232 if (cp > pbuf) { in fingerprint_info_lookup()
236 cp = pbuf; in fingerprint_info_lookup()
239 plen = ep - pbuf; in fingerprint_info_lookup()
243 if (cp == pbuf) { in fingerprint_info_lookup()
[all …]
/freebsd/usr.sbin/makefs/
H A Dmsdos.c215 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/lib/libsecureboot/openpgp/
H A Dopgp_sig.c423 char pbuf[MAXPATHLEN];
431 n = snprintf(pbuf, sizeof(pbuf), "%s%s", filename, *ep);
432 if (n >= (int)sizeof(pbuf)) {
436 if (access(pbuf, R_OK) == 0) {
437 sname = pbuf;
458 char pbuf[MAXPATHLEN];
466 n = strlcpy(pbuf, sigfile, sizeof(pbuf));
467 if (n < sizeof(pbuf)) {
468 if ((cp = strrchr(pbuf, '.')))
470 if ((fdata = read_file(pbuf, &fbytes))) {
[all …]
/freebsd/tools/regression/netinet6/inet6_rth/
H A Dinet6_rth-segments.c85 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/contrib/bearssl/src/rsa/
H A Drsa_i31_pubexp.c32 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 Drsa_i15_pubexp.c32 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 Drsa_i15_modulus.c33 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 Drsa_i31_modulus.c33 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 Drsa_i15_privexp.c63 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 Drsa_i31_privexp.c63 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 Dsasl.c249 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/usr.sbin/ofwdump/
H A Dofwdump.c157 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/netsmb/
H A Dsmb_smb.c298 char *pp, *up, *pbuf, *encpass; in smb_smb_ssnsetup() local
333 iconv_convstr(vcp->vc_toserver, pbuf, pbuf/*, in smb_smb_ssnsetup()
352 plen = strlen(pbuf) + 1; in smb_smb_ssnsetup()
353 pp = pbuf; in smb_smb_ssnsetup()
430 free(pbuf, M_SMBTEMP); in smb_smb_ssnsetup()
501 char *pp, *pbuf, *encpass; in smb_smb_treeconnect() local
524 pbuf = NULL; in smb_smb_treeconnect()
548 plen = strlen(pbuf) + 1; in smb_smb_treeconnect()
549 pp = pbuf; in smb_smb_treeconnect()
590 if (pbuf) in smb_smb_treeconnect()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmktree.c157 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 Dmktree.c154 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 Diruserok.c226 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()

12345