Searched refs:cond (Results 1 - 25 of 255) sorted by relevance

1234567891011

/freebsd-current/lib/libstdthreads/
H A Dcnd.c36 cnd_broadcast(cnd_t *cond) argument
39 if (pthread_cond_broadcast(cond) != 0)
45 cnd_destroy(cnd_t *cond) argument
48 (void)pthread_cond_destroy(cond);
52 cnd_init(cnd_t *cond) argument
55 switch (pthread_cond_init(cond, NULL)) {
66 cnd_signal(cnd_t *cond) argument
69 if (pthread_cond_signal(cond) != 0)
75 cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx, argument
79 switch (pthread_cond_timedwait(cond, mt
90 cnd_wait(cnd_t *cond, mtx_t *mtx) argument
[all...]
/freebsd-current/lib/libc/resolv/
H A Dres_debug.h24 # define Dprint(cond, args) /*empty*/
25 # define DprintQ(cond, args, query, size) /*empty*/
29 # define Dprint(cond, args) if (cond) {fprintf args;} else {}
30 # define DprintQ(cond, args, query, size) if (cond) {\
/freebsd-current/contrib/sendmail/include/sm/
H A Dassert.h66 # define SM_REQUIRE(cond) \
67 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \
68 "SM_REQUIRE(" #cond ") failed"), 0)))
70 # define SM_REQUIRE(cond) \
71 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \
72 "SM_REQUIRE(cond) failed"), 0)))
75 # define SM_REQUIRE(cond) ((void) 0)
83 # define SM_ENSURE(cond) \
84 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \
85 "SM_ENSURE(" #cond ") faile
[all...]
H A Dtest.h22 # define SM_TEST(cond) sm_test(cond, #cond, __FILE__, __LINE__)
24 # define SM_TEST(cond) sm_test(cond, "cond", __FILE__, __LINE__)
/freebsd-current/contrib/bmake/unit-tests/
H A Dcond-token-string.exp1 make: "cond-token-string.mk" line 15: while evaluating "${:Uvalue:Z}"": Unknown modifier "Z"
2 make: "cond-token-string.mk" line 15: Malformed conditional ("" != "${:Uvalue:Z}")
3 make: "cond-token-string.mk" line 25: xvalue is not defined.
4 make: "cond-token-string.mk" line 32: Malformed conditional (x${:Uvalue} == "")
5 make: "cond-token-string.mk" line 42: Expected.
7 make: "cond-token-string.mk" line 52: The string literal "UNDEF" is not empty.
9 make: "cond-token-string.mk" line 61: The string literal " " is not empty, even though it consists of whitespace only.
11 make: "cond-token-string.mk" line 71: An undefined variable in quotes expands to an empty string, which then evaluates to false.
13 make: "cond-token-string.mk" line 77: A nonempty expression evaluates to true.
15 make: "cond
[all...]
/freebsd-current/contrib/ntp/libntp/lib/isc/include/isc/
H A Dassertions.h85 #define ISC_REQUIRE(cond) \
86 ((void) ((cond) || \
89 #cond), 0)))
91 #define ISC_REQUIRE(cond) ((void) 0)
95 #define ISC_ENSURE(cond) \
96 ((void) ((cond) || \
99 #cond), 0)))
101 #define ISC_ENSURE(cond) ((void) 0)
105 #define ISC_INSIST(cond) \
106 ((void) ((cond) || \
[all...]
H A Derror.h57 #define ISC_ERROR_RUNTIMECHECK(cond) \
58 ((void) ((cond) || \
59 ((isc_error_runtimecheck)(__FILE__, __LINE__, #cond), 0)))
/freebsd-current/contrib/libevent/
H A Devthread_win32.c130 CONDITION_VARIABLE *cond = mm_malloc(sizeof(CONDITION_VARIABLE)); local
131 if (!cond)
133 InitializeConditionVariable_fn(cond);
134 return cond;
140 CONDITION_VARIABLE *cond = cond_; local
142 mm_free(cond);
146 evthread_win32_condvar_signal(void *cond, int broadcast) argument
148 CONDITION_VARIABLE *cond = cond_; local
150 WakeAllConditionVariable_fn(cond);
152 WakeConditionVariable_fn(cond);
159 CONDITION_VARIABLE *cond = cond_; local
192 struct evthread_win32_cond *cond; local
211 struct evthread_win32_cond *cond = cond_; local
220 struct evthread_win32_cond *cond = cond_; local
235 struct evthread_win32_cond *cond = cond_; local
[all...]
H A Devthread-internal.h159 #define EVTHREAD_FREE_COND(cond) \
161 if (cond) \
162 evthread_cond_fns_.free_condition((cond)); \
164 /** Signal one thread waiting on cond */
165 #define EVTHREAD_COND_SIGNAL(cond) \
166 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 0) : 0 )
167 /** Signal all threads waiting on cond */
168 #define EVTHREAD_COND_BROADCAST(cond) \
169 ( (cond)
[all...]
H A Devthread_pthread.c106 pthread_cond_t *cond = mm_malloc(sizeof(pthread_cond_t)); local
107 if (!cond)
109 if (pthread_cond_init(cond, NULL)) {
110 mm_free(cond);
113 return cond;
119 pthread_cond_t *cond = cond_; local
120 pthread_cond_destroy(cond);
121 mm_free(cond);
127 pthread_cond_t *cond = cond_; local
130 r = pthread_cond_broadcast(cond);
140 pthread_cond_t *cond = cond_; local
[all...]
/freebsd-current/contrib/ntp/sntp/libevent/
H A Devthread_win32.c130 CONDITION_VARIABLE *cond = mm_malloc(sizeof(CONDITION_VARIABLE)); local
131 if (!cond)
133 InitializeConditionVariable_fn(cond);
134 return cond;
140 CONDITION_VARIABLE *cond = cond_; local
142 mm_free(cond);
146 evthread_win32_condvar_signal(void *cond, int broadcast) argument
148 CONDITION_VARIABLE *cond = cond_; local
150 WakeAllConditionVariable_fn(cond);
152 WakeConditionVariable_fn(cond);
159 CONDITION_VARIABLE *cond = cond_; local
192 struct evthread_win32_cond *cond; local
211 struct evthread_win32_cond *cond = cond_; local
220 struct evthread_win32_cond *cond = cond_; local
235 struct evthread_win32_cond *cond = cond_; local
[all...]
H A Devthread-internal.h159 #define EVTHREAD_FREE_COND(cond) \
161 if (cond) \
162 evthread_cond_fns_.free_condition((cond)); \
164 /** Signal one thread waiting on cond */
165 #define EVTHREAD_COND_SIGNAL(cond) \
166 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 0) : 0 )
167 /** Signal all threads waiting on cond */
168 #define EVTHREAD_COND_BROADCAST(cond) \
169 ( (cond)
[all...]
H A Devthread_pthread.c106 pthread_cond_t *cond = mm_malloc(sizeof(pthread_cond_t)); local
107 if (!cond)
109 if (pthread_cond_init(cond, NULL)) {
110 mm_free(cond);
113 return cond;
119 pthread_cond_t *cond = cond_; local
120 pthread_cond_destroy(cond);
121 mm_free(cond);
127 pthread_cond_t *cond = cond_; local
130 r = pthread_cond_broadcast(cond);
140 pthread_cond_t *cond = cond_; local
[all...]
/freebsd-current/contrib/atf/atf-c/detail/
H A Dsanity.c59 atf_sanity_inv(const char *file, int line, const char *cond) argument
61 fail("Invariant check failed at %s:%d: %s", file, line, cond);
65 atf_sanity_pre(const char *file, int line, const char *cond) argument
67 fail("Precondition check failed at %s:%d: %s", file, line, cond);
71 atf_sanity_post(const char *file, int line, const char *cond) argument
73 fail("Postcondition check failed at %s:%d: %s", file, line, cond);
/freebsd-current/usr.bin/calendar/tests/
H A Dcond.sh2 CALENDAR_FILE="-f ${SRCDIR}/calendar.cond"
11 REGRESSION_TEST(`cond',`$CALENDAR -t 01.01.2020 -A 30')
/freebsd-current/usr.bin/sdiotool/
H A Dlinux_compat.h47 #define WARN_ON(cond) ({ \
48 bool __ret = (cond); \
51 #cond, __FILE__, __LINE__); \
/freebsd-current/contrib/ntp/libntp/lib/isc/win32/
H A Dcondition.c32 isc_condition_init(isc_condition_t *cond) { argument
35 REQUIRE(cond != NULL);
37 cond->waiters = 0;
46 cond->events[LSIGNAL] = h;
52 ISC_LIST_INIT(cond->threadlist);
98 find_thread_condition(unsigned long thrd, isc_condition_t *cond, argument
108 for (threadcond = ISC_LIST_HEAD(cond->threadlist);
121 return (register_thread(thrd, cond, threadcondp));
125 isc_condition_signal(isc_condition_t *cond) { argument
131 REQUIRE(cond !
142 isc_condition_broadcast(isc_condition_t *cond) argument
171 isc_condition_destroy(isc_condition_t *cond) argument
206 wait(isc_condition_t *cond, isc_mutex_t *mutex, DWORD milliseconds) argument
235 isc_condition_wait(isc_condition_t *cond, isc_mutex_t *mutex) argument
240 isc_condition_waituntil(isc_condition_t *cond, isc_mutex_t *mutex, isc_time_t *t) argument
[all...]
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dwait_bit.h38 #define wait_var_event_killable(var, cond) \
39 wait_event_killable(linux_var_waitq, cond)
41 #define wait_var_event_interruptible(var, cond) \
42 wait_event_interruptible(linux_var_waitq, cond)
/freebsd-current/sys/contrib/zstd/lib/common/
H A Dthreading.c103 int ZSTD_pthread_cond_init(ZSTD_pthread_cond_t* cond, pthread_condattr_t const* attr) argument
105 *cond = (pthread_cond_t*)ZSTD_malloc(sizeof(pthread_cond_t));
106 if (!*cond)
108 return pthread_cond_init(*cond, attr);
111 int ZSTD_pthread_cond_destroy(ZSTD_pthread_cond_t* cond) argument
113 if (!*cond)
116 int const ret = pthread_cond_destroy(*cond);
117 ZSTD_free(*cond);
/freebsd-current/contrib/llvm-project/compiler-rt/lib/builtins/arm/
H A Daeabi_dcmp.S28 #define DEFINE_AEABI_DCMP(cond) \
31 DEFINE_COMPILERRT_FUNCTION(__aeabi_dcmp ## cond) \
34 bl SYMBOL_NAME(__ ## cond ## df2) SEPARATOR \
36 b ## cond 1f SEPARATOR \
42 END_COMPILERRT_FUNCTION(__aeabi_dcmp ## cond)
H A Daeabi_fcmp.S28 #define DEFINE_AEABI_FCMP(cond) \
31 DEFINE_COMPILERRT_FUNCTION(__aeabi_fcmp ## cond) \
34 bl SYMBOL_NAME(__ ## cond ## sf2) SEPARATOR \
36 b ## cond 1f SEPARATOR \
42 END_COMPILERRT_FUNCTION(__aeabi_fcmp ## cond)
/freebsd-current/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_debug.h36 #define KMP_ASSERT(cond) \
37 if (!(cond)) { \
38 __kmp_debug_assert(#cond, __FILE__, __LINE__); \
40 #define KMP_ASSERT2(cond, msg) \
41 if (!(cond)) { \
44 #define KMP_DEBUG_ASSERT(cond) KMP_ASSERT(cond)
45 #define KMP_DEBUG_ASSERT2(cond, msg) KMP_ASSERT2(cond, msg)
49 #define KMP_ASSERT(cond) \
[all...]
/freebsd-current/contrib/xz/src/common/
H A Dmythread.h122 pthread_cond_t cond; member in struct:__anon3
241 ret = pthread_cond_init(&mycond->cond, &condattr);
259 return pthread_cond_init(&mycond->cond, NULL);
263 mythread_cond_destroy(mythread_cond *cond) argument
265 int ret = pthread_cond_destroy(&cond->cond);
271 mythread_cond_signal(mythread_cond *cond) argument
273 int ret = pthread_cond_signal(&cond->cond);
279 mythread_cond_wait(mythread_cond *cond, mythread_mute argument
289 mythread_cond_timedwait(mythread_cond *cond, mythread_mutex *mutex, const mythread_condtime *condtime) argument
300 mythread_condtime_set(mythread_condtime *condtime, const mythread_cond *cond, uint32_t timeout_ms) argument
446 mythread_cond_init(mythread_cond *cond) argument
458 mythread_cond_destroy(mythread_cond *cond) argument
468 mythread_cond_signal(mythread_cond *cond) argument
478 mythread_cond_wait(mythread_cond *cond, mythread_mutex *mutex) argument
492 mythread_cond_timedwait(mythread_cond *cond, mythread_mutex *mutex, const mythread_condtime *condtime) argument
518 mythread_condtime_set(mythread_condtime *condtime, const mythread_cond *cond, uint32_t timeout) argument
[all...]
/freebsd-current/sys/dev/vmware/vmci/
H A Dvmci_kernel_defs.h17 #define ASSERT(cond) KASSERT(cond, ("%s", #cond))
/freebsd-current/libexec/rtld-elf/
H A Ddebug.h50 #define assert(cond) ((cond) ? (void) 0 : \

Completed in 336 milliseconds

1234567891011