Home
last modified time | relevance | path

Searched refs:rfds (Results 1 – 7 of 7) sorted by relevance

/PHP-7.0/win32/
H A Dselect.c37 PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv) in php_select() argument
65 if (SAFE_FD_ISSET(i, rfds) || SAFE_FD_ISSET(i, wfds) || SAFE_FD_ISSET(i, efds)) { in php_select()
69 if (SAFE_FD_ISSET(i, rfds)) { in php_select()
90 return select(max_fd, rfds, wfds, efds, tv); in php_select()
138 if (SAFE_FD_ISSET(handle_slot_to_fd[i], rfds)) { in php_select()
154 if (rfds) { in php_select()
155 *rfds = aread; in php_select()
H A Dselect.h21 PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
/PHP-7.0/sapi/fpm/fpm/
H A Dfpm_unix.c486 fd_set rfds; in fpm_unix_init_main() local
514 FD_ZERO(&rfds); in fpm_unix_init_main()
515 FD_SET(fpm_globals.send_config_pipe[0], &rfds); in fpm_unix_init_main()
521 ret = select(fpm_globals.send_config_pipe[0] + 1, &rfds, NULL, NULL, &tv); in fpm_unix_init_main()
/PHP-7.0/sapi/cli/
H A Dphp_cli_server.c112 fd_set rfds, wfds; member
114 fd_set rfds, wfds; member
740 FD_ZERO(&poller->rfds); in php_cli_server_poller_ctor()
749 PHP_SAFE_FD_SET(fd, &poller->rfds); in php_cli_server_poller_add()
762 PHP_SAFE_FD_CLR(fd, &poller->rfds); in php_cli_server_poller_remove()
771 if (PHP_SAFE_FD_ISSET(fd, &poller->rfds) || PHP_SAFE_FD_ISSET(fd, &poller->wfds)) { in php_cli_server_poller_remove()
782 memmove(&poller->active.rfds, &poller->rfds, sizeof(poller->rfds)); in php_cli_server_poller_poll()
784 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll()
798 for (i = 0; i < poller->active.rfds.fd_count; i++) { in php_cli_server_poller_iter_on_active()
800 n->fd = poller->active.rfds.fd_array[i]; in php_cli_server_poller_iter_on_active()
[all …]
/PHP-7.0/ext/standard/
H A Dstreamsfuncs.c729 fd_set rfds, wfds, efds; in PHP_FUNCTION() local
745 FD_ZERO(&rfds); in PHP_FUNCTION()
750 set_count = stream_array_to_fd_set(r_array, &rfds, &max_fd); in PHP_FUNCTION()
809 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p); in PHP_FUNCTION()
817 if (r_array != NULL) stream_array_from_fd_set(r_array, &rfds); in PHP_FUNCTION()
/PHP-7.0/ext/sockets/
H A Dsockets.c855 fd_set rfds, wfds, efds; local
864 FD_ZERO(&rfds);
868 if (r_array != NULL) sets += php_sock_array_to_fd_set(r_array, &rfds, &max_fd);
906 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
914 if (r_array != NULL) php_sock_array_from_fd_set(r_array, &rfds);
/PHP-7.0/ext/mysqlnd/
H A Dmysqlnd.c1387 fd_set rfds, wfds, efds; local
1398 FD_ZERO(&rfds);
1404 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd);
1438 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);
1447 mysqlnd_stream_array_from_fd_set(r_array, &rfds);

Completed in 34 milliseconds