Home
last modified time | relevance | path

Searched refs:max_fd (Results 1 – 9 of 9) sorted by relevance

/PHP-8.3/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
44 if (max_fd > (php_socket_t)INT_MAX) { in php_select()
63 for (i = 0; (uint32_t)i < max_fd; i++) { 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.3/main/
H A Dphp_network.h212 PHPAPI void _php_emit_fd_setsize_warning(int max_fd);
214 static inline bool _php_check_fd_setsize(php_socket_t *max_fd, int setsize) in _php_check_fd_setsize() argument
217 (void)(max_fd); // Unused in _php_check_fd_setsize()
224 if (*max_fd >= FD_SETSIZE) { in _php_check_fd_setsize()
225 _php_emit_fd_setsize_warning(*max_fd); in _php_check_fd_setsize()
226 *max_fd = FD_SETSIZE - 1; in _php_check_fd_setsize()
H A Dnetwork.c1160 PHPAPI void _php_emit_fd_setsize_warning(int max_fd) argument
1172 FD_SETSIZE, max_fd, (max_fd + 128) & ~127);
1180 FD_SETSIZE, max_fd, (max_fd + 1024) & ~1023);
1191 php_socket_t max_fd = SOCK_ERR; /* effectively unused on Windows */ local
1199 if (ufds[i].fd > max_fd)
1200 max_fd = ufds[i].fd;
1204 if (!PHP_SAFE_MAX_FD(max_fd, nfds + 1)) {
1239 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
/PHP-8.3/sapi/fpm/fpm/
H A Dfpm_events.h33 int (*init)(int max_fd);
/PHP-8.3/ext/standard/
H A Dstreamsfuncs.c627 static int stream_array_to_fd_set(zval *stream_array, fd_set *fds, php_socket_t *max_fd) in stream_array_to_fd_set() argument
657 if (this_fd > *max_fd) { in stream_array_to_fd_set()
658 *max_fd = this_fd; in stream_array_to_fd_set()
771 php_socket_t max_fd = 0; in PHP_FUNCTION() local
792 set_count = stream_array_to_fd_set(r_array, &rfds, &max_fd); in PHP_FUNCTION()
799 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd); in PHP_FUNCTION()
806 set_count = stream_array_to_fd_set(e_array, &efds, &max_fd); in PHP_FUNCTION()
817 if (!PHP_SAFE_MAX_FD(max_fd, max_set_count)) { in PHP_FUNCTION()
862 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p); in PHP_FUNCTION()
866 errno, strerror(errno), max_fd); in PHP_FUNCTION()
/PHP-8.3/ext/mysqlnd/
H A Dmysqlnd_connection.c2126 mysqlnd_stream_array_to_fd_set(MYSQLND ** conn_array, fd_set * fds, php_socket_t * max_fd) argument
2149 if (this_fd > *max_fd) {
2150 *max_fd = this_fd;
2211 php_socket_t max_fd = 0; local
2227 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd);
2235 set_count = mysqlnd_stream_array_to_fd_set(e_array, &efds, &max_fd);
2248 if (!PHP_SAFE_MAX_FD(max_fd, max_set_count)) {
2263 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);
2267 errno, strerror(errno), max_fd);
/PHP-8.3/ext/sockets/
H A Dsockets.c496 …sock_array_to_fd_set(uint32_t arg_num, zval *sock_array, fd_set *fds, PHP_SOCKET *max_fd) /* {{{ */ argument
519 if (php_sock->bsd_socket > *max_fd) {
520 *max_fd = php_sock->bsd_socket;
575 PHP_SOCKET max_fd = 0; local
589 sets += retval = php_sock_array_to_fd_set(1, r_array, &rfds, &max_fd);
595 sets += retval = php_sock_array_to_fd_set(2, w_array, &wfds, &max_fd);
601 sets += retval = php_sock_array_to_fd_set(3, e_array, &efds, &max_fd);
612 if (!PHP_SAFE_MAX_FD(max_fd, 0)) {
630 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
/PHP-8.3/sapi/cli/
H A Dphp_cli_server.c127 php_socket_t max_fd; member
839 poller->max_fd = -1; in php_cli_server_poller_ctor()
850 if (fd > poller->max_fd) { in php_cli_server_poller_add()
851 poller->max_fd = fd; in php_cli_server_poller_add()
864 if (fd == poller->max_fd) { in php_cli_server_poller_remove()
871 poller->max_fd = fd; in php_cli_server_poller_remove()
880 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll()
928 const php_socket_t max_fd = poller->max_fd; in php_cli_server_poller_iter_on_active() local
930 for (fd=0 ; fd<=max_fd ; fd++) { in php_cli_server_poller_iter_on_active()

Completed in 44 milliseconds