/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | cdutils.c | 216 uchar_t *bufp; local 228 bufp = (uchar_t *)malloc(buflen); 231 if (get_configuration(fd, 0, buflen, bufp)) { 232 *profile = GET16(&bufp[6]); 235 free(bufp); 248 uchar_t *bufp; local 260 bufp = (uchar_t *)malloc(buflen); 263 if (get_configuration(fd, 0, buflen, bufp)) { 264 current_profile = GET16(&bufp[6]); 266 profile = GET16(&bufp[ [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/hostbridge/ |
H A D | hb_mdesc.c | 172 uint64_t *bufp; local 184 bufsiz = ldom_get_core_md(lhp, &bufp); 186 bufsiz = ldom_get_local_md(lhp, &bufp); 194 if ((mdp = md_init_intern(bufp, hb_alloc, hb_free)) == NULL || 196 hb_free(bufp, (size_t)bufsiz); 203 hb_free(bufp, (size_t)bufsiz);
|
/illumos-gate/usr/src/lib/libsrpt/common/ |
H A D | libsrpt.c | 457 char *bufp = in; local 464 if (strncasecmp(bufp, "eui.", 4) == 0) { 466 bufp += 4; 467 } else if (strncasecmp(bufp, "hca:", 4) == 0) { 469 bufp += 4; 477 guid = strtoull(bufp, &end, 16);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | class.h | 150 #define CL_ENTERCLASS(t, cid, clparmsp, credp, bufp) \ 152 (void *)clparmsp, credp, bufp) 159 #define CL_FORK(tp, ct, bufp) (*(tp)->t_clfuncs->cl_fork)(tp, ct, bufp) 227 #define CL_FREE(cid, bufp) (sclass[cid].cl_funcs->sclass.cl_free) (bufp)
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | mmc.c | 723 uchar_t *bufp; local 727 bufp = (uchar_t *)my_zalloc(response_len); 733 if (get_configuration(fd, feature, response_len, bufp) == 1) { 740 if (read_scsi32(bufp) > 4 && bufp[10] & 1) 748 free(bufp); 904 uchar_t *bufp = (uchar_t *)my_zalloc(MMC_FTR_HDR_LEN); local 908 * needed to hold all the Profiles. The first four bytes of bufp 914 bufp)) { 915 buflen = read_scsi32(bufp) [all...] |
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | switch_utils.c | 526 char *bufp; local 546 shadow->sp_namp = bufp = buffer; 556 if ((bufp = strchr(bufp, ':')) == 0) { 562 *bufp++ = '\0'; 564 shadow->sp_pwdp = bufp; 566 if ((bufp = strchr(bufp, ':')) == 0) { 572 *bufp++ = '\0'; 573 p = bufp; [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelDigest.c | 620 digest_buf_t *bufp = session_p->digest.context; local 623 if (bufp == NULL || bufp->buf == NULL) { 628 NULL, bufp->buf, bufp->indata_len, 633 digest_buf_t *bufp = session_p->digest.context; local 640 if (bufp == NULL || bufp->buf == NULL) { 645 rv = C_Digest(hSession, bufp->buf, bufp [all...] |
H A D | kernelSession.c | 224 digest_buf_t *bufp; local 267 bufp = session_p->digest.context; 272 op_data_len += bufp->indata_len; 299 bcopy(bufp->buf, dst, bufp->indata_len); 354 digest_buf_t *bufp; local 395 bufp = session_p->digest.context; 396 bufp->indata_len = indata_len; 399 bcopy(src, bufp->buf, bufp [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
H A D | debug.c | 156 static void snmp_log_append(char *bufp); 430 char *bufp; local 476 bufp = snmp_lbuf + SNMP_DPKT_INDENT + strlen(SNMP_DTEXT_PREFIX); 480 (void) snprintf(bufp, len, "%02x ", p[i]); 482 (void) snprintf(bufp, len, " "); 484 bufp += 3; 487 (void) snprintf(bufp, len, "%s\n", ascii); 576 snmp_log_append(char *bufp) argument 580 len = strlen(bufp); 584 (void) strcpy(snmp_dbuf_curp, bufp); [all...] |
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | rsrc_info.c | 129 ri_pack(ri_hdl_t *hdl, caddr_t *bufp, size_t *sizep, int encoding) argument 135 if (bufp == NULL || sizep == NULL) 139 *bufp = NULL; 187 *bufp = buf; 203 ap_list_pack(ri_ap_t *aplist, char **bufp, size_t *sizep, int encoding) argument 209 assert(bufp != NULL && sizep != NULL); 212 *bufp = NULL; 240 *bufp = buf; 256 dev_list_pack(ri_dev_t *devlist, char **bufp, size_t *sizep, int encoding) argument 262 assert(bufp ! 309 client_list_pack(ri_client_t *client_list, char **bufp, size_t *sizep, int encoding) argument 360 ap_pack(ri_ap_t *ap, char **bufp, size_t *sizep, int encoding) argument 424 dev_pack(ri_dev_t *dev, char **bufp, size_t *sizep, int encoding) argument 469 client_pack(ri_client_t *client, char **bufp, size_t *sizep, int encoding) argument [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/envmond/ |
H A D | piclsensors.c | 243 get_curr_temp(ptree_rarg_t *argp, void *bufp) argument 260 *(int8_t *)bufp = sensor_reading; 274 get_sensor_condition(ptree_rarg_t *argp, void *bufp) argument 292 (void) strncpy((char *)bufp, PICLEVENTARGVAL_UNKNOWN, 313 (void) strncpy((char *)bufp, temp_sensor.state, 324 get_sensor_thr(ptree_rarg_t *argp, void *bufp) argument 338 *(int8_t *)bufp = temp_sensor.lo_warning; 340 *(int8_t *)bufp = temp_sensor.lo_shutdown; 342 *(int8_t *)bufp = temp_sensor.lo_poweroff; 344 *(int8_t *)bufp 361 set_sensor_thr(ptree_warg_t *argp, const void *bufp) argument [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getmntent.c | 144 char *copyp, *bufp; local 156 if ((copyp = bufp = getmntbuf(MNT_LINE_MAX)) == NULL) { 169 bufp + MNT_LINE_MAX - copyp, "%s", mrefp->mnt_mountp) + 1; 174 bufp + MNT_LINE_MAX - copyp, "%s", mrefp->mnt_fstype) + 1; 179 bufp + MNT_LINE_MAX - copyp, "%s", mrefp->mnt_mntopts) + 1; 183 (void) snprintf(mgetp->mnt_time, bufp + MNT_LINE_MAX - copyp, 189 embuf.mbuf_buf = bufp;
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | zcons.c | 516 char buf[BUFSIZ], *bufp; local 557 bufp = buf; 558 if (strncmp(bufp, "IDENT ", 6) != 0) 560 bufp += 6; 562 *pid = strtoll(bufp, &bufp, 10); 566 while (*bufp != '\0' && isspace(*bufp)) 567 bufp++; 568 buflen = strlen(bufp) [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_pr.c | 201 char *bufp, *ndbuf, *dbuf = NULL; local 212 bufp = pvt->line; 216 if ((p = fgets(bufp + offset, bufsiz - offset, pvt->fp)) == NULL) { 226 strcpy(ndbuf, bufp); 231 bufp = dbuf;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/encr/ |
H A D | encr.c | 133 uint8_t *bufp; local 171 bufp = buf + i; 178 while ((j = read(STDIN_FILENO, bufp, j)) != k && 180 bufp += j; 192 (void) memset(bufp, 0, k);
|
/illumos-gate/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_ctl.c | 287 char *bufp = NULL; local 308 VERIFY(nvlist_pack(foo, &bufp, &len, NV_ENCODE_NATIVE, 313 (copyout(bufp, STRUCT_FGETP(st, ctst_buffer), len) == -1)) { 314 kmem_free(bufp, len); 317 kmem_free(bufp, len);
|
/illumos-gate/usr/src/ucbcmd/tset/ |
H A D | tset.c | 453 auto char *bufp; local 774 bufp = getenv("TERMCAP"); 775 if (bufp && *bufp != '/') 776 (void) strcpy(bufp-8, "NOTHING"); /* overwrite only "TERMCAP" */ 850 bufp = buf; 851 p = tgetstr("kb", &bufp); 853 p = tgetstr("bc", &bufp); 944 bufp = buf; 945 if (tgetstr("pc", &bufp) ! 1180 char *bufp; local [all...] |
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | disptmpl.c | 49 static int read_next_tmpl( char **bufp, long *blenp, 466 read_next_tmpl( char **bufp, long *blenp, struct ldap_disptmpl **tmplp, argument 479 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) { 495 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) { 506 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) { 517 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) < 1 ) { 534 while (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) > 0 ) { 557 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) { 572 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) { 583 if (( tokcnt = ldap_next_line_tokens( bufp, blen [all...] |
/illumos-gate/usr/src/uts/sun4u/starfire/sys/ |
H A D | idn_smr.h | 205 extern int smr_buf_free(int domid, caddr_t bufp, uint_t len); 206 extern int smr_buf_free_locked(int domid, caddr_t bufp, uint_t len); 216 extern smr_slab_t *smr_slaballoc_get(int domid, caddr_t bufp,
|
/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_main.c | 650 dma_area_t *bufp; local 662 if (bsbdp->bufp) { 663 if (bsbdp->bufp->mp) 664 freemsg(bsbdp->bufp->mp); 665 nge_free_dma_mem(bsbdp->bufp); 666 kmem_free(bsbdp->bufp, sizeof (dma_area_t)); 667 bsbdp->bufp = NULL; 671 bufp = brp->free_list; 672 brp->free_list = bufp->next; 673 bufp 707 dma_area_t *bufp; local [all...] |
/illumos-gate/usr/src/lib/nsswitch/mdns/common/ |
H A D | gethostent.c | 150 _nss_get_mdns_hosts_name(mdns_backend_ptr_t *be, void **bufp, size_t *sizep) argument 152 return (_nss_mdns_gethost_withttl(*bufp, *sizep, 0));
|
H A D | gethostent6.c | 171 _nss_get_mdns_ipnodes_name(mdns_backend_ptr_t *be, void **bufp, size_t *sizep) argument 173 return (_nss_mdns_gethost_withttl(*bufp, *sizep, 1));
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/motherboard/ |
H A D | motherboard.c | 126 uint64_t *bufp; local 150 bufsize = ldom_get_core_md(lhp, &bufp); 152 bufsize = ldom_get_local_md(lhp, &bufp); 162 if ((mdp = md_init_intern(bufp, mb_topo_alloc, mb_topo_free)) == NULL || 165 mb_topo_free(bufp, (size_t)bufsize); 174 mb_topo_free(bufp, (size_t)bufsize); 186 mb_topo_free(bufp, (size_t)bufsize); 236 mb_topo_free(bufp, (size_t)bufsize);
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/xaui/ |
H A D | xaui.c | 286 uint64_t *bufp; local 309 bufsize = ldom_get_core_md(hdlp, &bufp); 311 bufsize = ldom_get_local_md(hdlp, &bufp); 319 if ((mdp = md_init_intern(bufp, xaui_topo_alloc, xaui_topo_free)) == 322 xaui_topo_free(bufp, (size_t)bufsize); 330 xaui_topo_free(bufp, (size_t)bufsize); 342 xaui_topo_free(bufp, (size_t)bufsize); 377 xaui_topo_free(bufp, (size_t)bufsize);
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | mdesc_mutable.h | 146 int md_add_string_property(mmd_t *mdp, md_node_t *nodep, char *sp, char *bufp); 148 uint8_t *bufp);
|