Home
last modified time | relevance | path

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

12345

/titanic_50/usr/src/lib/libc/port/gen/
H A Dnss_common.c1587 nss_pheader_t *pbuf = (nss_pheader_t *)buffer; in nss_pack_dbd() local
1594 pbuf->dbd_off = (nssuint_t)off; in nss_pack_dbd()
1643 pbuf->dbd_len = (nssuint_t)len; in nss_pack_dbd()
1659 nss_pheader_t *pbuf = (nss_pheader_t *)buffer; in nss_pack() local
1668 if (pbuf == NULL || in == NULL || initf == (nss_db_initf_t)NULL) { in nss_pack()
1682 pbuf->pbufsiz = (nssuint_t)bufsize; in nss_pack()
1683 pbuf->p_ruid = (uint32_t)getuid(); in nss_pack()
1684 pbuf->p_euid = (uint32_t)geteuid(); in nss_pack()
1685 pbuf->p_version = NSCD_HEADER_REV; in nss_pack()
1686 pbuf->p_status = 0; in nss_pack()
[all …]
H A Dnss_dbdefs.c772 nss_pheader_t *pbuf = (nss_pheader_t *)buffer; in nss_packed_set_status() local
777 pdbd = (nss_dbd_t *)((void *)((char *)buffer + pbuf->dbd_off)); in nss_packed_set_status()
779 if (pbuf->nss_dbop == NSS_DBOP_GROUP_BYMEMBER) { in nss_packed_set_status()
785 pbuf->p_status = NSS_SUCCESS; in nss_packed_set_status()
786 pbuf->data_len = in->numgids * in nss_packed_set_status()
788 pbuf->p_herrno = 0; in nss_packed_set_status()
790 pbuf->p_status = status; in nss_packed_set_status()
791 pbuf->p_errno = errno; in nss_packed_set_status()
792 pbuf->data_len = 0; in nss_packed_set_status()
793 pbuf->p_herrno = (uint32_t)arg->h_errno; in nss_packed_set_status()
[all …]
/titanic_50/usr/src/cmd/nscd/
H A Dnscd_switch.c148 set_initf_key(void *pbuf) { in set_initf_key() argument
154 rc = thr_setspecific(initf_key, pbuf); in set_initf_key()
163 void *pbuf; in get_initf_key() local
165 pbuf = pthread_getspecific(initf_key); in get_initf_key()
168 (me, "got initf pbuf, key = %p\n", pbuf); in get_initf_key()
170 return (pbuf); in get_initf_key()
285 nss_pheader_t *pbuf; in nscd_initf() local
290 pbuf = (nss_pheader_t *)get_initf_key(); in nscd_initf()
291 if (pbuf == NULL) { in nscd_initf()
297 if (pbuf->dbd_len <= sizeof (nss_dbd_t)) { in nscd_initf()
[all …]
/titanic_50/usr/src/lib/libast/common/sfio/
H A Dsfpkrd.c75 struct strpeek pbuf; local
76 pbuf.flags = 0;
77 pbuf.ctlbuf.maxlen = -1;
78 pbuf.ctlbuf.len = 0;
79 pbuf.ctlbuf.buf = NIL(char*);
80 pbuf.databuf.maxlen = n;
81 pbuf.databuf.buf = buf;
82 pbuf.databuf.len = 0;
84 if((r = ioctl(fd,I_PEEK,&pbuf)) < 0)
91 if(r > 0 && (r = pbuf.databuf.len) <= 0)
/titanic_50/usr/src/lib/libc/port/stdio/
H A Dgetpass.c77 char *pbuf = tsdalloc(_T_GETPASS, MAXPASSWD + 1, NULL); in __getpass() local
80 if (pbuf == NULL || in __getpass()
98 p = pbuf; in __getpass()
101 if (p < &pbuf[ size ]) in __getpass()
113 pbuf[0] = '\0'; in __getpass()
116 return (pbuf); in __getpass()
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dgetpass.c62 static char pbuf[50+1]; in mygetpass() local
81 p = pbuf; in mygetpass()
83 if (p < &pbuf[sizeof (pbuf)-1]) in mygetpass()
95 return (pbuf); in mygetpass()
/titanic_50/usr/src/cmd/sendmail/src/
H A Dsasl.c243 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local
261 hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), niflags) != 0)
275 sm_snprintf(pbuf, sizeof(pbuf), "%d", ntohs(addr->sin.sin_port));
278 if (outlen < strlen(hbuf) + strlen(pbuf) + 2)
283 sm_snprintf(out, outlen, "%s;%s", hbuf, pbuf);
/titanic_50/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mangle_name.c304 char *pbuf; in smb_mangle() local
318 pbuf = buf; in smb_mangle()
322 *pbuf++ = c; in smb_mangle()
324 *pbuf = '\0'; in smb_mangle()
325 (void) strlcat(pbuf, mangle_buf, SMB_NAME83_BASELEN); in smb_mangle()
326 pbuf = strchr(pbuf, '\0'); in smb_mangle()
334 *pbuf++ = '.'; in smb_mangle()
338 *pbuf++ = c; in smb_mangle()
342 *pbuf = '\0'; in smb_mangle()
/titanic_50/usr/src/uts/common/io/bge/
H A Dbge_send.c121 ASSERT(ssbdp->pbuf != NULL); in bge_recycle_ring()
122 buf_item = ssbdp->pbuf; in bge_recycle_ring()
129 ssbdp->pbuf = NULL; in bge_recycle_ring()
345 char *pbuf; in bge_send_copy() local
348 pbuf = DMA_VPTR(txbuf->buf); in bge_send_copy()
354 bcopy(bp->b_rptr, pbuf, mblen); in bge_send_copy()
355 pbuf += mblen; in bge_send_copy()
433 ASSERT(ssbdp->pbuf == NULL); in bge_send_serial()
434 ssbdp->pbuf = txbuf_item; in bge_send_serial()
503 char *pbuf; in bge_ring_tx() local
[all …]
H A Dbge_log.c218 srbdp->pbuf.cookie.dmac_laddress, in bge_pkt_dump()
219 srbdp->pbuf.alength, in bge_pkt_dump()
220 srbdp->pbuf.token); in bge_pkt_dump()
222 minidump(bgep, "packet data", srbdp->pbuf.mem_va, hrbdp->len); in bge_pkt_dump()
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dkuserok.c269 char pbuf[MAXPATHLEN]; in krb5_kuserok() local
285 (void) strncpy(pbuf, pwd->pw_dir, sizeof(pbuf) - 1); in krb5_kuserok()
286 pbuf[sizeof(pbuf) - 1] = '\0'; in krb5_kuserok()
287 (void) strncat(pbuf, "/.k5login", sizeof(pbuf) - 1 - strlen(pbuf)); in krb5_kuserok()
289 if (access(pbuf, F_OK)) { /* not accessible */ in krb5_kuserok()
327 if ((fp = fopen(pbuf, "rF")) == NULL) { in krb5_kuserok()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/
H A Dwificonfig.c239 static boolean_t do_set_wepkey(int fd, const char *pbuf);
1015 char *pbuf = NULL; in append_pa() local
1021 pbuf = safe_malloc(len); in append_pa()
1022 safe_snprintf(pbuf, len, "[%s]", arg); in append_pa()
1023 PRTDBG(("append_pa(\"%s\") = \"%s\"\n", arg, pbuf)); in append_pa()
1024 return (pbuf); in append_pa()
1131 char *pbuf = NULL; in open_dev() local
1142 pbuf = safe_strdup(devname); in open_dev()
1145 pbuf = safe_malloc(len); in open_dev()
1146 safe_snprintf(pbuf, len, "/dev/%s", devname); in open_dev()
[all …]
/titanic_50/usr/src/uts/common/io/comstar/port/pppt/
H A Dpppt_msg.c251 pppt_buf_t *pbuf; in pppt_msg_scsi_cmd() local
367 pbuf = ptask->pt_immed_data; in pppt_msg_scsi_cmd()
368 pbuf->pbuf_immed_msg = msg; in pppt_msg_scsi_cmd()
369 pbuf->pbuf_stmf_buf->db_data_size = scmd->icsc_immed_data_len; in pppt_msg_scsi_cmd()
370 pbuf->pbuf_stmf_buf->db_buf_size = scmd->icsc_immed_data_len; in pppt_msg_scsi_cmd()
371 pbuf->pbuf_stmf_buf->db_relative_offset = 0; in pppt_msg_scsi_cmd()
372 pbuf->pbuf_stmf_buf->db_sglist[0].seg_length = in pppt_msg_scsi_cmd()
374 pbuf->pbuf_stmf_buf->db_sglist[0].seg_addr = in pppt_msg_scsi_cmd()
377 stmf_post_task(task, pbuf->pbuf_stmf_buf); in pppt_msg_scsi_cmd()
/titanic_50/usr/src/test/zfs-tests/cmd/mktree/
H A Dmktree.c153 char *pbuf; in crtfile() local
160 pbuf = (char *)valloc(size); in crtfile()
163 (void) snprintf(pbuf+offset, size-offset, "%s", context); in crtfile()
171 if (write(fd, pbuf, 1024) < 1024) { in crtfile()
182 if (write(afd, pbuf, 1024) < 1024) { in crtfile()
190 free(pbuf); in crtfile()
/titanic_50/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c396 nss_pheader_t *pbuf = (nss_pheader_t *)buffer; in _nss_dns_gethost_withttl() local
446 bsize = pbuf->data_len - sizeof (nssuint_t); in _nss_dns_gethost_withttl()
447 bptr = (char *)buffer + pbuf->data_off; in _nss_dns_gethost_withttl()
577 pbuf->p_herrno = HOST_NOT_FOUND; in _nss_dns_gethost_withttl()
578 pbuf->p_status = NSS_NOTFOUND; in _nss_dns_gethost_withttl()
579 pbuf->data_len = 0; in _nss_dns_gethost_withttl()
591 pbuf->p_herrno = HOST_NOT_FOUND; in _nss_dns_gethost_withttl()
592 pbuf->p_status = NSS_NOTFOUND; in _nss_dns_gethost_withttl()
593 pbuf->data_len = 0; in _nss_dns_gethost_withttl()
762 if (len + sizeof (nssuint_t) > pbuf->data_len) { in _nss_dns_gethost_withttl()
[all …]
/titanic_50/usr/src/cmd/audio/utilities/
H A Dhdr_misc.c219 char pbuf[AUDIO_MAX_ENCODE_INFO]; in audio_enc_to_str() local
237 chan = pbuf; in audio_enc_to_str()
256 prec = pbuf; in audio_enc_to_str()
257 (void) sprintf(pbuf, "%u-bit", hdrp->bytes_per_unit * 8); in audio_enc_to_str()
265 prec = pbuf; in audio_enc_to_str()
266 (void) sprintf(pbuf, "%f-bit", in audio_enc_to_str()
/titanic_50/usr/src/lib/libbc/libc/gen/common/
H A Dgetpass.c58 static char pbuf[ MAXPASSWD + 1 ]; in getpass() local
79 p = pbuf; in getpass()
82 if(p < &pbuf[ MAXPASSWD ]) in getpass()
96 return(pbuf); in getpass()
/titanic_50/usr/src/uts/common/io/skd/
H A Dskd.c435 skd_io_done(skd_device_t *skdev, skd_buf_private_t *pbuf, in skd_io_done() argument
440 ASSERT(pbuf != NULL); in skd_io_done()
442 xfer = pbuf->x_xfer; in skd_io_done()
463 (pbuf->dir & B_READ) ? "Read" : "Write"); in skd_io_done()
466 kmem_free(pbuf, sizeof (skd_buf_private_t)); in skd_io_done()
638 skd_buf_private_t *pbuf; in skd_blkdev_preop_sg_list() local
647 pbuf = skreq->pbuf; in skd_blkdev_preop_sg_list()
648 ASSERT(pbuf != NULL); in skd_blkdev_preop_sg_list()
650 xfer = pbuf->x_xfer; in skd_blkdev_preop_sg_list()
732 skd_buf_private_t *pbuf = NULL; in skd_start() local
[all …]
/titanic_50/usr/src/uts/common/io/rge/
H A Drge_main.c320 RGE_BSWAP_32(ssbdp->pbuf.cookie.dmac_laddress); in rge_reinit_send_ring()
322 RGE_BSWAP_32(ssbdp->pbuf.cookie.dmac_laddress >> 32); in rge_reinit_send_ring()
342 dma_area_t *pbuf; in rge_reinit_recv_ring() local
352 pbuf = &srbdp->rx_buf->pbuf; in rge_reinit_recv_ring()
354 RGE_BSWAP_32(pbuf->cookie.dmac_laddress + rgep->head_room); in rge_reinit_recv_ring()
356 RGE_BSWAP_32(pbuf->cookie.dmac_laddress >> 32); in rge_reinit_recv_ring()
401 rge_free_dma_mem(&ssbdp->pbuf); in rge_fini_send_ring()
422 rge_free_dma_mem(&srbdp->rx_buf->pbuf); in rge_fini_recv_ring()
450 rge_free_dma_mem(&srbdp->rx_buf->pbuf); in rge_fini_buf_ring()
473 dma_area_t *pbuf; in rge_init_send_ring() local
[all …]
H A Drge_log.c222 srbdp->rx_buf->pbuf.cookie.dmac_laddress, in rge_pkt_dump()
223 srbdp->rx_buf->pbuf.alength, in rge_pkt_dump()
224 srbdp->rx_buf->pbuf.token); in rge_pkt_dump()
226 minidump(rgep, "packet data", srbdp->rx_buf->pbuf.mem_va, in rge_pkt_dump()
/titanic_50/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_conf.c1086 char pbuf[IBCONF_SERVICE_HDR_LEN]; in ib_list_services() local
1104 bzero(pbuf, IBCONF_SERVICE_HDR_LEN); in ib_list_services()
1106 (void) snprintf(pbuf, IBCONF_SERVICE_HDR_LEN, in ib_list_services()
1108 cfga_msg(msgp, pbuf); in ib_list_services()
1112 (void) snprintf(pbuf, 14, "\t\t%s\n", recp->name); in ib_list_services()
1113 cfga_msg(msgp, pbuf); in ib_list_services()
1115 (void) snprintf(pbuf, 2, "\n"); in ib_list_services()
1116 cfga_msg(msgp, pbuf); in ib_list_services()
1120 (void) snprintf(pbuf, IBCONF_SERVICE_HDR_LEN, in ib_list_services()
1122 cfga_msg(msgp, pbuf); in ib_list_services()
[all …]
/titanic_50/usr/src/cmd/avs/dscfg/
H A Ddscfg.c319 char *cp, pbuf[CFG_MAX_BUF]; in print_config() local
339 while (fgets(pbuf, (sizeof (pbuf) - 1), fp) != NULL) { in print_config()
340 if (pbuf[0] == '#') { in print_config()
345 pbuf[sizeof (pbuf) - 1] = '\0'; in print_config()
347 if (pbuf[0] == '%') { in print_config()
352 (void) printf("#%s", &pbuf[1]); in print_config()
359 cp = strchr(pbuf, '.'); in print_config()
369 sizeof (key), "%s.set%d", pbuf, set); in print_config()
379 (void) printf("%s:%s\n", pbuf, buf); in print_config()
/titanic_50/usr/src/uts/common/io/drm/
H A Ddrm_dma.c48 drm_buf_entry_t *pbuf; in drm_dma_setup() local
55 pbuf = &(dev->dma->bufs[0]); in drm_dma_setup()
56 for (i = 0; i <= DRM_MAX_ORDER; i++, pbuf++) in drm_dma_setup()
57 bzero(pbuf, sizeof (drm_buf_entry_t)); in drm_dma_setup()
/titanic_50/usr/src/cmd/ldap/common/
H A Dldaptool-sasl.c169 char pbuf[257]; local
172 if (fgets(pbuf,256,stdin) == NULL) {
177 tmp = strchr(pbuf,'\n');
179 tmp = strchr(pbuf,'\r');
181 newvalue = strdup(pbuf);
/titanic_50/usr/src/cmd/format/
H A Dmenu_fdisk.c315 char pbuf[MAXPATHLEN]; in open_cur_file() local
319 (void) get_pname(&pbuf[0]); in open_cur_file()
320 dkpath = pbuf; in open_cur_file()
325 (void) get_sname(&pbuf[0]); in open_cur_file()
326 dkpath = pbuf; in open_cur_file()
358 char pbuf[MAXPATHLEN]; in c_fdisk() local
382 (void) get_pname(&pbuf[0]); in c_fdisk()
383 if (stat(pbuf, (struct stat *)&statbuf) == -1 || in c_fdisk()
393 (void) snprintf(buf, sizeof (buf), "fdisk %s\n", pbuf); in c_fdisk()
829 char pbuf[MAXPATHLEN]; local
[all …]

12345