Searched refs:REQUIRE (Results 26 - 50 of 110) sorted by relevance

12345

/freebsd-12-stable/tests/sys/netinet/libalias/
H A Dutil.c51 #define REQUIRE(x) do { \ macro
95 REQUIRE(len >= 64 && len <= IP_MAXPACKET);
98 REQUIRE(p != NULL);
105 REQUIRE(p->ip_hl == 5);
116 REQUIRE(payload >= (int)sizeof(*u));
/freebsd-12-stable/contrib/ntp/lib/isc/unix/
H A Dfile.c92 REQUIRE(file != NULL);
93 REQUIRE(stats != NULL);
106 REQUIRE(file != NULL);
107 REQUIRE(itime != NULL);
125 REQUIRE(file != NULL && itime != NULL);
174 REQUIRE(path != NULL);
175 REQUIRE(templet != NULL);
176 REQUIRE(buf != NULL);
210 REQUIRE(file != NULL);
211 REQUIRE(temple
[all...]
H A Ddir.c45 REQUIRE(dir != NULL);
65 REQUIRE(VALID_DIR(dir));
66 REQUIRE(dirname != NULL);
110 REQUIRE(VALID_DIR(dir) && dir->handle != NULL);
142 REQUIRE(VALID_DIR(dir) && dir->handle != NULL);
153 REQUIRE(VALID_DIR(dir) && dir->handle != NULL);
166 REQUIRE(dirname != NULL);
177 REQUIRE(dirname != NULL);
197 REQUIRE(templet != NULL);
H A Dsyslog.c73 REQUIRE(str != NULL);
74 REQUIRE(facilityp != NULL);
H A Dkeyboard.c43 REQUIRE(keyboard != NULL);
84 REQUIRE(keyboard != NULL);
103 REQUIRE(keyboard != NULL);
104 REQUIRE(cp != NULL);
H A Dstrerror.c55 REQUIRE(buf != NULL);
69 REQUIRE(buf != NULL);
H A Dapp.c230 REQUIRE(VALID_APPCTX(ctx));
580 REQUIRE(VALID_APPCTX(ctx));
583 REQUIRE(main_thread == pthread_self());
716 REQUIRE(VALID_APPCTX(ctx));
720 REQUIRE(ctx->running);
771 REQUIRE(VALID_APPCTX(ctx));
775 REQUIRE(ctx->running);
825 REQUIRE(VALID_APPCTX(ctx));
840 REQUIRE(isc_g_appctx.running);
841 REQUIRE(!isc_g_appct
[all...]
/freebsd-12-stable/contrib/ntp/lib/isc/win32/
H A Dfile.c129 REQUIRE(file != NULL);
130 REQUIRE(stats != NULL);
206 REQUIRE(file != NULL);
207 REQUIRE(time != NULL);
229 REQUIRE(file != NULL && time != NULL);
267 REQUIRE(path != NULL);
268 REQUIRE(templet != NULL);
269 REQUIRE(buf != NULL);
300 REQUIRE(file != NULL);
301 REQUIRE(temple
[all...]
H A Dtime.c64 REQUIRE(i != NULL);
65 REQUIRE(nanoseconds < NS_PER_S);
76 REQUIRE(i != NULL);
89 REQUIRE(t != NULL);
90 REQUIRE(nanoseconds < NS_PER_S);
106 REQUIRE(t != NULL);
114 REQUIRE(t != NULL);
125 REQUIRE(t != NULL);
136 REQUIRE(t != NULL);
137 REQUIRE(
[all...]
H A Dapp.c141 REQUIRE(main_thread == GetCurrentThread());
206 REQUIRE(running);
225 REQUIRE(running);
247 REQUIRE(running);
248 REQUIRE(!blocked);
256 REQUIRE(running);
257 REQUIRE(blocked);
259 REQUIRE(blockedthread == GetCurrentThread());
H A Donce.c32 REQUIRE(controller != NULL && function != NULL);
H A Dcondition.c35 REQUIRE(cond != NULL);
67 REQUIRE(localcond != NULL && *localcond == NULL);
103 REQUIRE(threadcondp != NULL && *threadcondp == NULL);
131 REQUIRE(cond != NULL);
151 REQUIRE(cond != NULL);
175 REQUIRE(cond != NULL);
176 REQUIRE(cond->waiters == 0);
/freebsd-12-stable/contrib/ntp/lib/isc/
H A Drwlock.c79 REQUIRE(rwl != NULL);
154 REQUIRE(VALID_RWLOCK(rwl));
157 REQUIRE(rwl->write_requests == rwl->write_completions &&
161 REQUIRE(rwl->active == 0 &&
244 REQUIRE(VALID_RWLOCK(rwl));
354 REQUIRE(VALID_RWLOCK(rwl));
416 REQUIRE(VALID_RWLOCK(rwl));
445 REQUIRE(VALID_RWLOCK(rwl));
467 REQUIRE(VALID_RWLOCK(rwl));
542 REQUIRE(VALID_RWLOC
[all...]
H A Dstats.c92 REQUIRE(statsp != NULL && *statsp == NULL);
151 REQUIRE(ISC_STATS_VALID(stats));
152 REQUIRE(statsp != NULL && *statsp == NULL);
165 REQUIRE(statsp != NULL && ISC_STATS_VALID(*statsp));
189 REQUIRE(ISC_STATS_VALID(stats));
289 REQUIRE(statsp != NULL && *statsp == NULL);
296 REQUIRE(ISC_STATS_VALID(stats));
297 REQUIRE(counter < stats->ncounters);
304 REQUIRE(ISC_STATS_VALID(stats));
305 REQUIRE(counte
[all...]
H A Dlog.c273 REQUIRE(mctx != NULL);
274 REQUIRE(lctxp != NULL && *lctxp == NULL);
275 REQUIRE(lcfgp == NULL || *lcfgp == NULL);
337 REQUIRE(lcfgp != NULL && *lcfgp == NULL);
338 REQUIRE(VALID_CONTEXT(lctx));
424 REQUIRE(VALID_CONTEXT(lctx));
436 REQUIRE(VALID_CONTEXT(lctx));
437 REQUIRE(VALID_CONFIG(lcfg));
438 REQUIRE(lcfg->lctx == lctx);
468 REQUIRE(lctx
[all...]
H A Dstring.c100 REQUIRE(size > 0U);
114 REQUIRE(size > 0U);
123 REQUIRE(size > 0U);
124 REQUIRE(strlen(target) < size);
138 REQUIRE(size > 0U);
139 REQUIRE(strlen(target) < size);
151 REQUIRE(size > 0U);
172 REQUIRE(size > 0U);
186 REQUIRE(mctx != NULL);
187 REQUIRE(sourc
[all...]
H A Dsymtab.c67 REQUIRE(mctx != NULL);
68 REQUIRE(symtabp != NULL && *symtabp == NULL);
69 REQUIRE(size > 0); /* Should be prime. */
102 REQUIRE(symtabp != NULL);
104 REQUIRE(VALID_SYMTAB(symtab));
174 REQUIRE(VALID_SYMTAB(symtab));
175 REQUIRE(key != NULL);
193 REQUIRE(symtab != NULL);
235 REQUIRE(VALID_SYMTAB(symtab));
236 REQUIRE(ke
[all...]
H A Dentropy.c195 REQUIRE(sq->samples != NULL);
196 REQUIRE(sq->extra != NULL);
540 REQUIRE(VALID_ENTROPY(ent));
541 REQUIRE(data != NULL);
542 REQUIRE(length > 0);
548 REQUIRE(!partial || returned != NULL);
678 REQUIRE(mctx != NULL);
679 REQUIRE(entp != NULL && *entp == NULL);
731 REQUIRE(ent->nsources > 0);
789 REQUIRE(ent
[all...]
H A Drandom.c76 REQUIRE(val != NULL);
104 REQUIRE(jitter < max || (jitter == 0 && max == 0));
H A Dtask.c300 REQUIRE(EMPTY(task->events));
301 REQUIRE(EMPTY(task->on_shutdown));
302 REQUIRE(task->references == 0);
303 REQUIRE(task->state == task_state_done);
337 REQUIRE(VALID_MANAGER(manager));
338 REQUIRE(taskp != NULL && *taskp == NULL);
399 REQUIRE(VALID_TASK(source));
400 REQUIRE(targetp != NULL && *targetp == NULL);
461 REQUIRE(VALID_MANAGER(manager));
462 REQUIRE(tas
[all...]
/freebsd-12-stable/tools/regression/security/cap_test/
H A Dcap_test_relative.c63 REQUIRE(etc = open("/etc/", O_RDONLY));
105 REQUIRE(fd = openat(etc_cap_base, "passwd", O_RDONLY));
112 REQUIRE(cap_enter());
141 REQUIRE(fd = openat(etc, "passwd", O_RDONLY));
147 REQUIRE(fd = openat(etc_cap_base, "passwd", O_RDONLY));
H A Dcap_test_capmode.c77 REQUIRE(fd_file = open("/tmp/cap_capmode", O_RDWR|O_CREAT, 0644));
78 REQUIRE(fd_close = open("/dev/null", O_RDWR));
79 REQUIRE(fd_dir = open("/tmp", O_RDONLY));
80 REQUIRE(fd_socket = socket(PF_INET, SOCK_DGRAM, 0));
83 REQUIRE(cap_enter());
/freebsd-12-stable/contrib/ntp/libntp/
H A Dlibssl_compat.c48 REQUIRE(*ps != n);
137 REQUIRE(prsa != NULL);
155 REQUIRE(prsa != NULL);
173 REQUIRE(prsa != NULL);
188 REQUIRE(prsa != NULL);
206 REQUIRE(prsa != NULL);
229 REQUIRE(psig != NULL);
244 REQUIRE(psig != NULL);
265 REQUIRE(pdsa != NULL);
300 REQUIRE(pds
[all...]
H A Dis_ip_address.c40 REQUIRE(host != NULL);
41 REQUIRE(addr != NULL);
/freebsd-12-stable/contrib/ntp/include/
H A Dntp_assert.h10 * REQUIRE(a != NULL);
82 #define REQUIRE(x) ALWAYS_REQUIRE(x) macro
88 * We initially used NTP_REQUIRE() instead of REQUIRE() etc, but that
89 * is unneccesarily verbose, as libisc use of REQUIRE() etc shows.
93 #define DEBUG_REQUIRE(x) REQUIRE(x)

Completed in 201 milliseconds

12345