| 181 | } |
| 182 | |
| 183 | static void return_fd(lua_State *L, fd_set *set, t_socket max_fd, |
| 184 | int itab, int tab, int start) { |
| 185 | t_socket fd; |
| 186 | for (fd = 0; fd < max_fd; fd++) { |
| 187 | if (FD_ISSET(fd, set)) { |
| 188 | lua_pushnumber(L, ++start); |
| 189 | lua_pushnumber(L, (lua_Number) fd); |
| 190 | lua_gettable(L, itab); |
| 191 | lua_settable(L, tab); |
| 192 | } |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | static void make_assoc(lua_State *L, int tab) { |
| 197 | int i = 1, atab; |
no test coverage detected