Lines Matching defs:sock_fd
67 static int *sock_fd;
192 sock_fd = NULL;
228 free(sock_fd);
230 sock_fd = NULL;
277 free(sock_fd);
313 * Any file descriptors that have been created are stored in sock_fd and
356 sock_fd = realloc(sock_fd, (sock_fdcnt + 1) * sizeof(int));
357 if (sock_fd == NULL)
359 sock_fd[sock_fdcnt++] = -1; /* Set invalid for now. */
469 sock_fd[sock_fdcnt - 1] = fd;
544 fd = sock_fd[sock_fdpos++];
608 if (sock_fd[i] >= 0) {
609 shutdown(sock_fd[i], SHUT_RDWR);
610 close(sock_fd[i]);