Home
last modified time | relevance | path

Searched refs:readfd (Results 1 – 6 of 6) sorted by relevance

/external/dropbear/
Drandom.c56 int readfd; in readrand() local
65 readfd = open(DROPBEAR_RANDOM_DEV, O_RDONLY); in readrand()
66 if (readfd < 0) { in readrand()
77 readfd = socket(PF_UNIX, SOCK_STREAM, 0); in readrand()
78 if (readfd < 0) { in readrand()
82 if (connect(readfd, (struct sockaddr*)&egdsock, in readrand()
91 if (write(readfd, egdcmd, 2) < 0) in readrand()
108 FD_SET(readfd, &read_fds); in readrand()
109 ret = select(readfd + 1, &read_fds, NULL, NULL, &timeout); in readrand()
116 readlen = read(readfd, &buf[readpos], buflen - readpos); in readrand()
[all …]
Dcommon-session.c122 fd_set readfd, writefd; in session_loop() local
132 FD_ZERO(&readfd); in session_loop()
135 FD_SET(ses.sock, &readfd); in session_loop()
143 FD_SET(ses.signal_pipe[0], &readfd); in session_loop()
147 setchannelfds(&readfd, &writefd); in session_loop()
149 val = select(ses.maxfd+1, &readfd, &writefd, NULL, &timeout); in session_loop()
165 FD_ZERO(&readfd); in session_loop()
171 if (FD_ISSET(ses.signal_pipe[0], &readfd)) { in session_loop()
185 if (FD_ISSET(ses.sock, &readfd)) { in session_loop()
199 channelio(&readfd, &writefd); in session_loop()
Dcommon-channel.c147 newchan->readfd = FD_UNINIT; in newchannel()
206 if (channel->readfd >= 0 && FD_ISSET(channel->readfd, readfds)) { in channelio()
265 channel->writefd, channel->readfd, in check_close()
295 if (channel->readfd >= 0 && channel->transwindow > 0) { in check_close()
308 && channel->readfd == FD_CLOSED in check_close()
315 && channel->readfd == FD_CLOSED in check_close()
344 channel->readfd = channel->writefd; in check_in_progress()
368 close_chan_fd(channel, channel->readfd, SHUT_RD); in send_msg_channel_close()
449 if (channel->readfd >= 0) { in setchannelfds()
450 FD_SET(channel->readfd, readfds); in setchannelfds()
[all …]
Dchannel.h69 int readfd; /* read from insecure size, written to wire */ member
106 void setchannelfds(fd_set *readfd, fd_set *writefd);
107 void channelio(fd_set *readfd, fd_set *writefd);
Dsvr-chansession.c713 channel->readfd = outfds[FDIN]; in noptycommand()
716 ses.maxfd = MAX(ses.maxfd, channel->readfd); in noptycommand()
719 setnonblocking(channel->readfd); in noptycommand()
834 channel->readfd = chansess->master; in ptycommand()
Dcli-chansession.c347 channel->readfd = STDIN_FILENO; in cli_initchansess()