Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/lib/libresolv2/include/isc/
H A Dassertions.h69 ((void) ((cond) || \
73 ((void) ((cond) || \
77 #define REQUIRE(cond) ((void) (cond)) argument
78 #define REQUIRE_ERR(cond) ((void) (cond)) argument
83 ((void) ((cond) || \
91 #define ENSURE(cond) ((void) (cond)) argument
92 #define ENSURE_ERR(cond) ((void) (cond)) argument
105 #define INSIST(cond) ((void) (cond)) argument
106 #define INSIST_ERR(cond) ((void) (cond)) argument
119 #define INVARIANT(cond) ((void) (cond)) argument
[all …]
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dassert.h68 # define SM_REQUIRE(cond) \ argument
70 "SM_REQUIRE(" #cond ") failed"), 0)))
72 # define SM_REQUIRE(cond) \ argument
77 # define SM_REQUIRE(cond) ((void) 0) argument
85 # define SM_ENSURE(cond) \ argument
87 "SM_ENSURE(" #cond ") failed"), 0)))
89 # define SM_ENSURE(cond) \ argument
94 # define SM_ENSURE(cond) ((void) 0) argument
99 # define SM_ASSERT(cond) \ argument
103 # define SM_ASSERT(cond) \ argument
[all …]
H A Dtest.h24 # define SM_TEST(cond) sm_test(cond, #cond, __FILE__, __LINE__) argument
26 # define SM_TEST(cond) sm_test(cond, "cond", __FILE__, __LINE__) argument
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_test.c141 cfga_cond_t cond; in memory_test_normal() local
156 cond = CFGA_COND_OK; in memory_test_normal()
190 cond = CFGA_COND_FAILED; in memory_test_normal()
200 cond = CFGA_COND_FAILED; in memory_test_normal()
238 cond = CFGA_COND_FAILED; in memory_test_normal()
266 cond = CFGA_COND_FAILED; in memory_test_normal()
296 cfga_cond_t cond; in memory_test_quick() local
311 cond = CFGA_COND_OK; in memory_test_quick()
356 cond = CFGA_COND_FAILED; in memory_test_quick()
425 cfga_cond_t cond; in memory_test_extended() local
[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 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 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 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()
1635 pseudo_t cond = insn->cond; in simplify_branch() local
1638 if (constant(cond)) { in simplify_branch()
1650 kill_use(&insn->cond); in simplify_branch()
1651 insn->cond = NULL; in simplify_branch()
1694 pseudo_t cond = insn->cond; in simplify_switch() local
1698 if (!constant(cond)) in simplify_switch()
[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()
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()
704 (cond & CHECK_MEDIA_IS_NOT_WRITABLE) && 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.c431 nscd_acc_data_t *data, cond_t *cond) in _nscd_cond_wait() argument
447 if (cond == NULL) in _nscd_cond_wait()
450 (void) cond_wait(cond, access->data_mutex); in _nscd_cond_wait()
501 cond_t *cond = NULL; in _nscd_alloc() local
524 if ((cond = (cond_t *)calloc(1, sizeof (cond_t))) == in _nscd_alloc()
531 (void) cond_init(cond, USYNC_THREAD, NULL); in _nscd_alloc()
541 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/sgs/gprof/common/
H A Dsparc.h88 cond:4, member
95 cond:4, member
105 cond:4, member
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Ditm_comp.y350 itm_cond_t *cond; variable
360 $$->obj = cond;
361 cond->type = ITM_COND_BETWEEN;
365 &(cond->operand.place),
374 itm_cond_t *cond; variable
380 $$->obj = cond;
381 cond->type = ITM_COND_EXPR;
385 &(cond->operand.place),
394 itm_cond_t *cond; variable
404 $$->obj = cond;
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dcmd3.c980 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()
1034 cond = CANY; in elsecmd()
[all …]
/illumos-gate/usr/src/uts/common/io/e1000g/
H A De1000g_debug.h96 #define E1000G_DEBUG_STAT_COND(val, cond) if (cond) (val)++; argument
108 #define E1000G_DEBUG_STAT_COND(val, cond)
/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 <<<"
/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
/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/cmd/abi/spectrans/parser/
H A Derrlog.h78 #define assert(cond, string) \ argument
79 if (!(cond)) { \

12345