/netbsd-current/external/bsd/ntp/dist/libntp/ |
H A D | xsbprintf.c | 41 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 D | socktohost.c | 32 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 D | refclock_ripencc.c | 3215 /* 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 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) 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 D | pt_file.c | 134 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 D | md_root.c | 100 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 D | getpass.c | 77 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 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) 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 D | command.c | 157 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 D | ec_print.c | 23 unsigned char *buf = NULL, *pbuf; local 36 pbuf = buf; 38 int v = (int)*(pbuf++);
|
/netbsd-current/sbin/iscsictl/ |
H A D | iscsic_main.c | 399 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 D | msdos.c | 222 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 D | isakmp_newg.c | 89 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 D | isakmp_ident.c | 258 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 D | hack.topl.c | 215 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 D | machdep.c | 158 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 D | skeylogin.c | 446 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 D | policy_parse.y | 100 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 D | iruserok.c | 228 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 D | netbsd32_execve.c | 121 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 D | machdep.c | 214 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 D | ibm4xx_machdep.c | 352 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 D | blocklistctl.c | 139 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 D | ec_print.c | 81 unsigned char *buf = NULL, *pbuf; local 94 pbuf = buf; 96 int v = (int)*(pbuf++);
|
/netbsd-current/external/bsd/nvi/dist/ex/ |
H A D | tag.h | 33 char *pbuf; /* Search path buffer. */ member in struct:_csc
|