Home
last modified time | relevance | path

Searched refs:lhs (Results 1 – 25 of 71) sorted by relevance

123

/illumos-gate/usr/src/cmd/logadm/
H A Dlut.c75 root->lut_lhs = STRDUP(lhs); in lut_add()
78 } else if (lhs != NULL && (diff = strcmp(root->lut_lhs, lhs)) == 0) { in lut_add()
90 dooper(const char *lhs, void *rhs, void *arg) in dooper() argument
94 *rootp = lut_add(*rootp, lhs, rhs); in dooper()
117 lut_lookup(struct lut *root, const char *lhs) in lut_lookup() argument
121 if (root == NULL || lhs == NULL) in lut_lookup()
126 return (lut_lookup(root->lut_left, lhs)); in lut_lookup()
128 return (lut_lookup(root->lut_right, lhs)); in lut_lookup()
169 printer(const char *lhs, void *rhs, void *arg) in printer() argument
171 printf("<%s> <%s> (<%s>)\n", lhs, (char *)rhs, in printer()
[all …]
H A Dopts.c115 char lhs[2]; in opt_info() local
116 lhs[0] = c; in opt_info()
117 lhs[1] = '\0'; in opt_info()
248 char lhs[2]; in opts_count() local
249 lhs[0] = *options; in opts_count()
250 lhs[1] = '\0'; in opts_count()
251 if (lut_lookup(opts->op_raw, lhs)) in opts_count()
290 merger(const char *lhs, void *rhs, void *arg) in merger() argument
294 *destlutp = lut_add(*destlutp, lhs, rhs); in merger()
446 printer(const char *lhs, void *rhs, void *arg) in printer() argument
[all …]
H A Dconf.h36 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 Dlut.h38 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 Dconf.c567 conf_lookup(const char *lhs) in conf_lookup() argument
569 struct confinfo *cp = lut_lookup(Conflut, lhs); in conf_lookup()
580 conf_opts(const char *lhs) in conf_opts() argument
582 struct confinfo *cp = lut_lookup(Conflut, lhs); in conf_opts()
593 conf_replace(const char *lhs, struct opts *newopts) in conf_replace() argument
595 struct confinfo *cp = lut_lookup(Conflut, lhs); in conf_replace()
606 fillconflist(0, lhs, newopts, NULL, 0); in conf_replace()
H A Dmain.c56 static void commajoin(const char *lhs, void *rhs, void *arg);
57 static void doaftercmd(const char *lhs, void *rhs, void *arg);
62 static void do_delayed_gzip(const char *lhs, void *rhs, void *arg);
399 commajoin(const char *lhs, void *rhs, void *arg) in commajoin() argument
407 fn_puts(fnp, lhs); in commajoin()
412 doaftercmd(const char *lhs, void *rhs, void *arg) in doaftercmd() argument
428 docmd(opts, "-a cmd", Sh, "-c", lhs, NULL); in doaftercmd()
434 do_delayed_gzip(const char *lhs, void *rhs, void *arg) in do_delayed_gzip() argument
441 "expired file <%s>\n", lhs); in do_delayed_gzip()
445 docmd(opts, "compress old log (-z flag)", Gzip, "-f", lhs, NULL); in do_delayed_gzip()
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dout.h82 #define ASSERTeq(lhs, rhs, tostring) \ argument
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) \ argument
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) argument
97 #define ASSERTne(lhs, rhs, tostring) ((void)0) argument
H A Dlut.c78 lut_add(struct lut *root, void *lhs, void *rhs, lut_cmp cmp_func) in lut_add() argument
85 diff = (*cmp_func)(tmp->lut_lhs, lhs); in lut_add()
87 diff = (const char *)lhs - (const char *)tmp->lut_lhs; in lut_add()
106 (*tmp_hdl)->lut_lhs = lhs; in lut_add()
116 lut_lookup(struct lut *root, void *lhs, lut_cmp cmp_func) in lut_lookup() argument
124 diff = (*cmp_func)(root->lut_lhs, lhs); in lut_lookup()
126 diff = (const char *)lhs - (const char *)root->lut_lhs; in lut_lookup()
139 lut_lookup_lhs(struct lut *root, void *lhs, lut_cmp cmp_func) in lut_lookup_lhs() argument
147 diff = (*cmp_func)(root->lut_lhs, lhs); in lut_lookup_lhs()
149 diff = (const char *)lhs - (const char *)root->lut_lhs; in lut_lookup_lhs()
H A Dlut.h45 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 Dcheck.c166 if (np->u.arrow.lhs->t != T_ARROW && in check_arrow()
167 np->u.arrow.lhs->t != T_LIST && in check_arrow()
170 np->u.arrow.lhs->file, np->u.arrow.lhs->line, in check_arrow()
754 ptree_name(O_WARN|O_NONL, lhs); in check_refcount()
832 switch (arrow->u.arrow.lhs->t) { in check_cycle_lhs()
851 trylhs = arrow->u.arrow.lhs; in check_cycle_lhs()
871 if (lhs->t == T_LIST) { in check_cycle_lhs_try()
877 ASSERT(lhs->t == T_EVENT); in check_cycle_lhs_try()
1284 if (lhs->t == T_ARROW) { in check_proplists_lhs()
1286 outfl(O_ERR, lhs->file, lhs->line, in check_proplists_lhs()
[all …]
H A Dcheck.h52 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);
/illumos-gate/usr/src/cmd/fm/scripts/
H A Ddictck.pl98 my $lhs;
122 $lhs = $1;
139 $props{$lhs} = $rhs;
176 $lhs = $1;
183 unless $elhs eq $lhs;
188 foreach my $e (split(/\s/, $lhs)) {
199 if defined($keys2val{$lhs});
202 $keys2val{$lhs} = $rhs;
203 $val2keys{$rhs} = $lhs;
210 print "code: $code keys: $lhs\n" if $opt_v;
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dattr-inline.c2 static inline __attribute__((__always_inline__)) int gt(int lhs, int rhs) in gt() argument
4 return lhs > rhs; in gt()
7 extern inline __attribute__((__gnu_inline__)) int ge(int lhs, int rhs) in ge() argument
9 return lhs >= rhs; in ge()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_aggregate.c69 int64_t lvar = *lhs; in dt_aggregate_countcmp()
100 int64_t lavg = lhs[0] ? (lhs[1] / lhs[0]) : 0; in dt_aggregate_averagecmp()
115 uint64_t lsd = dt_stddev((uint64_t *)lhs, 1); in dt_aggregate_stddevcmp()
198 lzero = dt_aggregate_lquantizedzero(lhs); in dt_aggregate_lquantizedcmp()
275 lzero = lhs[1]; in dt_aggregate_llquantizedcmp()
298 lzero = lhs[i]; in dt_aggregate_quantizedcmp()
948 return (dt_aggregate_keycmp(lhs, rhs)); in dt_aggregate_valkeycmp()
959 return (dt_aggregate_varcmp(lhs, rhs)); in dt_aggregate_keyvarcmp()
970 return (dt_aggregate_keycmp(lhs, rhs)); in dt_aggregate_varkeycmp()
981 return (dt_aggregate_varcmp(lhs, rhs)); in dt_aggregate_valvarcmp()
[all …]
H A Ddt_module.c141 Elf32_Sym *lhs = *((Elf32_Sym **)lp); in dt_module_symcomp32() local
144 if (lhs->st_value != rhs->st_value) in dt_module_symcomp32()
147 if ((lhs->st_size == 0) != (rhs->st_size == 0)) in dt_module_symcomp32()
148 return (lhs->st_size == 0 ? 1 : -1); in dt_module_symcomp32()
154 if ((ELF32_ST_BIND(lhs->st_info) == STB_WEAK) != in dt_module_symcomp32()
158 return (strcmp(dt_module_strtab + lhs->st_name, in dt_module_symcomp32()
170 Elf64_Sym *lhs = *((Elf64_Sym **)lp); in dt_module_symcomp64() local
173 if (lhs->st_value != rhs->st_value) in dt_module_symcomp64()
176 if ((lhs->st_size == 0) != (rhs->st_size == 0)) in dt_module_symcomp64()
177 return (lhs->st_size == 0 ? 1 : -1); in dt_module_symcomp64()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Deft.c202 dosubscribe(struct node *lhs, struct node *rhs, void *arg) in dosubscribe() argument
204 char *ename = ename_strdup(lhs); in dosubscribe()
212 dodiscardprint(struct node *lhs, struct node *rhs, void *arg) in dodiscardprint() argument
214 char *ename = (char *)lhs; in dodiscardprint()
249 doopendict(const char *lhs, void *rhs, void *arg) in doopendict() argument
251 out(O_VERB, "opendict: \"%s\"", lhs); in doopendict()
252 fmd_hdl_opendict(Hdl, lhs); in doopendict()
H A Dconfig.c192 ASSERT(lhs != NULL); in addconfigprop()
196 config_setprop(cp, lhs, STRDUP(rhs->u.quote.s)); in addconfigprop()
567 prtdevcache(void *lhs, void *rhs, void *arg) in prtdevcache() argument
569 out(O_ALTFP|O_VERB3, "%s -> %p", (char *)lhs, rhs); in prtdevcache()
574 prtdevidcache(void *lhs, void *rhs, void *arg) in prtdevidcache() argument
576 out(O_ALTFP|O_VERB3, "%s -> %p", (char *)lhs, rhs); in prtdevidcache()
581 prttpcache(void *lhs, void *rhs, void *arg) in prttpcache() argument
583 out(O_ALTFP|O_VERB3, "%s -> %p", (char *)lhs, rhs); in prttpcache()
588 prtcpucache(void *lhs, void *rhs, void *arg) in prtcpucache() argument
590 out(O_ALTFP|O_VERB, "%u -> %p", (uint32_t)lhs, rhs); in prtcpucache()
[all …]
H A Deval.c70 if (lhs == NULL) in begins_with()
79 if (lhs->u.name.s != rhs->u.name.s) in begins_with()
82 if (lhs->u.name.child && lhs->u.name.child->t == T_NUM) { in begins_with()
83 lnum = (int)lhs->u.name.child->u.ull; in begins_with()
84 } else if (lhs->u.name.child && lhs->u.name.child->t == T_NAME) { in begins_with()
217 struct node *lhs; in eval_func() local
234 if (!rhs || !lhs) in eval_func()
250 tree_free(lhs); in eval_func()
345 if (!rhs || !lhs) in eval_func()
352 path = ipath2str(NULL, ipath(lhs)); in eval_func()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dsparse-llvm.c536 LLVMValueRef lhs, rhs, target; in output_op_binary() local
539 lhs = get_ioperand(fn, insn->type, insn->src1); in output_op_binary()
547 target = LLVMBuildAdd(fn->builder, lhs, rhs, target_name); in output_op_binary()
550 target = LLVMBuildSub(fn->builder, lhs, rhs, target_name); in output_op_binary()
604 target = LLVMBuildOr(fn->builder, lhs, rhs, target_name); in output_op_binary()
621 LLVMValueRef lhs, rhs, target; in output_op_compare() local
624 lhs = pseudo_to_value(fn, NULL, insn->src1); in output_op_compare()
626 rhs = constant_value(insn->src2->value, LLVMTypeOf(lhs)); in output_op_compare()
636 switch (LLVMGetTypeKind(LLVMTypeOf(lhs))) { in output_op_compare()
638 lhs = value_to_pvalue(fn, &ptr_ctype, lhs); in output_op_compare()
[all …]
/illumos-gate/usr/src/cmd/pgrep/
H A Didtab.c78 idkey_t lhs = *((idkey_t *)lhsp); in idtab_compare() local
81 if (lhs == rhs) in idtab_compare()
84 return (lhs > rhs ? 1 : -1); in idtab_compare()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gelf.c304 GElf_Phdr *lhs = (GElf_Phdr *)lp; in gelf_phdr_compare() local
312 if (lhs->p_vaddr != rhs->p_vaddr) { in gelf_phdr_compare()
313 if (lhs->p_vaddr == 0) in gelf_phdr_compare()
330 if (lhs->p_type != rhs->p_type) { in gelf_phdr_compare()
331 if (lhs->p_type == PT_LOAD) in gelf_phdr_compare()
344 if (lhs->p_offset != rhs->p_offset) in gelf_phdr_compare()
853 Elf32_Sym *lhs = *((Elf32_Sym **)lp); in gelf32_sym_compare() local
856 if (lhs->st_value != rhs->st_value) in gelf32_sym_compare()
860 return (lhs->st_size == 0 ? 1 : -1); in gelf32_sym_compare()
881 Elf64_Sym *lhs = *((Elf64_Sym **)lp); in gelf64_sym_compare() local
[all …]
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_hash.c143 ipmi_hash_strcmp(const void *lhs, const void *rhs) in ipmi_hash_strcmp() argument
145 return (strcmp(lhs, rhs)); in ipmi_hash_strcmp()
155 ipmi_hash_ptrcmp(const void *lhs, const void *rhs) in ipmi_hash_ptrcmp() argument
157 const uintptr_t *l = lhs, *r = rhs; in ipmi_hash_ptrcmp()
/illumos-gate/usr/src/tools/scripts/
H A Dvalidate_pkg.py176 lhs = self
179 lhs = other
194 typelhs = lhs.name()
205 return (lhs.mediator is None) and (lhs.target != rhs.target)
215 return lhs.mode != rhs.mode
232 return len(lhs.hardpaths.intersection(rhs.hardpaths)) == 0
243 return lhs.path not in rhs.hardpaths
/illumos-gate/usr/src/lib/libproc/common/
H A DPstack.c230 uintptr_t lhs = *((const uintptr_t *)lhp); in sort_uclist() local
233 if (lhs < rhs) in sort_uclist()
235 if (lhs > rhs) in sort_uclist()
/illumos-gate/usr/src/cmd/mdb/common/modules/libumem/
H A Dleaky_subr.c159 const leaky_seg_info_t *lhs = (const leaky_seg_info_t *)l; in leaky_seg_cmp() local
162 if (lhs->ls_start < rhs->ls_start) in leaky_seg_cmp()
164 if (lhs->ls_start > rhs->ls_start) in leaky_seg_cmp()
677 leaky_subr_bufctl_cmp(const leak_bufctl_t *lhs, const leak_bufctl_t *rhs) in leaky_subr_bufctl_cmp() argument
683 leaky_subr_caller(lhs->lkb_stack, lhs->lkb_depth, lbuf, &lcaller); in leaky_subr_bufctl_cmp()
684 leaky_subr_caller(rhs->lkb_stack, lhs->lkb_depth, rbuf, &rcaller); in leaky_subr_bufctl_cmp()
695 if (lhs->lkb_data < rhs->lkb_data) in leaky_subr_bufctl_cmp()
698 if (lhs->lkb_data > rhs->lkb_data) in leaky_subr_bufctl_cmp()

123