| 1936 | } |
| 1937 | |
| 1938 | static void sockpool_remove_fd(int fd) |
| 1939 | { |
| 1940 | for (int i = 0; i < sockpool_fd_count; i++) { |
| 1941 | struct sockpool_fd_list *sp = &sockpool_fds[i]; |
| 1942 | if (sp->sockpool_fd == fd) { |
| 1943 | assert(sp->in_use == 1); |
| 1944 | sp->sockpool_fd = -1; |
| 1945 | sp->in_use = 0; |
| 1946 | break; |
| 1947 | } |
| 1948 | } |
| 1949 | } |
| 1950 | |
| 1951 | static void sockpool_close_all(void) |
| 1952 | { |
no outgoing calls
no test coverage detected