Home
last modified time | relevance | path

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

123

/titanic_41/usr/src/cmd/logadm/
H A Dlut.c49 static void dooper(const char *lhs, void *rhs, void *arg);
70 lut_add(struct lut *root, const char *lhs, void *rhs) in lut_add() argument
77 root->lut_lhs = STRDUP(lhs); in lut_add()
80 } else if (lhs != NULL && (diff = strcmp(root->lut_lhs, lhs)) == 0) { in lut_add()
84 root->lut_left = lut_add(root->lut_left, lhs, rhs); in lut_add()
86 root->lut_right = lut_add(root->lut_right, lhs, rhs); in lut_add()
92 dooper(const char *lhs, void *rhs, void *arg) in dooper() argument
96 *rootp = lut_add(*rootp, lhs, rhs); in dooper()
119 lut_lookup(struct lut *root, const char *lhs) in lut_lookup() argument
123 if (root == NULL || lhs == NULL) in lut_lookup()
[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()
118 return ((struct optinfo *)lut_lookup(Info, lhs)); 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()
[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.c552 conf_lookup(const char *lhs) in conf_lookup() argument
554 struct confinfo *cp = lut_lookup(Conflut, lhs); in conf_lookup()
565 conf_opts(const char *lhs) in conf_opts() argument
567 struct confinfo *cp = lut_lookup(Conflut, lhs); in conf_opts()
578 conf_replace(const char *lhs, struct opts *newopts) in conf_replace() argument
580 struct confinfo *cp = lut_lookup(Conflut, lhs); in conf_replace()
591 fillconflist(0, lhs, newopts, NULL, 0); in conf_replace()
H A Dmain.c54 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) in commajoin() argument
403 fn_puts(fnp, lhs); in commajoin()
408 doaftercmd(const char *lhs, void *rhs, void *arg) in doaftercmd() argument
424 docmd(opts, "-a cmd", Sh, "-c", lhs, NULL); in doaftercmd()
430 do_delayed_gzip(const char *lhs, void *rhs, void *arg) in do_delayed_gzip() argument
437 "expired file <%s>\n", lhs); in do_delayed_gzip()
441 docmd(opts, "compress old log (-z flag)", Gzip, "-f", lhs, NULL); in do_delayed_gzip()
/titanic_41/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.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);
H A Dcheck.c58 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); in check_path_iterators()
166 if (np->u.arrow.lhs->t != T_ARROW && in check_arrow()
167 np->u.arrow.lhs->t != T_LIST && in check_arrow()
168 np->u.arrow.lhs->t != T_EVENT) { in check_arrow()
170 np->u.arrow.lhs->file, np->u.arrow.lhs->line, in check_arrow()
172 ptree_nodetype2str(np->u.arrow.lhs->t)); in check_arrow()
572 check_propnames(t, np->u.arrow.lhs, 1, to); in check_propnames()
585 ex = record_iterators(np->u.arrow.lhs, ex); in record_iterators()
[all …]
H A Dtree.c279 tree_free(root->u.arrow.lhs); in tree_free()
396 if (tree_treecmp(np1->u.arrow.lhs, np2->u.arrow.lhs, t, in tree_treecmp()
917 tree_arrow(struct node *lhs, struct node *nnp, struct node *knp, in tree_arrow() argument
922 ASSERT(lhs != NULL || rhs != NULL); in tree_arrow()
925 (lhs) ? lhs->file : rhs->file, in tree_arrow()
926 (lhs) ? lhs->line : rhs->line); in tree_arrow()
928 ret->u.arrow.lhs = lhs; in tree_arrow()
933 make_explicit(lhs, 0); in tree_arrow()
1060 update_serd_refstmt(void *lhs, void *rhs, void *arg) in update_serd_refstmt() argument
1230 set_arrow_prop(prop, np->u.arrow.lhs); in set_arrow_prop()
/titanic_41/usr/src/cmd/fm/scripts/
H A Ddictck.pl98 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 …]
/titanic_41/usr/src/lib/libdtrace/common/
H A Ddt_aggregate.c67 dt_aggregate_countcmp(int64_t *lhs, int64_t *rhs) in dt_aggregate_countcmp() argument
69 int64_t lvar = *lhs; in dt_aggregate_countcmp()
98 dt_aggregate_averagecmp(int64_t *lhs, int64_t *rhs) in dt_aggregate_averagecmp() argument
100 int64_t lavg = lhs[0] ? (lhs[1] / lhs[0]) : 0; in dt_aggregate_averagecmp()
113 dt_aggregate_stddevcmp(int64_t *lhs, int64_t *rhs) in dt_aggregate_stddevcmp() argument
115 uint64_t lsd = dt_stddev((uint64_t *)lhs, 1); in dt_aggregate_stddevcmp()
180 dt_aggregate_lquantizedcmp(int64_t *lhs, int64_t *rhs) in dt_aggregate_lquantizedcmp() argument
182 long double lsum = dt_aggregate_lquantizedsum(lhs); in dt_aggregate_lquantizedcmp()
198 lzero = dt_aggregate_lquantizedzero(lhs); in dt_aggregate_lquantizedcmp()
258 dt_aggregate_llquantizedcmp(int64_t *lhs, int64_t *rhs) in dt_aggregate_llquantizedcmp() argument
[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()
145 return (lhs->st_value > rhs->st_value ? 1 : -1); 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()
150 if ((ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE) != in dt_module_symcomp32()
152 return (ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE ? 1 : -1); in dt_module_symcomp32()
154 if ((ELF32_ST_BIND(lhs->st_info) == STB_WEAK) != in dt_module_symcomp32()
156 return (ELF32_ST_BIND(lhs->st_info) == STB_WEAK ? 1 : -1); in dt_module_symcomp32()
158 return (strcmp(dt_module_strtab + lhs->st_name, in dt_module_symcomp32()
[all …]
/titanic_41/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.c187 addconfigprop(const char *lhs, struct node *rhs, void *arg) in addconfigprop() argument
192 ASSERT(lhs != NULL); in addconfigprop()
196 config_setprop(cp, lhs, STRDUP(rhs->u.quote.s)); in addconfigprop()
204 addconfig(struct node *lhs, struct node *rhs, void *arg) in addconfig() argument
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()
[all …]
H A Deval.c63 begins_with(struct node *lhs, struct node *rhs, struct lut *ex) in begins_with() argument
69 if (lhs == NULL) in begins_with()
75 ASSERTeq(lhs->t, T_NAME, ptree_nodetype2str); in begins_with()
78 if (lhs->u.name.s != rhs->u.name.s) in begins_with()
81 if (lhs->u.name.child && lhs->u.name.child->t == T_NUM) { in begins_with()
82 lnum = (int)lhs->u.name.child->u.ull; in begins_with()
83 } else if (lhs->u.name.child && lhs->u.name.child->t == T_NAME) { in begins_with()
84 iterinfop = lut_lookup(ex, (void *)lhs->u.name.child->u.name.s, in begins_with()
110 return (begins_with(lhs->u.name.next, rhs->u.name.next, ex)); in begins_with()
216 struct node *lhs; in eval_func() local
[all …]
/titanic_41/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()
/titanic_41/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gelf.c304 GElf_Phdr *lhs = (GElf_Phdr *)lp; in gelf_phdr_compare() local
311 if (lhs->p_type == PT_LOAD && rhs->p_type == PT_LOAD) { in gelf_phdr_compare()
312 if (lhs->p_vaddr != rhs->p_vaddr) { in gelf_phdr_compare()
313 if (lhs->p_vaddr == 0) in gelf_phdr_compare()
319 return (lhs->p_vaddr > rhs->p_vaddr ? 1 : -1); 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()
337 return (lhs->p_type > rhs->p_type ? 1 : -1); in gelf_phdr_compare()
344 if (lhs->p_offset != rhs->p_offset) in gelf_phdr_compare()
345 return (lhs->p_offset > rhs->p_offset ? 1 : -1); in gelf_phdr_compare()
[all …]
/titanic_41/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()
/titanic_41/usr/src/lib/libproc/common/
H A DPstack.c232 uintptr_t lhs = *((const uintptr_t *)lhp); in sort_uclist() local
235 if (lhs < rhs) in sort_uclist()
237 if (lhs > rhs) in sort_uclist()
/titanic_41/usr/src/tools/scripts/
H A Dvalidate_pkg.py174 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
241 return lhs.path not in rhs.hardpaths
/titanic_41/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()
/titanic_41/usr/src/cmd/mdb/common/modules/libc/
H A Dfindstack_subr.c205 const stacks_ulwp_t *lhs = l; in stacks_ulwp_compare() local
208 if (lhs->sulwp_id > rhs->sulwp_id) in stacks_ulwp_compare()
211 if (lhs->sulwp_id < rhs->sulwp_id) in stacks_ulwp_compare()

123