Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 119) sorted by relevance

12345

/illumos-gate/usr/src/lib/libresolv2/include/isc/
H A Dassertions.h68 #define REQUIRE(cond) \ argument
69 ((void) ((cond) || \
71 #cond, 0), 0)))
72 #define REQUIRE_ERR(cond) \ argument
73 ((void) ((cond) || \
75 #cond, 1), 0)))
77 #define REQUIRE(cond) ((void) (cond)) argument
78 #define REQUIRE_ERR(cond) ((void) (cond)) argument
82 #define ENSURE(cond) \ argument
83 ((void) ((cond) || \
[all …]
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dassert.h66 # define SM_REQUIRE(cond) \ argument
67 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \
68 "SM_REQUIRE(" #cond ") failed"), 0)))
70 # define SM_REQUIRE(cond) \ argument
71 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \
75 # define SM_REQUIRE(cond) ((void) 0) argument
83 # define SM_ENSURE(cond) \ argument
84 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \
85 "SM_ENSURE(" #cond ") failed"), 0)))
87 # define SM_ENSURE(cond) \ argument
[all …]
H A Dtest.h22 # define SM_TEST(cond) sm_test(cond, #cond, __FILE__, __LINE__) argument
24 # define SM_TEST(cond) sm_test(cond, "cond", __FILE__, __LINE__) argument
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_test.c91 SET_CONDITION(handle, cond);\
139 cfga_cond_t cond; in memory_test_normal() local
154 cond = CFGA_COND_OK; in memory_test_normal()
185 cond != CFGA_COND_FAILED) in memory_test_normal()
186 cond = CFGA_COND_FAILING; in memory_test_normal()
188 cond = CFGA_COND_FAILED; in memory_test_normal()
198 cond = CFGA_COND_FAILED; in memory_test_normal()
227 cond != CFGA_COND_FAILED) in memory_test_normal()
228 cond = CFGA_COND_FAILING; in memory_test_normal()
230 cond = CFGA_COND_FAILED; in memory_test_normal()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/px/
H A Dpx_err_gen.c53 switch (epkt->rc_descr.cond) { in px_cb_epkt_severity()
64 switch (epkt->rc_descr.cond) { in px_cb_epkt_severity()
101 switch (epkt->rc_descr.cond) { in px_cb_epkt_severity()
123 switch (epkt->rc_descr.cond) { in px_cb_epkt_severity()
137 switch (epkt->rc_descr.cond) { in px_cb_epkt_severity()
161 switch (epkt->rc_descr.cond) { in px_cb_epkt_severity()
186 switch (epkt->rc_descr.cond) { in px_cb_epkt_severity()
197 switch (epkt->rc_descr.cond) { in px_cb_epkt_severity()
215 switch (epkt->rc_descr.cond) { in px_cb_epkt_severity()
245 switch (epkt->rc_descr.cond) { in px_mmu_epkt_severity()
[all …]
H A Dpx_err.c501 epkt->rc_descr.phase, epkt->rc_descr.cond, in px_err_send_epkt_erpt()
556 epkt->rc_descr.phase, epkt->rc_descr.cond, in px_err_log_handle()
578 switch (epkt->rc_descr.cond) { in px_fix_legacy_epkt()
594 switch (epkt->rc_descr.cond) { in px_fix_legacy_epkt()
604 switch (epkt->rc_descr.cond) { in px_fix_legacy_epkt()
609 epkt->rc_descr.cond = CND_IRR; in px_fix_legacy_epkt()
620 switch (epkt->rc_descr.cond) { in px_fix_legacy_epkt()
631 epkt->rc_descr.cond = CND_OV; in px_fix_legacy_epkt()
640 switch (epkt->rc_descr.cond) { in px_fix_legacy_epkt()
651 switch (epkt->rc_descr.cond) { in px_fix_legacy_epkt()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_debug.h22 # define Dprint(cond, args) /*empty*/ argument
23 # define DprintQ(cond, args, query, size) /*empty*/ argument
27 # define Dprint(cond, args) if (cond) {fprintf args;} else {} argument
28 # define DprintQ(cond, args, query, size) if (cond) {\ argument
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_reboot.c75 int cond = AUC_NOAUDIT; in audit_reboot_success() local
81 (void) auditon(A_GETCOND, (caddr_t)&cond, sizeof (cond)); in audit_reboot_success()
82 canaudit = ((cond == AUC_AUDITING) || (cond == AUC_NOSPACE)); in audit_reboot_success()
H A Daudit_halt.c90 int cond = AUC_NOAUDIT; in audit_halt_success() local
96 (void) auditon(A_GETCOND, (caddr_t)&cond, sizeof (cond)); in audit_halt_success()
97 canaudit = ((cond == AUC_AUDITING) || (cond == AUC_NOSPACE)); in audit_halt_success()
/illumos-gate/usr/src/tools/smatch/src/
H A Dflow.c134 int cond; in try_to_simplify_bb() local
147 cond = pseudo_truth_value(pseudo); in try_to_simplify_bb()
148 if (cond < 0) in try_to_simplify_bb()
150 target = cond ? second->bb_true : second->bb_false; in try_to_simplify_bb()
198 pseudo_t cond = br->cond; in simplify_phi_branch() local
201 if (cond->type != PSEUDO_REG) in simplify_phi_branch()
203 def = cond->def; in simplify_phi_branch()
221 if (!insn || insn->opcode != OP_CBR || insn->cond != br->cond) in simplify_branch_branch()
636 pseudo_t cond = br->cond; in rewrite_branch_bb() local
637 if (cond->type != PSEUDO_VAL) in rewrite_branch_bb()
[all …]
H A Dcheck_double_checking.c59 static int conditions_match(struct expression *cond, struct expression *prev) in conditions_match() argument
63 if (prev == cond) in conditions_match()
67 if (conditions_match(cond, prev->left) || in conditions_match()
68 conditions_match(cond, prev->right)) in conditions_match()
79 static int is_obvious_else(struct expression *cond) in is_obvious_else() argument
100 return conditions_match(cond, prev); in is_obvious_else()
H A Dsimplify.c141 assert(br->cond); in if_convert_phi()
348 kill_use(&insn->cond); in kill_insn()
1548 pseudo_t cond, src1, src2; in simplify_select() local
1553 cond = insn->src1; in simplify_select()
1556 if (constant(cond) || src1 == src2) { in simplify_select()
1559 take = cond->value ? src1 : src2; in simplify_select()
1560 kill = cond->value ? &insn->src3 : &insn->src2; in simplify_select()
1582 if (cond == src2 && is_zero(src1)) { in simplify_select()
1624 replace_pseudo(br, &br->cond, newcond); in simplify_cond_branch()
1635 pseudo_t cond = insn->cond; in simplify_branch() local
[all …]
/illumos-gate/usr/src/cmd/cdrw/
H A Ddevice.c644 check_device(cd_device *dev, int cond) in check_device() argument
650 if ((errmsg == NULL) && (cond & CHECK_TYPE_NOT_CDROM) && in check_device()
656 if ((errmsg == NULL) && (cond & CHECK_DEVICE_NOT_READY) && in check_device()
662 if ((errmsg == NULL) && (cond & CHECK_DEVICE_NOT_WRITABLE)) { in check_device()
669 if ((errmsg == NULL) && (cond & CHECK_NO_MEDIA)) { in check_device()
683 if ((errmsg == NULL) && ((cond & CHECK_MEDIA_IS_NOT_BLANK) || in check_device()
684 (cond & CHECK_MEDIA_IS_NOT_WRITABLE) || in check_device()
685 (cond & CHECK_MEDIA_IS_NOT_ERASABLE))) { in check_device()
696 if (!erasable && (cond & CHECK_MEDIA_IS_NOT_ERASABLE)) in check_device()
700 (cond & CHECK_MEDIA_IS_NOT_BLANK)) in check_device()
[all …]
/illumos-gate/usr/src/common/bzip2/
H A Dbzlib_private.h63 #define AssertH(cond,errcode) \ argument
64 { if (!(cond)) BZ2_bz__AssertH__fail ( errcode ); }
67 #define AssertD(cond,msg) \ argument
68 { if (!(cond)) { \
74 #define AssertD(cond,msg) /* */ argument
94 #define AssertH(cond,errcode) \ argument
95 { if (!(cond) && &bz_internal_error != NULL) bz_internal_error ( errcode ); }
96 #define AssertD(cond,msg) do { } while (0) argument
/illumos-gate/usr/src/uts/common/io/igb/
H A Digb_debug.h59 #define IGB_DEBUG_STAT_COND(val, cond) if (cond) (val)++ argument
63 #define IGB_DEBUG_STAT_COND(val, cond) argument
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_access.c429 nscd_acc_data_t *data, cond_t *cond) in _nscd_cond_wait() argument
445 if (cond == NULL) in _nscd_cond_wait()
448 (void) cond_wait(cond, access->data_mutex); in _nscd_cond_wait()
499 cond_t *cond = NULL; in _nscd_alloc() local
522 if ((cond = (cond_t *)calloc(1, sizeof (cond_t))) == in _nscd_alloc()
529 (void) cond_init(cond, USYNC_THREAD, NULL); in _nscd_alloc()
539 access->data_cond = cond; in _nscd_alloc()
/illumos-gate/usr/src/uts/sparc/v9/fpu/
H A Dv9instr.c161 } cond; in fmovcc_fcc() local
181 cond = (enum icc_type) (inst.rs1 & 0xf); in fmovcc_fcc()
182 switch (cond) { in fmovcc_fcc()
274 } cond; in fmovcc_icc() local
294 cond = (enum icc_type) (inst.rs1 & 0xf); in fmovcc_icc()
295 switch (cond) { in fmovcc_icc()
488 } cond; in movcc() local
494 cond = (enum icc_type) (pinst.rs1 & 0xf); in movcc()
512 switch (cond) { in movcc()
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Ditm_comp.y348 itm_cond_t *cond; variable
357 cond = malloc_vital(sizeof (itm_cond_t));
358 $$->obj = cond;
359 cond->type = ITM_COND_BETWEEN;
360 cond->operand.place.itm_ptr = (itm_place2_t)range;
363 &(cond->operand.place),
372 itm_cond_t *cond; variable
377 cond = malloc_vital(sizeof (itm_cond_t));
378 $$->obj = cond;
379 cond->type = ITM_COND_EXPR;
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dcmd3.c976 if (cond != CANY) { in ifcmd()
980 cond = CANY; in ifcmd()
984 cond = CRCV; in ifcmd()
988 cond = CSEND; in ifcmd()
992 cond = CTTY; in ifcmd()
1011 switch (cond) { in elsecmd()
1017 cond = CRCV; in elsecmd()
1021 cond = CSEND; in elsecmd()
1025 cond = CNOTTY; in elsecmd()
1029 cond = CTTY; in elsecmd()
[all …]
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dsparc.h82 cond:4, member
89 cond:4, member
99 cond:4, member
/illumos-gate/usr/src/uts/common/io/e1000g/
H A De1000g_debug.h94 #define E1000G_DEBUG_STAT_COND(val, cond) if (cond) (val)++; argument
106 #define E1000G_DEBUG_STAT_COND(val, cond)
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/include/
H A Dutils.h109 #define ASSERT_STATIC(cond) \ argument
112 switch(dummy_zero){case 0:case (cond):;} \
116 #define ASSERT_STATIC(cond) argument
H A Ddebug.h847 #define ERR_IF(cond)(((cond)==TRUE) ? (dbg_out(NULL, WARN, DBG_ERR_STR" ErrIf failed %s\n",#cond), … argument
848 #define WRN_IF(cond)(((cond)==TRUE) ? (dbg_out(NULL, WARN, DBG_WRN_STR" WrnIf failed %s\n",#cond), … argument
882 #define ERR_IF(cond)((cond)==TRUE) argument
883 #define WRN_IF(cond)((cond)==TRUE) argument
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dpthr_cond.c136 pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr) in pthread_cond_init() argument
155 else if ((error = cond_init((cond_t *)cond, type, NULL)) == 0) in pthread_cond_init()
156 ((cond_t *)cond)->cond_clockid = (uint8_t)clock_id; in pthread_cond_init()
/illumos-gate/usr/src/test/util-tests/tests/awk/examples/awk/
H A Dt.assert3 function assert(cond) { # assertion
4 if (!cond) print " >>> assert failed <<<"

12345