Lines Matching refs:nhdls
1460 get_hinfo(int fd, char *name, struct handle_info **hip, size_t *nhdls, in get_hinfo() argument
1482 *nhdls = 0; in get_hinfo()
1486 } else if ((*nhdls = hdli.count) == 0) { in get_hinfo()
1489 } else if ((*hip = GETSTRUCT(struct handle_info, *nhdls)) == 0) { in get_hinfo()
1506 if (hdli.count < *nhdls) in get_hinfo()
1507 *nhdls = hdli.count; /* some handles have gone away */ in get_hinfo()
1509 msg(4, "qsorting %d handles\n", *nhdls); in get_hinfo()
1510 if (*nhdls > 1) in get_hinfo()
1512 qsort((void *)*hip, *nhdls, sizeof (**hip), hdl_cmp); in get_hinfo()
1514 if ((chosen = malloc(sizeof (hp) * *nhdls)) != NULL) { in get_hinfo()
1520 for (i = 0, hp = *hip, ip = chosen; i < *nhdls; in get_hinfo()
1567 if (*nhdls != scnt) { in get_hinfo()
1575 *nhdls = scnt; in get_hinfo()
1585 for (i = 0, hp = *hip; i < *nhdls; i++, hp++) { in get_hinfo()
1591 if (*nhdls == 0 && *hip) in get_hinfo()
1594 msg(4, "get_info: %s got %d handles\n", name, *nhdls); in get_hinfo()