Home
last modified time | relevance | path

Searched refs:rhs (Results 1 – 25 of 82) 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 =()
79 return (strcmp(str_, rhs.str_) == 0); in operator ==()
85 return (strcmp(str_, rhs.str_) != 0); in operator !=()
95 Str::operator<<(Str rhs) in operator <<() argument
101 strcat(str_, rhs.peak()); in operator <<()
139 Str::compare(const Str& rhs) const in compare()
[all …]
/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__, \
85 tostring(lhs), #rhs, tostring(rhs)), 0)))
87 #define ASSERTne(lhs, rhs, tostring) \ argument
88 ((void)(((lhs) != (rhs)) || (outfl(O_ABORT, __FILE__, __LINE__, \
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 Dcheck.c59 struct node *rhs);
749 if (rhs->u.stmt.flags & STMT_REF) in check_refcount()
752 outfl(O_WARN|O_NONL, rhs->file, rhs->line, in check_refcount()
846 tryrhs = arrow->u.arrow.rhs; in check_cycle_lhs()
852 tryrhs = arrow->u.arrow.rhs; in check_cycle_lhs()
882 check_cycle_rhs(rhs); in check_cycle_lhs_try()
890 check_cycle_rhs(struct node *rhs) in check_cycle_rhs() argument
894 if (rhs->t == T_LIST) { in check_cycle_rhs()
900 ASSERT(rhs->t == T_EVENT); in check_cycle_rhs()
907 rhs->file, rhs->line, in check_cycle_rhs()
[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);
H A Dlut.h45 typedef int (*lut_cmp)(void *lhs, void *rhs);
46 struct lut *lut_add(struct lut *root, void *lhs, void *rhs,
50 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.c78 lut_add(struct lut *root, void *lhs, void *rhs, lut_cmp cmp_func) in lut_add() argument
91 tmp->lut_rhs = rhs; in lut_add()
107 (*tmp_hdl)->lut_rhs = rhs; in lut_add()
/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;
177 $rhs = $2;
201 if defined($val2keys{$rhs});
202 $keys2val{$lhs} = $rhs;
203 $val2keys{$rhs} = $lhs;
[all …]
/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()
153 lut_free(struct lut *root, void (*callback)(void *rhs)) in lut_free() argument
169 printer(const char *lhs, void *rhs, void *arg) in printer() argument
[all …]
H A Dlut.h38 struct lut *lut_add(struct lut *root, const char *lhs, void *rhs);
42 void (*callback)(const char *lhs, void *rhs, void *arg), void *arg);
43 void lut_free(struct lut *root, void (*callback)(void *rhs));
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dconfig.c193 ASSERT(rhs != NULL); in addconfigprop()
194 ASSERT(rhs->t == T_QUOTE); in addconfigprop()
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()
222 s = rhs->u.name.s; in addconfig()
223 num = rhs->u.name.child->u.ull; in addconfig()
249 rhs = rhs->u.name.next; in addconfig()
[all …]
H A Deval.c73 if (rhs == NULL) 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()
218 struct node *rhs; in eval_func() local
234 if (!rhs || !lhs) in eval_func()
252 tree_free(rhs); in eval_func()
345 if (!rhs || !lhs) in eval_func()
359 path = ipath2str(NULL, ipath(rhs)); in eval_func()
[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.h45 Str(const Str& rhs);
48 void operator=(const Str& rhs);
51 int operator != (const Str& rhs) const;
52 int operator == (const Str& rhs) const;
55 Str& operator<<(Str rhs);
62 int compare(const Str& rhs) const;
/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.c70 int64_t rvar = *rhs; in dt_aggregate_countcmp()
101 int64_t ravg = rhs[0] ? (rhs[1] / rhs[0]) : 0; in dt_aggregate_averagecmp()
116 uint64_t rsd = dt_stddev((uint64_t *)rhs, 1); in dt_aggregate_stddevcmp()
199 rzero = dt_aggregate_lquantizedzero(rhs); in dt_aggregate_lquantizedcmp()
276 rzero = rhs[1]; in dt_aggregate_llquantizedcmp()
299 rzero = rhs[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 …]
/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()
604 target = LLVMBuildOr(fn->builder, lhs, rhs, target_name); in output_op_binary()
621 LLVMValueRef lhs, rhs, target; in output_op_compare() local
626 rhs = constant_value(insn->src2->value, LLVMTypeOf(lhs)); in output_op_compare()
628 rhs = pseudo_to_value(fn, NULL, insn->src2); in output_op_compare()
629 if (!rhs) in output_op_compare()
630 rhs = LLVMGetUndef(symbol_type(insn->type)); in output_op_compare()
639 rhs = value_to_pvalue(fn, &ptr_ctype, rhs); in output_op_compare()
[all …]
/illumos-gate/usr/src/cmd/pgrep/
H A Didtab.c79 idkey_t rhs = *((idkey_t *)rhsp); 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/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/mandoc/
H A Dterm.c920 const char *seq, *rhs; in term_strlen() local
941 rhs = NULL; 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()
1007 if (rhs == NULL) { in term_strlen()
[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/cmd/mdb/common/mdb/
H A Dmdb_gelf.c305 GElf_Phdr *rhs = (GElf_Phdr *)rp; in gelf_phdr_compare() local
312 if (lhs->p_vaddr != rhs->p_vaddr) { in gelf_phdr_compare()
316 if (rhs->p_vaddr == 0) 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()
854 Elf32_Sym *rhs = *((Elf32_Sym **)rp); in gelf32_sym_compare() local
856 if (lhs->st_value != rhs->st_value) in gelf32_sym_compare()
882 Elf64_Sym *rhs = *((Elf64_Sym **)rp); in gelf64_sym_compare() local
[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.py177 rhs = other
180 rhs = self
195 typerhs = rhs.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

1234