| 1516 | } |
| 1517 | |
| 1518 | void |
| 1519 | nvlist_add_null(nvlist_t *nvl, const char *name) |
| 1520 | { |
| 1521 | nvpair_t *nvp; |
| 1522 | |
| 1523 | if (nvlist_error(nvl) != 0) { |
| 1524 | ERRNO_SET(nvlist_error(nvl)); |
| 1525 | return; |
| 1526 | } |
| 1527 | |
| 1528 | nvp = nvpair_create_null(name); |
| 1529 | if (nvp == NULL) { |
| 1530 | nvl->nvl_error = ERRNO_OR_DEFAULT(ENOMEM); |
| 1531 | ERRNO_SET(nvl->nvl_error); |
| 1532 | } else { |
| 1533 | (void)nvlist_move_nvpair(nvl, nvp); |
| 1534 | } |
| 1535 | } |
| 1536 | |
| 1537 | void |
| 1538 | nvlist_add_binary(nvlist_t *nvl, const char *name, const void *value, |
nothing calls this directly
no test coverage detected