Back to index

glibc  2.9
poll.c File Reference
#include <sys/poll.h>
#include <sys/time.h>
#include <hurd.h>
#include <hurd/fd.h>

Go to the source code of this file.


int __poll (struct pollfd *fds, nfds_t nfds, int timeout)

Function Documentation

int __poll ( struct pollfd fds,
nfds_t  nfds,
int  timeout 

Definition at line 32 of file poll.c.

  struct timespec ts, *to;

  if (timeout < 0)
    to = NULL;
      ts.tv_sec = timeout / 1000;
      ts.tv_nsec = (timeout % 1000) * 1000000;
      to = &ts;

  return _hurd_select (nfds, fds, NULL, NULL, NULL, to, NULL);

Here is the call graph for this function: