Home
last modified time | relevance | path

Searched refs:wfds (Results 1 – 6 of 6) sorted by relevance

/PHP-8.4/win32/
H A Dselect.c31 PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval… in php_select() argument
64 if (SAFE_FD_ISSET(i, rfds) || SAFE_FD_ISSET(i, wfds) || SAFE_FD_ISSET(i, efds)) { in php_select()
71 if (SAFE_FD_ISSET(i, wfds)) { in php_select()
89 return select(-1, rfds, wfds, efds, tv); in php_select()
140 if (SAFE_FD_ISSET(handle_slot_to_fd[i], wfds)) { in php_select()
156 if (wfds) { in php_select()
157 *wfds = awrite; 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-8.4/sapi/cli/
H A Dphp_cli_server.c123 fd_set rfds, wfds; member
125 fd_set rfds, wfds; member
838 FD_ZERO(&poller->wfds); in php_cli_server_poller_ctor()
848 PHP_SAFE_FD_SET(fd, &poller->wfds); in php_cli_server_poller_add()
861 PHP_SAFE_FD_CLR(fd, &poller->wfds); 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()
879 memmove(&poller->active.wfds, &poller->wfds, sizeof(poller->wfds)); 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()
901 for (i = 0; i < poller->active.wfds.fd_count; i++) { in php_cli_server_poller_iter_on_active()
903 SOCKET fd = poller->active.wfds.fd_array[i]; in php_cli_server_poller_iter_on_active()
[all …]
/PHP-8.4/ext/standard/
H A Dstreamsfuncs.c767 fd_set rfds, wfds, efds; in PHP_FUNCTION() local
785 FD_ZERO(&wfds); in PHP_FUNCTION()
796 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd); in PHP_FUNCTION()
859 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p); in PHP_FUNCTION()
868 if (w_array != NULL) stream_array_from_fd_set(w_array, &wfds); in PHP_FUNCTION()
/PHP-8.4/ext/sockets/
H A Dsockets.c590 fd_set rfds, wfds, efds; local
606 FD_ZERO(&wfds);
616 sets += retval = php_sock_array_to_fd_set(2, w_array, &wfds, &max_fd);
651 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
660 if (w_array != NULL) php_sock_array_from_fd_set(w_array, &wfds);
/PHP-8.4/ext/mysqlnd/
H A Dmysqlnd_connection.c2188 fd_set rfds, wfds, efds; local
2200 FD_ZERO(&wfds);
2241 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);

Completed in 49 milliseconds