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/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/mysqlnd/
H A Dmysqlnd.c1290 static int mysqlnd_stream_array_to_fd_set(MYSQLND ** conn_array, fd_set * fds, php_socket_t * max_fd) argument
1311 if (this_fd > *max_fd) {
1312 *max_fd = this_fd;
1372 php_socket_t max_fd = 0; local
1388 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd);
1396 set_count = mysqlnd_stream_array_to_fd_set(e_array, &efds, &max_fd);
1409 PHP_SAFE_MAX_FD(max_fd, max_set_count);
1422 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);
1425 php_error_docref(NULL, E_WARNING, "unable to select [%d]: %s (max_fd=%d)",
1426 errno, strerror(errno), max_fd);
[all...]
/PHP_TRUNK/ext/sockets/
H A Dsockets.c775 static int php_sock_array_to_fd_set(zval *sock_array, fd_set *fds, PHP_SOCKET *max_fd) /* {{{ */ argument
788 if (php_sock->bsd_socket > *max_fd) {
789 *max_fd = php_sock->bsd_socket;
846 PHP_SOCKET max_fd = 0; local
858 if (r_array != NULL) sets += php_sock_array_to_fd_set(r_array, &rfds, &max_fd);
859 if (w_array != NULL) sets += php_sock_array_to_fd_set(w_array, &wfds, &max_fd);
860 if (e_array != NULL) sets += php_sock_array_to_fd_set(e_array, &efds, &max_fd);
867 PHP_SAFE_MAX_FD(max_fd, 0); /* someone needs to make this look more like stream_socket_select */
896 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
/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) argument
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);
744 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd);
751 set_count = stream_array_to_fd_set(e_array, &efds, &max_fd);
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, E_WARNING, "unable to select [%d]: %s (max_fd
[all...]
/PHP_TRUNK/main/
H A Dnetwork.c1159 PHPAPI void _php_emit_fd_setsize_warning(int max_fd) argument
1171 FD_SETSIZE, max_fd, (max_fd + 128) & ~127);
1179 FD_SETSIZE, max_fd, (max_fd + 1024) & ~1023);
1190 php_socket_t max_fd = SOCK_ERR; local
1197 if (ufds[i].fd > max_fd)
1198 max_fd = ufds[i].fd;
1201 PHP_SAFE_MAX_FD(max_fd, nfds + 1);
1229 n = select(max_fd
[all...]
H A Dphp_network.h199 PHPAPI void _php_emit_fd_setsize_warning(int max_fd);
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c121 php_socket_t max_fd; member in struct:php_cli_server_poller
740 poller->max_fd = -1;
752 if (fd > poller->max_fd) {
753 poller->max_fd = fd;
766 if (fd == poller->max_fd) {
773 poller->max_fd = fd;
782 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv);
830 const php_socket_t max_fd = poller->max_fd; local
832 for (fd=0 ; fd<=max_fd ; f
[all...]

Completed in 17 milliseconds