/illumos-gate/usr/src/cmd/logadm/ |
H A D | conf.h | 36 void *conf_lookup(const char *lhs); 37 struct opts *conf_opts(const char *lhs); 38 void conf_replace(const char *lhs, struct opts *newopts);
|
H A D | lut.h | 38 struct lut *lut_add(struct lut *root, const char *lhs, void *rhs); 40 void *lut_lookup(struct lut *root, const char *lhs); 42 void (*callback)(const char *lhs, void *rhs, void *arg), void *arg);
|
H A D | lut.c | 31 * replaced. the left-hand-side (lhs), which is the key, is 49 static void dooper(const char *lhs, void *rhs, void *arg); 70 lut_add(struct lut *root, const char *lhs, void *rhs) argument 77 root->lut_lhs = STRDUP(lhs); 80 } else if (lhs != NULL && (diff = strcmp(root->lut_lhs, lhs)) == 0) { 84 root->lut_left = lut_add(root->lut_left, lhs, rhs); 86 root->lut_right = lut_add(root->lut_right, lhs, rhs); 92 dooper(const char *lhs, void *rhs, void *arg) argument 96 *rootp = lut_add(*rootp, lhs, rh 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 171 printer(const char *lhs, void *rhs, void *arg) argument [all...] |
H A D | opts.c | 115 char lhs[2]; local 116 lhs[0] = c; 117 lhs[1] = '\0'; 118 return ((struct optinfo *)lut_lookup(Info, lhs)); 248 char lhs[2]; local 249 lhs[0] = *options; 250 lhs[1] = '\0'; 251 if (lut_lookup(opts->op_raw, lhs)) 290 merger(const char *lhs, void *rhs, void *arg) argument 294 *destlutp = lut_add(*destlutp, lhs, rh 446 printer(const char *lhs, void *rhs, void *arg) argument [all...] |
H A D | conf.c | 560 conf_lookup(const char *lhs) argument 562 struct confinfo *cp = lut_lookup(Conflut, lhs); 573 conf_opts(const char *lhs) argument 575 struct confinfo *cp = lut_lookup(Conflut, lhs); 586 conf_replace(const char *lhs, struct opts *newopts) argument 588 struct confinfo *cp = lut_lookup(Conflut, lhs); 599 fillconflist(0, lhs, newopts, NULL, 0);
|
H A D | kw.c | 56 static void kw_printer(const char *lhs, void *rhs, void *arg); 169 kw_printer(const char *lhs, void *rhs, void *arg) argument 173 (void) fprintf(stream, "%20.20s %s\n", lhs, (char *)rhs);
|
H A D | main.c | 54 static void commajoin(const char *lhs, void *rhs, void *arg); 55 static void doaftercmd(const char *lhs, void *rhs, void *arg); 60 static void do_delayed_gzip(const char *lhs, void *rhs, void *arg); 395 commajoin(const char *lhs, void *rhs, void *arg) argument 403 fn_puts(fnp, lhs); 408 doaftercmd(const char *lhs, void *rhs, void *arg) argument 424 docmd(opts, "-a cmd", Sh, "-c", lhs, NULL); 430 do_delayed_gzip(const char *lhs, void *rhs, void *arg) argument 437 "expired file <%s>\n", lhs); 441 docmd(opts, "compress old log (-z flag)", Gzip, "-f", lhs, NUL [all...] |
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | lut.h | 45 typedef int (*lut_cmp)(void *lhs, void *rhs); 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); 50 typedef void (*lut_cb)(void *lhs, void *rhs, void *arg);
|
H A D | out.h | 82 #define ASSERTeq(lhs, rhs, tostring) \ 83 ((void)(((lhs) == (rhs)) || (outfl(O_ABORT, __FILE__, __LINE__, \ 84 "assertion failure: %s (%s) == %s (%s)", #lhs, \ 85 tostring(lhs), #rhs, tostring(rhs)), 0))) 87 #define ASSERTne(lhs, rhs, tostring) \ 88 ((void)(((lhs) != (rhs)) || (outfl(O_ABORT, __FILE__, __LINE__, \ 89 "assertion failure: %s (%s) != %s (%s)", #lhs, \ 90 tostring(lhs), #rhs, tostring(rhs)), 0))) 96 #define ASSERTeq(lhs, rhs, tostring) ((void)0) 97 #define ASSERTne(lhs, rh [all...] |
H A D | check.h | 52 void check_upset_engine(struct node *lhs, struct node *rhs, void *arg); 53 void check_refcount(struct node *lhs, struct node *rhs, void *arg); 55 void check_cycle(struct node *lhs, struct node *rhs, void *arg); 61 void check_required_props(struct node *lhs, struct node *rhs, void *arg);
|
H A D | lut.c | 78 lut_add(struct lut *root, void *lhs, void *rhs, lut_cmp cmp_func) argument 85 diff = (*cmp_func)(tmp->lut_lhs, lhs); 87 diff = (const char *)lhs - (const char *)tmp->lut_lhs; 106 (*tmp_hdl)->lut_lhs = lhs; 116 lut_lookup(struct lut *root, void *lhs, lut_cmp cmp_func) argument 124 diff = (*cmp_func)(root->lut_lhs, lhs); 126 diff = (const char *)lhs - (const char *)root->lut_lhs; 139 lut_lookup_lhs(struct lut *root, void *lhs, lut_cmp cmp_func) argument 147 diff = (*cmp_func)(root->lut_lhs, lhs); 149 diff = (const char *)lhs [all...] |
H A D | check.c | 58 static void check_cycle_lhs_try(struct node *stmtnp, struct node *lhs, 61 static void check_proplists_lhs(enum nodetype t, struct node *lhs); 131 check_path_iterators(np->u.arrow.lhs); 166 if (np->u.arrow.lhs->t != T_ARROW && 167 np->u.arrow.lhs->t != T_LIST && 168 np->u.arrow.lhs->t != T_EVENT) { 170 np->u.arrow.lhs->file, np->u.arrow.lhs->line, 172 ptree_nodetype2str(np->u.arrow.lhs->t)); 572 check_propnames(t, np->u.arrow.lhs, 713 check_upset_engine(struct node *lhs, struct node *rhs, void *arg) argument 743 check_refcount(struct node *lhs, struct node *rhs, void *arg) argument 783 check_cycle(struct node *lhs, struct node *rhs, void *arg) argument 869 check_cycle_lhs_try(struct node *stmtnp, struct node *lhs, struct node *rhs) argument 1255 check_required_props(struct node *lhs, struct node *rhs, void *arg) argument 1282 check_proplists_lhs(enum nodetype t, struct node *lhs) argument [all...] |
H A D | tree.c | 279 tree_free(root->u.arrow.lhs); 396 if (tree_treecmp(np1->u.arrow.lhs, np2->u.arrow.lhs, t, 917 tree_arrow(struct node *lhs, struct node *nnp, struct node *knp, argument 922 ASSERT(lhs != NULL || rhs != NULL); 925 (lhs) ? lhs->file : rhs->file, 926 (lhs) ? lhs->line : rhs->line); 928 ret->u.arrow.lhs 1060 update_serd_refstmt(void *lhs, void *rhs, void *arg) argument [all...] |
/illumos-gate/usr/src/cmd/fm/scripts/ |
H A D | dictck.pl | 98 my $lhs; 122 $lhs = $1; 127 die "$name:$line: property \"$lhs\" incomplete\n" 139 $props{$lhs} = $rhs; 140 print "property \"$lhs\" value \"$rhs\"\n" if $opt_v; 176 $lhs = $1; 180 my $elhs = join(' ', sort split(/\s/, $lhs)); 183 unless $elhs eq $lhs; 188 foreach my $e (split(/\s/, $lhs)) { 199 if defined($keys2val{$lhs}); [all...] |
/illumos-gate/usr/src/cmd/pgrep/ |
H A D | idtab.c | 78 idkey_t lhs = *((idkey_t *)lhsp); local 81 if (lhs == rhs) 84 return (lhs > rhs ? 1 : -1);
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_aggregate.c | 67 dt_aggregate_countcmp(int64_t *lhs, int64_t *rhs) argument 69 int64_t lvar = *lhs; 98 dt_aggregate_averagecmp(int64_t *lhs, int64_t *rhs) argument 100 int64_t lavg = lhs[0] ? (lhs[1] / lhs[0]) : 0; 113 dt_aggregate_stddevcmp(int64_t *lhs, int64_t *rhs) argument 115 uint64_t lsd = dt_stddev((uint64_t *)lhs, 1); 180 dt_aggregate_lquantizedcmp(int64_t *lhs, int64_t *rhs) argument 182 long double lsum = dt_aggregate_lquantizedsum(lhs); 258 dt_aggregate_llquantizedcmp(int64_t *lhs, int64_t *rhs) argument 288 dt_aggregate_quantizedcmp(int64_t *lhs, int64_t *rhs) argument 731 dt_aggregate_hashcmp(const void *lhs, const void *rhs) argument 748 dt_aggregate_varcmp(const void *lhs, const void *rhs) argument 767 dt_aggregate_keycmp(const void *lhs, const void *rhs) argument 878 dt_aggregate_valcmp(const void *lhs, const void *rhs) argument 936 dt_aggregate_valkeycmp(const void *lhs, const void *rhs) argument 952 dt_aggregate_keyvarcmp(const void *lhs, const void *rhs) argument 963 dt_aggregate_varkeycmp(const void *lhs, const void *rhs) argument 974 dt_aggregate_valvarcmp(const void *lhs, const void *rhs) argument 985 dt_aggregate_varvalcmp(const void *lhs, const void *rhs) argument 996 dt_aggregate_keyvarrevcmp(const void *lhs, const void *rhs) argument 1002 dt_aggregate_varkeyrevcmp(const void *lhs, const void *rhs) argument 1008 dt_aggregate_valvarrevcmp(const void *lhs, const void *rhs) argument 1014 dt_aggregate_varvalrevcmp(const void *lhs, const void *rhs) argument 1020 dt_aggregate_bundlecmp(const void *lhs, const void *rhs) argument [all...] |
H A D | dt_module.c | 141 Elf32_Sym *lhs = *((Elf32_Sym **)lp); local 144 if (lhs->st_value != rhs->st_value) 145 return (lhs->st_value > rhs->st_value ? 1 : -1); 147 if ((lhs->st_size == 0) != (rhs->st_size == 0)) 148 return (lhs->st_size == 0 ? 1 : -1); 150 if ((ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE) != 152 return (ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE ? 1 : -1); 154 if ((ELF32_ST_BIND(lhs->st_info) == STB_WEAK) != 156 return (ELF32_ST_BIND(lhs->st_info) == STB_WEAK ? 1 : -1); 158 return (strcmp(dt_module_strtab + lhs 170 Elf64_Sym *lhs = *((Elf64_Sym **)lp); local [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | eft.c | 202 dosubscribe(struct node *lhs, struct node *rhs, void *arg) argument 204 char *ename = ename_strdup(lhs); 212 dodiscardprint(struct node *lhs, struct node *rhs, void *arg) argument 214 char *ename = (char *)lhs; 249 doopendict(const char *lhs, void *rhs, void *arg) argument 251 out(O_VERB, "opendict: \"%s\"", lhs); 252 fmd_hdl_opendict(Hdl, lhs);
|
H A D | config.c | 187 addconfigprop(const char *lhs, struct node *rhs, void *arg) argument 192 ASSERT(lhs != NULL); 196 config_setprop(cp, lhs, STRDUP(rhs->u.quote.s)); 204 addconfig(struct node *lhs, struct node *rhs, void *arg) argument 567 prtdevcache(void *lhs, void *rhs, void *arg) argument 569 out(O_ALTFP|O_VERB3, "%s -> %p", (char *)lhs, rhs); 574 prtdevidcache(void *lhs, void *rhs, void *arg) argument 576 out(O_ALTFP|O_VERB3, "%s -> %p", (char *)lhs, rhs); 581 prttpcache(void *lhs, void *rhs, void *arg) argument 583 out(O_ALTFP|O_VERB3, "%s -> %p", (char *)lhs, rh 588 prtcpucache(void *lhs, void *rhs, void *arg) argument 701 printprop(const char *lhs, const char *rhs, void *arg) argument [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pstack.c | 232 uintptr_t lhs = *((const uintptr_t *)lhp); local 235 if (lhs < rhs) 237 if (lhs > rhs)
|
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | ipmi_hash.c | 143 ipmi_hash_strcmp(const void *lhs, const void *rhs) argument 145 return (strcmp(lhs, rhs)); 155 ipmi_hash_ptrcmp(const void *lhs, const void *rhs) argument 157 const uintptr_t *l = lhs, *r = rhs;
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | validate_pkg.py | 166 # Map the objects such that the lhs is always the ActionInfo, 174 lhs = self 177 lhs = other 192 typelhs = lhs.name() 203 return (lhs.mediator is None) and (lhs.target != rhs.target) 213 return lhs.mode != rhs.mode 230 return len(lhs.hardpaths.intersection(rhs.hardpaths)) == 0 237 # We already know that the ActionInfo, if present, is the lhs 241 return lhs [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/libc/ |
H A D | findstack_subr.c | 205 const stacks_ulwp_t *lhs = l; local 208 if (lhs->sulwp_id > rhs->sulwp_id) 211 if (lhs->sulwp_id < rhs->sulwp_id)
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gelf.c | 304 GElf_Phdr *lhs = (GElf_Phdr *)lp; local 311 if (lhs->p_type == PT_LOAD && rhs->p_type == PT_LOAD) { 312 if (lhs->p_vaddr != rhs->p_vaddr) { 313 if (lhs->p_vaddr == 0) 314 return (1); /* lhs is "greater" */ 319 return (lhs->p_vaddr > rhs->p_vaddr ? 1 : -1); 330 if (lhs->p_type != rhs->p_type) { 331 if (lhs->p_type == PT_LOAD) 335 return (1); /* lhs is "greater" */ 337 return (lhs 853 Elf32_Sym *lhs = *((Elf32_Sym **)lp); local 881 Elf64_Sym *lhs = *((Elf64_Sym **)lp); local [all...] |
H A D | mdb_whatis.c | 62 uintptr_t lhs = *(const uintptr_t *)l; local 65 if (lhs < rhs) 67 if (lhs > rhs) 337 whatis_cbcmp(const void *lhs, const void *rhs) argument 339 whatis_callback_t *l = *(whatis_callback_t * const *)lhs;
|