Lines Matching defs:sock_fd
248 static int *sock_fd;
530 sock_fd = NULL;
565 free(sock_fd);
567 sock_fd = NULL;
613 free(sock_fd);
651 * Any file descriptors that have been created are stored in sock_fd and
695 sock_fd = realloc(sock_fd, (sock_fdcnt + 1) * sizeof(int));
696 if (sock_fd == NULL)
698 sock_fd[sock_fdcnt++] = -1; /* Set invalid for now. */
829 sock_fd[sock_fdcnt - 1] = fd;
904 fd = sock_fd[sock_fdpos++];
972 if (sock_fd[i] >= 0) {
973 shutdown(sock_fd[i], SHUT_RDWR);
974 close(sock_fd[i]);