Home
last modified time | relevance | path

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

12345678

/netbsd-src/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) 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 …]
/netbsd-src/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) 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 …]
/netbsd-src/sbin/mount_portal/
H A Dpt_file.c134 char pbuf[MAXPATHLEN]; in portal_file() local
139 pbuf[0] = '/'; in portal_file()
140 strlcpy(pbuf + 1, key + (v[1] ? strlen(v[1]) : 0), sizeof(pbuf) - 1); in portal_file()
142 pbuf, pcr->pcr_uid, pcr->pcr_gid); in portal_file()
154 fd = open(pbuf, O_RDWR | O_CREAT, 0666); in portal_file()
160 "Trying read-only open...", pbuf); in portal_file()
162 fd = open(pbuf, O_RDONLY, 0); in portal_file()
171 DEBUG_SYSLOG(LOG_DEBUG, "Error: could not open '%s': %m", pbuf); in portal_file()
/netbsd-src/distrib/utils/more/
H A Dcommand.c157 char pbuf[40]; in prompt() local
184 (void)snprintf(pbuf, sizeof(pbuf), " file %d/%d", in prompt()
186 putstr(pbuf); in prompt()
189 (void)snprintf(pbuf, sizeof(pbuf), " line %d", in prompt()
191 putstr(pbuf); in prompt()
194 (void)snprintf(pbuf, sizeof(pbuf), " byte %lld", in prompt()
196 putstr(pbuf); in prompt()
198 (void)snprintf(pbuf, sizeof(pbuf), in prompt()
201 putstr(pbuf); in prompt()
221 (void)snprintf(pbuf, sizeof(pbuf), " (%lld%%)", in prompt()
[all …]
/netbsd-src/crypto/dist/ipsec-tools/src/libipsec/
H A Dpolicy_parse.y100 static u_int8_t *pbuf = NULL; /* sadb_x_policy buffer */ variable
473 if (pbuf) { in init_x_policy()
474 free(pbuf); in init_x_policy()
477 pbuf = malloc(sizeof(struct sadb_x_policy)); in init_x_policy()
478 if (pbuf == NULL) { in init_x_policy()
484 memset(pbuf, 0, tlen); in init_x_policy()
485 p = (struct sadb_x_policy *)pbuf; in init_x_policy()
521 n = realloc(pbuf, tlen); in set_x_request()
526 pbuf = n; in set_x_request()
528 p = (struct sadb_x_ipsecrequest *)&pbuf[offset]; in set_x_request()
[all …]
/netbsd-src/usr.sbin/makefs/
H A Dmsdos.c222 char pbuf[MAXPATHLEN]; in msdos_populate_dir() local
229 if ((size_t)snprintf(pbuf, sizeof(pbuf), "%s/%s/%s", in msdos_populate_dir()
230 cur->root, cur->path, cur->name) >= sizeof(pbuf)) { in msdos_populate_dir()
231 warnx("path %s too long", pbuf); in msdos_populate_dir()
251 if ((de = msdosfs_mkdire(pbuf, dir, cur)) == NULL) { in msdos_populate_dir()
252 warn("msdosfs_mkdire %s", pbuf); in msdos_populate_dir()
255 if (msdos_populate_dir(pbuf, de, cur->child, cur, in msdos_populate_dir()
257 warn("msdos_populate_dir %s", pbuf); in msdos_populate_dir()
266 if (msdosfs_mkfile(pbuf, dir, cur) == NULL) { in msdos_populate_dir()
267 warn("msdosfs_mkfile %s", pbuf); in msdos_populate_dir()
/netbsd-src/lib/libskey/
H A Dskeylogin.c446 char pbuf[SKEY_MAX_PW_LEN+1], skeyprompt[SKEY_MAX_CHALLENGE+1]; in skey_authenticate() local
467 if (gethostname(pbuf, sizeof(pbuf)) == -1) in skey_authenticate()
468 *(p = pbuf) = '.'; in skey_authenticate()
470 for (p = pbuf; *p && isalnum((u_char) *p); p++) in skey_authenticate()
473 if (*p && pbuf - p < 4) in skey_authenticate()
474 (void)strncpy(p, "asjd", 4 - (pbuf - p)); in skey_authenticate()
475 pbuf[4] = '\0'; in skey_authenticate()
528 pbuf[i] = (ptr % 10) + '0'; in skey_authenticate()
531 pbuf[i] = '\0'; in skey_authenticate()
544 pbuf); in skey_authenticate()
[all …]
/netbsd-src/sys/arch/evbppc/virtex/
H A Dmachdep.c158 char pbuf[9]; in cpu_startup() local
167 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup()
168 printf("total memory = %s\n", pbuf); in cpu_startup()
183 format_bytes(pbuf, sizeof(pbuf), ptoa(uvm_availmem(false))); in cpu_startup()
184 printf("avail memory = %s\n", pbuf); in cpu_startup()
/netbsd-src/sbin/iscsictl/
H A Discsic_main.c399 int *pbuf; in get_response() local
401 pbuf = (int *)(void *)buf; in get_response()
402 rsp = (iscsid_response_t *)(void *)&pbuf[1]; in get_response()
403 *pbuf = 0; in get_response()
421 if (NULL == (pbuf = (int *) malloc(len + sizeof(int)))) in get_response()
425 rsp = (iscsid_response_t *)(void *)&pbuf[1]; in get_response()
426 *pbuf = 1; in get_response()
451 int *pbuf; in free_response() local
453 pbuf = ((int *)(void *)rsp) - 1; in free_response()
454 if (*pbuf) in free_response()
[all …]
/netbsd-src/crypto/dist/ipsec-tools/src/racoon/
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->v;
[all …]
H A Disakmp_base.c296 vchar_t *pbuf = NULL; local
309 pbuf = isakmp_parse(msg);
310 if (pbuf == NULL)
312 pa = (struct isakmp_parse_t *)pbuf->v;
386 if (pbuf)
387 vfree(pbuf);
582 vchar_t *pbuf = NULL; local
598 pbuf = isakmp_parse(msg);
599 if (pbuf == NULL)
602 for (pa = (struct isakmp_parse_t *)pbuf->v;
[all …]
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 Dremoteconf.c946 char buf[1024], *pbuf; in dump_peers_identifiers() local
947 pbuf = buf; in dump_peers_identifiers()
948 pbuf += sprintf (pbuf, "\tpeers_identifier %s", in dump_peers_identifiers()
951 pbuf += sprintf (pbuf, " \"%s\"", id->id->v); in dump_peers_identifiers()
961 char buf[1024], *pbuf; in dump_rmconf_single() local
963 pbuf = buf; in dump_rmconf_single()
965 pbuf += sprintf(pbuf, "remote \"%s\"", p->name); in dump_rmconf_single()
967 pbuf += sprintf(pbuf, " inherit \"%s\"", in dump_rmconf_single()
970 pbuf = buf; in dump_rmconf_single()
971 pbuf += sprintf(pbuf, "\texchange_type "); in dump_rmconf_single()
[all …]
H A Dsecurity.c71 vchar_t *pbuf = NULL; local
90 pbuf = isakmp_parsewoh(ISAKMP_NPTYPE_P, (struct isakmp_gen *)bp, len);
91 if (pbuf == NULL)
94 pa = (struct isakmp_parse_t *)pbuf->v;
99 vfree(pbuf);
106 vfree(pbuf);
/netbsd-src/external/bsd/openldap/dist/libraries/liblutil/
H A Dgetpass.c77 static char pbuf[PBUF]; in lutil_getpass() local
110 if ( i < (sizeof(pbuf)-1) ) in lutil_getpass()
111 pbuf[i++] = c; in lutil_getpass()
126 pbuf[i] = '\0'; in lutil_getpass()
127 return (pbuf); in lutil_getpass()
/netbsd-src/sys/arch/ews4800mips/ews4800mips/
H A Dmachdep.c214 char pbuf[9]; in cpu_startup() local
218 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup()
219 printf("total memory = %s\n", pbuf); in cpu_startup()
233 format_bytes(pbuf, sizeof(pbuf), ptoa(uvm_availmem(false))); in cpu_startup()
234 printf("avail memory = %s\n", pbuf); in cpu_startup()
/netbsd-src/games/hack/
H A Dhack.topl.c215 char pbuf[BUFSZ]; in vpline() local
216 char *bp = pbuf, *tl; in vpline()
222 (void) strlcpy(pbuf, line, sizeof(pbuf)); in vpline()
224 (void) vsnprintf(pbuf, sizeof(pbuf), line, ap); in vpline()
225 if (flags.toplin == 1 && !strcmp(pbuf, toplines)) in vpline()
/netbsd-src/sys/arch/mvme68k/mvme68k/
H A Dmachdep.c428 char pbuf[9]; in cpu_startup() local
453 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup()
454 printf("total memory = %s", pbuf); in cpu_startup()
459 format_bytes(pbuf, sizeof(pbuf), mem_clusters[0].size); in cpu_startup()
460 printf(" (%s on-board", pbuf); in cpu_startup()
461 format_bytes(pbuf, sizeof(pbuf), vmememsize); in cpu_startup()
462 printf(", %s VMEbus)", pbuf); in cpu_startup()
477 format_bytes(pbuf, sizeof(pbuf), ptoa(uvm_availmem(false))); in cpu_startup()
478 printf("avail memory = %s\n", pbuf); in cpu_startup()
/netbsd-src/sys/compat/netbsd32/
H A Dnetbsd32_execve.c121 char *pbuf = NULL, **pathp = NULL, *pathp32 = NULL; in netbsd32_posix_spawn_fa_alloc() local
149 pbuf = PNBUF_GET(); in netbsd32_posix_spawn_fa_alloc()
161 error = copyinstr(pathp32, pbuf, MAXPATHLEN, &slen); in netbsd32_posix_spawn_fa_alloc()
165 memcpy(*pathp, pbuf, slen); in netbsd32_posix_spawn_fa_alloc()
169 PNBUF_PUT(pbuf); in netbsd32_posix_spawn_fa_alloc()
176 if (pbuf) in netbsd32_posix_spawn_fa_alloc()
177 PNBUF_PUT(pbuf); in netbsd32_posix_spawn_fa_alloc()
/netbsd-src/external/gpl3/gdb/dist/readline/readline/
H A Dkill.c742 char pbuf[BRACK_PASTE_SLEN+1], *pbpref; in _rl_read_bracketed_paste_prefix() local
748 pbuf[ind = 0] = c; in _rl_read_bracketed_paste_prefix()
757 pbuf[++ind] = key; in _rl_read_bracketed_paste_prefix()
758 if (pbuf[ind] != pbpref[ind]) in _rl_read_bracketed_paste_prefix()
765 _rl_unget_char (pbuf[ind--]); in _rl_read_bracketed_paste_prefix()
778 char *pbuf; in _rl_bracketed_read_key() local
791 pbuf = _rl_bracketed_text (&pblen); in _rl_bracketed_read_key()
794 xfree (pbuf); in _rl_bracketed_read_key()
797 c = (unsigned char)pbuf[0]; in _rl_bracketed_read_key()
801 _rl_unget_char ((unsigned char)pbuf[pblen]); in _rl_bracketed_read_key()
[all …]
/netbsd-src/sys/arch/powerpc/ibm4xx/
H A Dibm4xx_machdep.c352 char pbuf[9]; in ibm4xx_cpu_startup() local
382 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in ibm4xx_cpu_startup()
383 printf("total memory = %s\n", pbuf); in ibm4xx_cpu_startup()
398 format_bytes(pbuf, sizeof(pbuf), ptoa(uvm_availmem(false))); in ibm4xx_cpu_startup()
399 printf("avail memory = %s\n", pbuf); in ibm4xx_cpu_startup()
/netbsd-src/sys/dev/
H A Dmd_root.c100 char pbuf[PBUFLEN]; in md_attach_hook() local
107 format_bytes(pbuf, sizeof(pbuf), md->md_size); in md_attach_hook()
108 aprint_verbose("md%d: internal %s image area\n", unit, pbuf); in md_attach_hook()
/netbsd-src/sys/kern/
H A Dinit_main.c1167 char pbuf[81]; in banner() local
1172 snprintf(pbuf, sizeof(pbuf), "%s %s (%s)", in banner()
1174 printf_nolog("%s", pbuf); in banner()
1175 for (i = 80 - strlen(pbuf) - sizeof(notice); i > 0; i--) in banner()
1183 memset(pbuf, 0, sizeof(pbuf)); in banner()
1185 format_bytes(pbuf, MEM_PBUFSIZE, ctob((uint64_t)physmem)); in banner()
1186 (*pr)("total memory = %s\n", pbuf); in banner()
1187 format_bytes(pbuf, MEM_PBUFSIZ in banner()
[all...]
/netbsd-src/sys/dev/ofw/
H A Dofw_subr.c362 char *pbuf; in of_packagename() local
366 pbuf = kmem_alloc(OFW_PATH_BUF_SIZE, KM_SLEEP); in of_packagename()
367 l = OF_package_to_path(phandle, pbuf, OFW_PATH_BUF_SIZE); in of_packagename()
371 (l == OFW_PATH_BUF_SIZE && pbuf[OFW_PATH_BUF_SIZE - 1] != '\0')) { in of_packagename()
381 pbuf[l] = '\0'; in of_packagename()
382 lastslash = strrchr(pbuf, '/'); in of_packagename()
383 strlcpy(buf, (lastslash == NULL) ? pbuf : (lastslash + 1), in of_packagename()
388 kmem_free(pbuf, OFW_PATH_BUF_SIZE); in of_packagename()
/netbsd-src/lib/libc/net/
H A Drcmd.c100 char pbuf[NI_MAXSERV]; in rcmd_af() local
111 snprintf(pbuf, sizeof(pbuf), "%u", ntohs(rport)); in rcmd_af()
116 error = getaddrinfo(*ahost, pbuf, &hints, &res); in rcmd_af()
159 char pbuf[NI_MAXSERV]; in orcmd_af() local
169 snprintf(pbuf, sizeof(pbuf), "%u", ntohs(rport)); in orcmd_af()
174 error = getaddrinfo(*ahost, pbuf, &hints, &res); in orcmd_af()
665 char pbuf[MAXPATHLEN]; in iruserok_sa() local
693 (void)strlcpy(pbuf, pwd->pw_dir, sizeof(pbuf)); in iruserok_sa()
694 (void)strlcat(pbuf, "/.rhosts", sizeof(pbuf)); in iruserok_sa()
706 hostf = fopen(pbuf, "re"); in iruserok_sa()
[all …]

12345678