| /freebsd-12.1/contrib/apr/poll/unix/ |
| H A D | pollcb.c | 83 apr_pollcb_t *pollcb; in apr_pollcb_create_ex() local 112 pollcb = apr_palloc(p, sizeof(*pollcb)); in apr_pollcb_create_ex() 113 pollcb->nelts = 0; in apr_pollcb_create_ex() 114 pollcb->nalloc = size; in apr_pollcb_create_ex() 115 pollcb->pool = p; in apr_pollcb_create_ex() 116 pollcb->provider = provider; in apr_pollcb_create_ex() 137 pollcb->provider = provider; in apr_pollcb_create_ex() 143 *ret_pollcb = pollcb; in apr_pollcb_create_ex() 159 return (*pollcb->provider->add)(pollcb, descriptor); in apr_pollcb_add() 165 return (*pollcb->provider->remove)(pollcb, descriptor); in apr_pollcb_remove() [all …]
|
| H A D | poll.c | 323 pollcb->fd = -1; in impl_pollcb_create() 340 if (pollcb->nelts == pollcb->nalloc) { in impl_pollcb_add() 345 pollcb->pollset.ps[pollcb->nelts].fd = descriptor->desc.s->socketdes; in impl_pollcb_add() 349 pollcb->pollset.ps[pollcb->nelts].fd = descriptor->desc.f->filedes; in impl_pollcb_add() 355 pollcb->pollset.ps[pollcb->nelts].events = in impl_pollcb_add() 357 pollcb->copyset[pollcb->nelts] = descriptor; in impl_pollcb_add() 358 pollcb->nelts++; in impl_pollcb_add() 379 pollcb->pollset.ps[dst] = pollcb->pollset.ps[i]; in impl_pollcb_remove() 380 pollcb->copyset[dst] = pollcb->copyset[i]; in impl_pollcb_remove() 412 ret = WSAPoll(pollcb->pollset.ps, pollcb->nelts, (int)timeout); in impl_pollcb_poll() [all …]
|
| H A D | port.c | 471 apr_pollcb_t *pollcb = (apr_pollcb_t *) p_; in cb_cleanup() local 472 close(pollcb->fd); in cb_cleanup() 481 pollcb->fd = port_create(); in impl_pollcb_create() 483 if (pollcb->fd < 0) { in impl_pollcb_create() 493 close(pollcb->fd); in impl_pollcb_create() 494 pollcb->fd = -1; in impl_pollcb_create() 499 if (fcntl(pollcb->fd, F_SETFD, flags) == -1) { in impl_pollcb_create() 501 close(pollcb->fd); in impl_pollcb_create() 502 pollcb->fd = -1; in impl_pollcb_create() 565 rv = call_port_getn(pollcb->fd, pollcb->pollset.port, pollcb->nalloc, in impl_pollcb_poll() [all …]
|
| H A D | epoll.c | 334 apr_pollcb_t *pollcb = (apr_pollcb_t *) p_; in cb_cleanup() local 335 close(pollcb->fd); in cb_cleanup() 364 pollcb->fd = -1; in impl_pollcb_create() 372 pollcb->fd = -1; in impl_pollcb_create() 378 pollcb->fd = fd; in impl_pollcb_create() 385 static apr_status_t impl_pollcb_add(apr_pollcb_t *pollcb, in impl_pollcb_add() argument 395 ret = epoll_ctl(pollcb->fd, EPOLL_CTL_ADD, in impl_pollcb_add() 399 ret = epoll_ctl(pollcb->fd, EPOLL_CTL_ADD, in impl_pollcb_add() 420 ret = epoll_ctl(pollcb->fd, EPOLL_CTL_DEL, in impl_pollcb_remove() 424 ret = epoll_ctl(pollcb->fd, EPOLL_CTL_DEL, in impl_pollcb_remove() [all …]
|
| H A D | kqueue.c | 330 apr_pollcb_t *pollcb = (apr_pollcb_t *) b_; in cb_cleanup() local 331 close(pollcb->fd); in cb_cleanup() 335 static apr_status_t impl_pollcb_create(apr_pollcb_t *pollcb, in impl_pollcb_create() argument 354 pollcb->fd = -1; in impl_pollcb_create() 362 pollcb->fd = -1; in impl_pollcb_create() 367 pollcb->fd = fd; in impl_pollcb_create() 374 static apr_status_t impl_pollcb_add(apr_pollcb_t *pollcb, in impl_pollcb_add() argument 391 if (kevent(pollcb->fd, &ev, 1, NULL, 0, NULL) == -1) { in impl_pollcb_add() 407 static apr_status_t impl_pollcb_remove(apr_pollcb_t *pollcb, in impl_pollcb_remove() argument 442 static apr_status_t impl_pollcb_poll(apr_pollcb_t *pollcb, in impl_pollcb_poll() argument [all …]
|
| /freebsd-12.1/contrib/apr/include/ |
| H A D | apr_poll.h | 329 APR_DECLARE(apr_status_t) apr_pollcb_create(apr_pollcb_t **pollcb, 347 APR_DECLARE(apr_status_t) apr_pollcb_create_ex(apr_pollcb_t **pollcb, 370 APR_DECLARE(apr_status_t) apr_pollcb_add(apr_pollcb_t *pollcb, 380 APR_DECLARE(apr_status_t) apr_pollcb_remove(apr_pollcb_t *pollcb, 405 APR_DECLARE(apr_status_t) apr_pollcb_poll(apr_pollcb_t *pollcb,
|
| /freebsd-12.1/contrib/apr/ |
| H A D | apr.mak | 89 -@erase "$(INTDIR)\pollcb.obj" 216 "$(INTDIR)\pollcb.obj" \ 303 -@erase "$(INTDIR)\pollcb.obj" 430 "$(INTDIR)\pollcb.obj" \ 517 -@erase "$(INTDIR)\pollcb.obj" 644 "$(INTDIR)\pollcb.obj" \ 731 -@erase "$(INTDIR)\pollcb.obj" 858 "$(INTDIR)\pollcb.obj" \ 1072 "$(INTDIR)\pollcb.obj" \ 1286 "$(INTDIR)\pollcb.obj" \ [all …]
|
| H A D | libapr.mak | 91 -@erase "$(INTDIR)\pollcb.obj" 224 "$(INTDIR)\pollcb.obj" \ 327 -@erase "$(INTDIR)\pollcb.obj" 460 "$(INTDIR)\pollcb.obj" \ 563 -@erase "$(INTDIR)\pollcb.obj" 696 "$(INTDIR)\pollcb.obj" \ 799 -@erase "$(INTDIR)\pollcb.obj" 932 "$(INTDIR)\pollcb.obj" \ 1168 "$(INTDIR)\pollcb.obj" \ 1404 "$(INTDIR)\pollcb.obj" \ [all …]
|
| H A D | CHANGES | 25 *) pollcb on Windows: Handle calls with no file/socket descriptors.
|
| H A D | NWGNUmakefile | 341 $(OBJDIR)/pollcb.o \
|
| H A D | CMakeLists.txt | 179 poll/unix/pollcb.c
|
| H A D | build-outputs.mk | 82 poll/unix/pollcb.lo: poll/unix/pollcb.c .make.dirs include/apr_allocator.h include/apr_dso.h includ… 88 OBJECTS_poll_unix = poll/unix/epoll.lo poll/unix/kqueue.lo poll/unix/poll.lo poll/unix/pollcb.lo po…
|
| H A D | apr.dsp | 432 SOURCE=.\poll\unix\pollcb.c
|
| H A D | libapr.dsp | 483 SOURCE=.\poll\unix\pollcb.c
|
| H A D | libapr.dep | 1311 .\poll\unix\pollcb.c : \
|
| H A D | apr.dep | 1311 .\poll\unix\pollcb.c : \
|
| /freebsd-12.1/usr.bin/svn/lib/libapr/ |
| H A D | Makefile | 15 otherchild.c pipe.c poll.c pollcb.c pollset.c port.c \
|