/illumos-gate/usr/src/cmd/logadm/ |
H A D | lut.h | 38 struct lut *lut_add(struct lut *root, const char *lhs, void *rhs); 39 struct lut *lut_dup(struct lut *root); 40 void *lut_lookup(struct lut *root, const char *lhs); 41 void lut_walk(struct lut *root, 43 void lut_free(struct lut *root, void (*callback)(void *rhs));
|
H A D | lut.c | 63 * struct lut *root = NULL; 64 * root = lut_add(root, "key", value); 70 lut_add(struct lut *root, const char *lhs, void *rhs) argument 74 if (root == NULL) { 76 root = MALLOC(sizeof (*root)); 77 root->lut_lhs = STRDUP(lhs); 78 root->lut_rhs = rhs; 79 root 106 lut_dup(struct lut *root) argument 119 lut_lookup(struct lut *root, const char *lhs) argument 137 lut_walk(struct lut *root, void (*callback)(const char *lhs, void *rhs, void *arg), void *arg) argument 155 lut_free(struct lut *root, void (*callback)(void *rhs)) argument 173 struct lut *root = (struct lut *)arg; local [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | cvtpath.c | 31 extern char *root, *basedir; /* WHERE? */ 37 if (root || (basedir && (*path != '/'))) { 38 if (root && ((basedir == NULL) || (path[0] == '/') || 40 /* look in root */ 41 (void) strcpy(copy, root + (*root == '/' ? 1 : 0));
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | replica.c | 77 char *root, *special2; local 85 root = special2 = strdup(special); 86 proot = root; 88 while (root) { 89 switch (*root) { 91 if ((root != special2) && (*(root -1) != ',')) { 92 root++; 95 y = strchr(root, ']'); 97 root [all...] |
/illumos-gate/usr/src/lib/libast/common/cdt/ |
H A D | dttree.c | 41 Dtlink_t *root, *t; local 53 root = dt->data->here; 55 { if(!root || !(type&(DT_CLEAR|DT_FIRST|DT_LAST)) ) 61 { while((t = root->left) ) 62 RROTATE(root,t); 63 t = root->right; 65 (*disc->freef)(dt,_DTOBJ(root,lk),disc); 67 (*dt->memoryf)(dt,(Void_t*)root,0,disc); 68 } while((root = t) ); 77 { while((t = root [all...] |
/illumos-gate/usr/src/lib/libast/common/hash/ |
H A D | hashlast.c | 24 /* OBSOLETE 19960229 -- use tab->root->last.{table|bucket} */ 42 return(tab->root->last.bucket);
|
H A D | hashdump.c | 75 if (n = tab->root->namesize) 130 * dump hash table root info 134 dumproot(register Hash_root_t* root, register int flags) argument 138 sfprintf(sfstderr, " root\n"); 139 sfprintf(sfstderr, " address: 0x%08lx\n", (unsigned long)root); 141 dumpflags(root->flags); 142 if (root->namesize) sfprintf(sfstderr, "namesize=%d ", root->namesize); 143 if (root->local->alloc) sfprintf(sfstderr, "alloc=0x%08lx ", (unsigned long)root 166 register Hash_root_t* root; local [all...] |
H A D | hashfree.c | 36 * root info freed when last reference freed 58 if (tab->root->local->free) 60 if (tab->root->flags & HASH_BUCKET) freebucket = tab->root->local->free; 61 else freevalue = tab->root->local->free; 63 if (region = tab->root->local->region) 64 handle = tab->root->local->handle; 101 if (tab->root) 109 if ((tp = tab->root->references) != tab) 118 else if (!(tab->root [all...] |
H A D | hashalloc.c | 75 tab->root = ref->root; 82 if (!(tab->root = (Hash_root_t*)(*region)(handle, NiL, sizeof(Hash_root_t), 0))) 84 memset(tab->root, 0, sizeof(Hash_root_t)); 86 else if (!(tab->root = newof(0, Hash_root_t, 1, 0))) 88 if (!(tab->root->local = newof(0, Hash_local_t, 1, 0))) 90 if (tab->root->local->region = region) 91 tab->root->local->handle = handle; 92 tab->root->meanchain = HASHMEANCHAIN; 102 tab->root [all...] |
H A D | hashlook.c | 75 tab->root->accesses++; 77 last = &tab->root->last; 95 else HASH(tab->root, name, n); 104 if (!tab->root->local->compare) 109 if (tab->root->namesize) 111 register char* s3 = s1 + tab->root->namesize; 119 else if (tab->root->namesize) 121 if (!(*tab->root->local->compare)(hashname(b), name, tab->root->namesize)) goto found; 123 else if (!(*tab->root [all...] |
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | lut.c | 68 * struct lut *root = NULL; 69 * root = lut_add(root, key, value, cmp_func); 78 lut_add(struct lut *root, void *lhs, void *rhs, lut_cmp cmp_func) argument 81 struct lut **tmp_hdl = &root, *parent = NULL, *tmp = root; 92 return (root); 105 *tmp_hdl = MALLOC(sizeof (*root)); 112 return (root); 116 lut_lookup(struct lut *root, voi argument 139 lut_lookup_lhs(struct lut *root, void *lhs, lut_cmp cmp_func) argument 165 lut_walk(struct lut *root, lut_cb callback, void *arg) argument 205 lut_free(struct lut *root, lut_cb callback, void *arg) argument [all...] |
H A D | lut.h | 46 struct lut *lut_add(struct lut *root, void *lhs, void *rhs, 48 void *lut_lookup(struct lut *root, void *lhs, lut_cmp cmp_func); 49 void *lut_lookup_lhs(struct lut *root, void *lhs, lut_cmp cmp_func); 51 void lut_walk(struct lut *root, lut_cb callback, void *arg); 52 void lut_free(struct lut *root, lut_cb callback, void *arg);
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_search.c | 61 NODE *root = (NODE *) r; local 62 if (root->llink == NULL && root->rlink == NULL) 63 (*action)(root, leaf, level, cookie); 65 (*action)(root, preorder, level, cookie); 66 if (root->llink != NULL) 67 slp_twalk(root->llink, action, level + 1, cookie); 68 (*action)(root, postorder, level, cookie); 69 if (root->rlink != NULL) 70 slp_twalk(root [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | tsearch.c | 48 * rootp: Address of the root of the tree 80 * rootp: Address of the root of tree 127 * root: Root of the tree to be walked 131 twalk(NODE *root, void (*action)(NODE *, VISIT, int)) argument 134 if (root != NULL && action != NULL) 135 _twalk(root, action, 0); 142 * root: Root of the tree to be walked 146 _twalk(NODE *root, void (*action)(NODE *, VISIT, int), int level) argument 148 if (root->llink == NULL && root [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | tsearch.c | 134 NODE *root = (NODE *)rt; local 136 if (root != NULL && action != NULL) 137 __twalk(root, action, 0); 143 __twalk(NODE *root, /* Root of the tree to be walked */ argument 147 if (root->llink == NULL && root->rlink == NULL) 148 (*action)(root, leaf, level); 150 (*action)(root, preorder, level); 151 if (root->llink != NULL) 152 __twalk(root [all...] |
/illumos-gate/usr/src/lib/brand/solaris10/zone/ |
H A D | s10_boot.ksh | 34 ZONEROOT=$ZONEPATH/root 71 # $3 The name of the replacement file's owner (e.g., root:bin) 105 # $3 The name of the replacement file's owner (e.g., root:bin) 147 # replace_with_native /usr/bin/zcat 0555 root:bin 192 chown root:bin $ZONEROOT/lib/inet 204 replace_with_native /sbin/dhcpagent 0555 root:bin 205 replace_with_native /sbin/dhcpinfo 0555 root:bin 206 replace_with_native /sbin/ifconfig 0555 root:bin 207 replace_with_native /usr/bin/netstat 0555 root:bin 208 replace_with_native /usr/lib/inet/in.ndpd 0555 root [all...] |
H A D | poststate.ksh | 55 echo "global:installed:/" > $zonepath/root/etc/zones/index
|
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasLoadLibrary.c | 41 di_node_t root; local 67 if ((root = di_init("/", DINFOCACHE)) == DI_NODE_NIL) { 81 if (devtree_get_all_hbas(root) == HBA_STATUS_OK) { 87 di_fini(root);
|
/illumos-gate/usr/src/cmd/mdb/tools/scripts/ |
H A D | mdb.sh | 37 unset mdb_exec build root # Local variables 42 # If we select the user's workspace, we also set $root to their proto area 47 root=$CODEMGR_WS/proto/root_$mach 50 root=$mdb_lib/$mach/%R/%V 62 root=$mdb_lib/$mach/%R/%V 65 root=$mdb_lib/$mach/%R/%V 124 # Note that this will override the $root setting determined above. 126 [ -n "$build" ] && root=$mdb_lib/$mach/$build 133 # its default macro include and module library paths to use the build root. 135 if [ -n "$build" -o "$root" [all...] |
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/t/ |
H A D | Lgrp.t | 114 # root should have ID 0. 116 my $root = lgrp_root($c); 117 ok($root, 0, 'root should have id zero'); 131 # All root children should have root as their one and only one parent 134 my @children = lgrp_children($c, $root); 135 ok(scalar @children, lgrp_children($c, $root), 'lgrp_children as scalar'); 150 $fail++ if $parent != $root; 167 # root shoul [all...] |
H A D | Lgrp_api.t | 71 # root should have ID 0. 73 my $root = $c->root; 74 is($root, 0, 'root should have id zero'); 93 # All root children should have root as their one and only one parent 96 my (@children) = $c->children($root); 108 $fail++ if $parent != $root; 114 # Each lgrp other than root shoul [all...] |
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/ |
H A D | Lgrp.pm | 106 # If $root is not specified, use lgrp_root. 112 my $root = shift; 113 $root = lgrp_root($cookie) unless defined $root; 114 return unless defined $root; 115 my @children = lgrp_children($cookie, $root); 119 # Concatenate root with subtrees for every children. Every subtree is 124 ($root, map {lgrp_lgrps($cookie, $_)} @children) : 125 ($root); 139 my $root 201 sub root subroutine [all...] |
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_020_pos.ksh | 44 # 4. Verify that root=<mountpoint> for the pool 52 if [ -d ${TESTPOOL}.root ] 54 log_must rmdir ${TESTPOOL}.root 68 log_must mkdir /${TESTPOOL}.root 69 log_must zpool create -R /${TESTPOOL}.root $TESTPOOL $disk 70 if [ ! -d /${TESTPOOL}.root ] 78 log_fail "Mounted filesystem at /${TESTPOOL}.root isn't ZFS!" 91 # check that the root = /mountpoint property is set correctly 92 grep "$TESTPOOL[ ]*altroot[ ]*/${TESTPOOL}.root" /tmp/values.$$ > /dev/null 2>&1 95 log_fail "zpool property root wa [all...] |
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | pdevinfo_funcs.c | 361 find_board(Sys_tree *root, int board) argument 363 Board_node *bnode = root->bd_list; 376 insert_board(Sys_tree *root, int board) argument 379 Board_node *temp = root->bd_list; 390 root->bd_list = bnode; 393 root->bd_list = bnode; 400 root->board_cnt++; 455 dev_find_node(Prom_node *root, char *name) argument 459 node = dev_find_node_by_type(root, "name", name); 465 dev_next_node(Prom_node *root, cha argument 479 dev_find_type(Prom_node *root, char *type) argument 493 dev_next_type(Prom_node *root, char *type) argument 507 find_failed_node(Prom_node * root) argument 534 next_failed_node(Prom_node * root) argument 640 add_node(Sys_tree *root, Prom_node *pnode) argument 697 dev_find_node_by_type(Prom_node *root, char *type, char *property) argument 727 dev_next_node_by_type(Prom_node *root, char *type, char *property) argument 757 dev_find_node_by_compatible(Prom_node *root, char *compatible) argument 812 dev_next_node_by_compatible(Prom_node *root, char *compatible) argument [all...] |
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_impl.h | 70 int copy_usage(hp_node_t root); 71 int rcm_resources(hp_node_t root, char ***rsrcsp); 73 int rcm_offline(char **rsrcs, uint_t flags, hp_node_t root);
|