Searched refs:max_fd (Results 1 – 9 of 9) sorted by relevance
/PHP-7.0/win32/ |
H A D | select.c | 37 PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv) in php_select() argument 64 for (i = 0; i < max_fd; i++) { in php_select() 90 return select(max_fd, rfds, wfds, efds, tv); in php_select()
|
H A D | select.h | 21 PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
|
/PHP-7.0/sapi/fpm/fpm/ |
H A D | fpm_events.h | 35 int (*init)(int max_fd);
|
/PHP-7.0/main/ |
H A D | network.c | 1171 PHPAPI void _php_emit_fd_setsize_warning(int max_fd) argument 1183 FD_SETSIZE, max_fd, (max_fd + 128) & ~127); 1191 FD_SETSIZE, max_fd, (max_fd + 1024) & ~1023); 1202 php_socket_t max_fd = SOCK_ERR; local 1209 if (ufds[i].fd > max_fd) 1210 max_fd = ufds[i].fd; 1213 PHP_SAFE_MAX_FD(max_fd, nfds + 1); 1241 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
|
H A D | php_network.h | 209 PHPAPI void _php_emit_fd_setsize_warning(int max_fd);
|
/PHP-7.0/ext/standard/ |
H A D | streamsfuncs.c | 587 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 617 if (this_fd > *max_fd) { in stream_array_to_fd_set() 618 *max_fd = this_fd; in stream_array_to_fd_set() 730 php_socket_t max_fd = 0; in PHP_FUNCTION() local 750 set_count = stream_array_to_fd_set(r_array, &rfds, &max_fd); in PHP_FUNCTION() 757 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd); in PHP_FUNCTION() 764 set_count = stream_array_to_fd_set(e_array, &efds, &max_fd); in PHP_FUNCTION() 775 PHP_SAFE_MAX_FD(max_fd, max_set_count); in PHP_FUNCTION() 809 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p); in PHP_FUNCTION() 813 errno, strerror(errno), max_fd); in PHP_FUNCTION()
|
/PHP-7.0/ext/sockets/ |
H A D | sockets.c | 785 static int php_sock_array_to_fd_set(zval *sock_array, fd_set *fds, PHP_SOCKET *max_fd) /* {{{ */ argument 798 if (php_sock->bsd_socket > *max_fd) { 799 *max_fd = php_sock->bsd_socket; 856 PHP_SOCKET max_fd = 0; local 868 if (r_array != NULL) sets += php_sock_array_to_fd_set(r_array, &rfds, &max_fd); 869 if (w_array != NULL) sets += php_sock_array_to_fd_set(w_array, &wfds, &max_fd); 870 if (e_array != NULL) sets += php_sock_array_to_fd_set(e_array, &efds, &max_fd); 877 PHP_SAFE_MAX_FD(max_fd, 0); /* someone needs to make this look more like stream_socket_select */ 906 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
|
/PHP-7.0/sapi/cli/ |
H A D | php_cli_server.c | 116 php_socket_t max_fd; member 742 poller->max_fd = -1; in php_cli_server_poller_ctor() 754 if (fd > poller->max_fd) { in php_cli_server_poller_add() 755 poller->max_fd = fd; in php_cli_server_poller_add() 768 if (fd == poller->max_fd) { in php_cli_server_poller_remove() 775 poller->max_fd = fd; in php_cli_server_poller_remove() 784 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll() 832 const php_socket_t max_fd = poller->max_fd; in php_cli_server_poller_iter_on_active() local 834 for (fd=0 ; fd<=max_fd ; fd++) { in php_cli_server_poller_iter_on_active()
|
/PHP-7.0/ext/mysqlnd/ |
H A D | mysqlnd.c | 1306 …atic int mysqlnd_stream_array_to_fd_set(MYSQLND ** conn_array, fd_set * fds, php_socket_t * max_fd) argument 1327 if (this_fd > *max_fd) { 1328 *max_fd = this_fd; 1388 php_socket_t max_fd = 0; local 1404 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd); 1412 set_count = mysqlnd_stream_array_to_fd_set(e_array, &efds, &max_fd); 1425 PHP_SAFE_MAX_FD(max_fd, max_set_count); 1438 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p); 1442 errno, strerror(errno), max_fd);
|
Completed in 38 milliseconds