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) /* {{{ */
779 if (php_sock->bsd_socket > *max_fd) {
780 *max_fd = php_sock->bsd_socket;
837 PHP_SOCKET max_fd = 0; local
849 if (r_array != NULL) sets += php_sock_array_to_fd_set(r_array, &rfds, &max_fd TSRMLS_CC);
850 if (w_array != NULL) sets += php_sock_array_to_fd_set(w_array, &wfds, &max_fd TSRMLS_CC);
851 if (e_array != NULL) sets += php_sock_array_to_fd_set(e_array, &efds, &max_fd TSRMLS_CC);
858 PHP_SAFE_MAX_FD(max_fd, 0); /* someone needs to make this look more like stream_socket_select */
887 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
/PHP_TRUNK/main/
H A Dphp_network.h199 PHPAPI void _php_emit_fd_setsize_warning(int max_fd);
H A Dnetwork.c1159 PHPAPI void _php_emit_fd_setsize_warning(int max_fd) argument
1172 FD_SETSIZE, max_fd, (max_fd + 128) & ~127);
1180 FD_SETSIZE, max_fd, (max_fd + 1024) & ~1023);
1191 php_socket_t max_fd = SOCK_ERR; local
1198 if (ufds[i].fd > max_fd)
1199 max_fd = ufds[i].fd;
1202 PHP_SAFE_MAX_FD(max_fd, nfds + 1);
1230 n = select(max_fd
[all...]
/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.c578 static int stream_array_to_fd_set(zval *stream_array, fd_set *fds, php_socket_t *max_fd TSRMLS_DC)
607 if (this_fd > *max_fd) {
608 *max_fd = this_fd;
724 php_socket_t max_fd = 0; local
737 set_count = stream_array_to_fd_set(r_array, &rfds, &max_fd TSRMLS_CC);
744 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd TSRMLS_CC);
751 set_count = stream_array_to_fd_set(e_array, &efds, &max_fd TSRMLS_CC);
762 PHP_SAFE_MAX_FD(max_fd, max_set_count);
809 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p);
812 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
790 poller->max_fd = -1;
802 if (fd > poller->max_fd) {
803 poller->max_fd = fd;
816 if (fd == poller->max_fd) {
823 poller->max_fd = fd;
832 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv);
880 const php_socket_t max_fd = poller->max_fd; local
882 for (fd=0 ; fd<=max_fd ; f
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd.c1292 static int mysqlnd_stream_array_to_fd_set(MYSQLND ** conn_array, fd_set * fds, php_socket_t * max_fd TSRMLS_DC)
1313 if (this_fd > *max_fd) {
1314 *max_fd = this_fd;
1374 php_socket_t max_fd = 0; local
1390 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd TSRMLS_CC);
1398 set_count = mysqlnd_stream_array_to_fd_set(e_array, &efds, &max_fd TSRMLS_CC);
1411 PHP_SAFE_MAX_FD(max_fd, max_set_count);
1424 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);
1427 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to select [%d]: %s (max_fd=%d)",
1428 errno, strerror(errno), max_fd);
[all...]

Completed in 18 milliseconds