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

/freebsd-12-stable/lib/libc/stdlib/
H A Dtfind.c31 tfind(const void *vkey, posix_tnode * const *rootp, argument
35 if (rootp == NULL)
38 while (*rootp != NULL) { /* T1: */
41 if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */
42 return *rootp; /* key found */
43 rootp = (r < 0) ?
44 &(*rootp)->llink : /* T3: follow left branch */
45 &(*rootp)->rlink; /* T4: follow right branch */
H A Dtsearch.c36 tsearch(const void *key, posix_tnode **rootp, argument
43 /* POSIX requires that tsearch() returns NULL if rootp is NULL. */
44 if (rootp == NULL)
54 leaf = rootp;
65 rootp = leaf;
95 for (n = *rootp; n != *leaf;) {
110 x = *rootp;
130 *rootp = z;
147 *rootp = y;
171 *rootp
[all...]
H A Dtdelete.c51 rootp = leaf; \
62 rootp = leaf; \
70 tdelete(const void *restrict key, posix_tnode **restrict rootp, argument
77 /* POSIX requires that tdelete() returns NULL if rootp is NULL. */
78 if (rootp == NULL)
89 leaf = rootp;
134 for (n = rootp; n != leaf;) {
/freebsd-12-stable/crypto/heimdal/lib/roken/
H A Dtsearch.c44 node_t **rootp = (node_t **)vrootp; local
46 if (rootp == NULL)
49 while (*rootp != NULL) { /* Knuth's T1: */
52 if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */
53 return *rootp; /* we found it! */
55 rootp = (r < 0) ?
56 &(*rootp)->llink : /* T3: follow left branch */
57 &(*rootp)->rlink; /* T4: follow right branch */
62 *rootp = q; /* link new node to old */
119 node_t **rootp local
165 node_t **rootp = (node_t **)vrootp; local
[all...]
/freebsd-12-stable/sys/fs/cd9660/
H A Dcd9660_vfsops.c225 struct iso_directory_record *rootp; local
343 rootp = (struct iso_directory_record *)
366 memcpy(isomp->root, rootp, sizeof isomp->root);
367 isomp->root_extent = isonum_733 (rootp->extent);
368 isomp->root_size = isonum_733 (rootp->size);
376 rootp = NULL;
408 rootp = (struct iso_directory_record *)bp->b_data;
410 if ((isomp->rr_skip = cd9660_rrip_offset(rootp,isomp)) < 0) {
423 rootp = NULL;
466 rootp
[all...]
/freebsd-12-stable/sys/fs/ext2fs/
H A Dext2_htree.c258 struct ext2fs_htree_root *rootp; local
277 rootp = (struct ext2fs_htree_root *)bp->b_data;
278 if (rootp->h_info.h_hash_version != EXT2_HTREE_LEGACY &&
279 rootp->h_info.h_hash_version != EXT2_HTREE_HALF_MD4 &&
280 rootp->h_info.h_hash_version != EXT2_HTREE_TEA)
283 hash_version = rootp->h_info.h_hash_version;
292 if ((levels = rootp->h_info.h_ind_levels) > 1)
295 entp = (struct ext2fs_htree_entry *)(((char *)&rootp->h_info) +
296 rootp->h_info.h_info_len);
299 ext2_htree_root_limit(ip, rootp
[all...]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc5770 INTERCEPTOR(void *, tsearch, void *key, void **rootp,
5773 COMMON_INTERCEPTOR_ENTER(ctx, tsearch, key, rootp, compar);
5777 void *res = REAL(tsearch)(key, rootp, compar);

Completed in 98 milliseconds