/external/dropbear/ |
common-session.c | 122 fd_set readfd, writefd; local 132 FD_ZERO(&readfd); 135 FD_SET(ses.sock, &readfd); 143 FD_SET(ses.signal_pipe[0], &readfd); 147 setchannelfds(&readfd, &writefd); 149 val = select(ses.maxfd+1, &readfd, &writefd, NULL, &timeout); 165 FD_ZERO(&readfd); 171 if (FD_ISSET(ses.signal_pipe[0], &readfd)) { 185 if (FD_ISSET(ses.sock, &readfd)) { 199 channelio(&readfd, &writefd) [all...] |
random.c | 56 int readfd; local 65 readfd = open(DROPBEAR_RANDOM_DEV, O_RDONLY); 66 if (readfd < 0) { 77 readfd = socket(PF_UNIX, SOCK_STREAM, 0); 78 if (readfd < 0) { 82 if (connect(readfd, (struct sockaddr*)&egdsock, 91 if (write(readfd, egdcmd, 2) < 0) 108 FD_SET(readfd, &read_fds); 109 ret = select(readfd + 1, &read_fds, NULL, NULL, &timeout); 116 readlen = read(readfd, &buf[readpos], buflen - readpos) [all...] |
channel.h | 69 int readfd; /* read from insecure size, written to wire */ member in struct:Channel 70 int errfd; /* used like writefd or readfd, depending if it's client or server. 106 void setchannelfds(fd_set *readfd, fd_set *writefd); 107 void channelio(fd_set *readfd, fd_set *writefd);
|