/illumos-gate/usr/src/cmd/eeprom/i386/ |
H A D | benv_kvm.c | 192 ddi_prop_t *plist, *npp, *plast; in get_proplist() local 205 npp = (ddi_prop_t *)malloc(sizeof (ddi_prop_t)); in get_proplist() 206 if (npp == 0) in get_proplist() 208 propval = prom_getprop(curprop, &npp->prop_len); in get_proplist() 209 npp->prop_name = curprop; in get_proplist() 211 npp->prop_val = (char *)malloc(npp->prop_len); in get_proplist() 212 if (npp->prop_val == 0) in get_proplist() 214 memcpy(npp->prop_val, propval, npp->prop_len); in get_proplist() 216 npp->prop_val = NULL; in get_proplist() 217 npp->prop_next = NULL; in get_proplist() [all …]
|
/illumos-gate/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 745 in_list(TREE *tp, TREE **npp) in in_list() argument 749 while ((sp = *npp++) != NULL) in in_list() 765 TREE **npp = node; in LEFT1() local 769 unprotect(*npp++ = RIGHT(x)); in LEFT1() 773 unprotect(*npp++ = PARENT(x)); in LEFT1() 782 *npp = NULL; in LEFT1() 783 npp = node; in LEFT1() 784 while ((tp = *npp++) != NULL) in LEFT1() 785 if (tp != x && tp != y && !in_list(tp, npp)) in LEFT1() 793 TREE **npp = node; in RIGHT1() local [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | gethostent.c | 816 char **cpp, **npp; local 864 npp = he->h_addr_list; 868 *npp = memget((af == AF_INET) ? INADDRSZ : IN6ADDRSZ); 869 if (*npp == NULL) 873 memcpy(*npp, in6addr_mapped, 875 memcpy(*npp + sizeof in6addr_mapped, *cpp, 878 memcpy(*npp, *cpp, 882 npp++; 889 *npp = memget((af == AF_INET) ? INADDRSZ : IN6ADDRSZ); 890 if (*npp == NULL) [all …]
|
/illumos-gate/usr/src/cmd/krb5/kadmin/server/ |
H A D | ovsec_kadmd.c | 240 freedomnames(char **npp) in freedomnames() argument 244 if (npp) { in freedomnames() 245 tpp = npp; in freedomnames() 249 free(npp); in freedomnames() 267 char **npp = NULL, **tpp=NULL; in getdomnames() local 302 tpp = npp; in getdomnames() 317 npp = realloc(npp, sizeof(char *) * (n + 2)); in getdomnames() 318 if (!npp) { in getdomnames() 322 npp[n] = strdup(hp->h_name); in getdomnames() 323 if (!npp[n]) { in getdomnames() [all …]
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | rc_node.c | 868 rc_node_t **npp; in cache_remove_unlocked() local 874 for (npp = &bp->cb_head; *npp != NULL; npp = &(*npp)->rn_hash_next) in cache_remove_unlocked() 875 if (*npp == np) in cache_remove_unlocked() 878 assert(*npp == np); in cache_remove_unlocked() 879 *npp = np->rn_hash_next; in cache_remove_unlocked() 2753 rc_node_ptr_free_mem(rc_node_ptr_t *npp) in rc_node_ptr_free_mem() argument 2755 if (npp->rnp_auth_string != NULL) { in rc_node_ptr_free_mem() 2756 free((void *)npp->rnp_auth_string); in rc_node_ptr_free_mem() 2757 npp->rnp_auth_string = NULL; in rc_node_ptr_free_mem() 2829 rc_node_ptr_check_and_lock(rc_node_ptr_t *npp, int *res) in rc_node_ptr_check_and_lock() argument [all …]
|
H A D | configd.h | 357 #define NODE_PTR_NOT_HELD(npp) \ argument 358 ((npp)->rnp_node == NULL || !MUTEX_HELD(&(npp)->rnp_node->rn_lock))
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_mapping.c | 992 char **cpp, **npp; in __ns_ldap_mapAttributeList() local 1007 npp = __ns_ldap_getMappedAttributes(service, *opp); in __ns_ldap_mapAttributeList() 1008 if (npp && npp[0]) { in __ns_ldap_mapAttributeList() 1009 cpp[i] = strdup(npp[0]); in __ns_ldap_mapAttributeList() 1010 __s_api_free2dArray(npp); in __ns_ldap_mapAttributeList() 1011 npp = NULL; in __ns_ldap_mapAttributeList() 1032 char **npp; in __ns_ldap_mapAttribute() local 1038 npp = __ns_ldap_getMappedAttributes(service, origAttr); in __ns_ldap_mapAttribute() 1039 if (npp && npp[0]) { in __ns_ldap_mapAttribute() 1040 mappedAttr = strdup(npp[0]); in __ns_ldap_mapAttribute() [all …]
|
/illumos-gate/usr/src/lib/libc/port/aio/ |
H A D | aio.c | 1287 send_notification(notif_param_t *npp) in send_notification() argument 1292 if (npp->np_signo) in send_notification() 1293 (void) __sigqueue(__pid, npp->np_signo, npp->np_user, in send_notification() 1295 else if (npp->np_port >= 0) in send_notification() 1296 (void) _port_dispatch(npp->np_port, 0, PORT_SOURCE_AIO, in send_notification() 1297 npp->np_event, npp->np_object, npp->np_user); in send_notification() 1299 if (npp->np_lio_signo) in send_notification() 1300 (void) __sigqueue(__pid, npp->np_lio_signo, npp->np_lio_user, in send_notification() 1302 else if (npp->np_lio_port >= 0) in send_notification() 1303 (void) _port_dispatch(npp->np_lio_port, 0, PORT_SOURCE_AIO, in send_notification() [all …]
|
/illumos-gate/usr/src/cmd/awk_xpg4/ |
H A D | awk4.c | 586 register NODE **alist, **npp; in f_asort() local 634 npp = alist; in f_asort() 636 *npp++ = tnp; in f_asort() 637 *npp = NNULL; in f_asort() 643 npp = alist; in f_asort() 645 tnp = tnp->n_alink = *npp; in f_asort() 646 } while (*npp++ != NNULL); in f_asort()
|
H A D | awk3.c | 1832 getlist(NODE **npp) in getlist() argument 1836 if ((np = *npp) == NNULL) in getlist() 1839 *npp = np->n_right; in getlist() 1842 *npp = NNULL; in getlist() 2045 symwalk(int *buckp, NODE **npp) in symwalk() argument 2049 np = *npp; in symwalk() 2053 return (*npp = NNULL); in symwalk() 2058 *npp = np->n_next; in symwalk()
|
H A D | awk2.c | 45 static NODE *nextarg(NODE **npp); 876 nextarg(NODE **npp) in nextarg() argument 880 if ((np = getlist(npp)) == NNULL) in nextarg()
|
H A D | awk.h | 321 NODE *getlist(NODE **npp); 322 NODE *symwalk(int *buckp, NODE **npp);
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_page.c | 2280 page_t *npp = NULL; in page_create_va() local 2401 if (npp == NULL) { in page_create_va() 2421 npp = page_get_freelist(vp, off, seg, vaddr, PAGESIZE, in page_create_va() 2423 if (npp == NULL) { in page_create_va() 2424 npp = page_get_cachelist(vp, off, seg, in page_create_va() 2426 if (npp == NULL) { in page_create_va() 2427 npp = page_create_get_something(vp, in page_create_va() 2432 if (PP_ISAGED(npp) == 0) { in page_create_va() 2438 page_hashout(npp, NULL); in page_create_va() 2446 ASSERT(PAGE_EXCL(npp)); in page_create_va() [all …]
|
/illumos-gate/usr/src/uts/common/fs/namefs/ |
H A D | namevfs.c | 155 struct namenode *np, **npp; in nameremove() local 159 for (npp = NM_FILEVP_HASH(nodep->nm_filevp); (np = *npp) != NULL; in nameremove() 160 npp = &np->nm_nextp) { in nameremove() 162 *npp = np->nm_nextp; in nameremove()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | sunndi.c | 960 nvpair_t *npp; in i_dc_devi_create() local 979 for (npp = nvlist_next_nvpair(nvlp, NULL); (npp != NULL && !rv); in i_dc_devi_create() 980 npp = nvlist_next_nvpair(nvlp, npp)) { in i_dc_devi_create() 982 np = nvpair_name(npp); in i_dc_devi_create() 990 switch (nvpair_type(npp)) { in i_dc_devi_create() 995 if ((rv = nvpair_value_int32(npp, &prop_val)) != 0) in i_dc_devi_create() 1006 if ((rv = nvpair_value_string(npp, &prop_val)) != 0) in i_dc_devi_create() 1018 if ((rv = nvpair_value_byte_array(npp, &val, in i_dc_devi_create() 1031 if ((rv = nvpair_value_int32_array(npp, &val, in i_dc_devi_create() 1044 if ((rv = nvpair_value_string_array(npp, &val, in i_dc_devi_create()
|
/illumos-gate/usr/src/uts/i86pc/vm/ |
H A D | vm_machdep.c | 3515 page_t *npp = NULL; in page_create_io() local 3607 if (npp == NULL) { in page_create_io() 3612 npp = page_get_anylist(vp, off, as, vaddr, MMU_PAGESIZE, in page_create_io() 3614 if (npp == NULL) { in page_create_io() 3645 if (PP_ISAGED(npp) == 0) { in page_create_io() 3651 page_hashout(npp, (kmutex_t *)NULL); in page_create_io() 3658 ASSERT(PAGE_EXCL(npp)); in page_create_io() 3659 ASSERT(npp->p_vnode == NULL); in page_create_io() 3660 ASSERT(!hat_page_is_mapped(npp)); in page_create_io() 3661 PP_CLRFREE(npp); in page_create_io() [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_proc.c | 698 dt_proc_notify_t *npr, **npp; in dt_proc_destroy() local 761 npp = &dph->dph_notify; in dt_proc_destroy() 763 while ((npr = *npp) != NULL) { in dt_proc_destroy() 765 *npp = npr->dprn_next; in dt_proc_destroy() 768 npp = &npr->dprn_next; in dt_proc_destroy()
|
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | printgprof.c | 917 stripped_name(char **sp, size_t *slenp, nltype **npp) in stripped_name() argument 922 name = d = demangled_name(*npp); in stripped_name() 934 if ((*npp)->name != name) in stripped_name()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/libtopo/ |
H A D | libtopo.c | 851 tnode_t *npp; in tnh_walk_step() local 864 if (mdb_vread(&npp, sizeof (tnode_t *), in tnh_walk_step() 871 wsp->walk_addr = (uintptr_t)npp; in tnh_walk_step()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_rnode.c | 448 nfs4_fname_t **npp, nfs4_ga_res_t *garp, in makenfs4node_by_fh() argument 459 ASSERT(npp && *npp); in makenfs4node_by_fh() 460 name = *npp; in makenfs4node_by_fh() 461 *npp = NULL; in makenfs4node_by_fh()
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | clnt_clts.c | 1939 struct endpnt_type **npp; in endpnt_destructor() local 1958 npp = &endpnt_type_list; in endpnt_destructor() 1959 while ((np = *npp) != NULL) { in endpnt_destructor() 1961 npp = &np->e_next; in endpnt_destructor() 1982 *npp = np->e_next; in endpnt_destructor()
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_cpu.c | 733 cpusram_map(caddr_t *vaddrp, pgcnt_t *npp) in cpusram_map() argument 766 *npp = npages; in cpusram_map()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devlink.c | 1689 cache_node_t **npp; in delete_unused_nodes() local 1703 npp = &cnp->parent->child; in delete_unused_nodes() 1704 for (; *npp != NULL; npp = &(*npp)->sib) { in delete_unused_nodes() 1705 if (*npp == cnp) in delete_unused_nodes() 1709 if (*npp == NULL) { in delete_unused_nodes() 1713 *npp = cnp->sib; in delete_unused_nodes()
|
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_vnops.c | 2196 page_t *npp = NULL, *opp = NULL, *cpp = pp; in udf_pageio() local 2257 page_list_break(&cpp, &npp, btop(cur_len)); in udf_pageio() 2302 cpp = npp; in udf_pageio() 2303 npp = NULL; in udf_pageio() 2307 ASSERT(error || (cpp == NULL && npp == NULL && done_len == io_len)); in udf_pageio() 2311 page_list_concat(&cpp, &npp); in udf_pageio() 2320 page_list_concat(&opp, &npp); in udf_pageio()
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_vnops.c | 5803 page_t *npp = NULL, *opp = NULL, *cpp = pp; in ufs_pageio() local 5933 page_list_break(&cpp, &npp, btopr(cur_len)); in ufs_pageio() 5976 cpp = npp; in ufs_pageio() 5977 npp = NULL; in ufs_pageio() 5982 ASSERT(err || (cpp == NULL && npp == NULL && done_len == io_len)); in ufs_pageio() 5986 page_list_concat(&cpp, &npp); in ufs_pageio() 5994 page_list_concat(&opp, &npp); in ufs_pageio()
|