Lines Matching refs:ii

554 	unsigned int ii;  in nvpair_pack_string_array()  local
566 for (ii = 0; ii < nvp->nvp_nitems; ii++) { in nvpair_pack_string_array()
567 len = strlen(array[ii]) + 1; in nvpair_pack_string_array()
570 memcpy(ptr, (const void *)array[ii], len); in nvpair_pack_string_array()
588 unsigned int ii; in nvpair_pack_descriptor_array() local
597 for (ii = 0; ii < nvp->nvp_nitems; ii++) { in nvpair_pack_descriptor_array()
600 value = array[ii]; in nvpair_pack_descriptor_array()
976 unsigned int ii, j; in nvpair_unpack_string_array() local
988 for (ii = 0; ii < nvp->nvp_nitems; ii++) { in nvpair_unpack_string_array()
1010 for (ii = 0; ii < nvp->nvp_nitems; ii++) { in nvpair_unpack_string_array()
1011 value[ii] = nv_strdup((const char *)ptr); in nvpair_unpack_string_array()
1012 if (value[ii] == NULL) in nvpair_unpack_string_array()
1014 len = strlen(value[ii]) + 1; in nvpair_unpack_string_array()
1022 for (j = 0; j < ii; j++) in nvpair_unpack_string_array()
1035 unsigned int ii; in nvpair_unpack_descriptor_array() local
1051 for (ii = 0; ii < nvp->nvp_nitems; ii++) { in nvpair_unpack_descriptor_array()
1069 array[ii] = (uint64_t)fds[idx]; in nvpair_unpack_descriptor_array()
1087 unsigned int ii, j; in nvpair_unpack_nvlist_array() local
1103 for (ii = 0; ii < nvp->nvp_nitems; ii++) { in nvpair_unpack_nvlist_array()
1104 value[ii] = nvlist_create(0); in nvpair_unpack_nvlist_array()
1105 if (value[ii] == NULL) in nvpair_unpack_nvlist_array()
1107 if (ii > 0) { in nvpair_unpack_nvlist_array()
1109 (uint64_t)(uintptr_t)value[ii], 0, 0); in nvpair_unpack_nvlist_array()
1112 nvlist_set_array_next(value[ii - 1], tmpnvp); in nvpair_unpack_nvlist_array()
1123 for (j = 0; j <= ii; j++) in nvpair_unpack_nvlist_array()
1389 unsigned int ii; in nvpair_create_string_array() local
1404 for (ii = 0; ii < nitems; ii++) { in nvpair_create_string_array()
1405 if (value[ii] == NULL) { in nvpair_create_string_array()
1410 size = strlen(value[ii]) + 1; in nvpair_create_string_array()
1412 data[ii] = nv_strdup(value[ii]); in nvpair_create_string_array()
1413 if (data[ii] == NULL) in nvpair_create_string_array()
1422 for (; ii > 0; ii--) in nvpair_create_string_array()
1423 nv_free(data[ii - 1]); in nvpair_create_string_array()
1435 unsigned int ii; in nvpair_create_nvlist_array() local
1451 for (ii = 0; ii < nitems; ii++) { in nvpair_create_nvlist_array()
1452 if (value[ii] == NULL) { in nvpair_create_nvlist_array()
1457 nvls[ii] = nvlist_clone(value[ii]); in nvpair_create_nvlist_array()
1458 if (nvls[ii] == NULL) in nvpair_create_nvlist_array()
1461 if (ii > 0) { in nvpair_create_nvlist_array()
1465 (uint64_t)(uintptr_t)nvls[ii], 0, 0); in nvpair_create_nvlist_array()
1468 nvlist_destroy(nvls[ii]); in nvpair_create_nvlist_array()
1472 nvlist_set_array_next(nvls[ii - 1], nvp); in nvpair_create_nvlist_array()
1483 for (ii = 0; ii < nitems; ii++) in nvpair_create_nvlist_array()
1484 nvlist_set_parent(nvls[ii], parent); in nvpair_create_nvlist_array()
1490 for (; ii > 0; ii--) in nvpair_create_nvlist_array()
1491 nvlist_destroy(nvls[ii - 1]); in nvpair_create_nvlist_array()
1503 unsigned int ii; in nvpair_create_descriptor_array() local
1517 for (ii = 0; ii < nitems; ii++) { in nvpair_create_descriptor_array()
1518 if (value[ii] == -1) { in nvpair_create_descriptor_array()
1519 fds[ii] = -1; in nvpair_create_descriptor_array()
1521 fds[ii] = fcntl(value[ii], F_DUPFD_CLOEXEC, 0); in nvpair_create_descriptor_array()
1522 if (fds[ii] == -1) in nvpair_create_descriptor_array()
1533 for (; ii > 0; ii--) { in nvpair_create_descriptor_array()
1534 if (fds[ii - 1] != -1) in nvpair_create_descriptor_array()
1535 close(fds[ii - 1]); in nvpair_create_descriptor_array()
1716 unsigned int ii; in nvpair_move_nvlist_array() local
1724 for (ii = 0; ii < nitems; ii++) { in nvpair_move_nvlist_array()
1725 if (value == NULL || nvlist_error(value[ii]) != 0 || in nvpair_move_nvlist_array()
1726 nvlist_get_pararr(value[ii], NULL) != NULL) { in nvpair_move_nvlist_array()
1730 if (ii > 0) { in nvpair_move_nvlist_array()
1734 (uint64_t)(uintptr_t)value[ii], 0, 0); in nvpair_move_nvlist_array()
1737 nvlist_set_array_next(value[ii - 1], nvp); in nvpair_move_nvlist_array()
1748 for (ii = 0; ii < nitems; ii++) in nvpair_move_nvlist_array()
1749 nvlist_set_parent(value[ii], parent); in nvpair_move_nvlist_array()
1754 for (ii = 0; ii < nitems; ii++) { in nvpair_move_nvlist_array()
1755 if (value[ii] != NULL && in nvpair_move_nvlist_array()
1756 nvlist_get_pararr(value[ii], NULL) != NULL) { in nvpair_move_nvlist_array()
1757 nvlist_destroy(value[ii]); in nvpair_move_nvlist_array()