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

/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_events.h35 int (*init)(int max_fd);
/PHP_TRUNK/ext/sockets/
H A Dsockets.c766 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_TRUNK/main/
H A Dnetwork.c1103 PHPAPI void _php_emit_fd_setsize_warning(int max_fd) argument
1116 FD_SETSIZE, max_fd, (max_fd + 128) & ~127);
1124 FD_SETSIZE, max_fd, (max_fd + 1024) & ~1023);
1135 php_socket_t max_fd = SOCK_ERR; local
1142 if (ufds[i].fd > max_fd)
1143 max_fd = ufds[i].fd;
1146 PHP_SAFE_MAX_FD(max_fd, nfds + 1);
1174 n = select(max_fd
[all...]
H A Dphp_network.h193 PHPAPI void _php_emit_fd_setsize_warning(int max_fd);
/PHP_TRUNK/win32/
H A Dselect.c37 PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv) argument
64 for (i = 0; i < max_fd; i++) {
90 return select(max_fd, rfds, wfds, efds, tv);
H A Dselect.h21 PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
/PHP_TRUNK/ext/standard/
H A Dstreamsfuncs.c606 static int stream_array_to_fd_set(zval *stream_array, fd_set *fds, php_socket_t *max_fd TSRMLS_DC)
634 if (this_fd > *max_fd) {
635 *max_fd = this_fd;
771 php_socket_t max_fd = 0; local
784 set_count = stream_array_to_fd_set(r_array, &rfds, &max_fd TSRMLS_CC);
791 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd TSRMLS_CC);
798 set_count = stream_array_to_fd_set(e_array, &efds, &max_fd TSRMLS_CC);
809 PHP_SAFE_MAX_FD(max_fd, max_set_count);
852 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p);
855 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to select [%d]: %s (max_fd
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c120 php_socket_t max_fd; member in struct:php_cli_server_poller
797 poller->max_fd = -1;
809 if (fd > poller->max_fd) {
810 poller->max_fd = fd;
823 if (fd == poller->max_fd) {
830 poller->max_fd = fd;
839 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv);
888 const php_socket_t max_fd = poller->max_fd; local
890 for (fd=0 ; fd<=max_fd ; f
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd.c1293 static int mysqlnd_stream_array_to_fd_set(MYSQLND ** conn_array, fd_set * fds, php_socket_t * max_fd TSRMLS_DC)
1314 if (this_fd > *max_fd) {
1315 *max_fd = this_fd;
1375 php_socket_t max_fd = 0; local
1391 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd TSRMLS_CC);
1399 set_count = mysqlnd_stream_array_to_fd_set(e_array, &efds, &max_fd TSRMLS_CC);
1412 PHP_SAFE_MAX_FD(max_fd, max_set_count);
1425 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);
1428 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to select [%d]: %s (max_fd=%d)",
1429 errno, strerror(errno), max_fd);
[all...]

Completed in 67 milliseconds