Home
last modified time | relevance | path

Searched refs:wfds (Results 1 – 6 of 6) 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()
72 if (SAFE_FD_ISSET(i, wfds)) { in php_select()
90 return select(max_fd, rfds, wfds, efds, tv); in php_select()
141 if (SAFE_FD_ISSET(handle_slot_to_fd[i], wfds)) { in php_select()
157 if (wfds) { in php_select()
158 *wfds = awrite; 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/cli/
H A Dphp_cli_server.c112 fd_set rfds, wfds; member
114 fd_set rfds, wfds; member
741 FD_ZERO(&poller->wfds); in php_cli_server_poller_ctor()
752 PHP_SAFE_FD_SET(fd, &poller->wfds); in php_cli_server_poller_add()
765 PHP_SAFE_FD_CLR(fd, &poller->wfds); 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()
783 memmove(&poller->active.wfds, &poller->wfds, sizeof(poller->wfds)); 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()
805 for (i = 0; i < poller->active.wfds.fd_count; i++) { in php_cli_server_poller_iter_on_active()
807 SOCKET fd = poller->active.wfds.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
746 FD_ZERO(&wfds); in PHP_FUNCTION()
757 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd); in PHP_FUNCTION()
809 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p); in PHP_FUNCTION()
818 if (w_array != NULL) stream_array_from_fd_set(w_array, &wfds); in PHP_FUNCTION()
/PHP-7.0/ext/sockets/
H A Dsockets.c855 fd_set rfds, wfds, efds; local
865 FD_ZERO(&wfds);
869 if (w_array != NULL) sets += php_sock_array_to_fd_set(w_array, &wfds, &max_fd);
906 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
915 if (w_array != NULL) php_sock_array_from_fd_set(w_array, &wfds);
/PHP-7.0/ext/mysqlnd/
H A Dmysqlnd.c1387 fd_set rfds, wfds, efds; local
1399 FD_ZERO(&wfds);
1438 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);

Completed in 41 milliseconds