Searched refs:pbuf (Results 1 - 25 of 193) sorted by relevance

12345678

/netbsd-current/external/bsd/ntp/dist/libntp/
H A Dxsbprintf.c41 char *pbuf = (ppbuf) ? *ppbuf : NULL; local
43 if (pbuf && (pend - pbuf > 0)) {
44 size_t blen = (size_t)(pend - pbuf);
45 rc = vsnprintf(pbuf, blen, pfmt, va);
49 pbuf += rc;
51 *pbuf = '\0'; /* fear of bad vsnprintf */
52 *ppbuf = pbuf;
H A Dsocktohost.c32 char * pbuf; local
46 LIB_GETBUF(pbuf);
48 if (getnameinfo(&sock->sa, SOCKLEN(sock), pbuf, LIB_BUFLENGTH,
54 TRACE(1, ("%s reversed to %s\n", stoa(sock), pbuf));
67 a_info = getaddrinfo(pbuf, svc, &hints, &alist);
77 a_info = getaddrinfo(pbuf, svc, &hints, &alist);
83 a_info = getaddrinfo(pbuf, svc, &hints, &alist);
109 return pbuf; /* forward check passed */
113 TRACE(1, ("%s forward check lookup fail: %s\n", pbuf,
116 snprintf(pliar, LIB_BUFLENGTH, "%s (%s)", stoa(sock), pbuf);
[all...]
/netbsd-current/external/bsd/ntp/dist/ntpd/
H A Drefclock_ripencc.c3215 /* pbuf is the pointer to the current location of the text output */
3217 *pbuf; variable
3280 pbuf += sprintf(pbuf, "\nChannel A Configuration");
3285 pbuf += sprintf(pbuf, "\n Transmit speed: %s at %s",
3289 pbuf += sprintf(pbuf, "\n Receive speed: %s at %s",
3297 pbuf += sprintf(pbuf, "\
[all...]
/netbsd-current/crypto/external/bsd/openssl.old/dist/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,
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) argument
149 *pbuf = p;
155 *plen = *ndef_aux->boundary - *pbuf;
160 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, argument
176 *pbuf = NULL;
181 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, in argument
192 ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg) argument
[all...]
/netbsd-current/sbin/mount_portal/
H A Dpt_file.c134 char pbuf[MAXPATHLEN]; local
139 pbuf[0] = '/';
140 strlcpy(pbuf + 1, key + (v[1] ? strlen(v[1]) : 0), sizeof(pbuf) - 1);
142 pbuf, pcr->pcr_uid, pcr->pcr_gid);
154 fd = open(pbuf, O_RDWR | O_CREAT, 0666);
160 "Trying read-only open...", pbuf);
162 fd = open(pbuf, O_RDONLY, 0);
171 DEBUG_SYSLOG(LOG_DEBUG, "Error: could not open '%s': %m", pbuf);
/netbsd-current/sys/dev/
H A Dmd_root.c100 char pbuf[PBUFLEN]; local
107 format_bytes(pbuf, sizeof(pbuf), md->md_size);
108 aprint_verbose("md%d: internal %s image area\n", unit, pbuf);
/netbsd-current/external/bsd/openldap/dist/libraries/liblutil/
H A Dgetpass.c77 static char pbuf[PBUF]; local
110 if ( i < (sizeof(pbuf)-1) )
111 pbuf[i++] = c;
126 pbuf[i] = '\0';
127 return (pbuf);
/netbsd-current/crypto/external/bsd/openssl/dist/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,
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) argument
149 *pbuf = p;
155 *plen = *ndef_aux->boundary - *pbuf;
160 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, argument
176 *pbuf = NULL;
181 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, in argument
192 ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg) argument
[all...]
/netbsd-current/distrib/utils/more/
H A Dcommand.c157 char pbuf[40]; local
184 (void)snprintf(pbuf, sizeof(pbuf), " file %d/%d",
186 putstr(pbuf);
189 (void)snprintf(pbuf, sizeof(pbuf), " line %d",
191 putstr(pbuf);
194 (void)snprintf(pbuf, sizeof(pbuf), " byte %lld",
196 putstr(pbuf);
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/ec/
H A Dec_print.c23 unsigned char *buf = NULL, *pbuf; local
36 pbuf = buf;
38 int v = (int)*(pbuf++);
/netbsd-current/sbin/iscsictl/
H A Discsic_main.c399 int *pbuf; local
401 pbuf = (int *)(void *)buf;
402 rsp = (iscsid_response_t *)(void *)&pbuf[1];
403 *pbuf = 0;
421 if (NULL == (pbuf = (int *) malloc(len + sizeof(int))))
425 rsp = (iscsid_response_t *)(void *)&pbuf[1];
426 *pbuf = 1;
451 int *pbuf; local
453 pbuf = ((int *)(void *)rsp) - 1;
454 if (*pbuf)
[all...]
/netbsd-current/usr.sbin/makefs/
H A Dmsdos.c222 char pbuf[MAXPATHLEN]; local
229 if ((size_t)snprintf(pbuf, sizeof(pbuf), "%s/%s/%s",
230 cur->root, cur->path, cur->name) >= sizeof(pbuf)) {
231 warnx("path %s too long", pbuf);
251 if ((de = msdosfs_mkdire(pbuf, dir, cur)) == NULL) {
252 warn("msdosfs_mkdire %s", pbuf);
255 if (msdos_populate_dir(pbuf, de, cur->child, cur,
257 warn("msdos_populate_dir %s", pbuf);
266 if (msdosfs_mkfile(pbuf, di
[all...]
/netbsd-current/crypto/dist/ipsec-tools/src/racoon/
H A Disakmp_newg.c89 vchar_t *pbuf = NULL;
92 if ((pbuf = isakmp_parse(msg)) == NULL)
95 for (pa = (struct isakmp_parse_t *)pbuf->v;
106 vfree(pbuf);
117 vfree(pbuf);
131 vfree(pbuf);
135 vfree(pbuf);
H A Disakmp_ident.c258 vchar_t *pbuf = NULL; local
280 pbuf = isakmp_parse(msg);
281 if (pbuf == NULL)
283 pa = (struct isakmp_parse_t *)pbuf->v;
336 if (pbuf)
337 vfree(pbuf);
427 vchar_t *pbuf = NULL; local
446 pbuf = isakmp_parse(msg);
447 if (pbuf == NULL)
450 for (pa = (struct isakmp_parse_t *)pbuf
669 vchar_t *pbuf = NULL; local
856 vchar_t *pbuf = NULL; local
1115 vchar_t *pbuf = NULL; local
1334 vchar_t *pbuf = NULL; local
[all...]
/netbsd-current/games/hack/
H A Dhack.topl.c215 char pbuf[BUFSZ]; local
216 char *bp = pbuf, *tl;
222 (void) strlcpy(pbuf, line, sizeof(pbuf));
224 (void) vsnprintf(pbuf, sizeof(pbuf), line, ap);
225 if (flags.toplin == 1 && !strcmp(pbuf, toplines))
/netbsd-current/sys/arch/evbppc/virtex/
H A Dmachdep.c158 char pbuf[9]; local
167 format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
168 printf("total memory = %s\n", pbuf);
183 format_bytes(pbuf, sizeof(pbuf), ptoa(uvm_availmem(false)));
184 printf("avail memory = %s\n", pbuf);
/netbsd-current/lib/libskey/
H A Dskeylogin.c446 char pbuf[SKEY_MAX_PW_LEN+1], skeyprompt[SKEY_MAX_CHALLENGE+1]; local
467 if (gethostname(pbuf, sizeof(pbuf)) == -1)
468 *(p = pbuf) = '.';
470 for (p = pbuf; *p && isalnum((u_char) *p); p++)
473 if (*p && pbuf - p < 4)
474 (void)strncpy(p, "asjd", 4 - (pbuf - p));
475 pbuf[4] = '\0';
528 pbuf[i] = (ptr % 10) + '0';
531 pbuf[
[all...]
/netbsd-current/crypto/dist/ipsec-tools/src/libipsec/
H A Dpolicy_parse.y100 static u_int8_t *pbuf = NULL; /* sadb_x_policy buffer */
101 static int tlen = 0; /* total length of pbuf */
102 static int offset = 0; /* offset of pbuf */
473 if (pbuf) {
474 free(pbuf);
477 pbuf = malloc(sizeof(struct sadb_x_policy));
478 if (pbuf == NULL) {
484 memset(pbuf, 0, tlen);
485 p = (struct sadb_x_policy *)pbuf;
521 n = realloc(pbuf, tle
[all...]
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/
H A Diruserok.c228 char pbuf[MaxPathLen]; local
244 snprintf (pbuf, sizeof(pbuf), "%s/.rhosts", pwd->pw_dir);
254 hostf = fopen(pbuf, "r");
264 if (lstat(pbuf, &sbuf) < 0)
/netbsd-current/sys/compat/netbsd32/
H A Dnetbsd32_execve.c121 char *pbuf = NULL, **pathp = NULL, *pathp32 = NULL; local
149 pbuf = PNBUF_GET();
161 error = copyinstr(pathp32, pbuf, MAXPATHLEN, &slen);
165 memcpy(*pathp, pbuf, slen);
169 PNBUF_PUT(pbuf);
176 if (pbuf)
177 PNBUF_PUT(pbuf);
/netbsd-current/sys/arch/ews4800mips/ews4800mips/
H A Dmachdep.c214 char pbuf[9]; local
218 format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
219 printf("total memory = %s\n", pbuf);
233 format_bytes(pbuf, sizeof(pbuf), ptoa(uvm_availmem(false)));
234 printf("avail memory = %s\n", pbuf);
/netbsd-current/sys/arch/powerpc/ibm4xx/
H A Dibm4xx_machdep.c352 char pbuf[9]; local
382 format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
383 printf("total memory = %s\n", pbuf);
398 format_bytes(pbuf, sizeof(pbuf), ptoa(uvm_availmem(false)));
399 printf("avail memory = %s\n", pbuf);
/netbsd-current/external/bsd/blocklist/bin/
H A Dblocklistctl.c139 char mbuf[64], pbuf[64]; local
152 star(pbuf, sizeof(pbuf), c.c_port));
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/ec/
H A Dec_print.c81 unsigned char *buf = NULL, *pbuf; local
94 pbuf = buf;
96 int v = (int)*(pbuf++);
/netbsd-current/external/bsd/nvi/dist/ex/
H A Dtag.h33 char *pbuf; /* Search path buffer. */ member in struct:_csc

Completed in 207 milliseconds

12345678