Home
last modified time | relevance | path

Searched refs:rootp (Results 1 – 22 of 22) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dtsearch.c63 NODE **rootp = (NODE **)rtp; in tsearch() local
66 if (rootp == NULL) in tsearch()
72 rootp = (r < 0) ? in tsearch()
90 NODE **rootp = (NODE **)rtp; in tdelete() local
96 if (rootp == NULL || (p = *rootp) == NULL) in tdelete()
99 p = *rootp; in tdelete()
100 rootp = (ans < 0) ? in tdelete()
103 if (*rootp == NULL) in tdelete()
106 r = (*rootp)->rlink; /* D1: */ in tdelete()
117 q->llink = (*rootp)->llink; in tdelete()
[all …]
H A Dtfind.c60 NODE **rootp = (NODE **)rtp; in tfind() local
61 if (rootp == NULL) in tfind()
63 while (*rootp != NULL) { /* T1: */ in tfind()
64 int r = (*compar)(key, (*rootp)->key); /* T2: */ in tfind()
66 return ((void *)*rootp); /* Key found */ in tfind()
67 rootp = (r < 0) ? in tfind()
68 &(*rootp)->llink : /* T3: Take left branch */ in tfind()
69 &(*rootp)->rlink; /* T4: Take right branch */ in tfind()
H A Dnss_common.c1137 NSS_ROOTLOCK(rootp, &s); in nss_delete()
1139 NSS_UNLOCK(rootp); in nss_delete()
1141 rootp->s = 0; in nss_delete()
1172 NSS_UNLOCK(rootp); in nss_search()
1194 NSS_UNLOCK(rootp); in nss_search()
1345 NSS_RELOCK(&rootp, s); in end_iter_u()
1391 NSS_UNLOCK(rootp); in nss_setent_u()
1415 NSS_RELOCK(&rootp, s); in nss_setent_u()
1426 NSS_UNLOCK(rootp); in nss_setent_u()
1492 NSS_RELOCK(&rootp, s); in nss_getent_u()
[all …]
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_search.c76 NODE **rootp = (NODE **)rtp; in slp_tsearch() local
79 if (rootp == NULL) in slp_tsearch()
81 while (*rootp != NULL) { /* T1: */ in slp_tsearch()
84 return ((void *)*rootp); /* Key found */ in slp_tsearch()
85 rootp = (r < 0) ? in slp_tsearch()
91 *rootp = q; /* Link new node to old */ in slp_tsearch()
101 NODE **rootp = (NODE **)rtp; in slp_tfind() local
102 if (rootp == NULL) in slp_tfind()
104 while (*rootp != NULL) { /* T1: */ in slp_tfind()
107 return ((void *)*rootp); /* Key found */ in slp_tfind()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dtsearch.c106 Void_t* tsearch(key, rootp, comparf) in tsearch()
108 Void_t** rootp;
115 if(!rootp ||
130 *rootp = (Void_t*)dt;
131 else if(*rootp == NIL(Void_t*) )
142 Void_t* tfind(key, rootp, comparf) in tfind()
144 Void_t** rootp;
151 if(!rootp || !(dt = *((Dt_t**)rootp)) )
170 Void_t** rootp;
178 if(!rootp || !(dt = *((Dt_t**)rootp)) )
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_tsearchhash.c520 struct hs_base **rootp = (struct hs_base **)headin; in dwarf_tsearch() local
521 struct hs_base *head = *rootp; in dwarf_tsearch()
541 dwarf_tfind(const void *key, void *const *rootp, in dwarf_tfind() argument
546 struct hs_base **proot = (struct hs_base **)rootp; in dwarf_tfind()
570 dwarf_tdelete(const void *key, void **rootp, in dwarf_tdelete() argument
573 struct hs_base **proot = (struct hs_base **)rootp; in dwarf_tdelete()
644 dwarf_twalk(const void *rootp, in dwarf_twalk() argument
648 const struct hs_base *head = (const struct hs_base *)rootp; in dwarf_twalk()
696 dwarf_tdestroy(void *rootp, void (*free_node)(void *nodep)) in dwarf_tdestroy() argument
698 struct hs_base *head = (struct hs_base *)rootp; in dwarf_tdestroy()
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_switch.c642 "search_args = %p\n", rootp, initf, in nss_search()
1024 nss_setent_u(rootp, initf, contextpp); in nss_setent()
1046 nss_endent_u(rootp, initf, contextpp); in nss_endent()
1087 rootp, initf, contextpp); in nss_setent_u()
1154 nss_endent_u(rootp, initf, contextpp); in nss_setent_u()
1175 nss_endent_u(rootp, initf, contextpp); in nss_setent_u()
1201 rootp, initf, contextpp, args); in nss_getent_u()
1204 nss_setent_u(rootp, initf, contextpp); in nss_getent_u()
1254 end_iter_u(rootp, in nss_getent_u()
1292 rootp, initf, contextpp); in nss_endent_u()
[all …]
H A Dnscd_nswstate.c383 nss_db_root_t *rootp, in _get_nsw_state_int() argument
417 rootp->s = (struct nss_db_state *)ret; in _get_nsw_state_int()
666 rootp->s = (struct nss_db_state *)ret; in _get_nsw_state_int()
673 nss_db_root_t *rootp, in _nscd_get_nsw_state() argument
676 return (_get_nsw_state_int(rootp, params, NULL)); in _nscd_get_nsw_state()
681 nss_db_root_t *rootp, in _nscd_get_nsw_state_thread() argument
685 return (_get_nsw_state_int(rootp, params, &tid)); in _nscd_get_nsw_state_thread()
H A Dnscd_switch.h287 nss_db_root_t *rootp,
292 nss_db_root_t *rootp,
/illumos-gate/usr/src/cmd/sendmail/db/btree/
H A Dbt_split.c400 __bam_broot(dbc, rootp, lp, rp) in __bam_broot() argument
402 PAGE *rootp, *lp, *rp;
417 P_INIT(rootp, dbp->pgsize,
433 RE_NREC_SET(rootp, bi.nrecs);
451 RE_NREC_ADJ(rootp, bi.nrecs);
477 RE_NREC_ADJ(rootp, bi.nrecs);
525 __ram_root(dbc, rootp, lp, rp) in __ram_root() argument
527 PAGE *rootp, *lp, *rp;
537 P_INIT(rootp, dbp->pgsize,
550 RE_NREC_SET(rootp, ri.nrecs);
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/
H A Dmkpkgmap.c93 *rootp[NRECURS][16], variable
412 for (i = 0; rootp[nfp][i]; i++) { in findfile()
413 (void) snprintf(host, sizeof (host), "%s/%s", rootp[nfp][i], in findfile()
484 for (n = 0; rootp[nfp][n]; n++) in dorsearch()
485 free(rootp[nfp][n]); in dorsearch()
497 rootp[nfp][n++] = qstrdup(pt); in dorsearch()
499 rootp[nfp][n] = NULL; in dorsearch()
690 rootp[nfp][0] = NULL; in pushenv()
754 for (i = 0; rootp[nfp][i]; i++) in popenv()
755 free(rootp[nfp][i]); in popenv()
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd_info.c137 hp_node_t *rootp) in copy_devinfo() argument
165 *rootp = (rv == 0) ? hp_root : NULL; in copy_devinfo()
176 copy_devices(hp_node_t parent, di_node_t dev, uint_t flags, hp_node_t *rootp) in copy_devices() argument
184 *rootp = NULL; in copy_devices()
204 *rootp = self; in copy_devices()
227 *rootp = self; in copy_devices()
H A Dhotplugd_impl.h65 hp_node_t *rootp);
/illumos-gate/usr/src/cmd/logadm/
H A Dlut.c92 struct lut **rootp = (struct lut **)arg; in dooper() local
94 *rootp = lut_add(*rootp, lhs, rhs); in dooper()
/illumos-gate/usr/src/cmd/ldmad/
H A Dldma_dio.c340 md_node_t *rootp; in get_devinfo() local
348 rootp = md_new_node(mdp, "root"); in get_devinfo()
349 if (rootp == NULL) { in get_devinfo()
354 if (device_tree_to_md(mdp, rootp) != 0) { in get_devinfo()
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_autofs.c55 char *rootp, in mount_autofs() argument
79 sprintf(rel_mntpnt, ".%s", mntpnt+strlen(rootp)); in mount_autofs()
H A Dautomount.h315 char *rootp, char *subdir, char *key);
/illumos-gate/usr/src/lib/nsswitch/compat/common/
H A Dcompat_common.h104 nss_db_root_t *rootp,
H A Dcompat_common.c1224 _nss_compat_constr(ops, n_ops, filename, min_bufsize, rootp, initf, netgroups, in _nss_compat_constr() argument
1230 nss_db_root_t *rootp;
1248 be->db_rootp = rootp;
/illumos-gate/usr/src/lib/libhotplug/common/
H A Dlibhotplug.c1332 i_hp_parse_results(nvlist_t *results, hp_node_t *rootp, char **optionsp) in i_hp_parse_results() argument
1337 if (rootp) { in i_hp_parse_results()
1341 *rootp = NULL; in i_hp_parse_results()
1344 if ((rv = hp_unpack(buf, len, rootp)) != 0) in i_hp_parse_results()
/illumos-gate/usr/src/uts/common/io/pciex/
H A Dpciev.c61 pcie_find_dip_by_bdf(dev_info_t *rootp, pcie_req_id_t bdf) in pcie_find_dip_by_bdf() argument
67 dip = ddi_get_child(rootp); in pcie_find_dip_by_bdf()
/illumos-gate/usr/src/uts/common/sys/
H A Dpcie_impl.h724 extern dev_info_t *pcie_find_dip_by_bdf(dev_info_t *rootp, pcie_req_id_t bdf);