Lines Matching defs:nhdls
1453 * that match the remaining arguments. The output parameter nhdls indicates how
1457 * It is the responsibility of the caller to free *hip when *nhdls != 0.
1460 get_hinfo(int fd, char *name, struct handle_info **hip, size_t *nhdls,
1482 *nhdls = 0;
1486 } else if ((*nhdls = hdli.count) == 0) {
1489 } else if ((*hip = GETSTRUCT(struct handle_info, *nhdls)) == 0) {
1495 /* Ask for *nhdls handles */
1506 if (hdli.count < *nhdls)
1507 *nhdls = hdli.count; /* some handles have gone away */
1509 msg(4, "qsorting %d handles\n", *nhdls);
1510 if (*nhdls > 1)
1512 qsort((void *)*hip, *nhdls, sizeof (**hip), hdl_cmp);
1514 if ((chosen = malloc(sizeof (hp) * *nhdls)) != NULL) {
1520 for (i = 0, hp = *hip, ip = chosen; i < *nhdls;
1567 if (*nhdls != scnt) {
1575 *nhdls = scnt;
1585 for (i = 0, hp = *hip; i < *nhdls; i++, hp++) {
1591 if (*nhdls == 0 && *hip)
1594 msg(4, "get_info: %s got %d handles\n", name, *nhdls);