Lines Matching refs:nb_fds
731 int fd, nb_fds = 0; in prog_fd_by_nametag() local
745 return nb_fds; in prog_fd_by_nametag()
776 if (nb_fds > 0) { in prog_fd_by_nametag()
777 tmp = realloc(*fds, (nb_fds + 1) * sizeof(int)); in prog_fd_by_nametag()
784 (*fds)[nb_fds++] = fd; in prog_fd_by_nametag()
790 while (--nb_fds >= 0) in prog_fd_by_nametag()
791 close((*fds)[nb_fds]); in prog_fd_by_nametag()
864 int nb_fds, fd; in prog_parse_fd() local
871 nb_fds = prog_parse_fds(argc, argv, &fds); in prog_parse_fd()
872 if (nb_fds != 1) { in prog_parse_fd()
873 if (nb_fds > 1) { in prog_parse_fd()
875 while (nb_fds--) in prog_parse_fd()
876 close(fds[nb_fds]); in prog_parse_fd()
891 int fd, nb_fds = 0; in map_fd_by_name() local
905 return nb_fds; in map_fd_by_name()
927 if (nb_fds > 0) { in map_fd_by_name()
928 tmp = realloc(*fds, (nb_fds + 1) * sizeof(int)); in map_fd_by_name()
935 (*fds)[nb_fds++] = fd; in map_fd_by_name()
941 while (--nb_fds >= 0) in map_fd_by_name()
942 close((*fds)[nb_fds]); in map_fd_by_name()
1001 int nb_fds, fd; in map_parse_fd() local
1008 nb_fds = map_parse_fds(argc, argv, &fds); in map_parse_fd()
1009 if (nb_fds != 1) { in map_parse_fd()
1010 if (nb_fds > 1) { in map_parse_fd()
1012 while (nb_fds--) in map_parse_fd()
1013 close(fds[nb_fds]); in map_parse_fd()