Searched refs:pfd (Results 1 – 10 of 10) sorted by relevance
/system/core/libcutils/ |
D | abort_socket.c | 71 struct pollfd pfd[2]; in asocket_connect() local 73 pfd[0].fd = s->fd; in asocket_connect() 74 pfd[0].events = POLLOUT; in asocket_connect() 75 pfd[0].revents = 0; in asocket_connect() 76 pfd[1].fd = s->abort_fd[0]; in asocket_connect() 77 pfd[1].events = POLLIN; in asocket_connect() 78 pfd[1].revents = 0; in asocket_connect() 81 ret = poll(pfd, 2, timeout); in asocket_connect() 92 if (pfd[1].revents) { in asocket_connect() 98 if (pfd[0].revents) { in asocket_connect() [all …]
|
/system/extras/fatblock/ |
D | fdpool.c | 75 static void fdpool_clear(struct pooled_fd *pfd) in fdpool_clear() argument 77 assert(pfd); in fdpool_clear() 79 pfd->fd = INVALID_FD; in fdpool_clear() 80 pfd->prev = pfd->next = NULL; in fdpool_clear() 83 static void fdpool_unpool(struct pooled_fd *pfd) in fdpool_unpool() argument 85 close(pfd->fd); in fdpool_unpool() 86 fdpool_clear(pfd); in fdpool_unpool() 97 static void fdpool_pool(struct pooled_fd *pfd, int fd) in fdpool_pool() argument 102 fdpool_insert_head(pfd); in fdpool_pool() 103 pfd->fd = fd; in fdpool_pool() [all …]
|
D | fdpool.h | 26 void fdpool_init(struct pooled_fd *pfd); 27 int fdpool_open(struct pooled_fd *pfd, const char *pathname, int flags); 28 void fdpool_close(struct pooled_fd *pfd);
|
D | fatblock.h | 53 struct pooled_fd pfd; member
|
D | read.c | 101 fd = fdpool_open(&f->pfd, f->path, O_RDONLY); in file_read()
|
D | import.c | 129 fdpool_init(&f->pfd); in import_file()
|
/system/bluetooth/tools/ |
D | pipetest.c | 107 struct pollfd pfd; in thread_poll() local 109 pfd.fd = fd; in thread_poll() 110 pfd.events = 0; in thread_poll() 111 _poll(&pfd, 1, -1); in thread_poll() 117 struct pollfd pfd; in thread_pollin() local 119 pfd.fd = fd; in thread_pollin() 120 pfd.events = POLLIN; in thread_pollin() 121 _poll(&pfd, 1, -1); in thread_pollin() 127 struct pollfd pfd; in thread_pollin_rand_delay() local 130 pfd.fd = fd; in thread_pollin_rand_delay() [all …]
|
D | asocket_test.c | 326 struct pollfd pfd; in thread_poll() local 328 pfd.fd = fd; in thread_poll() 329 pfd.events = 0; in thread_poll() 330 _poll(&pfd, 1, -1); in thread_poll() 343 struct pollfd pfd; in thread_pollin() local 345 pfd.fd = fd; in thread_pollin() 346 pfd.events = POLLIN; in thread_pollin() 347 _poll(&pfd, 1, -1); in thread_pollin()
|
D | socktest.c | 340 struct pollfd pfd; in thread_poll() local 342 pfd.fd = fd; in thread_poll() 343 pfd.events = 0; in thread_poll() 344 _poll(&pfd, 1, -1); in thread_poll() 357 struct pollfd pfd; in thread_pollin() local 359 pfd.fd = fd; in thread_pollin() 360 pfd.events = POLLIN; in thread_pollin() 361 _poll(&pfd, 1, -1); in thread_pollin()
|
/system/core/libnetutils/ |
D | dhcpclient.c | 398 struct pollfd pfd; in dhcp_init_ifc() local 420 pfd.fd = s; in dhcp_init_ifc() 421 pfd.events = POLLIN; in dhcp_init_ifc() 422 pfd.revents = 0; in dhcp_init_ifc() 423 r = poll(&pfd, 1, timeout); in dhcp_init_ifc()
|