Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnss_common.c1682 pbuf->p_status = 0; in nss_pack()
1683 pbuf->p_errno = 0; in nss_pack()
1684 pbuf->p_herrno = 0; in nss_pack()
1690 pbuf->libpriv = 0; in nss_pack()
1780 pbuf->p_status = 0; in nss_pack_ent()
1781 pbuf->p_errno = 0; in nss_pack_ent()
1782 pbuf->p_herrno = 0; in nss_pack_ent()
1783 pbuf->libpriv = 0; in nss_pack_ent()
1877 if (pbuf->data_off == 0 || pbuf->data_len == 0) in nss_unpack()
1948 if (pbuf == NULL) in nss_unpack_ent()
[all …]
H A Dnss_dbdefs.c804 pbuf->data_len = 1; in nss_packed_set_status()
829 pbuf->p_errno = 0; in nss_packed_set_status()
834 pbuf->p_herrno = 0; in nss_packed_set_status()
835 pbuf->data_len = 0; in nss_packed_set_status()
887 keysize = pbuf->data_off - pbuf->key_off; in nss_upack_key2arg()
889 off = pbuf->key_off; in nss_upack_key2arg()
994 ((void *)((char *)pbuf + pbuf->data_off)); in nss_upack_key2arg()
1131 off = pbuf->dbd_off; in nss_packed_getkey()
1133 dbdsize = pbuf->key_off - pbuf->dbd_off; in nss_packed_getkey()
1197 off = pbuf->dbd_off; in nss_packed_arg_init()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_switch.c163 void *pbuf; in get_initf_key() local
170 return (pbuf); in get_initf_key()
285 nss_pheader_t *pbuf; in nscd_initf() local
291 if (pbuf == NULL) { in nscd_initf()
300 pbuf->dbd_len); in nscd_initf()
304 off = pbuf->dbd_off; in nscd_initf()
1371 swret.pbuf = buffer; in nss_psearch()
1431 pbuf->p_status, pbuf->p_herrno, strerror(pbuf->p_errno)); in nss_psearch()
1435 pbuf->nscdpriv = 0; in nss_psearch()
1631 swret.pbuf = pbuf; in delayed_setent()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_mem_tracker.c34 prpsinfo_t pbuf; in get_mem_kb() local
44 if (pread(my_fd, &pbuf, sizeof (pbuf), 0) != sizeof (pbuf)) { in get_mem_kb()
48 return (pbuf.pr_rssize); in get_mem_kb()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfpkrd.c94 { struct strpeek pbuf; local
95 pbuf.flags = 0;
96 pbuf.ctlbuf.maxlen = -1;
97 pbuf.ctlbuf.len = 0;
98 pbuf.ctlbuf.buf = NIL(char*);
99 pbuf.databuf.maxlen = n;
100 pbuf.databuf.buf = buf;
101 pbuf.databuf.len = 0;
103 if((r = ioctl(fd,I_PEEK,&pbuf)) < 0)
110 if(r > 0 && (r = pbuf.databuf.len) <= 0)
/illumos-gate/usr/src/cmd/cxgbetool/
H A Dcudbg_view.c160 cudbg_view_decompress_buff(char *pbuf, in cudbg_view_decompress_buff() argument
167 c_buff->data = pbuf + entity_hdr->start_offset; in cudbg_view_decompress_buff()
523 view_cim_q(char *pbuf, struct cudbg_entity_hdr *entity_hdr, in view_cim_q() argument
663 rc = view_cim_la_t5(pbuf, entity_hdr, cudbg_poutbuf); in view_cim_la()
665 rc = view_cim_la_t6(pbuf, entity_hdr, cudbg_poutbuf); in view_cim_la()
2356 translate_fw_devlog(void *pbuf, u32 io_size, in translate_fw_devlog() argument
2365 e = (struct fw_devlog_e *)pbuf; in translate_fw_devlog()
3509 rc = t5_view_wtp(pbuf, entity_hdr, cudbg_poutbuf); in view_wtp()
3511 rc = t6_view_wtp(pbuf, entity_hdr, cudbg_poutbuf); in view_wtp()
4893 rc = view_full_t5(pbuf, entity_hdr, cudbg_poutbuf); in view_full()
[all …]
/illumos-gate/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()
355 pbuf += mblen; in bge_send_copy()
434 ssbdp->pbuf = txbuf_item; in bge_send_serial()
504 char *pbuf; in bge_ring_tx() local
530 pbuf = DMA_VPTR(txbuf->buf); in bge_ring_tx()
532 ehp = (void *)pbuf; in bge_ring_tx()
[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()
/illumos-gate/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);
/illumos-gate/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()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dkuserok.c270 char pbuf[MAXPATHLEN]; in krb5_kuserok() local
286 (void) strncpy(pbuf, pwd->pw_dir, sizeof(pbuf) - 1); in krb5_kuserok()
287 pbuf[sizeof(pbuf) - 1] = '\0'; in krb5_kuserok()
288 (void) strncat(pbuf, "/.k5login", sizeof(pbuf) - 1 - strlen(pbuf)); in krb5_kuserok()
290 if (access(pbuf, F_OK)) { /* not accessible */ in krb5_kuserok()
328 if ((fp = fopen(pbuf, "rF")) == NULL) { in krb5_kuserok()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/
H A Dwificonfig.c1151 free(pbuf); in open_dev()
1368 free(pbuf); in set_prefer()
1371 free(pbuf); in set_prefer()
1693 char *pbuf; in essid_of_profile() local
1698 free(pbuf); in essid_of_profile()
2045 free(pbuf); in do_startconf()
2315 free(pbuf); in do_loadpf()
2697 char *pbuf; in do_lsprefer() local
3064 char *pbuf; in do_wepkey() local
3081 free(pbuf); in do_wepkey()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c447 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()
768 pbuf->ext_off = pbuf->data_off + len; in _nss_dns_gethost_withttl()
769 pbuf->ext_len = sizeof (nssuint_t); in _nss_dns_gethost_withttl()
770 pbuf->data_len = blen; in _nss_dns_gethost_withttl()
[all …]
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/io/skd/
H A Dskd.c649 pbuf = skreq->pbuf; in skd_blkdev_preop_sg_list()
813 skreq->pbuf = pbuf; in skd_start()
822 (void *)pbuf, lba, lba, count, count, pbuf->dir); in skd_start()
1991 pbuf = skreq->pbuf; in skd_isr_completion_posted()
1999 skdev->name, (void *)pbuf, pbuf->x_xfer->x_blkno, in skd_isr_completion_posted()
2000 pbuf->x_xfer->x_blkno, pbuf->x_xfer->x_nblks); in skd_isr_completion_posted()
3733 if (pbuf != NULL) in skd_get_queued_pbuf()
3735 return (pbuf); in skd_get_queued_pbuf()
4026 if ((pbuf = skreq->pbuf) != NULL) { in skd_log_skreq()
5014 (void *)pbuf, pbuf->x_xfer->x_nblks, in skd_detach()
[all …]
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_main.c342 dma_area_t *pbuf; in rge_reinit_recv_ring() local
352 pbuf = &srbdp->rx_buf->pbuf; in rge_reinit_recv_ring()
401 rge_free_dma_mem(&ssbdp->pbuf); in rge_fini_send_ring()
473 dma_area_t *pbuf; in rge_init_send_ring() local
497 pbuf = &ssbdp->pbuf; in rge_init_send_ring()
521 dma_area_t *pbuf; in rge_init_recv_ring() local
545 pbuf = &rx_buf->pbuf; in rge_init_recv_ring()
557 pbuf->offset += rgep->head_room; in rge_init_recv_ring()
583 dma_area_t *pbuf; in rge_init_buf_ring() local
611 pbuf = &rx_buf->pbuf; in rge_init_buf_ring()
[all …]
/illumos-gate/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()
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()
1122 cfga_msg(msgp, pbuf); in ib_list_services()
1127 cfga_msg(msgp, pbuf); in ib_list_services()
1134 cfga_msg(msgp, pbuf); in ib_list_services()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/usb/
H A Dtopo_usb_metadata.c368 char pbuf[PATH_MAX]; in topo_usb_load_metadata() local
383 if (snprintf(pbuf, sizeof (pbuf), "maps/%s-usb.usbtopo", prod) >= in topo_usb_load_metadata()
384 sizeof (pbuf)) { in topo_usb_load_metadata()
392 if ((fd = topo_mod_file_search(mod, pbuf, O_RDONLY)) < 0) { in topo_usb_load_metadata()
394 "%s", pbuf); in topo_usb_load_metadata()
401 pbuf, strerror(errno)); in topo_usb_load_metadata()
461 topo_mod_dprintf(mod, "successfully loaded metadata %s", pbuf); in topo_usb_load_metadata()
/illumos-gate/usr/src/cmd/format/
H A Dmenu_fdisk.c318 char pbuf[MAXPATHLEN]; in open_cur_file() local
322 (void) get_pname(&pbuf[0]); in open_cur_file()
323 dkpath = pbuf; in open_cur_file()
328 (void) get_sname(&pbuf[0]); in open_cur_file()
329 dkpath = pbuf; in open_cur_file()
361 char pbuf[MAXPATHLEN]; in c_fdisk() local
385 (void) get_pname(&pbuf[0]); in c_fdisk()
386 if (stat(pbuf, (struct stat *)&statbuf) == -1 || in c_fdisk()
842 char pbuf[MAXPATHLEN]; local
849 (void) get_pname(&pbuf[0]);
[all …]
/illumos-gate/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);
/illumos-gate/usr/src/lib/nsswitch/mdns/common/
H A Dmdns_common.c687 nss_pheader_t *pbuf = (nss_pheader_t *)buffer; in _nss_mdns_gethost_withttl() local
708 qdata.withttlbsize = pbuf->data_len - sizeof (nssuint_t); in _nss_mdns_gethost_withttl()
709 qdata.withttlbuffer = (char *)buffer + pbuf->data_off; in _nss_mdns_gethost_withttl()
740 if (len + sizeof (nssuint_t) > pbuf->data_len) { in _nss_mdns_gethost_withttl()
746 pbuf->ext_off = pbuf->data_off + len; in _nss_mdns_gethost_withttl()
747 pbuf->ext_len = sizeof (nssuint_t); in _nss_mdns_gethost_withttl()
748 pbuf->data_len = blen; in _nss_mdns_gethost_withttl()
751 pttl = (nssuint_t *)((void *)((char *)pbuf + pbuf->ext_off)); in _nss_mdns_gethost_withttl()

12345