Lines Matching defs:fds
92 int fds[2];
95 if (pipe(fds) == -1) {
107 if (ioctl(fdcons, SRIOCSREDIR, fds[0]) == -1) {
112 return fds[1];
352 struct pollfd fds[2];
359 fds[CONSOLE_FD].fd = console;
360 fds[CONSOLE_FD].events = POLLIN;
362 fds[XSERVER_FD].fd = ConnectionNumber(dpy);
363 fds[XSERVER_FD].events = POLLIN;
367 while (poll(fds, fdcount, -1) >= 0) {
369 if ((dpy != NULL) && (fds[XSERVER_FD].revents)) {
374 if (fds[CONSOLE_FD].revents & POLLIN) {