| /freebsd-14.2/lib/libnv/tests/ |
| H A D | nvlist_exists_test.c | 47 nvlist_t *nvl; in main() local 51 nvl = nvlist_create(0); in main() 62 CHECK(nvlist_error(nvl) == 0); in main() 81 CHECK(nvlist_error(nvl) == 0); in main() 100 CHECK(nvlist_error(nvl) == 0); in main() 119 CHECK(nvlist_error(nvl) == 0); in main() 137 nvlist_add_nvlist(nvl, "nvlist/nvlist", nvl); in main() 138 CHECK(nvlist_error(nvl) == 0); in main() 157 CHECK(nvlist_error(nvl) == 0); in main() 313 CHECK(nvlist_empty(nvl)); in main() [all …]
|
| H A D | nvlist_free_test.c | 47 nvlist_t *nvl; in main() local 51 nvl = nvlist_create(0); in main() 53 nvlist_add_null(nvl, "nvlist/null"); in main() 57 nvlist_add_nvlist(nvl, "nvlist/nvlist", nvl); in main() 132 CHECK(nvlist_empty(nvl)); in main() 138 nvlist_add_nvlist(nvl, "nvlist/nvlist", nvl); in main() 150 nvlist_free(nvl, "nvlist/null"); in main() 159 nvlist_free(nvl, "nvlist/bool"); in main() 168 nvlist_free(nvl, "nvlist/number"); in main() 213 CHECK(nvlist_empty(nvl)); in main() [all …]
|
| H A D | nvlist_add_test.c | 49 nvlist_t *nvl; in main() local 53 nvl = nvlist_create(0); in main() 57 CHECK(nvlist_error(nvl) == 0); in main() 62 CHECK(nvlist_error(nvl) == 0); in main() 67 CHECK(nvlist_error(nvl) == 0); in main() 72 CHECK(nvlist_error(nvl) == 0); in main() 77 CHECK(nvlist_error(nvl) == 0); in main() 82 CHECK(nvlist_error(nvl) == 0); in main() 87 CHECK(nvlist_error(nvl) == 0); in main() 146 nvlist_add_nvlist(nvl, "nvlist/nvlist", nvl); in main() [all …]
|
| H A D | nv_tests.cc | 44 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 64 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 94 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 126 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 159 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 196 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 255 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 365 return (nvl); in create_test_nvlist() 607 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 662 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local [all …]
|
| H A D | cnv_tests.cc | 43 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 77 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 112 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 215 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 247 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 291 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 333 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 375 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 416 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 499 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local [all …]
|
| H A D | nvlist_get_test.c | 52 nvlist_t *nvl; in main() local 57 nvl = nvlist_create(0); in main() 61 CHECK(nvlist_error(nvl) == 0); in main() 66 CHECK(nvlist_error(nvl) == 0); in main() 71 CHECK(nvlist_error(nvl) == 0); in main() 76 CHECK(nvlist_error(nvl) == 0); in main() 81 CHECK(nvlist_error(nvl) == 0); in main() 86 CHECK(nvlist_error(nvl) == 0); in main() 91 CHECK(nvlist_error(nvl) == 0); in main() 134 nvlist_add_nvlist(nvl, "nvlist/nvlist", nvl); in main() [all …]
|
| H A D | dnv_tests.cc | 37 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 56 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 76 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 95 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 114 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 135 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 159 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 180 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 208 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 229 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local [all …]
|
| H A D | nv_array_tests.cc | 51 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 96 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 154 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 212 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 258 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 459 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 496 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 539 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 589 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local 626 nvlist_t *nvl; in ATF_TEST_CASE_BODY() local [all …]
|
| H A D | nvlist_move_test.c | 51 nvlist_t *nvl; in main() local 58 nvl = nvlist_create(0); in main() 64 CHECK(nvlist_error(nvl) == 0); in main() 72 CHECK(nvlist_error(nvl) == 0); in main() 82 CHECK(nvlist_error(nvl) == 0); in main() 83 CHECK(nvlist_exists_string(nvl, in main() 93 CHECK(nvlist_error(nvl) == 0); in main() 103 CHECK(nvlist_error(nvl) == 0); in main() 117 CHECK(nvlist_error(nvl) == 0); in main() 127 ptr = nvlist_clone(nvl); in main() [all …]
|
| H A D | nvlist_send_recv_test.c | 53 nvlist_t *nvl; in send_nvlist_child() local 57 nvl = nvlist_create(0); in send_nvlist_child() 86 nvlist_add_nvlist(nvl, "nvlist/nvlist", nvl); in send_nvlist_child() 88 nvlist_send(sock, nvl); in send_nvlist_child() 90 nvlist_destroy(nvl); in send_nvlist_child() 96 nvlist_t *nvl; in send_nvlist_parent() local 334 nvlist_destroy(nvl); in send_nvlist_parent() 364 nvlist_t *nvl; in nvlist_send_recv__send_closed_fd() local 401 nvlist_t *nvl; in send_many_fds_child() local 418 nvlist_destroy(nvl); in send_many_fds_child() [all …]
|
| /freebsd-14.2/sys/netpfil/pf/ |
| H A D | pf_nv.c | 178 nvlist_t *nvl; in pf_addr_to_nvaddr() local 186 return (nvl); in pf_addr_to_nvaddr() 206 nvlist_t *nvl; in pf_mape_to_nvmape() local 216 return (nvl); in pf_mape_to_nvmape() 248 nvlist_t *nvl; in pf_pool_to_nvpool() local 272 return (nvl); in pf_pool_to_nvpool() 324 nvlist_t *nvl; in pf_addr_wrap_to_nvaddr_wrap() local 366 return (nvl); in pf_addr_wrap_to_nvaddr_wrap() 434 return (nvl); in pf_rule_addr_to_nvrule_addr() 469 return (nvl); in pf_rule_uid_to_nvrule_uid() [all …]
|
| H A D | pfsync_nv.c | 49 if (!nvlist_exists_number(nvl, "af")) in pfsync_syncpeer_nvlist_to_sockaddr() 51 if (!nvlist_exists_binary(nvl, "address")) in pfsync_syncpeer_nvlist_to_sockaddr() 54 af = nvlist_get_number(nvl, "af"); in pfsync_syncpeer_nvlist_to_sockaddr() 99 nvlist_t *nvl; in pfsync_sockaddr_to_syncpeer_nvlist() local 101 nvl = nvlist_create(0); in pfsync_sockaddr_to_syncpeer_nvlist() 102 if (nvl == NULL) { in pfsync_sockaddr_to_syncpeer_nvlist() 103 return (nvl); in pfsync_sockaddr_to_syncpeer_nvlist() 128 return (nvl); in pfsync_sockaddr_to_syncpeer_nvlist() 139 if (!nvlist_exists_number(nvl, "flags")) in pfsync_nvstatus_to_kstatus() 146 if (nvlist_exists_string(nvl, "syncdev")) in pfsync_nvstatus_to_kstatus() [all …]
|
| /freebsd-14.2/sys/sys/ |
| H A D | nv.h | 86 void nvlist_destroy(nvlist_t *nvl); 87 int nvlist_error(const nvlist_t *nvl); 88 bool nvlist_empty(const nvlist_t *nvl); 89 int nvlist_flags(const nvlist_t *nvl); 90 void nvlist_set_error(nvlist_t *nvl, int error); 92 nvlist_t *nvlist_clone(const nvlist_t *nvl); 95 void nvlist_dump(const nvlist_t *nvl, int fd); 96 void nvlist_fdump(const nvlist_t *nvl, FILE *fp); 99 size_t nvlist_size(const nvlist_t *nvl); 103 int nvlist_send(int sock, const nvlist_t *nvl); [all …]
|
| /freebsd-14.2/sys/contrib/libnv/ |
| H A D | nvlist.c | 136 nvl = nv_malloc(sizeof(*nvl)); in nvlist_create() 147 return (nvl); in nvlist_create() 186 if (nvl != NULL && error != 0 && nvl->nvl_error == 0) in nvlist_set_error() 659 nvl = nvlist_get_pararr(nvl, &cookie); in nvlist_dump() 976 nvl = nvlist_get_pararr(nvl, &cookie); in nvlist_xpack() 1167 nvl = nvpair_nvlist(nvl->nvl_parent); in nvlist_xunpack() 1174 nvl = nvpair_nvlist(nvl->nvl_parent); in nvlist_xunpack() 1336 ret = nvl; in nvlist_recv() 1477 nvpair_insert(&nvl->nvl_head, newnvp, nvl); in NVLIST_EXISTS() 1666 nvpair_insert(&nvl->nvl_head, nvp, nvl); [all …]
|
| /freebsd-14.2/lib/libpfctl/ |
| H A D | libpfctl.c | 92 *nvl = NULL; in pfctl_do_ioctl() 213 nvlist_t *nvl; in pfctl_get_status() local 660 nvlist_t *nvl; in pfctl_eth_addr_to_nveth_addr() local 670 return (nvl); in pfctl_eth_addr_to_nveth_addr() 736 nvlist_t *nvl; in pfctl_get_eth_rulesets_info() local 758 nvlist_t *nvl; in pfctl_get_eth_ruleset() local 784 nvlist_t *nvl; in pfctl_get_eth_rules_info() local 808 nvlist_t *nvl; in pfctl_get_eth_rule() local 1070 nvlist_t *nvl; in pfctl_get_clear_rule() local 1074 if (nvl == 0) in pfctl_get_clear_rule() [all …]
|
| /freebsd-14.2/sbin/ifconfig/ |
| H A D | ifpfsync.c | 71 nvlist_destroy(*nvl); in pfsync_do_ioctl() 72 *nvl = NULL; in pfsync_do_ioctl() 75 if (*nvl == NULL) { in pfsync_do_ioctl() 87 nvlist_t *nvl; in pfsync_sockaddr_to_syncpeer_nvlist() local 90 if (nvl == NULL) { in pfsync_sockaddr_to_syncpeer_nvlist() 91 return (nvl); in pfsync_sockaddr_to_syncpeer_nvlist() 117 return (nvl); in pfsync_sockaddr_to_syncpeer_nvlist() 253 nvlist_destroy(nvl); in setpfsync_syncpeer() 277 nvlist_destroy(nvl); in unsetpfsync_syncpeer() 299 nvlist_destroy(nvl); in setpfsync_maxupd() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/module/nvpair/ |
| H A D | fnvpair.c | 53 nvlist_t *nvl; in fnvlist_alloc() local 55 return (nvl); in fnvlist_alloc() 59 fnvlist_free(nvlist_t *nvl) in fnvlist_free() argument 61 nvlist_free(nvl); in fnvlist_free() 65 fnvlist_size(nvlist_t *nvl) in fnvlist_size() argument 105 fnvlist_dup(const nvlist_t *nvl) in fnvlist_dup() argument 108 VERIFY0(nvlist_dup(nvl, &rv, KM_SLEEP)); in fnvlist_dup() 119 fnvlist_num_pairs(nvlist_t *nvl) in fnvlist_num_pairs() argument 133 VERIFY0(nvlist_add_boolean(nvl, name)); in fnvlist_add_boolean() 211 VERIFY0(nvlist_add_nvpair(nvl, pair)); in fnvlist_add_nvpair() [all …]
|
| /freebsd-14.2/lib/libcasper/services/cap_syslog/ |
| H A D | cap_syslog.c | 61 nvlist_t *nvl; in cap_vsyslog() local 70 nvl = cap_xfer_nvlist(chan, nvl); in cap_vsyslog() 71 if (nvl == NULL) { in cap_vsyslog() 80 nvlist_t *nvl; in cap_openlog() local 92 nvl = cap_xfer_nvlist(chan, nvl); in cap_openlog() 93 if (nvl == NULL) { in cap_openlog() 102 nvlist_t *nvl; in cap_closelog() local 106 nvl = cap_xfer_nvlist(chan, nvl); in cap_closelog() 107 if (nvl == NULL) { in cap_closelog() 116 nvlist_t *nvl; in cap_setlogmask() local [all …]
|
| /freebsd-14.2/lib/libcasper/services/cap_dns/ |
| H A D | cap_dns.c | 133 nvlist_t *nvl; in cap_gethostbyname2() local 139 nvl = cap_xfer_nvlist(chan, nvl); in cap_gethostbyname2() 160 nvlist_t *nvl; in cap_gethostbyaddr() local 166 nvl = cap_xfer_nvlist(chan, nvl); in cap_gethostbyaddr() 223 nvlist_t *nvl; in cap_getaddrinfo() local 242 nvl = cap_xfer_nvlist(chan, nvl); in cap_getaddrinfo() 243 if (nvl == NULL) in cap_getaddrinfo() 283 nvlist_t *nvl; in cap_getnameinfo() local 292 nvl = cap_xfer_nvlist(chan, nvl); in cap_getnameinfo() 596 nvlist_t *nvl; in addrinfo_pack() local [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | nvlist_to_lua.c | 26 static nvlist_t *nvl; variable 92 dump_nvlist(nvl, 4); in test() 120 fnvlist_free(nvl); in test() 121 nvl = fnvlist_alloc(); in test() 141 nvl = fnvlist_alloc(); in run_tests() 143 fnvlist_add_boolean(nvl, key); in run_tests() 274 fnvlist_free(nvl); in run_tests() 275 nvl = newval; in run_tests() 283 fnvlist_free(nvl); in run_tests() 284 nvl = newval; in run_tests() [all …]
|
| /freebsd-14.2/stand/libsa/zfs/ |
| H A D | nvlist.c | 380 nvl = calloc(1, sizeof(*nvl)); in nvlist_create() 387 nvl->nv_asize = nvl->nv_size = sizeof(*nvs); in nvlist_create() 728 nvl->nv_idx = nvl->nv_data; in nvlist_export() 757 nvl = malloc(sizeof(*nvl)); in nvlist_import() 773 nvl->nv_size = nvl->nv_asize; in nvlist_import() 774 nvl->nv_data = malloc(nvl->nv_asize); in nvlist_import() 779 nvl->nv_idx = nvl->nv_data; in nvlist_import() 780 bcopy(stream + 4, nvl->nv_data, nvl->nv_asize); in nvlist_import() 836 size = nvl->nv_size - (tail - nvl->nv_data); in nvlist_remove() 915 if (nvl->nv_data + nvl->nv_size < in nvlist_find() [all …]
|
| /freebsd-14.2/lib/libcasper/services/cap_pwd/ |
| H A D | cap_pwd.c | 140 nvlist_t *nvl; in cap_getpwcommon_r() local 157 nvl = cap_xfer_nvlist(chan, nvl); in cap_getpwcommon_r() 158 if (nvl == NULL) { in cap_getpwcommon_r() 165 nvlist_destroy(nvl); in cap_getpwcommon_r() 172 nvlist_destroy(nvl); in cap_getpwcommon_r() 194 nvlist_destroy(nvl); in cap_getpwcommon_r() 276 nvlist_t *nvl; in cap_setpassent() local 281 nvl = cap_xfer_nvlist(chan, nvl); in cap_setpassent() 282 if (nvl == NULL) in cap_setpassent() 289 nvlist_destroy(nvl); in cap_setpassent() [all …]
|
| /freebsd-14.2/lib/libcasper/services/cap_netdb/ |
| H A D | cap_netdb.c | 46 protoent_unpack(nvlist_t *nvl) in protoent_unpack() argument 54 nvlist_destroy(nvl); in protoent_unpack() 68 nvlist_destroy(nvl); in protoent_unpack() 75 nvlist_destroy(nvl); in protoent_unpack() 82 nvlist_t *nvl; in cap_getprotobyname() local 84 nvl = nvlist_create(0); in cap_getprotobyname() 86 nvlist_add_string(nvl, "name", name); in cap_getprotobyname() 87 nvl = cap_xfer_nvlist(chan, nvl); in cap_getprotobyname() 88 if (nvl == NULL) in cap_getprotobyname() 91 nvlist_destroy(nvl); in cap_getprotobyname() [all …]
|
| /freebsd-14.2/lib/libcasper/services/cap_net/ |
| H A D | cap_net.c | 147 nvlist_t *nvl; in request_cb() local 155 nvl = cap_xfer_nvlist(chan, nvl); in request_cb() 200 nvlist_t *nvl; in cap_gethostbyname2() local 206 nvl = cap_xfer_nvlist(chan, nvl); in cap_gethostbyname2() 227 nvlist_t *nvl; in cap_gethostbyaddr() local 233 nvl = cap_xfer_nvlist(chan, nvl); in cap_gethostbyaddr() 290 nvlist_t *nvl; in cap_getaddrinfo() local 309 nvl = cap_xfer_nvlist(chan, nvl); in cap_getaddrinfo() 352 nvlist_t *nvl; in cap_getnameinfo() local 361 nvl = cap_xfer_nvlist(chan, nvl); in cap_getnameinfo() [all …]
|
| /freebsd-14.2/lib/libcasper/services/cap_grp/ |
| H A D | cap_grp.c | 180 nvlist_t *nvl; in cap_getgrcommon_r() local 197 nvl = cap_xfer_nvlist(chan, nvl); in cap_getgrcommon_r() 198 if (nvl == NULL) { in cap_getgrcommon_r() 234 nvlist_destroy(nvl); in cap_getgrcommon_r() 316 nvlist_t *nvl; in cap_setgroupent() local 321 nvl = cap_xfer_nvlist(chan, nvl); in cap_setgroupent() 322 if (nvl == NULL) in cap_setgroupent() 337 nvlist_t *nvl; in cap_setgrent() local 341 nvl = cap_xfer_nvlist(chan, nvl); in cap_setgrent() 342 if (nvl == NULL) in cap_setgrent() [all …]
|