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

1234

/freebsd-9.3-release/sbin/dhclient/
H A Dinet.c105 static char pbuf[32]; local
112 strlcpy(pbuf, "<null address>", sizeof(pbuf));
116 strlcpy(pbuf, s, sizeof(pbuf));
118 strlcpy(pbuf, "<invalid address>", sizeof(pbuf));
120 return (pbuf);
/freebsd-9.3-release/contrib/ntp/libntp/
H A Dsocktohost.c30 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-9.3-release/usr.sbin/eeprom/
H A Dofw_options.c151 void *pbuf; local
156 pbuf = NULL;
159 &pbuf, &pblen, 1);
160 if (len <= 0 || strncmp("none", (char *)pbuf, len) == 0) {
163 } else if (strncmp("command", (char *)pbuf, len) == 0 ||
164 strncmp("full", (char *)pbuf, len) == 0) {
172 if (pbuf != NULL)
173 free(pbuf);
204 void *pbuf; local
211 pbuf
245 void *pbuf; local
278 void *pbuf; local
[all...]
/freebsd-9.3-release/contrib/ntp/ntpd/
H A Drefclock_ripencc.c3213 /* 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-9.3-release/sys/i386/ibcs2/
H A Dibcs2_util.c55 char **pbuf, int cflag)
58 return (kern_alternate_path(td, ibcs2_emul_path, path, pathseg, pbuf,
54 ibcs2_emul_find(struct thread *td, char *path, enum uio_seg pathseg, char **pbuf, int cflag) argument
/freebsd-9.3-release/usr.sbin/mount_portalfs/
H A Dpt_file.c53 char pbuf[MAXPATHLEN]; local
57 pbuf[0] = '/';
58 strcpy(pbuf+1, key + (v[1] ? strlen(v[1]) : 0));
61 printf("path = %s, uid = %d, gid = %d\n", pbuf, pcr->pcr_uid, pcr->pcr_groups[0]);
69 fd = open(pbuf, (pcr->pcr_flag)-1, 0777);
H A Dpt_pipe.c58 char pbuf[MAXPATHLEN]; local
89 pbuf[0] = '/';
90 strcpy(pbuf+1, key + (v[1] ? strlen(v[1]) : 0));
91 argc = parse_argv(pbuf, NULL);
120 parse_argv(pbuf, argv);
/freebsd-9.3-release/lib/libipsec/
H A Dpolicy_parse.y72 static caddr_t pbuf = NULL; /* sadb_x_policy buffer */
73 static int tlen = 0; /* total length of pbuf */
74 static int offset = 0; /* offset of pbuf */
301 pbuf = malloc(tlen);
302 if (pbuf == NULL) {
306 memset(pbuf, 0, tlen);
307 p = (struct sadb_x_policy *)pbuf;
332 pbuf = realloc(pbuf, tlen);
333 if (pbuf
[all...]
/freebsd-9.3-release/tools/regression/netinet6/inet6_rth/
H A Dinet6_rth-segments.c88 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-9.3-release/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-9.3-release/contrib/opie/
H A Dopiesu.c248 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-9.3-release/crypto/openssl/crypto/pkcs12/
H A Dp12_crpt.c95 const unsigned char *pbuf; local
105 pbuf = param->value.sequence->data;
106 if (!(pbe = d2i_PBEPARAM(NULL, &pbuf, param->value.sequence->length))) {
/freebsd-9.3-release/usr.sbin/usbconfig/
H A Ddump.c376 char *pbuf; local
380 pbuf = malloc(256);
381 if (pbuf == NULL)
387 str_index, 0, pbuf, 256)) {
391 len = (uint8_t)pbuf[0];
393 printf("0x%02x%s", (uint8_t)pbuf[n],
401 str_index, pbuf, 256)) {
404 printf("STRING_0x%02x = <%s>\n", str_index, pbuf);
407 free(pbuf);
/freebsd-9.3-release/usr.sbin/ofwdump/
H A Dofwdump.c146 static void *pbuf = NULL; local
157 len = ofw_getprop_alloc(fd, n, prop, &pbuf, &pblen, 1);
161 write(STDOUT_FILENO, pbuf, len);
163 printf("%.*s\n", len, (char *)pbuf);
174 ((unsigned char *)pbuf)[i + j]);
181 if (((char *)pbuf)[len - 1] == '\0' &&
182 strlen(pbuf) == (unsigned)len - 1) {
191 vlen = strvis(visbuf, pbuf, VIS_TAB | VIS_NL);
/freebsd-9.3-release/contrib/ipfilter/ipsend/
H A Dresend.c41 static u_char pbuf[65536]; /* 1 big packet */ variable
98 ip = (struct ip *)pbuf;
114 while ((i = (*r->r_readip)((char *)pbuf, sizeof(pbuf), NULL, NULL)) > 0)
136 eh = (ether_header_t *)pbuf;
/freebsd-9.3-release/crypto/heimdal/lib/roken/
H A Diruserok.c229 char pbuf[MaxPathLen]; local
245 snprintf (pbuf, sizeof(pbuf), "%s/.rhosts", pwd->pw_dir);
255 hostf = fopen(pbuf, "r");
265 if (lstat(pbuf, &sbuf) < 0)
/freebsd-9.3-release/sys/dev/ed/
H A Dif_ed_novell.c234 char pbuf0[ED_PAGE_SIZE], pbuf[ED_PAGE_SIZE], tbuf[ED_PAGE_SIZE]; local
249 pbuf[i] = 255 - x;
250 ed_pio_writemem(sc, pbuf, x * 256, ED_PAGE_SIZE);
252 if (bcmp(pbuf, tbuf, ED_PAGE_SIZE) == 0) {
269 pbuf[i] = 255 - x;
270 ed_pio_writemem(sc, pbuf, x * 256, ED_PAGE_SIZE);
272 if (bcmp(pbuf, tbuf, ED_PAGE_SIZE) == 0)
/freebsd-9.3-release/contrib/less/
H A Dlessecho.c52 char *pbuf = buf; local
58 *pbuf++ = *p;
59 *pbuf = '\0';
/freebsd-9.3-release/contrib/file/src/
H A Dfuncs.c302 if (ms->o.pbuf) {
303 free(ms->o.pbuf);
304 ms->o.pbuf = NULL;
322 char *pbuf, *op, *np; local
341 if ((pbuf = CAST(char *, realloc(ms->o.pbuf, psize))) == NULL) {
345 ms->o.pbuf = pbuf;
356 np = ms->o.pbuf;
382 return ms->o.pbuf;
[all...]
/freebsd-9.3-release/crypto/openssl/crypto/ec/
H A Dec_print.c132 unsigned char *buf, *pbuf; local
152 pbuf = buf;
154 int v = (int)*(pbuf++);
/freebsd-9.3-release/crypto/openssl/crypto/evp/
H A Dp5_crpt.c116 const unsigned char *pbuf; local
125 pbuf = param->value.sequence->data;
126 if (!(pbe = d2i_PBEPARAM(NULL, &pbuf, param->value.sequence->length))) {
/freebsd-9.3-release/crypto/openssl/crypto/asn1/
H A Dasn_pack.c74 const unsigned char *pbuf; local
75 pbuf = buf;
76 if (!(sk = d2i_ASN1_SET(NULL, &pbuf, len, d2i, free_func,
/freebsd-9.3-release/sys/netsmb/
H A Dsmb_smb.c301 char *pp, *up, *pbuf, *encpass; local
320 pbuf = malloc(SMB_MAXPASSWORDLEN + 1, M_SMBTEMP, M_WAITOK);
329 iconv_convstr(vcp->vc_toupper, pbuf,
332 strncpy(pbuf, smb_vc_getpass(vcp), SMB_MAXPASSWORDLEN);
333 pbuf[SMB_MAXPASSWORDLEN] = '\0';
336 iconv_convstr(vcp->vc_toserver, pbuf, pbuf/*,
341 smb_encrypt(pbuf, vcp->vc_ch, encpass);
344 strncpy(pbuf, smb_vc_getpass(vcp),
346 pbuf[SMB_MAXPASSWORDLE
504 char *pp, *pbuf, *encpass; local
[all...]
/freebsd-9.3-release/contrib/nvi/ex/
H A Dtag.h32 char *pbuf; /* Search path buffer. */ member in struct:_csc
/freebsd-9.3-release/usr.sbin/rip6query/
H A Drip6query.c80 char pbuf[10]; local
112 snprintf(pbuf, sizeof(pbuf), "%d", RIP6_PORT);
116 error = getaddrinfo(argv[0], pbuf, &hints, &res);

Completed in 177 milliseconds

1234