/freebsd-12-stable/contrib/ntp/libntp/ |
H A D | xsbprintf.c | 39 char *pbuf = (ppbuf) ? *ppbuf : NULL; local 41 if (pbuf && (pend - pbuf > 0)) { 42 size_t blen = (size_t)(pend - pbuf); 43 rc = vsnprintf(pbuf, blen, pfmt, va); 47 pbuf += rc; 49 *pbuf = '\0'; /* fear of bad vsnprintf */ 50 *ppbuf = pbuf;
|
H A D | socktohost.c | 30 char * pbuf; local 44 LIB_GETBUF(pbuf); 46 if (getnameinfo(&sock->sa, SOCKLEN(sock), pbuf, LIB_BUFLENGTH, 52 TRACE(1, ("%s reversed to %s\n", stoa(sock), pbuf)); 65 a_info = getaddrinfo(pbuf, svc, &hints, &alist); 75 a_info = getaddrinfo(pbuf, svc, &hints, &alist); 81 a_info = getaddrinfo(pbuf, svc, &hints, &alist); 107 return pbuf; /* forward check passed */ 111 TRACE(1, ("%s forward check lookup fail: %s\n", pbuf, 114 snprintf(pliar, LIB_BUFLENGTH, "%s (%s)", stoa(sock), pbuf); [all...] |
/freebsd-12-stable/sbin/dhclient/ |
H A D | inet.c | 107 static char pbuf[32]; local 114 strlcpy(pbuf, "<null address>", sizeof(pbuf)); 118 strlcpy(pbuf, s, sizeof(pbuf)); 120 strlcpy(pbuf, "<invalid address>", sizeof(pbuf)); 122 return (pbuf);
|
/freebsd-12-stable/usr.sbin/eeprom/ |
H A D | ofw_options.c | 153 void *pbuf; local 158 pbuf = NULL; 161 &pbuf, &pblen, 1); 162 if (len <= 0 || strncmp("none", (char *)pbuf, len) == 0) { 165 } else if (strncmp("command", (char *)pbuf, len) == 0 || 166 strncmp("full", (char *)pbuf, len) == 0) { 174 if (pbuf != NULL) 175 free(pbuf); 206 void *pbuf; local 213 pbuf 247 void *pbuf; local 280 void *pbuf; local [all...] |
/freebsd-12-stable/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"); 3283 pbuf += sprintf(pbuf, "\n Transmit speed: %s at %s", 3287 pbuf += sprintf(pbuf, "\n Receive speed: %s at %s", 3295 pbuf += sprintf(pbuf, "\ [all...] |
/freebsd-12-stable/sys/i386/ibcs2/ |
H A D | ibcs2_util.c | 57 char **pbuf, int cflag) 60 return (kern_alternate_path(td, ibcs2_emul_path, path, pathseg, pbuf, 56 ibcs2_emul_find(struct thread *td, char *path, enum uio_seg pathseg, char **pbuf, int cflag) argument
|
/freebsd-12-stable/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, 104 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) argument 124 *pbuf = p; 130 *plen = *ndef_aux->boundary - *pbuf; 135 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, argument 148 *pbuf = NULL; 153 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, in argument 164 ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg) argument [all...] |
/freebsd-12-stable/sys/dev/pms/RefTisa/discovery/dm/ |
H A D | dmmisc.c | 73 dmhexdump(const char *ptitle, bit8 *pbuf, int len) argument 77 if (!pbuf) 79 DM_DBG1(("pbuf is NULL\n")); 86 DM_DBG1((" 0x%02x, 0x%02x, 0x%02x, 0x%02x,\n", pbuf[i], pbuf[i+1], pbuf[i+2], pbuf[i+3])); 91 DM_DBG1((" 0x%02x,", pbuf[i]));
|
/freebsd-12-stable/sys/dev/pms/RefTisa/sat/src/ |
H A D | smmisc.c | 91 smhexdump(const char *ptitle, bit8 *pbuf, size_t len) argument 95 if (!pbuf) 97 SM_DBG1(("pbuf is NULL\n")); 104 SM_DBG1((" 0x%02x, 0x%02x, 0x%02x, 0x%02x,\n", pbuf[i], pbuf[i+1], pbuf[i+2], pbuf[i+3])); 109 SM_DBG1((" 0x%02x,", pbuf[i]));
|
/freebsd-12-stable/contrib/bearssl/src/rsa/ |
H A D | rsa_i15_modulus.c | 33 const unsigned char *pbuf, *qbuf; local 39 pbuf = sk->p; 41 while (plen > 0 && *pbuf == 0) { 42 pbuf ++; 61 br_i15_decode(t, pbuf, plen);
|
H A D | rsa_i31_modulus.c | 33 const unsigned char *pbuf, *qbuf; local 39 pbuf = sk->p; 41 while (plen > 0 && *pbuf == 0) { 42 pbuf ++; 61 br_i31_decode(t, pbuf, plen);
|
H A D | rsa_i15_pubexp.c | 32 get_pubexp(const unsigned char *pbuf, size_t plen, argument 55 while (plen > 0 && *pbuf == 0) { 56 pbuf ++; 72 || (dplen == plen && dpbuf[0] > pbuf[0])) 80 if ((pbuf[plen - 1] & 3) != 3 || (dpbuf[dplen - 1] & 1) != 1) { 88 br_i15_decode(p, pbuf, plen);
|
H A D | rsa_i31_pubexp.c | 32 get_pubexp(const unsigned char *pbuf, size_t plen, argument 55 while (plen > 0 && *pbuf == 0) { 56 pbuf ++; 72 || (dplen == plen && dpbuf[0] > pbuf[0])) 80 if ((pbuf[plen - 1] & 3) != 3 || (dpbuf[dplen - 1] & 1) != 1) { 88 br_i31_decode(p, pbuf, plen);
|
H A D | rsa_i15_privexp.c | 63 const unsigned char *pbuf, *qbuf; local 78 pbuf = sk->p; 80 while (plen > 0 && *pbuf == 0) { 81 pbuf ++; 85 || (pbuf[plen - 1] & 1) != 1) 110 br_i15_decode(p, pbuf, plen);
|
H A D | rsa_i31_privexp.c | 63 const unsigned char *pbuf, *qbuf; local 78 pbuf = sk->p; 80 while (plen > 0 && *pbuf == 0) { 81 pbuf ++; 85 || (pbuf[plen - 1] & 1) != 1) 110 br_i31_decode(p, pbuf, plen);
|
/freebsd-12-stable/sys/kern/ |
H A D | kern_physio.c | 45 struct buf *pbuf; local 100 pbuf = NULL; 103 pbuf = NULL; 107 pbuf = getpbuf(NULL); 108 sa = pbuf->b_data; 110 pages = pbuf->b_pages; 151 * Make sure the pbuf can map the request. 152 * The pbuf has kvasize = MAXPHYS, so a request 157 if (pbuf && bp->bio_length + poff > pbuf [all...] |
/freebsd-12-stable/lib/libipsec/ |
H A D | policy_parse.y | 74 static caddr_t pbuf = NULL; /* sadb_x_policy buffer */ 75 static int tlen = 0; /* total length of pbuf */ 76 static int offset = 0; /* offset of pbuf */ 302 pbuf = malloc(tlen); 303 if (pbuf == NULL) { 307 memset(pbuf, 0, tlen); 308 p = (struct sadb_x_policy *)pbuf; 333 pbuf = realloc(pbuf, tlen); 334 if (pbuf [all...] |
/freebsd-12-stable/tools/regression/netinet6/inet6_rth/ |
H A D | inet6_rth-segments.c | 88 char *pbuf; local 92 pbuf = inet6_rth_init((void *)buf, 10, IPV6_RTHDR_TYPE_0, 100); 93 checkptr(NULL, pbuf, "buffer too small\0"); 95 pbuf = inet6_rth_init((void *)buf, 10240, IPV6_RTHDR_TYPE_0, 0); 96 checkptr((caddr_t)&buf, pbuf, "0 segments\0"); 98 pbuf = inet6_rth_init((void *)buf, 10240, IPV6_RTHDR_TYPE_0, 127); 99 checkptr((caddr_t)&buf, pbuf, "127 segments\0"); 101 pbuf = inet6_rth_init((void *)buf, 10240, IPV6_RTHDR_TYPE_0, -1); 102 checkptr(NULL, pbuf, "negative number of segments\0"); 104 pbuf [all...] |
/freebsd-12-stable/usr.sbin/makefs/ |
H A D | msdos.c | 223 char pbuf[MAXPATHLEN]; local 230 if ((size_t)snprintf(pbuf, sizeof(pbuf), "%s/%s", path, 231 cur->name) >= sizeof(pbuf)) { 232 warnx("path %s too long", pbuf); 252 if ((de = msdosfs_mkdire(pbuf, dir, cur)) == NULL) { 253 warn("msdosfs_mkdire %s", pbuf); 256 if (msdos_populate_dir(pbuf, de, cur->child, cur, 258 warn("msdos_populate_dir %s", pbuf); 267 if (msdosfs_mkfile(pbuf, di [all...] |
/freebsd-12-stable/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-12-stable/lib/libsecureboot/ |
H A D | veopen.c | 187 char pbuf[MAXPATHLEN+1]; local 198 n = strlcpy(pbuf, path, sizeof(pbuf)); 199 if (n >= sizeof(pbuf)) 212 prefix = pbuf; 214 cp = &pbuf[fip->fi_prefix_len]; 219 if (cp < pbuf) 223 if (cp > pbuf) { 224 for ( ; cp >= pbuf && *cp != '/'; cp--) 226 if (cp > pbuf) { [all...] |
/freebsd-12-stable/tests/sys/cddl/zfs/bin/ |
H A D | mktree.c | 156 char *pbuf; local 163 pbuf = (char *)valloc(size); 166 (void) snprintf(pbuf+offset, size-offset, "%s", context); 174 if (write(fd, pbuf, 1024) < 1024) { 175 (void) fprintf(stderr, "write(fd, pbuf, 1024) failed." 186 if (write(afd, pbuf, 1024) < 1024) { 187 (void) fprintf(stderr, "write(afd, pbuf, 1024) failed." 195 free(pbuf);
|
/freebsd-12-stable/contrib/opie/ |
H A D | opiesu.c | 248 char pbuf[256]; local 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), [all...] |
/freebsd-12-stable/lib/libsecureboot/openpgp/ |
H A D | opgp_sig.c | 429 char pbuf[MAXPATHLEN]; local 437 n = snprintf(pbuf, sizeof(pbuf), "%s%s", filename, *ep); 438 if (n >= (int)sizeof(pbuf)) { 442 if (access(pbuf, R_OK) == 0) { 443 sname = pbuf; 464 char pbuf[MAXPATHLEN]; local 471 n = strlcpy(pbuf, sigfile, sizeof(pbuf)); 472 if ((cp = strrchr(pbuf, ' [all...] |
/freebsd-12-stable/usr.sbin/ofwdump/ |
H A D | ofwdump.c | 158 static void *pbuf = NULL; local 164 len = ofw_getprop_alloc(fd, n, prop, &pbuf, &pblen, 1); 168 write(STDOUT_FILENO, pbuf, len); 170 printf("%.*s\n", len, (char *)pbuf); 181 ((unsigned char *)pbuf)[i + j]); 188 if (((char *)pbuf)[len - 1] == '\0' && 189 strlen(pbuf) == (unsigned)len - 1) { 198 vlen = strvis(visbuf, pbuf, VIS_TAB | VIS_NL);
|