Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 25 of 29) sorted by relevance

12

/php-src/sapi/fpm/fpm/
H A Dfpm_events.c33 #define fpm_event_set_timeout(ev, now) timeradd(&(now), &(ev)->frequency, &(ev)->timeout); argument
146 if (!ev) { in fpm_event_queue_isset()
151 if (queue->ev == ev) { in fpm_event_queue_isset()
152 return ev; in fpm_event_queue_isset()
179 elt->ev = ev; in fpm_event_queue_add()
204 if (q->ev == ev) { in fpm_event_queue_del()
436 struct fpm_event_s *ev = q->ev; in fpm_event_loop() local
474 if (!ev || !ev->callback) { in fpm_event_fire()
478 (*ev->callback)( (struct fpm_event_s *) ev, ev->which, ev->arg); in fpm_event_fire()
488 ev->fd = fd; in fpm_event_set()
[all …]
H A Dfpm_events.h11 #define fpm_event_set_timer(ev, flags, cb, arg) fpm_event_set((ev), -1, (flags), (cb), (arg)) argument
27 struct fpm_event_s *ev; member
36 int (*add)(struct fpm_event_s *ev);
37 int (*remove)(struct fpm_event_s *ev);
41 void fpm_event_fire(struct fpm_event_s *ev);
43 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *,…
44 int fpm_event_add(struct fpm_event_s *ev, unsigned long int timeout);
45 int fpm_event_del(struct fpm_event_s *ev);
H A Dfpm_process_ctl.h20 void fpm_pctl_heartbeat(struct fpm_event_s *ev, short which, void *arg);
21 void fpm_pctl_perform_idle_server_maintenance_heartbeat(struct fpm_event_s *ev, short which, void *…
22 void fpm_pctl_on_socket_accept(struct fpm_event_s *ev, short which, void *arg);
H A Dfpm_systemd.h9 void fpm_systemd_heartbeat(struct fpm_event_s *ev, short which, void *arg);
H A Dfpm_process_ctl.c53 static void fpm_pctl_action(struct fpm_event_s *ev, short which, void *arg) /* {{{ */ in fpm_pctl_action() argument
459 void fpm_pctl_heartbeat(struct fpm_event_s *ev, short which, void *arg) /* {{{ */ in fpm_pctl_heartbeat() argument
484 void fpm_pctl_perform_idle_server_maintenance_heartbeat(struct fpm_event_s *ev, short which, void *… in fpm_pctl_perform_idle_server_maintenance_heartbeat() argument
514 void fpm_pctl_on_socket_accept(struct fpm_event_s *ev, short which, void *arg) /* {{{ */ in fpm_pctl_on_socket_accept() argument
H A Dfpm_systemd.c47 void fpm_systemd_heartbeat(struct fpm_event_s *ev, short which, void *arg) /* {{{ */ in fpm_systemd_heartbeat() argument
H A Dfpm_stdio.c169 static void fpm_stdio_child_said(struct fpm_event_s *ev, short which, void *arg) /* {{{ */ argument
171 int fd = ev->fd;
H A Dfpm_children.c66 static void fpm_postponed_child_free(struct fpm_event_s *ev, short which, void *arg) in fpm_postponed_child_free() argument
/php-src/sapi/fpm/fpm/events/
H A Dpoll.c154 …if (q->ev && q->ev->index >= 0 && q->ev->index < npollfds && q->ev->fd == active_pollfds[q->ev->in… in fpm_event_poll_wait()
160 fpm_event_fire(q->ev); in fpm_event_poll_wait()
190 ev->index = next_free_slot++; in fpm_event_poll_add()
205 pollfds[i].fd = ev->fd; in fpm_event_poll_add()
209 ev->index = next_free_slot++; in fpm_event_poll_add()
229 if (ev->index >= 0 && ev->index < npollfds && pollfds[ev->index].fd == ev->fd) { in fpm_event_poll_remove()
231 next_free_slot = ev->index; in fpm_event_poll_remove()
234 pollfds[ev->index].fd = -1; in fpm_event_poll_remove()
235 pollfds[ev->index].events = 0; in fpm_event_poll_remove()
238 ev->index = -1; in fpm_event_poll_remove()
[all …]
H A Dselect.c36 static int fpm_event_select_add(struct fpm_event_s *ev);
112 if (q->ev) { /* sanity check */ in fpm_event_select_wait()
115 if (FD_ISSET(q->ev->fd, &current_fds)) { in fpm_event_select_wait()
118 fpm_event_fire(q->ev); in fpm_event_select_wait()
140 if (ev->fd >= FD_SETSIZE) { in fpm_event_select_add()
146 if (!FD_ISSET(ev->fd, &fds)) { in fpm_event_select_add()
147 FD_SET(ev->fd, &fds); in fpm_event_select_add()
148 ev->index = ev->fd; in fpm_event_select_add()
161 if (FD_ISSET(ev->fd, &fds)) { in fpm_event_select_remove()
162 FD_CLR(ev->fd, &fds); in fpm_event_select_remove()
[all …]
H A Depoll.c30 static int fpm_event_epoll_add(struct fpm_event_s *ev);
31 static int fpm_event_epoll_remove(struct fpm_event_s *ev);
166 e.data.fd = ev->fd; in fpm_event_epoll_add()
167 e.data.ptr = (void *)ev; in fpm_event_epoll_add()
169 if (ev->flags & FPM_EV_EDGE) { in fpm_event_epoll_add()
175 zlog(ZLOG_ERROR, "epoll: unable to add fd %d", ev->fd); in fpm_event_epoll_add()
180 ev->index = ev->fd; in fpm_event_epoll_add()
194 e.data.fd = ev->fd; in fpm_event_epoll_remove()
195 e.data.ptr = (void *)ev; in fpm_event_epoll_remove()
197 if (ev->flags & FPM_EV_EDGE) { in fpm_event_epoll_remove()
[all …]
H A Dkqueue.c33 static int fpm_event_kqueue_add(struct fpm_event_s *ev);
34 static int fpm_event_kqueue_remove(struct fpm_event_s *ev);
139 struct fpm_event_s *ev = (struct fpm_event_s *)kevents[i].udata; in fpm_event_kqueue_wait() local
140 fpm_event_fire(ev); in fpm_event_kqueue_wait()
155 static int fpm_event_kqueue_add(struct fpm_event_s *ev) /* {{{ */ in fpm_event_kqueue_add() argument
160 if (ev->flags & FPM_EV_EDGE) { in fpm_event_kqueue_add()
164 EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); in fpm_event_kqueue_add()
172 ev->index = ev->fd; in fpm_event_kqueue_add()
185 if (ev->flags & FPM_EV_EDGE) { in fpm_event_kqueue_remove()
189 EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); in fpm_event_kqueue_remove()
[all …]
H A Dport.c31 static int fpm_event_port_add(struct fpm_event_s *ev);
32 static int fpm_event_port_remove(struct fpm_event_s *ev);
147 struct fpm_event_s *ev; in fpm_event_port_wait() local
154 ev = (struct fpm_event_s *)events[i].portev_user; in fpm_event_port_wait()
157 fpm_event_port_add(ev); in fpm_event_port_wait()
160 fpm_event_fire(ev); in fpm_event_port_wait()
174 static int fpm_event_port_add(struct fpm_event_s *ev) /* {{{ */ in fpm_event_port_add() argument
177 if (port_associate(pfd, PORT_SOURCE_FD, ev->fd, POLLIN, (void *)ev) < 0) { in fpm_event_port_add()
188 static int fpm_event_port_remove(struct fpm_event_s *ev) /* {{{ */ in fpm_event_port_remove() argument
191 if (port_dissociate(pfd, PORT_SOURCE_FD, ev->fd) < 0) { in fpm_event_port_remove()
/php-src/sapi/phpdbg/tests/
H A Dgh16174.phpt2 GH-16174 (Empty string is an invalid expression for phpdbg-ev)
4 ev $e = ""
5 ev $f = ''
H A Ddelimiter.phpt4 ev 1 + 3 # ev 2 ** 3#q
H A Dgh13931.phpt14 ev 1 + 3
15 ev 2 ** 3
H A Dgh12675.phpt6 ev file_put_contents("gh12675_1.tmp", "<?php echo 'hi';\necho 2;")
7 ev file_put_contents("gh12675_2.tmp", "<?php echo 'hi';")
H A Dbreakpoints_005.phpt6 ev $bar
H A Drun_002.phpt8 ev file_put_contents("run_002_tmp.fixture", "stdin\ndata")
H A Dexceptions_001.phpt6 ev 1 + 2
H A Dexceptions_002.phpt5 ev next_error()
/php-src/ext/com_dotnet/
H A Dcom_iterator.c30 IEnumVARIANT *ev; member
44 if (I->ev) { in com_iter_dtor()
45 IEnumVARIANT_Release(I->ev); in com_iter_dtor()
95 if (I->ev) { in com_iter_move_forwards()
97 if (SUCCEEDED(IEnumVARIANT_Next(I->ev, 1, &I->v, &n_fetched)) && n_fetched > 0) { in com_iter_move_forwards()
221 I->ev = iev; in php_com_iter_get()
224 if (SUCCEEDED(IEnumVARIANT_Next(I->ev, 1, &I->v, &n_fetched)) && n_fetched > 0) { in php_com_iter_get()
/php-src/sapi/phpdbg/tests/bug73615/
H A D.phpdbginit1 ev "Executed .phpdbginit"
/php-src/sapi/phpdbg/tests/gh12962/
H A D.phpdbginit1 ev "Executed .phpdbginit"
/php-src/sapi/phpdbg/
H A Dphpdbg_prompt.h38 PHPDBG_COMMAND(ev);

Completed in 44 milliseconds

12