Home
last modified time | relevance | path

Searched refs:rhs (Results 1 – 25 of 81) sorted by relevance

1234

/illumos-gate/usr/src/lib/libfru/libgenutil/
H A DStr.cc49 Str::Str(const Str& rhs) in Str() argument
50 : str_(strcpy(new char[strlen(rhs.str_)+1], rhs.str_)), in Str()
60 Str::operator = (const Str& rhs) in operator =() argument
63 str_ = strcpy(new char[strlen(rhs.str_)+1], rhs.str_); in operator =()
65 nextTok_ = str_ + (rhs.nextTok_ - rhs.str_); in operator =()
77 Str::operator == (const Str& rhs) const in operator ==()
79 return (strcmp(str_, rhs.str_) == 0); in operator ==()
83 Str::operator != (const Str& rhs) const in operator !=()
85 return (strcmp(str_, rhs.str_) != 0); in operator !=()
95 Str::operator<<(Str rhs) in operator <<() argument
[all …]
/illumos-gate/usr/src/cmd/fm/scripts/
H A Ddictck.pl99 my $rhs;
123 $rhs = "";
132 $rhs = $1;
136 $rhs = $1;
138 $rhs =~ s/\\(.)/dobs($1)/ge;
139 $props{$lhs} = $rhs;
140 print "property \"$lhs\" value \"$rhs\"\n" if $opt_v;
177 $rhs = $2;
200 die "$name:$line: duplicate entry for value $rhs\n"
201 if defined($val2keys{$rhs});
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dout.h80 #define ASSERTeq(lhs, rhs, tostring) \ argument
81 ((void)(((lhs) == (rhs)) || (outfl(O_ABORT, __FILE__, __LINE__, \
83 tostring(lhs), #rhs, tostring(rhs)), 0)))
85 #define ASSERTne(lhs, rhs, tostring) \ argument
86 ((void)(((lhs) != (rhs)) || (outfl(O_ABORT, __FILE__, __LINE__, \
88 tostring(lhs), #rhs, tostring(rhs)), 0)))
94 #define ASSERTeq(lhs, rhs, tostring) ((void)0) argument
95 #define ASSERTne(lhs, rhs, tostring) ((void)0) argument
H A Dcheck.c59 struct node *rhs);
60 static void check_cycle_rhs(struct node *rhs);
132 check_path_iterators(np->u.arrow.rhs); in check_path_iterators()
573 check_propnames(t, np->u.arrow.rhs, from, 1); in check_propnames()
586 ex = record_iterators(np->u.arrow.rhs, ex); in record_iterators()
627 check_exprscope(np->u.arrow.rhs, ex); in check_exprscope()
713 check_upset_engine(struct node *lhs, struct node *rhs, void *arg) in check_upset_engine() argument
719 ASSERTeq(rhs->t, t, ptree_nodetype2str); in check_upset_engine()
721 if ((engnp = tree_s2np_lut_lookup(rhs->u.stmt.lutp, L_engine)) == NULL) in check_upset_engine()
743 check_refcount(struct node *lhs, struct node *rhs, void *arg) in check_refcount() argument
[all …]
H A Dcheck.h50 void check_upset_engine(struct node *lhs, struct node *rhs, void *arg);
51 void check_refcount(struct node *lhs, struct node *rhs, void *arg);
53 void check_cycle(struct node *lhs, struct node *rhs, void *arg);
59 void check_required_props(struct node *lhs, struct node *rhs, void *arg);
H A Dlut.h43 typedef int (*lut_cmp)(void *lhs, void *rhs);
44 struct lut *lut_add(struct lut *root, void *lhs, void *rhs,
48 typedef void (*lut_cb)(void *lhs, void *rhs, void *arg);
H A Deftwrite.c68 ident_lencalc(const char *s, void *rhs, void *arg) in ident_lencalc() argument
75 dict_lencalc(const char *s, void *rhs, void *arg) in dict_lencalc() argument
82 ident_printer(const char *s, void *rhs, void *arg) in ident_printer() argument
91 dict_printer(const char *s, void *rhs, void *arg) in dict_printer() argument
H A Dlut.c76 lut_add(struct lut *root, void *lhs, void *rhs, lut_cmp cmp_func) in lut_add() argument
89 tmp->lut_rhs = rhs; in lut_add()
105 (*tmp_hdl)->lut_rhs = rhs; in lut_add()
/illumos-gate/usr/src/cmd/logadm/
H A Dlut.c47 static void dooper(const char *lhs, void *rhs, void *arg);
68 lut_add(struct lut *root, const char *lhs, void *rhs) in lut_add() argument
76 root->lut_rhs = rhs; in lut_add()
80 root->lut_rhs = rhs; in lut_add()
82 root->lut_left = lut_add(root->lut_left, lhs, rhs); in lut_add()
84 root->lut_right = lut_add(root->lut_right, lhs, rhs); in lut_add()
90 dooper(const char *lhs, void *rhs, void *arg) in dooper() argument
94 *rootp = lut_add(*rootp, lhs, rhs); in dooper()
136 void (*callback)(const char *lhs, void *rhs, void *arg), void *arg) in lut_walk() argument
153 lut_free(struct lut *root, void (*callback)(void *rhs)) in lut_free() argument
[all …]
H A Dlut.h36 struct lut *lut_add(struct lut *root, const char *lhs, void *rhs);
40 void (*callback)(const char *lhs, void *rhs, void *arg), void *arg);
41 void lut_free(struct lut *root, void (*callback)(void *rhs));
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dconfig.c187 addconfigprop(const char *lhs, struct node *rhs, void *arg) in addconfigprop() argument
193 ASSERT(rhs != NULL); in addconfigprop()
194 ASSERT(rhs->t == T_QUOTE); 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
215 ASSERT(rhs->t == T_CONFIG); in addconfig()
217 lutp = rhs->u.stmt.lutp; in addconfig()
218 rhs = rhs->u.stmt.np; in addconfig()
219 while (rhs != NULL) { in addconfig()
220 ASSERT(rhs->t == T_NAME); in addconfig()
[all …]
H A Deval.c64 begins_with(struct node *lhs, struct node *rhs, struct lut *ex) in begins_with() argument
73 if (rhs == NULL) in begins_with()
77 ASSERTeq(rhs->t, T_NAME, ptree_nodetype2str); in begins_with()
79 if (lhs->u.name.s != rhs->u.name.s) in begins_with()
95 if (rhs->u.name.child && rhs->u.name.child->t == T_NUM) { in begins_with()
96 rnum = (int)rhs->u.name.child->u.ull; in begins_with()
97 } else if (rhs->u.name.child && rhs->u.name.child->t == T_NAME) { in begins_with()
98 iterinfop = lut_lookup(ex, (void *)rhs->u.name.child->u.name.s, in begins_with()
111 return (begins_with(lhs->u.name.next, rhs->u.name.next, ex)); in begins_with()
218 struct node *rhs; in eval_func() local
[all …]
H A Deft.c202 dosubscribe(struct node *lhs, struct node *rhs, void *arg) in dosubscribe() argument
212 dodiscardprint(struct node *lhs, struct node *rhs, void *arg) in dodiscardprint() argument
249 doopendict(const char *lhs, void *rhs, void *arg) in doopendict() argument
/illumos-gate/usr/src/lib/libfru/include/
H A DStr.h43 Str(const Str& rhs);
46 void operator=(const Str& rhs);
49 int operator != (const Str& rhs) const;
50 int operator == (const Str& rhs) const;
53 Str& operator<<(Str rhs);
60 int compare(const Str& rhs) const;
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_aggregate.c67 dt_aggregate_countcmp(int64_t *lhs, int64_t *rhs) in dt_aggregate_countcmp() argument
70 int64_t rvar = *rhs; in dt_aggregate_countcmp()
98 dt_aggregate_averagecmp(int64_t *lhs, int64_t *rhs) in dt_aggregate_averagecmp() argument
101 int64_t ravg = rhs[0] ? (rhs[1] / rhs[0]) : 0; in dt_aggregate_averagecmp()
113 dt_aggregate_stddevcmp(int64_t *lhs, int64_t *rhs) in dt_aggregate_stddevcmp() argument
116 uint64_t rsd = dt_stddev((uint64_t *)rhs, 1); in dt_aggregate_stddevcmp()
180 dt_aggregate_lquantizedcmp(int64_t *lhs, int64_t *rhs) in dt_aggregate_lquantizedcmp() argument
183 long double rsum = dt_aggregate_lquantizedsum(rhs); in dt_aggregate_lquantizedcmp()
199 rzero = dt_aggregate_lquantizedzero(rhs); in dt_aggregate_lquantizedcmp()
258 dt_aggregate_llquantizedcmp(int64_t *lhs, int64_t *rhs) in dt_aggregate_llquantizedcmp() argument
[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/tools/smatch/src/
H A Dsparse-llvm.c536 LLVMValueRef lhs, rhs, target; in output_op_binary() local
540 rhs = get_ioperand(fn, insn->type, insn->src2); 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()
553 target = LLVMBuildMul(fn->builder, lhs, rhs, target_name); in output_op_binary()
556 target = LLVMBuildUDiv(fn->builder, lhs, rhs, target_name); in output_op_binary()
560 target = LLVMBuildSDiv(fn->builder, lhs, rhs, target_name); in output_op_binary()
564 target = LLVMBuildURem(fn->builder, lhs, rhs, target_name); in output_op_binary()
568 target = LLVMBuildSRem(fn->builder, lhs, rhs, target_name); in output_op_binary()
572 target = LLVMBuildShl(fn->builder, lhs, rhs, target_name); in output_op_binary()
[all …]
/illumos-gate/usr/src/cmd/man/
H A Dmakewhatis.c375 char *rhs; in trim_rhs() local
377 rhs = &str[strlen(str)]; in trim_rhs()
378 while (--rhs > str && isspace(*rhs)) in trim_rhs()
380 *++rhs = '\0'; in trim_rhs()
381 return (rhs); in trim_rhs()
407 char *rhs; in name_section_line() local
412 rhs = trim_rhs(line); in name_section_line()
415 if (*--rhs == '"') in name_section_line()
416 *rhs = '\0'; in name_section_line()
/illumos-gate/usr/src/cmd/pgrep/
H A Didtab.c77 idkey_t rhs = *((idkey_t *)rhsp); in idtab_compare() local
79 if (lhs == rhs) in idtab_compare()
82 return (lhs > rhs ? 1 : -1); in idtab_compare()
/illumos-gate/usr/src/cmd/mandoc/
H A Dterm.c920 const char *seq, *rhs; in term_strlen() local
941 rhs = NULL; in term_strlen()
954 rhs = mchars_spec2str(seq, ssz, &rsz); in term_strlen()
955 if (rhs != NULL) in term_strlen()
968 rhs = "pdf"; in term_strlen()
971 rhs = "ps"; in term_strlen()
974 rhs = "ascii"; in term_strlen()
977 rhs = "utf8"; in term_strlen()
986 rhs = seq + ssz; in term_strlen()
987 while (seq < rhs) { in term_strlen()
[all …]
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_hash.c141 ipmi_hash_strcmp(const void *lhs, const void *rhs) in ipmi_hash_strcmp() argument
143 return (strcmp(lhs, rhs)); in ipmi_hash_strcmp()
153 ipmi_hash_ptrcmp(const void *lhs, const void *rhs) in ipmi_hash_ptrcmp() argument
155 const uintptr_t *l = lhs, *r = rhs; in ipmi_hash_ptrcmp()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gelf.c305 GElf_Phdr *rhs = (GElf_Phdr *)rp; 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()
316 if (rhs->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()
334 if (rhs->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 …]
/illumos-gate/usr/src/lib/libproc/common/
H A DPstack.c231 uintptr_t rhs = *((const uintptr_t *)rhp); in sort_uclist() local
233 if (lhs < rhs) in sort_uclist()
235 if (lhs > rhs) in sort_uclist()
/illumos-gate/usr/src/ucbcmd/sed/
H A Dsed.h109 char *rhs; member
121 char *rhs; member
/illumos-gate/usr/src/tools/scripts/
H A Dvalidate_pkg.py178 rhs = other
181 rhs = self
196 typerhs = rhs.name()
206 return (lhs.mediator is None) and (lhs.target != rhs.target)
216 return lhs.mode != rhs.mode
233 return len(lhs.hardpaths.intersection(rhs.hardpaths)) == 0
244 return lhs.path not in rhs.hardpaths

1234