Lines Matching refs:nb_fds
810 int fd, nb_fds = 0; in prog_fd_by_nametag() local
824 return nb_fds; in prog_fd_by_nametag()
855 if (nb_fds > 0) { in prog_fd_by_nametag()
856 tmp = realloc(*fds, (nb_fds + 1) * sizeof(int)); in prog_fd_by_nametag()
863 (*fds)[nb_fds++] = fd; in prog_fd_by_nametag()
869 while (--nb_fds >= 0) in prog_fd_by_nametag()
870 close((*fds)[nb_fds]); in prog_fd_by_nametag()
943 int nb_fds, fd; in prog_parse_fd() local
950 nb_fds = prog_parse_fds(argc, argv, &fds); in prog_parse_fd()
951 if (nb_fds != 1) { in prog_parse_fd()
952 if (nb_fds > 1) { in prog_parse_fd()
954 while (nb_fds--) in prog_parse_fd()
955 close(fds[nb_fds]); in prog_parse_fd()
970 int fd, nb_fds = 0; in map_fd_by_name() local
984 return nb_fds; in map_fd_by_name()
1006 if (nb_fds > 0) { in map_fd_by_name()
1007 tmp = realloc(*fds, (nb_fds + 1) * sizeof(int)); in map_fd_by_name()
1014 (*fds)[nb_fds++] = fd; in map_fd_by_name()
1020 while (--nb_fds >= 0) in map_fd_by_name()
1021 close((*fds)[nb_fds]); in map_fd_by_name()
1080 int nb_fds, fd; in map_parse_fd() local
1087 nb_fds = map_parse_fds(argc, argv, &fds); in map_parse_fd()
1088 if (nb_fds != 1) { in map_parse_fd()
1089 if (nb_fds > 1) { in map_parse_fd()
1091 while (nb_fds--) in map_parse_fd()
1092 close(fds[nb_fds]); in map_parse_fd()