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()
68 while (*rootp != NULL) { /* T1: */ in tsearch()
69 int r = (*compar)(key, (*rootp)->key); /* T2: */ in tsearch()
71 return ((void *)*rootp); /* Key found */ in tsearch()
72 rootp = (r < 0) ? in tsearch()
73 &(*rootp)->llink : /* T3: Take left branch */ in tsearch()
74 &(*rootp)->rlink; /* T4: Take right branch */ in tsearch()
78 *rootp = q; /* Link new node to old */ in tsearch()
90 NODE **rootp = (NODE **)rtp; in tdelete() local
[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.c90 void (*nss_delete_fp)(nss_db_root_t *rootp);
91 nss_status_t (*nss_search_fp)(nss_db_root_t *rootp,
100 void (*end_iter_u_fp)(nss_db_root_t *rootp,
1129 nss_delete(nss_db_root_t *rootp) in nss_delete() argument
1137 NSS_ROOTLOCK(rootp, &s); in nss_delete()
1139 NSS_UNLOCK(rootp); in nss_delete()
1141 rootp->s = 0; in nss_delete()
1142 NSS_UNREF_UNLOCK(rootp, s); in nss_delete()
1147 nss_search(nss_db_root_t *rootp, nss_db_initf_t initf, int search_fnum, in nss_search() argument
1156 res = _nsc_search(rootp, initf, search_fnum, search_args); in nss_search()
[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()
82 int r = (*compar)(key, (*rootp)->key); /* T2: */ in slp_tsearch()
84 return ((void *)*rootp); /* Key found */ in slp_tsearch()
85 rootp = (r < 0) ? in slp_tsearch()
86 &(*rootp)->llink : /* T3: Take left branch */ in slp_tsearch()
87 &(*rootp)->rlink; /* T4: Take right branch */ in slp_tsearch()
91 *rootp = q; /* Link new node to old */ in slp_tsearch()
101 NODE **rootp = (NODE **)rtp; in slp_tfind() local
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dtsearch.c103 Void_t* tsearch(const Void_t* key, Void_t** rootp, in tsearch() argument
106 Void_t* tsearch(key, rootp, comparf) in tsearch()
108 Void_t** rootp;
115 if(!rootp ||
116 (!(dt = *((Dt_t**)rootp)) && !(dt = dtopen((Dtdisc_t*)(&Treedisc),Dtoset))) )
130 *rootp = (Void_t*)dt;
131 else if(*rootp == NIL(Void_t*) )
139 Void_t* tfind(const Void_t* key, Void_t*const* rootp, in tfind() argument
142 Void_t* tfind(key, rootp, comparf) in tfind()
144 Void_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.c624 nss_search(nss_db_root_t *rootp, nss_db_initf_t initf, int search_fnum, in nss_search() argument
642 "search_args = %p\n", rootp, initf, in nss_search()
664 return ((func)(rootp, initf, search_fnum, in nss_search()
1019 nss_setent(nss_db_root_t *rootp, nss_db_initf_t initf, in nss_setent() argument
1024 nss_setent_u(rootp, initf, contextpp); in nss_setent()
1028 nss_getent(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp, in nss_getent() argument
1036 status = nss_getent_u(rootp, initf, contextpp, args); in nss_getent()
1041 nss_endent(nss_db_root_t *rootp, nss_db_initf_t initf, in nss_endent() argument
1046 nss_endent_u(rootp, initf, contextpp); in nss_endent()
1051 end_iter_u(nss_db_root_t *rootp, struct nss_getent_context *contextp) in end_iter_u() argument
[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);
438 __db_pitem(dbc, rootp, 0, BINTERNAL_SIZE(0), &hdr, NULL)) != 0)
451 RE_NREC_ADJ(rootp, bi.nrecs);
457 if ((ret = __db_pitem(dbc, rootp, 1,
477 RE_NREC_ADJ(rootp, bi.nrecs);
483 if ((ret = __db_pitem(dbc, rootp, 1,
494 RE_NREC_ADJ(rootp, bi.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);