Home
last modified time | relevance | path

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

/php-src/main/
H A Dphp_network.h210 PHPAPI void _php_emit_fd_setsize_warning(int max_fd);
212 static inline bool _php_check_fd_setsize(php_socket_t *max_fd, int setsize) in _php_check_fd_setsize() argument
215 (void)(max_fd); // Unused in _php_check_fd_setsize()
222 if (*max_fd >= FD_SETSIZE) { in _php_check_fd_setsize()
223 _php_emit_fd_setsize_warning(*max_fd); in _php_check_fd_setsize()
224 *max_fd = FD_SETSIZE - 1; in _php_check_fd_setsize()
H A Dnetwork.c1178 PHPAPI void _php_emit_fd_setsize_warning(int max_fd) in _php_emit_fd_setsize_warning() argument
1190 FD_SETSIZE, max_fd, (max_fd + 128) & ~127); in _php_emit_fd_setsize_warning()
1198 FD_SETSIZE, max_fd, (max_fd + 1024) & ~1023); in _php_emit_fd_setsize_warning()
1209 php_socket_t max_fd = SOCK_ERR; /* effectively unused on Windows */ in php_poll2() local
1217 if (ufds[i].fd > max_fd) in php_poll2()
1218 max_fd = ufds[i].fd; in php_poll2()
1222 if (!PHP_SAFE_MAX_FD(max_fd, nfds + 1)) { in php_poll2()
1257 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL); in php_poll2()
/php-src/win32/
H A Dselect.h22 PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval…
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
48 if (max_fd > (php_socket_t)INT_MAX) { in php_select()
67 for (i = 0; (uint32_t)i < max_fd; i++) { in php_select()
/php-src/sapi/fpm/fpm/
H A Dfpm_events.h33 int (*init)(int max_fd);
/php-src/ext/standard/
H A Dstreamsfuncs.c624 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
654 if (this_fd > *max_fd) { in stream_array_to_fd_set()
655 *max_fd = this_fd; in stream_array_to_fd_set()
768 php_socket_t max_fd = 0; in PHP_FUNCTION() local
789 set_count = stream_array_to_fd_set(r_array, &rfds, &max_fd); in PHP_FUNCTION()
796 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd); in PHP_FUNCTION()
803 set_count = stream_array_to_fd_set(e_array, &efds, &max_fd); in PHP_FUNCTION()
814 if (!PHP_SAFE_MAX_FD(max_fd, max_set_count)) { in PHP_FUNCTION()
859 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p); in PHP_FUNCTION()
863 errno, strerror(errno), max_fd); in PHP_FUNCTION()
/php-src/ext/mysqlnd/
H A Dmysqlnd_connection.c2104 mysqlnd_stream_array_to_fd_set(MYSQLND ** conn_array, fd_set * fds, php_socket_t * max_fd) argument
2127 if (this_fd > *max_fd) {
2128 *max_fd = this_fd;
2189 php_socket_t max_fd = 0; local
2205 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd);
2213 set_count = mysqlnd_stream_array_to_fd_set(e_array, &efds, &max_fd);
2226 if (!PHP_SAFE_MAX_FD(max_fd, max_set_count)) {
2241 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);
2245 errno, strerror(errno), max_fd);
/php-src/ext/sockets/
H A Dsockets.c516 …sock_array_to_fd_set(uint32_t arg_num, zval *sock_array, fd_set *fds, PHP_SOCKET *max_fd) /* {{{ */ argument
539 if (php_sock->bsd_socket > *max_fd) {
540 *max_fd = php_sock->bsd_socket;
595 PHP_SOCKET max_fd = 0; local
614 sets += retval = php_sock_array_to_fd_set(1, r_array, &rfds, &max_fd);
620 sets += retval = php_sock_array_to_fd_set(2, w_array, &wfds, &max_fd);
626 sets += retval = php_sock_array_to_fd_set(3, e_array, &efds, &max_fd);
637 if (!PHP_SAFE_MAX_FD(max_fd, 0)) {
655 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
/php-src/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 151 milliseconds