Searched refs:poll (Results 101 - 125 of 360) sorted by relevance

1234567891011>>

/freebsd-current/sys/dev/kbd/
H A Dkbdreg.h97 kbd_poll_mode_t *poll; member in struct:keyboard_switch
318 return ((*kbd->kb_drv->kbdsw->poll)(kbd, on));
/freebsd-current/tools/tools/netmap/
H A Dbridge.c13 #include <sys/poll.h>
292 /* setup poll(2) array */
346 /* poll() also cause kernel to txsync/rxsync the NICs */
347 ret = poll(pollfd, 2, 2500);
350 D("poll %s [0] ev %x %x rx %d@%d tx %d,"
392 * here. The kernel will txsync on next poll().
/freebsd-current/usr.bin/genl/
H A Dgenl.c37 #include <poll.h>
241 if (poll(&pfd, 1, -1) == -1) {
244 err(EXIT_FAILURE, "poll()");
/freebsd-current/contrib/capsicum-test/
H A Dprocdesc.cc10 #include <poll.h>
369 // Can we poll a process descriptor?
376 EXPECT_EQ(0, poll(&fdp, 1, 0));
381 EXPECT_EQ(1, poll(&fdp, 1, 2000));
386 EXPECT_EQ(1, poll(&fdp, 1, 0));
390 // Can multiple processes poll on the same descriptor?
428 EXPECT_EQ(0, poll(&fdp, 1, 0));
442 EXPECT_EQ(1, poll(&fdp, 1, 2000));
H A Dlinux.cc19 #include <poll.h>
73 // To be able to poll() for the timer pop, still need CAP_EVENT.
84 EXPECT_OK(poll(&poll_fd, 1, 400));
90 EXPECT_OK(poll(&poll_fd, 1, 400));
169 // Need CAP_EVENT to get notification of a signal in poll(2).
176 EXPECT_OK(poll(&poll_fd, 1, 400));
181 EXPECT_OK(poll(&poll_fd, 1, 400));
227 EXPECT_OK(poll(&poll_fd, 1, 400));
232 EXPECT_OK(poll(&poll_fd, 1, 400));
461 // Need CAP_EVENT to poll
[all...]
/freebsd-current/lib/libsys/
H A DMakefile.sys78 poll \
287 poll.2 \
480 MLINKS+=poll.2 ppoll.2
/freebsd-current/contrib/netbsd-tests/lib/libcurses/director/
H A Dtestlang_parse.y38 #include <poll.h>
768 while (poll(fds, nfd, 500) == nfd) {
825 if ((result = poll(&fds[0], 2, 0)) != 0) {
827 err(2, "poll of file descriptors failed");
877 * doing input otherwise it will confuse the input poll
910 if (poll(fds, 2, 0) < 0)
911 err(2, "poll failed");
953 i = poll(&fds[0], 3, 1000);
1097 result = poll(&slave_pty, 1, 0);
1480 if (poll(rf
[all...]
/freebsd-current/sys/dev/acpica/
H A Dacpi_apei.c84 struct callout poll; member in struct:apei_pges
490 callout_schedule_sbt(&pges->poll, pges->interval, pges->interval, 0);
689 callout_init(&pges->poll, 1);
721 callout_reset_sbt(&pges->poll, pges->interval, pges->interval,
765 callout_drain(&sc->pges[i].poll);
/freebsd-current/contrib/unbound/util/
H A Dtube.c49 #include <poll.h>
402 /** perform poll() on the fd */
417 pret = poll(&fds, 1, msec);
448 ret = poll(&fds, 1, msec);
/freebsd-current/sys/contrib/libsodium/src/libsodium/randombytes/salsa20/
H A Drandombytes_salsa20_random.c25 # include <poll.h>
196 pret = poll(&pfd, 1, -1);
/freebsd-current/crypto/openssh/
H A Dssh-pkcs11-helper.c30 #include <poll.h>
381 if ((r = poll(pfd, 2, -1 /* INFTIM */)) <= 0) {
384 fatal("poll: %s", strerror(errno));
/freebsd-current/sbin/dhclient/
H A Ddispatch.c53 #include <poll.h>
147 * Wait for packets to come in using poll(). When a packet comes in,
165 error("Can't allocate poll structures.");
188 * int for poll, while not polling with a
213 error("No live interfaces to poll on - exiting.");
216 count = poll(fds, nfds, to_msec);
224 error("poll: %m");
/freebsd-current/contrib/blocklist/bin/
H A Dblacklistd.c58 #include <poll.h>
551 ret = poll(pfd, (nfds_t)nfd, tout);
553 (*lfun)(LOG_DEBUG, "received %d from poll()", ret);
558 (*lfun)(LOG_ERR, "poll (%m)");
/freebsd-current/usr.bin/whois/
H A Dwhois.c34 #include <sys/poll.h>
331 /* Add the socket to poll list */
337 * socket fd is owned by the fds[] poll array.
347 * Poll only if we have something to poll,
358 * If we are at the last address, poll until a connection is
366 * if we still have more untried resolved addresses, poll only
367 * once; otherwise, poll until all descriptors have errors,
373 n = poll(fds, i, timeout);
/freebsd-current/libexec/getty/
H A Dsubr.c39 #include <poll.h>
644 if (poll(set, 1, 5000) <= 0)
/freebsd-current/sys/sys/
H A Dsyscall.mk134 poll.o \
/freebsd-current/tools/test/gpioevents/
H A Dgpioevents.c46 #include <sys/poll.h>
69 fprintf(stderr, " -d delay before each call to read/poll/select/etc\n");
265 verbose("sleep %f seconds before poll()\n",
269 res = poll(&fds, 1, timeout);
271 err(EXIT_FAILURE, "Cannot poll() %s", file);
273 printf("%s: poll() timed out on %s\n", getprogname(),
276 printf("%s: poll() returned %i (revents: ",
/freebsd-current/lib/libthr/thread/
H A Dthr_syscalls.c83 #include <poll.h>
652 SLOT(poll);
/freebsd-current/libexec/tftpd/
H A Dtftp-io.c38 #include <poll.h>
395 if (poll(&pfd, 1, 1000 * (timeout < 0 ? -timeout : timeout)) < 1) {
/freebsd-current/sys/contrib/openzfs/lib/libspl/include/
H A DMakefile.am47 %D%/sys/poll.h \
/freebsd-current/contrib/libevent/
H A Devport.c64 #include <poll.h>
/freebsd-current/contrib/tnftp/src/
H A Dftp_var.h111 #include <poll.h>
/freebsd-current/crypto/heimdal/appl/telnet/telnet/
H A Dexterns.h269 int poll);
/freebsd-current/contrib/ntp/sntp/libevent/
H A Devport.c64 #include <poll.h>
/freebsd-current/contrib/netbsd-tests/fs/puffs/h_dtfs/
H A Ddtfs.c197 PUFFSOP_SET(pops, dtfs, node, poll);
235 /* often enough for testing poll */

Completed in 323 milliseconds

1234567891011>>