| /freebsd-13.1/sbin/hastd/ |
| H A D | proto.c | 69 PJDLOG_ASSERT(!seen_default); in proto_register() 80 PJDLOG_ASSERT(proto != NULL); in proto_alloc() 98 PJDLOG_ASSERT(conn != NULL); in proto_free() 177 PJDLOG_ASSERT(conn != NULL); in proto_connect() 198 PJDLOG_ASSERT(conn != NULL); in proto_connect_wait() 203 PJDLOG_ASSERT(timeout >= 0); in proto_connect_wait() 227 PJDLOG_ASSERT(conn != NULL); in proto_accept() 254 PJDLOG_ASSERT(conn != NULL); in proto_send() 272 PJDLOG_ASSERT(conn != NULL); in proto_recv() 299 PJDLOG_ASSERT(fd >= 0); in proto_connection_send() [all …]
|
| H A D | proto_uds.c | 142 PJDLOG_ASSERT(uctx != NULL); in uds_connect() 146 PJDLOG_ASSERT(timeout >= -1); in uds_connect() 161 PJDLOG_ASSERT(uctx != NULL); in uds_connect_wait() 165 PJDLOG_ASSERT(timeout >= 0); in uds_connect_wait() 207 PJDLOG_ASSERT(uctx != NULL); in uds_accept() 237 PJDLOG_ASSERT(uctx != NULL); in uds_send() 249 PJDLOG_ASSERT(uctx != NULL); in uds_recv() 261 PJDLOG_ASSERT(uctx != NULL); in uds_descriptor() 274 PJDLOG_ASSERT(uctx != NULL); in uds_local_address() 276 PJDLOG_ASSERT(addr != NULL); in uds_local_address() [all …]
|
| H A D | synch.h | 45 #ifndef PJDLOG_ASSERT 56 PJDLOG_ASSERT(error == 0); in mtx_init() 64 PJDLOG_ASSERT(error == 0); in mtx_destroy() 72 PJDLOG_ASSERT(error == 0); in mtx_lock() 89 PJDLOG_ASSERT(error == 0); in mtx_unlock() 104 PJDLOG_ASSERT(error == 0); in rw_init() 112 PJDLOG_ASSERT(error == 0); in rw_destroy() 120 PJDLOG_ASSERT(error == 0); in rw_rlock() 128 PJDLOG_ASSERT(error == 0); in rw_wlock() 136 PJDLOG_ASSERT(error == 0); in rw_unlock() [all …]
|
| H A D | proto_socketpair.c | 69 PJDLOG_ASSERT(srcaddr == NULL); in sp_client() 94 PJDLOG_ASSERT(spctx != NULL); in sp_send() 109 PJDLOG_ASSERT(spctx->sp_fd[0] >= 0); in sp_send() 113 PJDLOG_ASSERT(spctx->sp_fd[1] >= 0); in sp_send() 133 PJDLOG_ASSERT(spctx != NULL); in sp_recv() 148 PJDLOG_ASSERT(spctx->sp_fd[1] >= 0); in sp_recv() 152 PJDLOG_ASSERT(spctx->sp_fd[0] >= 0); in sp_recv() 171 PJDLOG_ASSERT(spctx != NULL); in sp_descriptor() 178 PJDLOG_ASSERT(spctx->sp_fd[0] >= 0); in sp_descriptor() 181 PJDLOG_ASSERT(spctx->sp_fd[1] >= 0); in sp_descriptor() [all …]
|
| H A D | activemap.c | 49 #ifndef PJDLOG_ASSERT 150 PJDLOG_ASSERT(ampp != NULL); in activemap_init() 151 PJDLOG_ASSERT(mediasize > 0); in activemap_init() 152 PJDLOG_ASSERT(extentsize > 0); in activemap_init() 154 PJDLOG_ASSERT(sectorsize > 0); in activemap_init() 156 PJDLOG_ASSERT(keepdirty > 0); in activemap_init() 236 PJDLOG_ASSERT(kd != NULL); in keepdirty_add() 305 PJDLOG_ASSERT(length > 0); in activemap_write_start() 341 PJDLOG_ASSERT(length > 0); in activemap_write_complete() 550 PJDLOG_ASSERT(mediasize > 0); in activemap_calc_ondisk_size() [all …]
|
| H A D | proto_tcp.c | 199 PJDLOG_ASSERT(addr != NULL); in tcp_setup_new() 202 PJDLOG_ASSERT(ctxp != NULL); in tcp_setup_new() 244 PJDLOG_ASSERT(fd >= 0); in tcp_setup_wrap() 247 PJDLOG_ASSERT(ctxp != NULL); in tcp_setup_wrap() 294 PJDLOG_ASSERT(tctx != NULL); in tcp_connect() 352 PJDLOG_ASSERT(tctx != NULL); in tcp_connect_wait() 356 PJDLOG_ASSERT(timeout >= 0); in tcp_connect_wait() 374 PJDLOG_ASSERT(ret > 0); in tcp_connect_wait() 450 PJDLOG_ASSERT(tctx != NULL); in tcp_accept() 492 PJDLOG_ASSERT(fd == -1); in tcp_send() [all …]
|
| H A D | hooks.c | 141 PJDLOG_ASSERT(!hooks_initialized); in hook_init() 153 PJDLOG_ASSERT(hooks_initialized); in hook_fini() 158 PJDLOG_ASSERT(hp->hp_pid > 0); in hook_fini() 205 PJDLOG_ASSERT(hp->hp_pid == 0); in hook_add() 219 PJDLOG_ASSERT(hp->hp_pid > 0); in hook_remove() 220 PJDLOG_ASSERT(mtx_owned(&hookprocs_lock)); in hook_remove() 231 PJDLOG_ASSERT(hp->hp_pid > 0); in hook_free() 246 PJDLOG_ASSERT(hp->hp_pid > 0); in hook_find() 289 PJDLOG_ASSERT(hooks_initialized); in hook_check() 300 PJDLOG_ASSERT(hp->hp_pid > 0); in hook_check() [all …]
|
| H A D | proto_common.c | 60 PJDLOG_ASSERT(flags >= 0); in blocking_socket() 71 PJDLOG_ASSERT(sock >= 0); in proto_descriptor_send() 72 PJDLOG_ASSERT(fd >= 0); in proto_descriptor_send() 101 PJDLOG_ASSERT(sock >= 0); in proto_common_send() 106 PJDLOG_ASSERT(size == 0); in proto_common_send() 114 PJDLOG_ASSERT(size > 0); in proto_common_send() 171 PJDLOG_ASSERT(sock >= 0); in proto_descriptor_recv() 172 PJDLOG_ASSERT(fdp != NULL); in proto_descriptor_recv() 200 PJDLOG_ASSERT(sock >= 0); in proto_common_recv() 205 PJDLOG_ASSERT(size == 0); in proto_common_recv() [all …]
|
| H A D | ebuf.c | 47 #ifndef PJDLOG_ASSERT 49 #define PJDLOG_ASSERT(...) assert(__VA_ARGS__) macro 102 PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); in ebuf_free() 114 PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); in ebuf_add_head() 141 PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); in ebuf_add_tail() 151 PJDLOG_ASSERT(size <= in ebuf_add_tail() 168 PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); in ebuf_del_head() 169 PJDLOG_ASSERT(size <= eb->eb_size); in ebuf_del_head() 179 PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); in ebuf_del_tail() 180 PJDLOG_ASSERT(size <= eb->eb_size); in ebuf_del_tail() [all …]
|
| H A D | rangelock.c | 45 #ifndef PJDLOG_ASSERT 47 #define PJDLOG_ASSERT(...) assert(__VA_ARGS__) macro 67 PJDLOG_ASSERT(rlsp != NULL); in rangelock_init() 86 PJDLOG_ASSERT(rls->rls_magic == RANGELOCKS_MAGIC); in rangelock_free() 102 PJDLOG_ASSERT(rls->rls_magic == RANGELOCKS_MAGIC); in rangelock_add() 118 PJDLOG_ASSERT(rls->rls_magic == RANGELOCKS_MAGIC); in rangelock_del() 124 PJDLOG_ASSERT(rl != NULL); in rangelock_del() 135 PJDLOG_ASSERT(rls->rls_magic == RANGELOCKS_MAGIC); in rangelock_islocked()
|
| H A D | nv.c | 52 #ifndef PJDLOG_ASSERT 112 PJDLOG_ASSERT((nv) != NULL); \ 214 PJDLOG_ASSERT(nv->nv_error == 0); in nv_validate() 352 PJDLOG_ASSERT(nv->nv_error == 0); in nv_hton() 362 PJDLOG_ASSERT(NVH_SIZE(nvh) <= size); in nv_hton() 381 PJDLOG_ASSERT(eb != NULL); in nv_ntoh() 570 PJDLOG_ASSERT(nvh->nvh_dsize >= 1); 638 PJDLOG_ASSERT(nv->nv_error == 0); in nv_dump() 790 PJDLOG_ASSERT(errno != 0); in nv_add() 799 PJDLOG_ASSERT(errno != 0); in nv_add() [all …]
|
| H A D | parse.y | 241 PJDLOG_ASSERT(curres != NULL); 266 PJDLOG_ASSERT(curres != NULL); 290 PJDLOG_ASSERT(curres != NULL); 318 PJDLOG_ASSERT(curres != NULL); 339 PJDLOG_ASSERT(curres != NULL); 362 PJDLOG_ASSERT(curres != NULL); 368 PJDLOG_ASSERT(curres != NULL); 598 PJDLOG_ASSERT(curres != NULL); 629 PJDLOG_ASSERT(curres != NULL); 690 PJDLOG_ASSERT(depth == 2); [all …]
|
| H A D | primary.c | 345 PJDLOG_ASSERT(buf != NULL); in hast_activemap_flush() 1054 PJDLOG_ASSERT(error == 0); in hastd_primary() 1064 PJDLOG_ASSERT(error == 0); in hastd_primary() 1090 PJDLOG_ASSERT(error == 0); in hastd_primary() 1092 PJDLOG_ASSERT(error == 0); in hastd_primary() 1094 PJDLOG_ASSERT(error == 0); in hastd_primary() 1096 PJDLOG_ASSERT(error == 0); in hastd_primary() 1098 PJDLOG_ASSERT(error == 0); in hastd_primary() 1186 PJDLOG_ASSERT(!hio->hio_done); in write_complete() 1738 PJDLOG_ASSERT(hio != NULL); in remote_recv_thread() [all …]
|
| /freebsd-13.1/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() 499 PJDLOG_ASSERT(timeout >= -1); in tls_connect() 500 PJDLOG_ASSERT(ctxp != NULL); in tls_connect() 572 PJDLOG_ASSERT(tlsctx != NULL); in tls_connect_wait() 577 PJDLOG_ASSERT(timeout >= 0); in tls_connect_wait() 880 PJDLOG_ASSERT(fd == -1); in tls_send() 899 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-13.1/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-13.1/lib/libnv/ |
| H A D | msgio.c | 79 PJDLOG_ASSERT(fd >= 0); in msghdr_add_fd() 94 PJDLOG_ASSERT(fd >= 0); in fd_wait() 107 PJDLOG_ASSERT(sock >= 0); in msg_recv() 132 PJDLOG_ASSERT(sock >= 0); in msg_send() 235 PJDLOG_ASSERT(sock >= 0); in fd_package_send() 237 PJDLOG_ASSERT(nfds > 0); in fd_package_send() 284 PJDLOG_ASSERT(sock >= 0); in fd_package_recv() 285 PJDLOG_ASSERT(nfds > 0); in fd_package_recv() 429 PJDLOG_ASSERT(sock >= 0); in buf_send() 430 PJDLOG_ASSERT(size > 0); in buf_send() [all …]
|