/freebsd/sbin/hastd/ |
H A D | proto.c | 66 PJDLOG_ASSERT(!seen_default); in proto_register() 77 PJDLOG_ASSERT(proto != NULL); in proto_alloc() 95 PJDLOG_ASSERT(conn != NULL); in proto_free() 174 PJDLOG_ASSERT(conn != NULL); in proto_connect() 195 PJDLOG_ASSERT(conn != NULL); in proto_connect_wait() 200 PJDLOG_ASSERT(timeout >= 0); in proto_connect_wait() 224 PJDLOG_ASSERT(conn != NULL); in proto_accept() 251 PJDLOG_ASSERT(conn != NULL); in proto_send() 269 PJDLOG_ASSERT(conn != NULL); in proto_recv() 296 PJDLOG_ASSERT(fd >= 0); in proto_connection_send() [all …]
|
H A D | proto_uds.c | 140 PJDLOG_ASSERT(uctx != NULL); in uds_connect() 144 PJDLOG_ASSERT(timeout >= -1); in uds_connect() 159 PJDLOG_ASSERT(uctx != NULL); in uds_connect_wait() 163 PJDLOG_ASSERT(timeout >= 0); in uds_connect_wait() 205 PJDLOG_ASSERT(uctx != NULL); in uds_accept() 235 PJDLOG_ASSERT(uctx != NULL); in uds_send() 247 PJDLOG_ASSERT(uctx != NULL); in uds_recv() 259 PJDLOG_ASSERT(uctx != NULL); in uds_descriptor() 272 PJDLOG_ASSERT(uctx != NULL); in uds_local_address() 274 PJDLOG_ASSERT(addr != NULL); in uds_local_address() [all …]
|
H A D | synch.h | 43 #ifndef PJDLOG_ASSERT 54 PJDLOG_ASSERT(error == 0); in mtx_init() 62 PJDLOG_ASSERT(error == 0); in mtx_destroy() 70 PJDLOG_ASSERT(error == 0); in mtx_lock() 87 PJDLOG_ASSERT(error == 0); in mtx_unlock() 102 PJDLOG_ASSERT(error == 0); in rw_init() 110 PJDLOG_ASSERT(error == 0); in rw_destroy() 118 PJDLOG_ASSERT(error == 0); in rw_rlock() 126 PJDLOG_ASSERT(error == 0); in rw_wlock() 134 PJDLOG_ASSERT(error == 0); in rw_unlock() [all …]
|
H A D | proto_socketpair.c | 66 PJDLOG_ASSERT(srcaddr == NULL); in sp_client() 91 PJDLOG_ASSERT(spctx != NULL); in sp_send() 106 PJDLOG_ASSERT(spctx->sp_fd[0] >= 0); in sp_send() 110 PJDLOG_ASSERT(spctx->sp_fd[1] >= 0); in sp_send() 130 PJDLOG_ASSERT(spctx != NULL); in sp_recv() 145 PJDLOG_ASSERT(spctx->sp_fd[1] >= 0); in sp_recv() 149 PJDLOG_ASSERT(spctx->sp_fd[0] >= 0); in sp_recv() 168 PJDLOG_ASSERT(spctx != NULL); in sp_descriptor() 175 PJDLOG_ASSERT(spctx->sp_fd[0] >= 0); in sp_descriptor() 178 PJDLOG_ASSERT(spctx->sp_fd[1] >= 0); in sp_descriptor() [all …]
|
H A D | activemap.c | 46 #ifndef PJDLOG_ASSERT 147 PJDLOG_ASSERT(ampp != NULL); in activemap_init() 148 PJDLOG_ASSERT(mediasize > 0); in activemap_init() 149 PJDLOG_ASSERT(extentsize > 0); in activemap_init() 151 PJDLOG_ASSERT(sectorsize > 0); in activemap_init() 153 PJDLOG_ASSERT(keepdirty > 0); in activemap_init() 233 PJDLOG_ASSERT(kd != NULL); in keepdirty_add() 302 PJDLOG_ASSERT(length > 0); in activemap_write_start() 338 PJDLOG_ASSERT(length > 0); in activemap_write_complete() 547 PJDLOG_ASSERT(mediasize > 0); in activemap_calc_ondisk_size() [all …]
|
H A D | proto_tcp.c | 196 PJDLOG_ASSERT(addr != NULL); in tcp_setup_new() 199 PJDLOG_ASSERT(ctxp != NULL); in tcp_setup_new() 241 PJDLOG_ASSERT(fd >= 0); in tcp_setup_wrap() 244 PJDLOG_ASSERT(ctxp != NULL); in tcp_setup_wrap() 291 PJDLOG_ASSERT(tctx != NULL); in tcp_connect() 349 PJDLOG_ASSERT(tctx != NULL); in tcp_connect_wait() 353 PJDLOG_ASSERT(timeout >= 0); in tcp_connect_wait() 371 PJDLOG_ASSERT(ret > 0); in tcp_connect_wait() 447 PJDLOG_ASSERT(tctx != NULL); in tcp_accept() 489 PJDLOG_ASSERT(fd == -1); in tcp_send() [all …]
|
H A D | hooks.c | 138 PJDLOG_ASSERT(!hooks_initialized); in hook_init() 150 PJDLOG_ASSERT(hooks_initialized); in hook_fini() 155 PJDLOG_ASSERT(hp->hp_pid > 0); in hook_fini() 202 PJDLOG_ASSERT(hp->hp_pid == 0); in hook_add() 216 PJDLOG_ASSERT(hp->hp_pid > 0); in hook_remove() 217 PJDLOG_ASSERT(mtx_owned(&hookprocs_lock)); in hook_remove() 228 PJDLOG_ASSERT(hp->hp_pid > 0); in hook_free() 243 PJDLOG_ASSERT(hp->hp_pid > 0); in hook_find() 286 PJDLOG_ASSERT(hooks_initialized); in hook_check() 297 PJDLOG_ASSERT(hp->hp_pid > 0); in hook_check() [all …]
|
H A D | proto_common.c | 57 PJDLOG_ASSERT(flags >= 0); in blocking_socket() 68 PJDLOG_ASSERT(sock >= 0); in proto_descriptor_send() 69 PJDLOG_ASSERT(fd >= 0); in proto_descriptor_send() 98 PJDLOG_ASSERT(sock >= 0); in proto_common_send() 103 PJDLOG_ASSERT(size == 0); in proto_common_send() 111 PJDLOG_ASSERT(size > 0); in proto_common_send() 168 PJDLOG_ASSERT(sock >= 0); in proto_descriptor_recv() 169 PJDLOG_ASSERT(fdp != NULL); in proto_descriptor_recv() 197 PJDLOG_ASSERT(sock >= 0); in proto_common_recv() 202 PJDLOG_ASSERT(size == 0); in proto_common_recv() [all …]
|
H A D | ebuf.c | 44 #ifndef PJDLOG_ASSERT 46 #define PJDLOG_ASSERT(...) assert(__VA_ARGS__) macro 101 PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); in ebuf_free() 113 PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); in ebuf_add_head() 140 PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); in ebuf_add_tail() 150 PJDLOG_ASSERT(size <= in ebuf_add_tail() 167 PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); in ebuf_del_head() 168 PJDLOG_ASSERT(size <= eb->eb_size); in ebuf_del_head() 178 PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); in ebuf_del_tail() 179 PJDLOG_ASSERT(size <= eb->eb_size); in ebuf_del_tail() [all …]
|
H A D | rangelock.c | 43 #ifndef PJDLOG_ASSERT 45 #define PJDLOG_ASSERT(...) assert(__VA_ARGS__) macro 65 PJDLOG_ASSERT(rlsp != NULL); in rangelock_init() 84 PJDLOG_ASSERT(rls->rls_magic == RANGELOCKS_MAGIC); in rangelock_free() 100 PJDLOG_ASSERT(rls->rls_magic == RANGELOCKS_MAGIC); in rangelock_add() 116 PJDLOG_ASSERT(rls->rls_magic == RANGELOCKS_MAGIC); in rangelock_del() 122 PJDLOG_ASSERT(rl != NULL); in rangelock_del() 133 PJDLOG_ASSERT(rls->rls_magic == RANGELOCKS_MAGIC); in rangelock_islocked()
|
H A D | nv.c | 49 #ifndef PJDLOG_ASSERT 109 PJDLOG_ASSERT((nv) != NULL); \ 211 PJDLOG_ASSERT(nv->nv_error == 0); in nv_validate() 349 PJDLOG_ASSERT(nv->nv_error == 0); in nv_hton() 359 PJDLOG_ASSERT(NVH_SIZE(nvh) <= size); in nv_hton() 378 PJDLOG_ASSERT(eb != NULL); in nv_ntoh() 567 PJDLOG_ASSERT(nvh->nvh_dsize >= 1); 635 PJDLOG_ASSERT(nv->nv_error == 0); in nv_dump() 787 PJDLOG_ASSERT(errno != 0); in nv_add() 796 PJDLOG_ASSERT(errno != 0); in nv_add() [all …]
|
H A D | parse.y | 239 PJDLOG_ASSERT(curres != NULL); 264 PJDLOG_ASSERT(curres != NULL); 288 PJDLOG_ASSERT(curres != NULL); 316 PJDLOG_ASSERT(curres != NULL); 337 PJDLOG_ASSERT(curres != NULL); 360 PJDLOG_ASSERT(curres != NULL); 366 PJDLOG_ASSERT(curres != NULL); 596 PJDLOG_ASSERT(curres != NULL); 627 PJDLOG_ASSERT(curres != NULL); 688 PJDLOG_ASSERT(depth == 2); [all …]
|
H A D | primary.c | 342 PJDLOG_ASSERT(buf != NULL); in hast_activemap_flush() 1051 PJDLOG_ASSERT(error == 0); in hastd_primary() 1061 PJDLOG_ASSERT(error == 0); in hastd_primary() 1087 PJDLOG_ASSERT(error == 0); in hastd_primary() 1089 PJDLOG_ASSERT(error == 0); in hastd_primary() 1091 PJDLOG_ASSERT(error == 0); in hastd_primary() 1093 PJDLOG_ASSERT(error == 0); in hastd_primary() 1095 PJDLOG_ASSERT(error == 0); in hastd_primary() 1183 PJDLOG_ASSERT(!hio->hio_done); in write_complete() 1735 PJDLOG_ASSERT(hio != NULL); in remote_recv_thread() [all …]
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | proto.c | 64 PJDLOG_ASSERT(!seen_default); in proto_register() 75 PJDLOG_ASSERT(proto != NULL); in proto_alloc() 93 PJDLOG_ASSERT(conn != NULL); in proto_free() 179 PJDLOG_ASSERT(conn != NULL); in proto_connect_wait() 184 PJDLOG_ASSERT(timeout >= 0); in proto_connect_wait() 199 PJDLOG_ASSERT(addr != NULL); in proto_server() 211 PJDLOG_ASSERT(conn != NULL); in proto_accept() 238 PJDLOG_ASSERT(conn != NULL); in proto_send() 256 PJDLOG_ASSERT(conn != NULL); in proto_recv() 283 PJDLOG_ASSERT(fd >= 0); in proto_connection_send() [all …]
|
H A D | proto_socketpair.c | 61 PJDLOG_ASSERT(dstaddr != NULL); in sp_connect() 62 PJDLOG_ASSERT(timeout >= -1); in sp_connect() 67 PJDLOG_ASSERT(srcaddr == NULL); in sp_connect() 91 PJDLOG_ASSERT(fd >= 0); in sp_wrap() 118 PJDLOG_ASSERT(spctx != NULL); in sp_send() 133 PJDLOG_ASSERT(spctx->sp_fd[0] >= 0); in sp_send() 137 PJDLOG_ASSERT(spctx->sp_fd[1] >= 0); in sp_send() 157 PJDLOG_ASSERT(spctx != NULL); in sp_recv() 172 PJDLOG_ASSERT(spctx->sp_fd[1] >= 0); in sp_recv() 195 PJDLOG_ASSERT(spctx != NULL); in sp_descriptor() [all …]
|
H A D | synch.h | 43 #ifndef PJDLOG_ASSERT 54 PJDLOG_ASSERT(error == 0); in mtx_init() 62 PJDLOG_ASSERT(error == 0); in mtx_destroy() 70 PJDLOG_ASSERT(error == 0); in mtx_lock() 87 PJDLOG_ASSERT(error == 0); in mtx_unlock() 102 PJDLOG_ASSERT(error == 0); in rw_init() 110 PJDLOG_ASSERT(error == 0); in rw_destroy() 118 PJDLOG_ASSERT(error == 0); in rw_rlock() 126 PJDLOG_ASSERT(error == 0); in rw_wlock() 134 PJDLOG_ASSERT(error == 0); in rw_unlock() [all …]
|
H A D | proto_uds.c | 134 PJDLOG_ASSERT(timeout >= -1); in uds_connect() 159 PJDLOG_ASSERT(uctx != NULL); in uds_connect_wait() 163 PJDLOG_ASSERT(timeout >= 0); in uds_connect_wait() 205 PJDLOG_ASSERT(uctx != NULL); in uds_accept() 235 PJDLOG_ASSERT(uctx != NULL); in uds_send() 247 PJDLOG_ASSERT(uctx != NULL); in uds_recv() 259 PJDLOG_ASSERT(uctx != NULL); in uds_descriptor() 272 PJDLOG_ASSERT(uctx != NULL); in uds_local_address() 274 PJDLOG_ASSERT(addr != NULL); in uds_local_address() 296 PJDLOG_ASSERT(uctx != NULL); in uds_remote_address() [all …]
|
H A D | proto_tcp.c | 202 PJDLOG_ASSERT(addr != NULL); in tcp_setup_new() 205 PJDLOG_ASSERT(tctxp != NULL); in tcp_setup_new() 347 PJDLOG_ASSERT(tctx != NULL); in tcp_connect_wait() 352 PJDLOG_ASSERT(timeout >= 0); in tcp_connect_wait() 370 PJDLOG_ASSERT(ret > 0); in tcp_connect_wait() 447 PJDLOG_ASSERT(tctx != NULL); in tcp_accept() 479 PJDLOG_ASSERT(fd >= 0); in tcp_wrap() 480 PJDLOG_ASSERT(ctxp != NULL); in tcp_wrap() 501 PJDLOG_ASSERT(tctx != NULL); in tcp_send() 507 PJDLOG_ASSERT(fd == -1); in tcp_send() [all …]
|
H A D | proto_tls.c | 138 PJDLOG_ASSERT(ret > 0); in wait_for_fd() 193 PJDLOG_ASSERT(sendfd >= 0); in tcp_recv_ssl_send() 233 PJDLOG_ASSERT(recvfd >= 0); in ssl_recv_tcp_send() 273 PJDLOG_ASSERT(tcpfd >= 0); in tls_loop() 501 PJDLOG_ASSERT(timeout >= -1); in tls_connect() 502 PJDLOG_ASSERT(ctxp != NULL); in tls_connect() 574 PJDLOG_ASSERT(tlsctx != NULL); in tls_connect_wait() 579 PJDLOG_ASSERT(timeout >= 0); in tls_connect_wait() 884 PJDLOG_ASSERT(fd == -1); in tls_send() 903 PJDLOG_ASSERT(fdp == NULL); in tls_recv() [all …]
|
H A D | trail.c | 160 PJDLOG_ASSERT(dirfp != NULL); in trail_type() 163 PJDLOG_ASSERT(dfd >= 0); in trail_type() 216 PJDLOG_ASSERT(offset == 0); in trail_start() 222 PJDLOG_ASSERT(dfd >= 0); in trail_start() 371 PJDLOG_ASSERT(dfd >= 0); in trail_next() 444 PJDLOG_ASSERT(filename != NULL); in trail_unlink() 445 PJDLOG_ASSERT(filename[0] != '\0'); in trail_unlink() 448 PJDLOG_ASSERT(dfd >= 0); in trail_unlink() 476 PJDLOG_ASSERT(fd >= 0); in trail_switch() 531 PJDLOG_ASSERT(dirfp != NULL); in trail_last() [all …]
|
H A D | proto_common.c | 57 PJDLOG_ASSERT(flags >= 0); in blocking_socket() 68 PJDLOG_ASSERT(sock >= 0); in proto_descriptor_send() 69 PJDLOG_ASSERT(fd >= 0); in proto_descriptor_send() 98 PJDLOG_ASSERT(sock >= 0); in proto_common_send() 103 PJDLOG_ASSERT(size == 0); in proto_common_send() 111 PJDLOG_ASSERT(size > 0); in proto_common_send() 168 PJDLOG_ASSERT(sock >= 0); in proto_descriptor_recv() 169 PJDLOG_ASSERT(fdp != NULL); in proto_descriptor_recv() 197 PJDLOG_ASSERT(sock >= 0); in proto_common_recv() 202 PJDLOG_ASSERT(size == 0); in proto_common_recv() [all …]
|
H A D | parse.y | 175 PJDLOG_ASSERT(depth == 0); 183 PJDLOG_ASSERT(depth == 0); 220 PJDLOG_ASSERT(depth == 1); 257 PJDLOG_ASSERT(depth == 0); 325 PJDLOG_ASSERT(depth == 1); 483 PJDLOG_ASSERT(depth == 2); 505 PJDLOG_ASSERT(depth == 2); 523 PJDLOG_ASSERT(depth == 1); 539 PJDLOG_ASSERT(depth == 1); 556 PJDLOG_ASSERT(depth == 1); [all …]
|
H A D | subr.c | 164 PJDLOG_ASSERT(size > 0); in adist_random() 165 PJDLOG_ASSERT((size % sizeof(val)) == 0); in adist_random() 192 PJDLOG_ASSERT(wait_for_dir_kq == -1); in wait_for_dir_init() 195 PJDLOG_ASSERT(fd != -1); in wait_for_dir_init() 226 PJDLOG_ASSERT(fd != -1); in wait_for_file_init() 272 PJDLOG_ASSERT(wait_for_dir_kq != -1); in wait_for_dir() 297 PJDLOG_ASSERT(wait_for_file_kq != -1); in wait_for_file()
|
/freebsd/sys/contrib/libnv/ |
H A D | bsd_nvpair.c | 98 PJDLOG_ASSERT((nvp) != NULL); \ 218 PJDLOG_ASSERT(nvl != NULL); in nvpair_remove_nvlist() 354 PJDLOG_ASSERT(*leftp >= namesize); in nvpair_pack_header() 441 PJDLOG_ASSERT(*leftp >= namesize); in nvpair_pack_nvlist_up() 466 PJDLOG_ASSERT(*leftp >= namesize); in nvpair_pack_nvlist_array_next() 491 PJDLOG_ASSERT(fdidxp != NULL); in nvpair_pack_descriptor() 564 PJDLOG_ASSERT(array != NULL); in nvpair_pack_string_array() 568 PJDLOG_ASSERT(*leftp >= len); in nvpair_pack_string_array() 595 PJDLOG_ASSERT(array != NULL); in nvpair_pack_descriptor_array() 607 PJDLOG_ASSERT(fdidxp != NULL); in nvpair_pack_descriptor_array() [all …]
|
/freebsd/lib/libnv/ |
H A D | msgio.c | 76 PJDLOG_ASSERT(fd >= 0); in msghdr_add_fd() 91 PJDLOG_ASSERT(fd >= 0); in fd_wait() 104 PJDLOG_ASSERT(sock >= 0); in msg_recv() 129 PJDLOG_ASSERT(sock >= 0); in msg_send() 232 PJDLOG_ASSERT(sock >= 0); in fd_package_send() 234 PJDLOG_ASSERT(nfds > 0); in fd_package_send() 281 PJDLOG_ASSERT(sock >= 0); in fd_package_recv() 282 PJDLOG_ASSERT(nfds > 0); in fd_package_recv() 426 PJDLOG_ASSERT(sock >= 0); in buf_send() 427 PJDLOG_ASSERT(size > 0); in buf_send() [all …]
|