Home
last modified time | relevance | path

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

/PHP-8.0/main/
H A Dphp_network.h205 PHPAPI void _php_emit_fd_setsize_warning(int max_fd);
207 static inline bool _php_check_fd_setsize(php_socket_t *max_fd, int setsize) in _php_check_fd_setsize() argument
210 (void)(max_fd); // Unused in _php_check_fd_setsize()
217 if (*max_fd >= FD_SETSIZE) { in _php_check_fd_setsize()
218 _php_emit_fd_setsize_warning(*max_fd); in _php_check_fd_setsize()
219 *max_fd = FD_SETSIZE - 1; in _php_check_fd_setsize()
H A Dnetwork.c1155 PHPAPI void _php_emit_fd_setsize_warning(int max_fd) argument
1167 FD_SETSIZE, max_fd, (max_fd + 128) & ~127);
1175 FD_SETSIZE, max_fd, (max_fd + 1024) & ~1023);
1186 php_socket_t max_fd = SOCK_ERR; /* effectively unused on Windows */ local
1194 if (ufds[i].fd > max_fd)
1195 max_fd = ufds[i].fd;
1199 if (!PHP_SAFE_MAX_FD(max_fd, nfds + 1)) {
1234 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
/PHP-8.0/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.0/sapi/fpm/fpm/
H A Dfpm_events.h33 int (*init)(int max_fd);
/PHP-8.0/ext/standard/
H A Dstreamsfuncs.c612 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
642 if (this_fd > *max_fd) { in stream_array_to_fd_set()
643 *max_fd = this_fd; in stream_array_to_fd_set()
756 php_socket_t max_fd = 0; in PHP_FUNCTION() local
776 set_count = stream_array_to_fd_set(r_array, &rfds, &max_fd); in PHP_FUNCTION()
783 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd); in PHP_FUNCTION()
790 set_count = stream_array_to_fd_set(e_array, &efds, &max_fd); in PHP_FUNCTION()
801 if (!PHP_SAFE_MAX_FD(max_fd, max_set_count)) { in PHP_FUNCTION()
839 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p); in PHP_FUNCTION()
843 errno, strerror(errno), max_fd); in PHP_FUNCTION()
/PHP-8.0/ext/sockets/
H A Dsockets.c647 …sock_array_to_fd_set(uint32_t arg_num, zval *sock_array, fd_set *fds, PHP_SOCKET *max_fd) /* {{{ */ argument
670 if (php_sock->bsd_socket > *max_fd) {
671 *max_fd = php_sock->bsd_socket;
730 PHP_SOCKET max_fd = 0; local
744 sets += retval = php_sock_array_to_fd_set(1, r_array, &rfds, &max_fd);
750 sets += retval = php_sock_array_to_fd_set(2, w_array, &wfds, &max_fd);
756 sets += retval = php_sock_array_to_fd_set(3, e_array, &efds, &max_fd);
767 if (!PHP_SAFE_MAX_FD(max_fd, 0)) {
785 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
/PHP-8.0/sapi/cli/
H A Dphp_cli_server.c116 php_socket_t max_fd; member
775 poller->max_fd = -1; in php_cli_server_poller_ctor()
787 if (fd > poller->max_fd) { in php_cli_server_poller_add()
788 poller->max_fd = fd; in php_cli_server_poller_add()
801 if (fd == poller->max_fd) { in php_cli_server_poller_remove()
808 poller->max_fd = fd; in php_cli_server_poller_remove()
817 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll()
865 const php_socket_t max_fd = poller->max_fd; in php_cli_server_poller_iter_on_active() local
867 for (fd=0 ; fd<=max_fd ; fd++) { in php_cli_server_poller_iter_on_active()
/PHP-8.0/ext/mysqlnd/
H A Dmysqlnd_connection.c2496 mysqlnd_stream_array_to_fd_set(MYSQLND ** conn_array, fd_set * fds, php_socket_t * max_fd) argument
2519 if (this_fd > *max_fd) {
2520 *max_fd = this_fd;
2581 php_socket_t max_fd = 0; local
2597 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd);
2605 set_count = mysqlnd_stream_array_to_fd_set(e_array, &efds, &max_fd);
2618 if (!PHP_SAFE_MAX_FD(max_fd, max_set_count)) {
2633 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);
2637 errno, strerror(errno), max_fd);

Completed in 42 milliseconds