Lines Matching refs:cs
351 static int output_sockets_list(struct socket_info *socket_infos, unsigned cs) { in output_sockets_list() argument
373 if (cs) { in output_sockets_list()
374 for (struct socket_info *s = socket_infos; s < socket_infos + cs; s++) { in output_sockets_list()
419 printf("\n%s%u sockets listed.%s\n", on, cs, off); in output_sockets_list()
433 unsigned cs = 0; in verb_list_sockets() local
469 if (!GREEDY_REALLOC(socket_infos, cs + c)) { in verb_list_sockets()
475 socket_infos[cs + i] = (struct socket_info) { in verb_list_sockets()
485 cs += c; in verb_list_sockets()
490 typesafe_qsort(socket_infos, cs, socket_info_compare); in verb_list_sockets()
493 output_sockets_list(socket_infos, cs); in verb_list_sockets()
496 assert(cs == 0 || socket_infos); in verb_list_sockets()
497 for (struct socket_info *s = socket_infos; s < socket_infos + cs; s++) { in verb_list_sockets()