Searched refs:max_fd (Results 1 – 9 of 9) sorted by relevance
/PHP-5.5/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-5.5/main/ |
H A D | network.c | 1110 PHPAPI void _php_emit_fd_setsize_warning(int max_fd) argument 1123 FD_SETSIZE, max_fd, (max_fd + 128) & ~127); 1131 FD_SETSIZE, max_fd, (max_fd + 1024) & ~1023); 1142 php_socket_t max_fd = SOCK_ERR; local 1149 if (ufds[i].fd > max_fd) 1150 max_fd = ufds[i].fd; 1153 PHP_SAFE_MAX_FD(max_fd, nfds + 1); 1181 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
|
H A D | php_network.h | 193 PHPAPI void _php_emit_fd_setsize_warning(int max_fd);
|
/PHP-5.5/sapi/fpm/fpm/ |
H A D | fpm_events.h | 35 int (*init)(int max_fd);
|
/PHP-5.5/ext/standard/ |
H A D | streamsfuncs.c | 604 static int stream_array_to_fd_set(zval *stream_array, fd_set *fds, php_socket_t *max_fd TSRMLS_DC) in stream_array_to_fd_set() 637 if (this_fd > *max_fd) { in stream_array_to_fd_set() 638 *max_fd = this_fd; in stream_array_to_fd_set() 780 php_socket_t max_fd = 0; in PHP_FUNCTION() local 793 set_count = stream_array_to_fd_set(r_array, &rfds, &max_fd TSRMLS_CC); in PHP_FUNCTION() 800 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd TSRMLS_CC); in PHP_FUNCTION() 807 set_count = stream_array_to_fd_set(e_array, &efds, &max_fd TSRMLS_CC); in PHP_FUNCTION() 818 PHP_SAFE_MAX_FD(max_fd, max_set_count); in PHP_FUNCTION() 861 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p); in PHP_FUNCTION() 865 errno, strerror(errno), max_fd); in PHP_FUNCTION()
|
/PHP-5.5/ext/sockets/ |
H A D | sockets.c | 766 static int php_sock_array_to_fd_set(zval *sock_array, fd_set *fds, PHP_SOCKET *max_fd TSRMLS_DC) /*… 782 if (php_sock->bsd_socket > *max_fd) { 783 *max_fd = php_sock->bsd_socket; 848 PHP_SOCKET max_fd = 0; local 860 if (r_array != NULL) sets += php_sock_array_to_fd_set(r_array, &rfds, &max_fd TSRMLS_CC); 861 if (w_array != NULL) sets += php_sock_array_to_fd_set(w_array, &wfds, &max_fd TSRMLS_CC); 862 if (e_array != NULL) sets += php_sock_array_to_fd_set(e_array, &efds, &max_fd TSRMLS_CC); 869 PHP_SAFE_MAX_FD(max_fd, 0); /* someone needs to make this look more like stream_socket_select */ 898 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
|
/PHP-5.5/sapi/cli/ |
H A D | php_cli_server.c | 119 php_socket_t max_fd; member 865 poller->max_fd = -1; in php_cli_server_poller_ctor() 877 if (fd > poller->max_fd) { in php_cli_server_poller_add() 878 poller->max_fd = fd; in php_cli_server_poller_add() 891 if (fd == poller->max_fd) { in php_cli_server_poller_remove() 898 poller->max_fd = fd; in php_cli_server_poller_remove() 907 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll() 956 const php_socket_t max_fd = poller->max_fd; in php_cli_server_poller_iter_on_active() local 958 for (fd=0 ; fd<=max_fd ; fd++) { in php_cli_server_poller_iter_on_active()
|
/PHP-5.5/ext/mysqlnd/ |
H A D | mysqlnd.c | 1280 …ysqlnd_stream_array_to_fd_set(MYSQLND ** conn_array, fd_set * fds, php_socket_t * max_fd TSRMLS_DC) 1301 if (this_fd > *max_fd) { 1302 *max_fd = this_fd; 1362 php_socket_t max_fd = 0; local 1378 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd TSRMLS_CC); 1386 set_count = mysqlnd_stream_array_to_fd_set(e_array, &efds, &max_fd TSRMLS_CC); 1399 PHP_SAFE_MAX_FD(max_fd, max_set_count); 1412 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p); 1416 errno, strerror(errno), max_fd);
|
Completed in 61 milliseconds