/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | tfind.c | 62 NODE **rootp = (NODE **)rtp; local 63 if (rootp == NULL) 65 while (*rootp != NULL) { /* T1: */ 66 int r = (*compar)(key, (*rootp)->key); /* T2: */ 68 return ((void *)*rootp); /* Key found */ 69 rootp = (r < 0) ? 70 &(*rootp)->llink : /* T3: Take left branch */ 71 &(*rootp)->rlink; /* T4: Take right branch */
|
H A D | tsearch.c | 65 NODE **rootp = (NODE **)rtp; local 68 if (rootp == NULL) 70 while (*rootp != NULL) { /* T1: */ 71 int r = (*compar)(key, (*rootp)->key); /* T2: */ 73 return ((void *)*rootp); /* Key found */ 74 rootp = (r < 0) ? 75 &(*rootp)->llink : /* T3: Take left branch */ 76 &(*rootp)->rlink; /* T4: Take right branch */ 80 *rootp = q; /* Link new node to old */ 92 NODE **rootp local [all...] |
H A D | nss_common.c | 90 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, 965 * rootp->s has already been dealt with). 1130 nss_delete(nss_db_root_t *rootp) argument 1138 NSS_ROOTLOCK(rootp, &s); 1140 NSS_UNLOCK(rootp); 1142 rootp->s = 0; 1143 NSS_UNREF_UNLOCK(rootp, s); 1148 nss_search(nss_db_root_t *rootp, nss_db_initf_ argument 1297 nss_setent(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp) argument 1308 nss_getent(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp, void *args) argument 1323 nss_endent(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp) argument 1339 end_iter_u(nss_db_root_t *rootp, struct nss_getent_context *contextp) argument 1362 nss_setent_u(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp) argument 1447 nss_getent_u(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp, void *args) argument 1531 nss_endent_u(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp) argument 1652 nss_pack(void *buffer, size_t bufsize, nss_db_root_t *rootp, nss_db_initf_t initf, int search_fnum, void *search_args) argument 1760 nss_pack_ent(void *buffer, size_t bufsize, nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp) argument 1834 nss_unpack(void *buffer, size_t bufsize, nss_db_root_t *rootp, nss_db_initf_t initf, int search_fnum, void *search_args) argument 1935 nss_unpack_ent(void *buffer, size_t bufsize, nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp, void *args) argument 2007 _nsc_search(nss_db_root_t *rootp, nss_db_initf_t initf, int search_fnum, void *search_args) argument 2082 _nsc_setent_u(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp) argument 2159 _nsc_getent_u(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp, void *args) argument 2226 _nsc_endent_u(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp) argument [all...] |
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_search.c | 78 NODE **rootp = (NODE **)rtp; local 81 if (rootp == NULL) 83 while (*rootp != NULL) { /* T1: */ 84 int r = (*compar)(key, (*rootp)->key); /* T2: */ 86 return ((void *)*rootp); /* Key found */ 87 rootp = (r < 0) ? 88 &(*rootp)->llink : /* T3: Take left branch */ 89 &(*rootp)->rlink; /* T4: Take right branch */ 93 *rootp = q; /* Link new node to old */ 103 NODE **rootp local [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | tsearch.c | 48 * rootp: Address of the root of the tree 52 tsearch(POINTER key, NODE **rootp, int (*compar)(POINTER, POINTER)) argument 56 if (rootp == NULL) 58 while (*rootp != NULL) { /* T1: */ 59 int r = (*compar)(key, (*rootp)->key); /* T2: */ 61 return (*rootp); /* Key found */ 62 rootp = (r < 0) ? 63 &(*rootp)->llink : /* T3: Take left branch */ 64 &(*rootp)->rlink; /* T4: Take right branch */ 68 *rootp 84 tdelete(POINTER key, NODE **rootp, int (*compar)(POINTER, POINTER)) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_autofs.c | 57 char *rootp, 81 sprintf(rel_mntpnt, ".%s", mntpnt+strlen(rootp)); 53 mount_autofs( struct mapent *me, char *mntpnt, action_list *alp, char *rootp, char *subdir, char *key ) argument
|
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | tsearch.c | 101 Void_t* tsearch(const Void_t* key, Void_t** rootp, argument 104 Void_t* tsearch(key, rootp, comparf) 106 Void_t** rootp; 113 if(!rootp || 114 (!(dt = *((Dt_t**)rootp)) && !(dt = dtopen((Dtdisc_t*)(&Treedisc),Dtorder))) ) 128 *rootp = (Void_t*)dt; 129 else if(*rootp == NIL(Void_t*) ) 137 Void_t* tfind(const Void_t* key, Void_t*const* rootp, argument 140 Void_t* tfind(key, rootp, comparf) 142 Void_t** rootp; 163 tdelete(const Void_t* key, Void_t** rootp, int(*comparf)(const Void_t*, const Void_t*) ) argument [all...] |
/illumos-gate/usr/src/cmd/logadm/ |
H A D | lut.c | 94 struct lut **rootp = (struct lut **)arg; local 96 *rootp = lut_add(*rootp, lhs, rhs);
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_nswstate.c | 383 nss_db_root_t *rootp, 417 rootp->s = (struct nss_db_state *)ret; 666 rootp->s = (struct nss_db_state *)ret; 673 nss_db_root_t *rootp, 676 return (_get_nsw_state_int(rootp, params, NULL)); 681 nss_db_root_t *rootp, 685 return (_get_nsw_state_int(rootp, params, &tid)); 382 _get_nsw_state_int( nss_db_root_t *rootp, nscd_nsw_params_t *params, thread_t *tid) argument 672 _nscd_get_nsw_state( nss_db_root_t *rootp, nscd_nsw_params_t *params) argument 680 _nscd_get_nsw_state_thread( nss_db_root_t *rootp, nscd_nsw_params_t *params) argument
|
H A D | nscd_switch.c | 624 nss_search(nss_db_root_t *rootp, nss_db_initf_t initf, int search_fnum, argument 641 (me, "rootp = %p, initf = %p, search_fnum = %d, " 642 "search_args = %p\n", rootp, initf, 664 return ((func)(rootp, initf, search_fnum, 1019 nss_setent(nss_db_root_t *rootp, nss_db_initf_t initf, argument 1024 nss_setent_u(rootp, initf, contextpp); 1028 nss_getent(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp, argument 1036 status = nss_getent_u(rootp, initf, contextpp, args); 1041 nss_endent(nss_db_root_t *rootp, nss_db_initf_t initf, argument 1046 nss_endent_u(rootp, init 1051 end_iter_u(nss_db_root_t *rootp, struct nss_getent_context *contextp) argument 1073 nss_setent_u(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp) argument 1190 nss_getent_u(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp, void *args) argument 1284 nss_endent_u(nss_db_root_t *rootp, nss_db_initf_t initf, nss_getent_t *contextpp) argument 1319 nss_delete(nss_db_root_t *rootp) argument [all...] |
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_info.c | 137 hp_node_t *rootp) 165 *rootp = (rv == 0) ? hp_root : NULL; 176 copy_devices(hp_node_t parent, di_node_t dev, uint_t flags, hp_node_t *rootp) argument 184 *rootp = NULL; 204 *rootp = self; 227 *rootp = self; 136 copy_devinfo(const char *path, const char *connection, uint_t flags, hp_node_t *rootp) argument
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | ldma_dio.c | 340 md_node_t *rootp; local 348 rootp = md_new_node(mdp, "root"); 349 if (rootp == NULL) { 354 if (device_tree_to_md(mdp, rootp) != 0) {
|
/illumos-gate/usr/src/uts/common/avs/ns/dsw/ |
H A D | ii_tree.c | 512 NODE *rootp = NULL; local 515 if ((rootp = read_node(ip, chunk_id)) == NULL) { 519 n = rootp->vchunk_id; 521 release_node(ip, rootp, 0); 527 rootp->vchunk_id = n; 528 write_node(ip, rootp, chunk_id); 530 release_node(ip, rootp, 0);
|
/illumos-gate/usr/src/lib/libhotplug/common/ |
H A D | libhotplug.c | 1332 i_hp_parse_results(nvlist_t *results, hp_node_t *rootp, char **optionsp) argument 1337 if (rootp) { 1341 *rootp = NULL; 1344 if ((rv = hp_unpack(buf, len, rootp)) != 0)
|
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pciev.c | 57 pcie_find_dip_by_bdf(dev_info_t *rootp, pcie_req_id_t bdf) argument 63 dip = ddi_get_child(rootp);
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/ |
H A D | mkpkgmap.c | 93 *rootp[NRECURS][16], variable 412 for (i = 0; rootp[nfp][i]; i++) { 413 (void) snprintf(host, sizeof (host), "%s/%s", rootp[nfp][i], 484 for (n = 0; rootp[nfp][n]; n++) 485 free(rootp[nfp][n]); 497 rootp[nfp][n++] = qstrdup(pt); 499 rootp[nfp][n] = NULL; 690 rootp[nfp][0] = NULL; 754 for (i = 0; rootp[nfp][i]; i++) 755 free(rootp[nf [all...] |