/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_parse.c | 121 char *p; in parse_entry() local 136 for (p = key; *p != '\0'; p++) { in parse_entry() 137 if (isspace(*p)) { in parse_entry() 650 char *p, *pb; in get_opts() local 657 while (p = (char *)strtok_r(pb, ",", &placeholder)) { in get_opts() 659 if (strncmp(p, FSTYPE_EQ, 7) == 0) { in get_opts() 662 (void) strcpy(fstype, p + 7); in get_opts() 666 (void) strcat(opts, p); in get_opts()
|
/illumos-gate/usr/src/tools/cpcgen/ |
H A D | cpcgen.c | 1138 cpc_proc_t *p; in cpcgen_generate_map() local 1144 for (p = map->cmap_procs; p != NULL; p = p->cproc_next) { in cpcgen_generate_map() 1149 if (p != map->cmap_procs) { in cpcgen_generate_map() 1155 if (p->cproc_nsteps > 0) { in cpcgen_generate_map() 1159 p->cproc_model) == -1) { in cpcgen_generate_map() 1163 for (i = 0; i < p->cproc_nsteps; i++) { in cpcgen_generate_map() 1165 p->cproc_steppings[i], in cpcgen_generate_map() 1166 i + 1 != p->cproc_nsteps ? in cpcgen_generate_map() 1175 } else if (fprintf(f, "model == 0x%x", p->cproc_model) == -1) { in cpcgen_generate_map() 1180 p->cproc_next != NULL ? " ||" : ") {") == -1) { in cpcgen_generate_map()
|
/illumos-gate/usr/src/cmd/cpio/ |
H A D | cpio.c | 1695 sl_info_t *p = sl_search(dev, ino, ftype); in creat_hdr() local 1696 Gen.g_ino = p ? p->sl_ino2 : -1; in creat_hdr() 6019 reclaim(struct Lnk *p) in reclaim() argument 6021 p->L_bck_p->L_nxt_p = p->L_nxt_p; in reclaim() 6022 p->L_nxt_p->L_bck_p = p->L_bck_p; in reclaim() 6024 while (p != NULL) { in reclaim() 6025 struct Lnk *new_p = p->L_lnk_p; in reclaim() 6027 free(p->L_gen.g_nam_p); in reclaim() 6028 free(p); in reclaim() 6029 p = new_p; in reclaim() [all …]
|
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | libzonecfg.c | 221 const char *newstate, const char *oldstate, hrtime_t when, void *p); 2324 char *p; in zonecfg_valid_fs_allowed() local 2332 p = cp; in zonecfg_valid_fs_allowed() 2333 while (*p != '\0' && *p != ',') { in zonecfg_valid_fs_allowed() 2334 if (!isalnum(*p) && *p != '-') in zonecfg_valid_fs_allowed() 2336 p++; in zonecfg_valid_fs_allowed() 2339 if (*p == ',') { in zonecfg_valid_fs_allowed() 2340 if (p == cp) in zonecfg_valid_fs_allowed() 2343 p++; in zonecfg_valid_fs_allowed() 2345 if (*p == '\0') in zonecfg_valid_fs_allowed() [all …]
|
/illumos-gate/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_xml.c | 384 property_t *p; in new_bool_prop_from_attr() local 402 p = internal_property_create(pname, SCF_TYPE_BOOLEAN, 1, bool); in new_bool_prop_from_attr() 403 r = internal_attach_property(pgrp, p); in new_bool_prop_from_attr() 406 internal_property_free(p); in new_bool_prop_from_attr() 416 property_t *p; in new_str_prop_from_attr() local 421 p = internal_property_create(pname, ty, 1, val); in new_str_prop_from_attr() 422 r = internal_attach_property(pgrp, p); in new_str_prop_from_attr() 425 internal_property_free(p); in new_str_prop_from_attr() 435 property_t *p; in new_opt_str_prop_from_attr() local 454 p = internal_property_create(pname, ty, 1, val); in new_opt_str_prop_from_attr() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/xml/ |
H A D | data.c | 788 char *xml_path, *p = NULL; in xml_init_data() local 804 p = strdup(xml_file); in xml_init_data() 807 if (p != NULL && in xml_init_data() 810 xml_path = dirname(p); in xml_init_data() 844 free(p); in xml_init_data() 925 void **p, in xml_load_obj() argument 931 xmlNodePtr node = (xmlNodePtr)*p; in xml_load_obj() 968 *p = (void *)node; in xml_load_obj()
|
/illumos-gate/usr/src/uts/common/io/comstar/port/qlt/ |
H A D | qlt_dma.c | 86 qlt_dmem_bucket_t *p; in qlt_dmem_init() local 134 for (ndx = 0; (p = qlt->dmem_buckets[ndx]) != NULL; ndx++) { in qlt_dmem_init() 135 bctl = (qlt_dmem_bctl_t *)kmem_zalloc(p->dmem_nbufs * in qlt_dmem_init() 141 p->dmem_bctls_mem = bctl; in qlt_dmem_init() 142 mutex_init(&p->dmem_lock, NULL, MUTEX_DRIVER, NULL); in qlt_dmem_init() 144 DDI_DMA_SLEEP, 0, &p->dmem_dma_handle)) != DDI_SUCCESS) { in qlt_dmem_init() 149 total_mem = p->dmem_buf_size * p->dmem_nbufs; in qlt_dmem_init() 151 if ((i = ddi_dma_mem_alloc(p->dmem_dma_handle, total_mem, &acc, in qlt_dmem_init() 153 &len, &p->dmem_acc_handle)) != DDI_SUCCESS) { in qlt_dmem_init() 158 if ((i = ddi_dma_addr_bind_handle(p->dmem_dma_handle, NULL, in qlt_dmem_init() [all …]
|
H A D | qlt.c | 1826 uint8_t *p; in qlt_info() local 1863 p = mcp->dbuf->db_sglist[0].seg_addr; in qlt_info() 1865 link_status->LinkFailureCount = LE_32(*((uint32_t *)p)); in qlt_info() 1866 link_status->LossOfSyncCount = LE_32(*((uint32_t *)(p + 4))); in qlt_info() 1867 link_status->LossOfSignalsCount = LE_32(*((uint32_t *)(p + 8))); in qlt_info() 1869 LE_32(*((uint32_t *)(p + 12))); in qlt_info() 1871 LE_32(*((uint32_t *)(p + 16))); in qlt_info() 1873 LE_32(*((uint32_t *)(p + 20))); in qlt_info() 2608 uint8_t *p; in qlt_get_link_info() local 2611 p = mcp->dbuf->db_sglist[0].seg_addr; in qlt_get_link_info() [all …]
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | expound.c | 725 char *p; in show_ltchars() local 732 for (p = (char *)<chars, i = 0; i < sizeof (ltchars); i++) in show_ltchars() 733 (void) printf(" %s", show_char(cbuf, (int)*p++)); in show_ltchars() 742 char *p; in show_tchars() local 748 for (p = (char *)&tchars, i = 0; i < sizeof (tchars); i++) in show_tchars() 749 (void) printf(" %s", show_char(cbuf, (int)*p++)); in show_tchars()
|
/illumos-gate/usr/src/uts/common/io/mlxcx/ |
H A D | mlxcx_cmd.c | 420 mlxcx_eth_proto_to_string(mlxcx_eth_proto_t p, mlxcx_ext_eth_proto_t ep, in mlxcx_eth_proto_to_string() argument 423 if (p & MLXCX_PROTO_SGMII) in mlxcx_eth_proto_to_string() 425 if (p & MLXCX_PROTO_1000BASE_KX) in mlxcx_eth_proto_to_string() 427 if (p & MLXCX_PROTO_10GBASE_CX4) in mlxcx_eth_proto_to_string() 429 if (p & MLXCX_PROTO_10GBASE_KX4) in mlxcx_eth_proto_to_string() 431 if (p & MLXCX_PROTO_10GBASE_KR) in mlxcx_eth_proto_to_string() 433 if (p & MLXCX_PROTO_40GBASE_CR4) in mlxcx_eth_proto_to_string() 435 if (p & MLXCX_PROTO_40GBASE_KR4) in mlxcx_eth_proto_to_string() 437 if (p & MLXCX_PROTO_SGMII_100BASE) in mlxcx_eth_proto_to_string() 439 if (p & MLXCX_PROTO_10GBASE_CR) in mlxcx_eth_proto_to_string() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_session.c | 209 char *p; in smb_netbios_session_request() local 275 if ((p = strchr(session->workstation, ' ')) != 0) in smb_netbios_session_request() 276 *p = '\0'; in smb_netbios_session_request()
|
H A D | smb_pathname.c | 328 char *p = mnt_pn.pn_path; in smb_pathname_reduce() local 350 err = smb_pathname(sr, p, lookup_flags, in smb_pathname_reduce() 937 char *p; in smb_pathname_preprocess() local 954 p = pn->pn_path + strlen(pn->pn_path) - 1; in smb_pathname_preprocess() 955 if ((p != pn->pn_path) && (*p == '\\')) in smb_pathname_preprocess() 956 *p = '\0'; in smb_pathname_preprocess() 975 char *p, *slash; in smb_pathname_preprocess_quota() local 981 p = pn->pn_path; in smb_pathname_preprocess_quota() 984 p += strspn(p, "\\"); in smb_pathname_preprocess_quota() 985 if (smb_strcasecmp(p, name, strlen(name)) != 0) in smb_pathname_preprocess_quota() [all …]
|
H A D | smb_vops.c | 1743 char *p, *src = name, *dst = buf; in smb_vop_catia_v5tov4() local 1760 p = src; in smb_vop_catia_v5tov4() 1765 p = mbstring; in smb_vop_catia_v5tov4() 1771 (void) strncpy(dst, p, inc); in smb_vop_catia_v5tov4()
|
/illumos-gate/usr/src/uts/common/io/virtio/ |
H A D | virtio_main.c | 1173 uint16_t p = vic->vic_direct[vic->vic_direct_used - 1]; in virtio_chain_append_impl() local 1175 vqd[p].vqd_flags |= VIRTQ_DESC_F_NEXT; in virtio_chain_append_impl() 1176 vqd[p].vqd_next = index; in virtio_chain_append_impl()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | asy.c | 3206 unsigned char *p = xmit_addr; in async_nstart() local 3210 *p++ &= (unsigned char) 0x1f; in async_nstart() 4442 char *p; in asy_parse_mode() local 4464 p = val; in asy_parse_mode() 4467 if (p && (p1 = strchr(p, ',')) != 0) { in asy_parse_mode() 4474 if (strcmp(p, "110") == 0) in asy_parse_mode() 4476 else if (strcmp(p, "150") == 0) in asy_parse_mode() 4478 else if (strcmp(p, "300") == 0) in asy_parse_mode() 4480 else if (strcmp(p, "600") == 0) in asy_parse_mode() 4482 else if (strcmp(p, "1200") == 0) in asy_parse_mode() [all …]
|
H A D | devfm.c | 408 const fm_vers_t *p; in _init() local 414 for (p = fm_versions; p->interface != NULL; p++) in _init() 415 (void) nvlist_add_uint32(fm_vers_nvl, p->interface, in _init() 416 p->version); in _init()
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/ |
H A D | emlxs_extern.h | 617 extern int32_t emlxs_parse_fcoe(emlxs_hba_t *hba, uint8_t *p,
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | vnode.h | 1133 #define VOP_CREATE(dvp, p, vap, ex, mode, vpp, cr, flag, ct, vsap) \ argument 1134 fop_create(dvp, p, vap, ex, mode, vpp, cr, flag, ct, vsap) 1135 #define VOP_REMOVE(dvp, p, cr, ct, f) \ argument 1136 fop_remove(dvp, p, cr, ct, f) 1137 #define VOP_LINK(tdvp, fvp, p, cr, ct, f) \ argument 1138 fop_link(tdvp, fvp, p, cr, ct, f) 1141 #define VOP_MKDIR(dp, p, vap, vpp, cr, ct, f, vsap) \ argument 1142 fop_mkdir(dp, p, vap, vpp, cr, ct, f, vsap) 1143 #define VOP_RMDIR(dp, p, cdir, cr, ct, f) \ argument 1144 fop_rmdir(dp, p, cdir, cr, ct, f) [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | clock.c | 1651 proc_t *p = ttoproc(curthread); in profil_tick() local 1653 struct prof *pr = &p->p_prof; in profil_tick() 1659 mutex_enter(&p->p_pflock); in profil_tick() 1671 mutex_exit(&p->p_pflock); in profil_tick() 1719 mutex_exit(&p->p_pflock); in profil_tick()
|
H A D | taskq.c | 2292 proc_t *p = tq->tq_proc; in taskq_bucket_extend() local 2293 mutex_enter(&p->p_lock); in taskq_bucket_extend() 2296 mutex_exit(&p->p_lock); in taskq_bucket_extend()
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | lookup.c | 150 proc_t *p = curproc; in lookuppnatcred() local 155 mutex_enter(&p->p_lock); /* for u_rdir and u_cdir */ in lookuppnatcred() 156 if ((rootvp = PTOU(p)->u_rdir) == NULL) in lookuppnatcred() 164 vp = (startvp == NULL) ? PTOU(p)->u_cdir : startvp; in lookuppnatcred() 167 mutex_exit(&p->p_lock); in lookuppnatcred() 1371 proc_t *p = curproc; in vnodetopath_common() local 1373 mutex_enter(&p->p_lock); in vnodetopath_common() 1374 if ((vrootp = PTOU(p)->u_rdir) == NULL) in vnodetopath_common() 1377 mutex_exit(&p->p_lock); in vnodetopath_common() 1471 proc_t *p = curproc; in dogetcwd() local [all …]
|
/illumos-gate/usr/src/common/zfs/ |
H A D | zprop_common.c | 210 propname_match(const char *p, size_t len, zprop_desc_t *prop_entry) in propname_match() argument 219 strncmp(p, propname, len) == 0) in propname_match() 227 if (p[c] != tolower(colname[c])) in propname_match()
|
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_iter.c | 407 zprop_list_t *p = *cb.cb_proplist; in zfs_for_each() local 409 while (p) { in zfs_for_each() 410 if (p->pl_prop >= ZFS_PROP_TYPE && in zfs_for_each() 411 p->pl_prop < ZFS_NUM_PROPS) { in zfs_for_each() 412 cb.cb_props_table[p->pl_prop] = B_TRUE; in zfs_for_each() 414 p = p->pl_next; in zfs_for_each()
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_string.c | 40 char *p; in topo_hdl_strdup() local 43 p = topo_hdl_alloc(thp, strlen(s) + 1); in topo_hdl_strdup() 45 p = NULL; in topo_hdl_strdup() 47 if (p != NULL) in topo_hdl_strdup() 48 (void) strcpy(p, s); in topo_hdl_strdup() 50 return (p); in topo_hdl_strdup() 158 const char *p = strrchr(s, '/'); in topo_strbasename() local 160 if (p == NULL) in topo_strbasename() 163 return (++p); in topo_strbasename() 171 char *p; in topo_strdirname() local [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | printpacket6.c | 10 u_char *buf, p; local 17 p = buf[6]; 23 printf("ip6/%d %d %#x %d", buf[0] & 0xf, plen, flow, p); 29 if (p == IPPROTO_TCP || p == IPPROTO_UDP) 38 if (p == IPPROTO_TCP || p == IPPROTO_UDP)
|