Home
last modified time | relevance | path

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

/freebsd-13.1/crypto/heimdal/lib/roken/
H A Dtsearch.c46 if (rootp == NULL) in rk_tsearch()
55 rootp = (r < 0) ? in rk_tsearch()
123 if (rootp == NULL || (p = *rootp) == NULL) in rk_tdelete()
127 p = *rootp; in rk_tdelete()
128 rootp = (cmp < 0) ? in rk_tdelete()
131 if (*rootp == NULL) in rk_tdelete()
134 r = (*rootp)->rlink; /* D1: */ in rk_tdelete()
145 q->llink = (*rootp)->llink; in rk_tdelete()
146 q->rlink = (*rootp)->rlink; in rk_tdelete()
167 if (rootp == NULL) in rk_tfind()
[all …]
/freebsd-13.1/lib/libc/stdlib/
H A Dtfind.c31 tfind(const void *vkey, posix_tnode * const *rootp, in tfind() argument
35 if (rootp == NULL) in tfind()
38 while (*rootp != NULL) { /* T1: */ in tfind()
41 if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */ in tfind()
42 return *rootp; /* key found */ in tfind()
43 rootp = (r < 0) ? in tfind()
44 &(*rootp)->llink : /* T3: follow left branch */ in tfind()
45 &(*rootp)->rlink; /* T4: follow right branch */ in tfind()
H A Dtsearch.c36 tsearch(const void *key, posix_tnode **rootp, in tsearch() argument
44 if (rootp == NULL) in tsearch()
54 leaf = rootp; in tsearch()
65 rootp = leaf; in tsearch()
95 for (n = *rootp; n != *leaf;) { in tsearch()
110 x = *rootp; in tsearch()
130 *rootp = z; in tsearch()
147 *rootp = y; in tsearch()
171 *rootp = z; in tsearch()
188 *rootp = y; in tsearch()
H A Dtdelete.c51 rootp = leaf; \
62 rootp = leaf; \
70 tdelete(const void *restrict key, posix_tnode **restrict rootp, in tdelete() argument
78 if (rootp == NULL) in tdelete()
89 leaf = rootp; in tdelete()
134 for (n = rootp; n != leaf;) { in tdelete()
/freebsd-13.1/sys/fs/cd9660/
H A Dcd9660_vfsops.c223 struct iso_directory_record *rootp; local
341 rootp = (struct iso_directory_record *)
364 memcpy(isomp->root, rootp, sizeof isomp->root);
365 isomp->root_extent = isonum_733 (rootp->extent);
366 isomp->root_size = isonum_733 (rootp->size);
374 rootp = NULL;
420 rootp = NULL;
463 rootp = (struct iso_directory_record *)
465 memcpy(isomp->root, rootp, sizeof isomp->root);
466 isomp->root_extent = isonum_733 (rootp->extent);
[all …]
/freebsd-13.1/sys/fs/ext2fs/
H A Dext2_htree.c266 struct ext2fs_htree_root *rootp; in ext2_htree_find_leaf() local
286 rootp = (struct ext2fs_htree_root *)bp->b_data; in ext2_htree_find_leaf()
287 if (rootp->h_info.h_hash_version != EXT2_HTREE_LEGACY && in ext2_htree_find_leaf()
288 rootp->h_info.h_hash_version != EXT2_HTREE_HALF_MD4 && in ext2_htree_find_leaf()
289 rootp->h_info.h_hash_version != EXT2_HTREE_TEA) in ext2_htree_find_leaf()
292 hash_version = rootp->h_info.h_hash_version; in ext2_htree_find_leaf()
302 if ((levels = rootp->h_info.h_ind_levels) > 1) in ext2_htree_find_leaf()
305 entp = (struct ext2fs_htree_entry *)(((char *)&rootp->h_info) + in ext2_htree_find_leaf()
306 rootp->h_info.h_info_len); in ext2_htree_find_leaf()
309 ext2_htree_root_limit(ip, rootp->h_info.h_info_len)) in ext2_htree_find_leaf()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc5975 INTERCEPTOR(void *, tsearch, void *key, void **rootp,
5978 COMMON_INTERCEPTOR_ENTER(ctx, tsearch, key, rootp, compar);
5982 void *res = REAL(tsearch)(key, rootp, compar);