Home
last modified time | relevance | path

Searched refs:pollfd (Results 1 – 25 of 89) sorted by relevance

1234

/external/selinux/policycoreutils/mcstrans/src/
Dmcstransd.c285 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) in add_pollfd()
296 struct pollfd *tmp = (struct pollfd *)realloc(*ufds, in add_pollfd()
297 (*nfds+1)*sizeof(struct pollfd)); in add_pollfd()
315 adj_pollfds(struct pollfd **ufds, int *nfds) in adj_pollfds()
331 process_events(struct pollfd **ufds, int *nfds) in process_events()
410 struct pollfd *ufds = (struct pollfd *)malloc(sizeof(struct pollfd)); in process_connections()
/external/wpa_supplicant_8/src/utils/
Deloop.c78 struct pollfd *pollfds;
79 struct pollfd **pollfds_map;
192 struct pollfd **nmap; in eloop_sock_table_add_sock()
194 sizeof(struct pollfd *)); in eloop_sock_table_add_sock()
203 struct pollfd *n; in eloop_sock_table_add_sock()
206 sizeof(struct pollfd)); in eloop_sock_table_add_sock()
334 static struct pollfd * find_pollfd(struct pollfd **pollfds_map, int fd, int mx) in find_pollfd()
345 struct pollfd *pollfds, in eloop_sock_table_set_fds()
346 struct pollfd **pollfds_map, in eloop_sock_table_set_fds()
352 struct pollfd *pfd; in eloop_sock_table_set_fds()
[all …]
/external/fio/os/windows/posix/include/sys/
Dpoll.h6 struct pollfd struct
13 int poll(struct pollfd fds[], nfds_t nfds, int timeout); argument
/external/valgrind/memcheck/tests/
Dbadpoll.c12 struct pollfd* ufds = malloc(2 * sizeof(struct pollfd) - 1); in main()
/external/openssh/openbsd-compat/
Dbsd-poll.h34 typedef struct pollfd { struct
59 int poll(struct pollfd *, nfds_t, int); argument
Dbsd-poll.c43 poll(struct pollfd *fds, nfds_t nfds, int timeout) in poll()
/external/linux-tools-perf/src/tools/perf/util/
Devlist.h12 struct pollfd;
44 struct pollfd *pollfd; member
Devlist.c92 free(evlist->pollfd); in perf_evlist__exit()
94 evlist->pollfd = NULL; in perf_evlist__exit()
329 evlist->pollfd = malloc(sizeof(struct pollfd) * nfds); in perf_evlist__alloc_pollfd()
330 return evlist->pollfd != NULL ? 0 : -ENOMEM; in perf_evlist__alloc_pollfd()
336 evlist->pollfd[evlist->nr_fds].fd = fd; in perf_evlist__add_pollfd()
337 evlist->pollfd[evlist->nr_fds].events = POLLIN; in perf_evlist__add_pollfd()
716 if (evlist->pollfd == NULL && perf_evlist__alloc_pollfd(evlist) < 0) in perf_evlist__mmap()
/external/libusb/libusb/
Dio.c1781 struct pollfd *fds; in handle_events()
1795 struct libusb_pollfd *pollfd = &ipollfd->pollfd; in handle_events() local
1796 int fd = pollfd->fd; in handle_events()
1799 fds[i].events = pollfd->events; in handle_events()
2191 ipollfd->pollfd.fd = fd; in usbi_add_pollfd()
2192 ipollfd->pollfd.events = events; in usbi_add_pollfd()
2211 if (ipollfd->pollfd.fd == fd) { in usbi_remove_pollfd()
Dlibusbi.h316 struct libusb_pollfd pollfd; member
764 struct pollfd *fds, nfds_t nfds, int num_ready);
/external/linux-tools-perf/src/tools/perf/bench/
Dsched-messaging.c76 struct pollfd pollfd = { .fd = wakefd, .events = POLLIN }; in ready() local
83 if (poll(&pollfd, 1, -1) != 1) in ready()
/external/openssh/
Datomicio.c58 struct pollfd pfd; in atomicio6()
108 struct pollfd pfd; in atomiciov6()
Dmonitor_fdpass.c66 struct pollfd pfd; in mm_send_fd()
129 struct pollfd pfd; in mm_receive_fd()
/external/fio/engines/
Dbinject.c25 struct pollfd *pfds;
51 static int pollin_events(struct pollfd *pfds, int fds) in pollin_events()
403 bd->pfds = malloc(sizeof(struct pollfd) * td->o.nr_files); in fio_binject_init()
404 memset(bd->pfds, 0, sizeof(struct pollfd) * td->o.nr_files); in fio_binject_init()
Dsg.c26 struct pollfd *pfds;
53 static int pollin_events(struct pollfd *pfds, int fds) in pollin_events()
333 sd->pfds = malloc(sizeof(struct pollfd) * td->o.nr_files); in fio_sgio_init()
334 memset(sd->pfds, 0, sizeof(struct pollfd) * td->o.nr_files); in fio_sgio_init()
/external/toybox/toys/other/
Dnetcat.c86 struct pollfd pollfds[2]; in netcat_main()
88 memset(pollfds, 0, 2*sizeof(struct pollfd)); in netcat_main()
/external/kernel-headers/original/uapi/asm-generic/
Dpoll.h35 struct pollfd { struct
/external/blktrace/
Dblktrace.c166 struct pollfd *pfds;
231 struct pollfd *pfds;
458 static void clear_events(struct pollfd *pfd) in clear_events()
1598 struct pollfd *pfd; in open_ios()
1605 tp->pfds = calloc(ndevs, sizeof(struct pollfd)); in open_ios()
1606 memset(tp->pfds, 0, ndevs * sizeof(struct pollfd)); in open_ios()
1666 struct pollfd *pfd = tp->pfds; in handle_pfds_file()
1710 struct pollfd *pfd = tp->pfds; in handle_pfds_netclient()
1744 struct pollfd *pfd = tp->pfds; in handle_pfds_entries()
2183 ns->pfds = realloc(ns->pfds, (ns->connects+1) * sizeof(struct pollfd)); in ch_add_connection()
[all …]
/external/netcat/
Datomicio.c46 struct pollfd pfd; in atomicio()
/external/valgrind/auxprogs/
Dvalgrind-listener.c106 struct pollfd *conn_pollfd;
336 { struct pollfd ufd; in main()
/external/valgrind/memcheck/tests/linux/
Dsyscalls-2007.c41 struct pollfd pfd[2]; in main()
/external/tinycompress/
Dcompress.c354 struct pollfd fds; in compress_write()
416 struct pollfd fds; in compress_read()
612 struct pollfd fds; in compress_wait()
/external/libusb/libusb/os/
Ddarwin_usb.c1384 static int op_handle_events(struct libusb_context *ctx, struct pollfd *fds, nfds_t nfds, int num_re… in op_handle_events()
1393 struct pollfd *pollfd = &fds[i]; in op_handle_events() local
1397 usbi_info (ctx, "checking fd %i with revents = %x", fds[i], pollfd->revents); in op_handle_events()
1399 if (!pollfd->revents) in op_handle_events()
1405 if (hpriv->fds[0] == pollfd->fd) in op_handle_events()
1409 if (!(pollfd->revents & POLLERR)) { in op_handle_events()
/external/linux-tools-perf/src/tools/perf/tests/
Dtask-exit.c106 poll(evlist->pollfd, evlist->nr_fds, -1); in test__task_exit()
Dopen-syscall-tp-fields.c104 poll(evlist->pollfd, evlist->nr_fds, 10); in test__syscall_open_tp_fields()

1234