/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nss_common.c | 1674 pbuf->p_status = 0; in nss_pack() 1675 pbuf->p_errno = 0; in nss_pack() 1676 pbuf->p_herrno = 0; in nss_pack() 1682 pbuf->libpriv = 0; in nss_pack() 1771 pbuf->p_status = 0; in nss_pack_ent() 1772 pbuf->p_errno = 0; in nss_pack_ent() 1773 pbuf->p_herrno = 0; in nss_pack_ent() 1774 pbuf->libpriv = 0; in nss_pack_ent() 1867 if (pbuf->data_off == 0 || pbuf->data_len == 0) in nss_unpack() 1938 if (pbuf == NULL) in nss_unpack_ent() [all …]
|
H A D | nss_dbdefs.c | 802 pbuf->data_len = 1; in nss_packed_set_status() 827 pbuf->p_errno = 0; in nss_packed_set_status() 832 pbuf->p_herrno = 0; in nss_packed_set_status() 833 pbuf->data_len = 0; in nss_packed_set_status() 884 keysize = pbuf->data_off - pbuf->key_off; in nss_upack_key2arg() 886 off = pbuf->key_off; in nss_upack_key2arg() 991 ((void *)((char *)pbuf + pbuf->data_off)); in nss_upack_key2arg() 1128 off = pbuf->dbd_off; in nss_packed_getkey() 1130 dbdsize = pbuf->key_off - pbuf->dbd_off; in nss_packed_getkey() 1192 off = pbuf->dbd_off; in nss_packed_arg_init() [all …]
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_switch.c | 163 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 D | smatch_mem_tracker.c | 34 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/uts/common/fs/smbsrv/ |
H A D | smb_mangle_name.c | 304 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 D | sfpkrd.c | 94 { 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/lib/libc/port/stdio/ |
H A D | getpass.c | 77 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/cmd/cxgbetool/ |
H A D | cudbg_view.c | 160 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 D | bge_send.c | 121 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 …]
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | sasl.c | 243 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 D | getpass.c | 60 static char pbuf[50+1]; in mygetpass() local 79 p = pbuf; in mygetpass() 81 if (p < &pbuf[sizeof (pbuf)-1]) in mygetpass() 93 return (pbuf); in mygetpass()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | kuserok.c | 270 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 D | wificonfig.c | 1151 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 D | pppt_msg.c | 251 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 D | dns_common.c | 440 bptr = (char *)buffer + pbuf->data_off; in _nss_dns_gethost_withttl() 570 pbuf->p_herrno = HOST_NOT_FOUND; in _nss_dns_gethost_withttl() 571 pbuf->p_status = NSS_NOTFOUND; in _nss_dns_gethost_withttl() 572 pbuf->data_len = 0; in _nss_dns_gethost_withttl() 584 pbuf->p_herrno = HOST_NOT_FOUND; in _nss_dns_gethost_withttl() 585 pbuf->p_status = NSS_NOTFOUND; in _nss_dns_gethost_withttl() 586 pbuf->data_len = 0; in _nss_dns_gethost_withttl() 762 pbuf->ext_off = pbuf->data_off + len; in _nss_dns_gethost_withttl() 763 pbuf->ext_len = sizeof (nssuint_t); in _nss_dns_gethost_withttl() 764 pbuf->data_len = blen; in _nss_dns_gethost_withttl() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/cmd/mktree/ |
H A D | mktree.c | 159 char *pbuf; in crtfile() local 166 pbuf = (char *)valloc(size); in crtfile() 169 (void) snprintf(pbuf+offset, size-offset, "%s", context); in crtfile() 178 if (write(fd, pbuf, 1024) < 1024) { in crtfile() 191 if (write(afd, pbuf, 1024) < 1024) { in crtfile() 200 free(pbuf); in crtfile()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | hdr_misc.c | 217 char pbuf[AUDIO_MAX_ENCODE_INFO]; in audio_enc_to_str() local 235 chan = pbuf; in audio_enc_to_str() 254 prec = pbuf; in audio_enc_to_str() 255 (void) sprintf(pbuf, "%u-bit", hdrp->bytes_per_unit * 8); in audio_enc_to_str() 263 prec = pbuf; in audio_enc_to_str() 264 (void) sprintf(pbuf, "%f-bit", in audio_enc_to_str()
|
/illumos-gate/usr/src/uts/common/io/skd/ |
H A D | skd.c | 649 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 D | rge_main.c | 342 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 …]
|
H A D | rge_log.c | 219 srbdp->rx_buf->pbuf.cookie.dmac_laddress, in rge_pkt_dump() 220 srbdp->rx_buf->pbuf.alength, in rge_pkt_dump() 221 srbdp->rx_buf->pbuf.token); in rge_pkt_dump() 223 minidump(rgep, "packet data", srbdp->rx_buf->pbuf.mem_va, in rge_pkt_dump()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_conf.c | 1086 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 D | topo_usb_metadata.c | 368 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 D | menu_fdisk.c | 318 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 D | ldaptool-sasl.c | 169 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 D | mdns_common.c | 687 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()
|