Home
last modified time | relevance | path

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

/php-src/win32/
H A Dselect.c34 PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval… in php_select() argument
68 if (SAFE_FD_ISSET(i, rfds) || SAFE_FD_ISSET(i, wfds) || SAFE_FD_ISSET(i, efds)) { in php_select()
72 if (SAFE_FD_ISSET(i, rfds)) { in php_select()
85 if (SAFE_FD_ISSET(i, rfds) && GetFileType(handles[n_handles]) == FILE_TYPE_PIPE) { in php_select()
96 return select(-1, rfds, wfds, efds, tv); in php_select()
144 if (SAFE_FD_ISSET(handle_slot_to_fd[i], rfds)) { in php_select()
171 if (rfds) { in php_select()
172 *rfds = aread; in php_select()
H A Dselect.h22 PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval…
/php-src/sapi/fpm/fpm/
H A Dfpm_unix.c609 fd_set rfds; in fpm_unix_init_main() local
637 FD_ZERO(&rfds); in fpm_unix_init_main()
638 FD_SET(fpm_globals.send_config_pipe[0], &rfds); in fpm_unix_init_main()
644 ret = select(fpm_globals.send_config_pipe[0] + 1, &rfds, NULL, NULL, &tv); in fpm_unix_init_main()
/php-src/sapi/cli/
H A Dphp_cli_server.c123 fd_set rfds, wfds; member
125 fd_set rfds, wfds; member
837 FD_ZERO(&poller->rfds); in php_cli_server_poller_ctor()
845 PHP_SAFE_FD_SET(fd, &poller->rfds); in php_cli_server_poller_add()
858 PHP_SAFE_FD_CLR(fd, &poller->rfds); in php_cli_server_poller_remove()
867 if (PHP_SAFE_FD_ISSET(fd, &poller->rfds) || PHP_SAFE_FD_ISSET(fd, &poller->wfds)) { in php_cli_server_poller_remove()
878 memmove(&poller->active.rfds, &poller->rfds, sizeof(poller->rfds)); in php_cli_server_poller_poll()
880 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll()
894 for (i = 0; i < poller->active.rfds.fd_count; i++) { in php_cli_server_poller_iter_on_active()
896 n->fd = poller->active.rfds.fd_array[i]; in php_cli_server_poller_iter_on_active()
[all …]
/php-src/ext/standard/
H A Dstreamsfuncs.c767 fd_set rfds, wfds, efds; in PHP_FUNCTION() local
784 FD_ZERO(&rfds); in PHP_FUNCTION()
789 set_count = stream_array_to_fd_set(r_array, &rfds, &max_fd); in PHP_FUNCTION()
859 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p); in PHP_FUNCTION()
867 if (r_array != NULL) stream_array_from_fd_set(r_array, &rfds); in PHP_FUNCTION()
/php-src/ext/mysqlnd/
H A Dmysqlnd_connection.c2188 fd_set rfds, wfds, efds; local
2199 FD_ZERO(&rfds);
2205 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd);
2241 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);
2250 mysqlnd_stream_array_from_fd_set(r_array, &rfds);
/php-src/ext/sockets/
H A Dsockets.c594 fd_set rfds, wfds, efds; local
609 FD_ZERO(&rfds);
614 sets += retval = php_sock_array_to_fd_set(1, r_array, &rfds, &max_fd);
655 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
663 if (r_array != NULL) php_sock_array_from_fd_set(r_array, &rfds);

Completed in 32 milliseconds