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/main/
H A Dnetwork.c1164 PHPAPI void _php_emit_fd_setsize_warning(int max_fd) argument
1176 FD_SETSIZE, max_fd, (max_fd + 128) & ~127);
1184 FD_SETSIZE, max_fd, (max_fd + 1024) & ~1023);
1195 php_socket_t max_fd = SOCK_ERR; local
1202 if (ufds[i].fd > max_fd)
1203 max_fd = ufds[i].fd;
1206 PHP_SAFE_MAX_FD(max_fd, nfds + 1);
1234 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.c120 php_socket_t max_fd; member in struct:php_cli_server_poller
741 poller->max_fd = -1;
753 if (fd > poller->max_fd) {
754 poller->max_fd = fd;
767 if (fd == poller->max_fd) {
774 poller->max_fd = fd;
783 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv);
831 const php_socket_t max_fd = poller->max_fd; local
833 for (fd=0 ; fd<=max_fd ; f
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd.c1291 static int mysqlnd_stream_array_to_fd_set(MYSQLND ** conn_array, fd_set * fds, php_socket_t * max_fd) argument
1312 if (this_fd > *max_fd) {
1313 *max_fd = this_fd;
1373 php_socket_t max_fd = 0; local
1389 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd);
1397 set_count = mysqlnd_stream_array_to_fd_set(e_array, &efds, &max_fd);
1410 PHP_SAFE_MAX_FD(max_fd, max_set_count);
1423 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);
1426 php_error_docref(NULL, E_WARNING, "unable to select [%d]: %s (max_fd=%d)",
1427 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.c577 static int stream_array_to_fd_set(zval *stream_array, fd_set *fds, php_socket_t *max_fd) argument
606 if (this_fd > *max_fd) {
607 *max_fd = this_fd;
723 php_socket_t max_fd = 0; local
736 set_count = stream_array_to_fd_set(r_array, &rfds, &max_fd);
743 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd);
750 set_count = stream_array_to_fd_set(e_array, &efds, &max_fd);
761 PHP_SAFE_MAX_FD(max_fd, max_set_count);
808 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p);
811 php_error_docref(NULL, E_WARNING, "unable to select [%d]: %s (max_fd
[all...]

Completed in 28 milliseconds