Home
last modified time | relevance | path

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

/vim-8.2.3635/runtime/tools/
H A Dxcmdsrv_client.c211 struct pollfd fds; in sendToVim() local
213 fds.fd = ConnectionNumber(dpy); in sendToVim()
214 fds.events = POLLIN; in sendToVim()
215 if (poll(&fds, 1, SEND_MSEC_POLL) < 0) in sendToVim()
218 fd_set fds; in sendToVim()
223 FD_ZERO(&fds); in sendToVim()
224 FD_SET(ConnectionNumber(dpy), &fds); in sendToVim()
225 if (select(ConnectionNumber(dpy) + 1, &fds, NULL, NULL, &tv) < 0) in sendToVim()
/vim-8.2.3635/src/
H A Dif_xcmdsrv.c562 struct pollfd fds; in ServerWait() local
564 fds.fd = ConnectionNumber(dpy); in ServerWait()
565 fds.events = POLLIN; in ServerWait()
567 fd_set fds; in ServerWait() local
572 FD_ZERO(&fds); in ServerWait()
573 FD_SET(ConnectionNumber(dpy), &fds); in ServerWait()
599 if (poll(&fds, 1, SEND_MSEC_POLL) < 0) in ServerWait()
602 if (select(FD_SETSIZE, &fds, NULL, NULL, &tv) < 0) in ServerWait()
H A Dchannel.c1599 struct pollfd fds; in can_write_buf_line()
1601 fds.fd = in_part->ch_fd; in can_write_buf_line()
1602 fds.events = POLLOUT; in can_write_buf_line()
1603 if (poll(&fds, 1, 0) <= 0) in can_write_buf_line()
3358 fds[nfd].events = POLLOUT; in channel_fill_poll_write()
3470 fds[0].fd = fd; in channel_wait()
3471 fds[0].events = POLLIN; in channel_wait()
3475 if (fds[0].revents & POLLIN) in channel_wait()
4382 struct pollfd *fds = fds_in; in channel_poll_setup() local
4405 fds[nfd].events = POLLIN; in channel_poll_setup()
[all …]
H A Dos_unix.c6218 fds[0].fd = fd; in RealWaitForChar()
6219 fds[0].events = POLLIN; in RealWaitForChar()
6228 fds[nfd].events = POLLIN; in RealWaitForChar()
6236 fds[nfd].fd = gpm_fd; in RealWaitForChar()
6237 fds[nfd].events = POLLIN; in RealWaitForChar()
6245 fds[nfd].fd = xsmp_icefd; in RealWaitForChar()
6246 fds[nfd].events = POLLIN; in RealWaitForChar()
6251 nfd = channel_poll_setup(nfd, &fds, &towait); in RealWaitForChar()
6256 ret = poll(fds, nfd, towait); in RealWaitForChar()
6284 if (fds[xsmp_idx].revents & POLLIN) in RealWaitForChar()
[all …]
/vim-8.2.3635/runtime/doc/
H A Dversion5.txt5967 Problem: Compilation error for using "fds[] & POLLIN". (Jeff Walker)
5968 Solution: Use "fds[].revents & POLLIN".
H A Dversion8.txt9174 Solution: Also used read-fds. Use getsockopt() to check for errors. (Ozaki