Home
last modified time | relevance | path

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

/openbsd-src/lib/libc/stdlib/
H A Dtsearch.c29 node **rootp = (node **)vrootp; in tsearch() local
31 if (rootp == (struct node_t **)0) in tsearch()
33 while (*rootp != (struct node_t *)0) { /* Knuth's T1: */ in tsearch()
36 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */ in tsearch()
37 return ((void *)*rootp); /* we found it! */ in tsearch()
38 rootp = (r < 0) ? in tsearch()
39 &(*rootp)->left : /* T3: follow left branch */ in tsearch()
40 &(*rootp)->right; /* T4: follow right branch */ in tsearch()
44 *rootp = q; /* link new node to old */ in tsearch()
56 node **rootp = (node **)vrootp; in tdelete() local
[all …]
H A Dtfind.c27 node **rootp = (node **)vrootp; in tfind() local
29 if (rootp == (struct node_t **)0) in tfind()
31 while (*rootp != (struct node_t *)0) { /* T1: */ in tfind()
33 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */ in tfind()
34 return (*rootp); /* key found */ in tfind()
35 rootp = (r < 0) ? in tfind()
36 &(*rootp)->llink : /* T3: follow left branch */ in tfind()
37 &(*rootp)->rlink; /* T4: follow right branch */ in tfind()
/openbsd-src/sys/isofs/cd9660/
H A Dcd9660_vfsops.c220 struct iso_directory_record *rootp; in iso_mountfs() local
337 rootp = (struct iso_directory_record *)pri->root_directory_record; in iso_mountfs()
343 bcopy (rootp, isomp->root, sizeof isomp->root); in iso_mountfs()
344 isomp->root_extent = isonum_733 (rootp->extent); in iso_mountfs()
345 isomp->root_size = isonum_733 (rootp->size); in iso_mountfs()
370 isonum_711(rootp->ext_attr_length)) << in iso_mountfs()
375 rootp = (struct iso_directory_record *)bp->b_data; in iso_mountfs()
377 if ((isomp->rr_skip = cd9660_rrip_offset(rootp,isomp)) < 0) { in iso_mountfs()
407 rootp = (struct iso_directory_record *) in iso_mountfs()
409 bcopy(rootp, isomp->root, sizeof isomp->root); in iso_mountfs()
[all …]
/openbsd-src/gnu/usr.sbin/mkhybrid/src/
H A Dmulti.c735 struct iso_directory_record * rootp; in FDECL1() local
803 rootp = calloc(1, sizeof(struct iso_directory_record)); in FDECL1()
805 memcpy(rootp, pri->root_directory_record, sizeof(pri->root_directory_record)); in FDECL1()
807 return rootp; in FDECL1()
/openbsd-src/lib/libpcap/
H A Doptimize.c1552 bpf_optimize(struct block **rootp) in bpf_optimize() argument
1556 root = *rootp; in bpf_optimize()
1562 opt_root(rootp); in bpf_optimize()
/openbsd-src/gnu/usr.bin/binutils/bfd/
H A Dmmo.c2649 mmo_internal_add_3_sym (abfd, rootp, symp) in mmo_internal_add_3_sym() argument
2651 struct mmo_symbol_trie *rootp;
2655 struct mmo_symbol_trie *trie = rootp;
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Dmmo.c2602 mmo_internal_add_3_sym (bfd *abfd, struct mmo_symbol_trie *rootp, in mmo_internal_add_3_sym() argument
2606 struct mmo_symbol_trie *trie = rootp; in mmo_internal_add_3_sym()
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc6127 INTERCEPTOR(void *, tsearch, void *key, void **rootp,
6130 COMMON_INTERCEPTOR_ENTER(ctx, tsearch, key, rootp, compar);
6134 void *res = REAL(tsearch)(key, rootp, compar);