/PHP-5.5/win32/ |
H A D | select.c | 49 #define SAFE_FD_ISSET(fd, set) (set != NULL && FD_ISSET(fd, set)) in php_select() argument
|
H A D | flock.c | 55 PHPAPI int flock(int fd, int op) in flock() argument 57 HANDLE hdl = (HANDLE) _get_osfhandle(fd); in flock()
|
H A D | flock.h | 11 PHPAPI int flock(int fd, int op);
|
/PHP-5.5/win32/build/ |
H A D | mkdist.php | 377 $fd = $dest . '/' . $f; 379 copy_dir($fs, $fd); 381 copy($fs, $fd);
|
H A D | config.w32 | 412 ARG_ENABLE('fd-setsize', "Set maximum number of sockets for select(2)", "256");
|
/PHP-5.5/ |
H A D | server-tests.php | 574 $fd = fopen($url, "rb"); 576 if ($fd) { 577 while (!feof($fd)) 578 $out .= fread($fd, 8192); 579 fclose($fd);
|
/PHP-5.5/sapi/phttpd/ |
H A D | phttpd.c | 60 sent_bytes = fd_write(PHG(cip)->fd, str, str_length); in php_phttpd_sapi_ub_write() 75 http_sendheaders(PHG(cip)->fd, PHG(cip), SG(sapi_headers).http_response_code, NULL); in php_phttpd_sapi_header_handler() 86 fd_printf(PHG(cip)->fd,"%s: %s\n", header_name, header_content); in php_phttpd_sapi_header_handler() 100 fd_printf(PHG(cip)->fd,"Content-Type: text/html\n"); in php_phttpd_sapi_send_headers() 103 fd_putc('\n', PHG(cip)->fd); in php_phttpd_sapi_send_headers()
|
/PHP-5.5/sapi/roxen/ |
H A D | roxen.c | 251 int sent_bytes = 0, fd = MY_FD; in php_roxen_sapi_ub_write() local 252 if(fd) in php_roxen_sapi_ub_write() 257 written = fd_write(fd, str + sent_bytes, str_length - sent_bytes); in php_roxen_sapi_ub_write() 659 int fd = fd_from_object(raw_fd->u.object); in f_php_roxen_request_handler() local 660 if(fd == -1) in f_php_roxen_request_handler() 662 THIS->my_fd = fd; in f_php_roxen_request_handler()
|
/PHP-5.5/sapi/thttpd/ |
H A D | php_thttpd.h | 31 void thttpd_closed_conn(int fd);
|
H A D | thttpd.c | 629 static void remove_dead_conn(int fd) argument 636 if (m->hc->conn_fd == fd) { 715 void thttpd_closed_conn(int fd) argument 718 if (TG(on_close)) TG(on_close)(fd);
|
H A D | thttpd_patch | 106 poll_rfdidx[ridx++] = pollfds[i].fd; 111 switch ( fd_rw[fd] ) 113 - case FDW_READ: return pollfds[poll_fdidx[fd]].revents & POLLIN; 114 - case FDW_WRITE: return pollfds[poll_fdidx[fd]].revents & POLLOUT; 115 + case FDW_READ: return pollfds[poll_fdidx[fd]].revents & ( POLLIN | POLLERR | POLLHUP | POLLNVAL ); 116 + case FDW_WRITE: return pollfds[poll_fdidx[fd]].revents & ( POLLOUT | POLLERR | POLLHUP | POLLNVA… 940 + int fd = fileno(hc->hs->logfp); 941 + write(fd, bentries.c, bentries.len); 1322 int fd; 1633 /* Do the fd watch. */ [all …]
|
/PHP-5.5/sapi/tux/ |
H A D | php_tux.c | 34 void tux_closed_conn(int fd); 367 int fd; 370 fd = (int) bla; 373 send(fd, "test<br />\n", 9, 0); 377 tux(TUX_ACTION_CONTINUE_REQ, (user_req_t *) fd); 381 shutdown(fd, 2); 412 void tux_closed_conn(int fd) in tux_closed_conn() argument 416 if (TG(on_close)) TG(on_close)(fd); in tux_closed_conn()
|
/PHP-5.5/sapi/isapi/stresstest/ |
H A D | stresstest.cpp | 388 WIN32_FIND_DATA fd; in GetTestFiles() local 389 memset(&fd, 0, sizeof(WIN32_FIND_DATA)); in GetTestFiles() 392 HANDLE fh = FindFirstFile(FindPath, &fd); in GetTestFiles() 396 !strchr(fd.cFileName, '.')) { in GetTestFiles() 407 memset(&fd, 0, sizeof(WIN32_FIND_DATA)); in GetTestFiles() 408 } while (FindNextFile(fh, &fd) != 0); in GetTestFiles() 417 WIN32_FIND_DATA fd; in DeleteTempFiles() local 418 memset(&fd, 0, sizeof(WIN32_FIND_DATA)); in DeleteTempFiles() 421 HANDLE fh = FindFirstFile(FindPath, &fd); in DeleteTempFiles() 427 memset(&fd, 0, sizeof(WIN32_FIND_DATA)); in DeleteTempFiles() [all …]
|
/PHP-5.5/sapi/litespeed/ |
H A D | lsapi_main.c | 572 file_handle->handle.fd = 0; in lsapi_execute_script()
|
H A D | lsapilib.c | 648 if ( fd == -1 ) in readSecret() 656 close( fd ); in readSecret() 670 close( fd ); in readSecret() 676 close( fd ); in readSecret() 679 close( fd ); in readSecret() 1241 fd = dup( fd ); in LSAPI_InitRequest() 2244 int fd; in LSAPI_CreateListenSock2() local 2283 close(fd); in LSAPI_CreateListenSock2() 2390 int fd = -1; in LSAPI_CreateListenSock() local 2396 return fd; in LSAPI_CreateListenSock() [all …]
|
H A D | lsapilib.h | 146 int LSAPI_InitRequest( LSAPI_Request * pReq, int fd ); 360 void LSAPI_Set_Server_fd( int fd );
|
/PHP-5.5/sapi/fpm/fpm/ |
H A D | fpm_sockets.c | 55 char fd[32]; in fpm_sockets_cleanup() local 56 sprintf(fd, "%d", ls->sock); in fpm_sockets_cleanup() 57 env_value = realloc(env_value, p + (p ? 1 : 0) + strlen(ls->key) + 1 + strlen(fd) + 1); in fpm_sockets_cleanup() 58 p += sprintf(env_value + p, "%s%s=%s", p ? "," : "", ls->key, fd); in fpm_sockets_cleanup() 506 int fd; in fpm_socket_unix_test_connect() local 512 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in fpm_socket_unix_test_connect() 516 if (connect(fd, (struct sockaddr *)sock, socklen) == -1) { in fpm_socket_unix_test_connect() 517 close(fd); in fpm_socket_unix_test_connect() 521 close(fd); in fpm_socket_unix_test_connect()
|
H A D | fpm_sockets.h | 31 static inline int fd_set_blocked(int fd, int blocked) /* {{{ */ in fd_set_blocked() argument 33 int flags = fcntl(fd, F_GETFL); in fd_set_blocked() 44 return fcntl(fd, F_SETFL, flags); in fd_set_blocked()
|
H A D | fpm_stdio.c | 28 int fd = open("/dev/null", O_RDWR); in fpm_stdio_init_main() local 30 if (0 > fd) { in fpm_stdio_init_main() 35 if (0 > dup2(fd, STDIN_FILENO) || 0 > dup2(fd, STDOUT_FILENO)) { in fpm_stdio_init_main() 37 close(fd); in fpm_stdio_init_main() 40 close(fd); in fpm_stdio_init_main() 89 int fd = ev->fd; in fpm_stdio_child_said() local 265 int fd; local 283 if (0 > fd) { 290 dup2(fd, STDERR_FILENO); 294 close(fd); [all …]
|
/PHP-5.5/sapi/fpm/ |
H A D | config.m4 | 252 int fd; 254 fd = open(buf, O_RDONLY); 255 if (0 > fd) { 258 if (sizeof(long) != pread(fd, &v2, sizeof(long), (uintptr_t) &v1)) { 259 close(fd); 262 close(fd); 463 e.data.fd = 0; 492 fds[0].fd = 0; 495 fds[1].fd = 0;
|
/PHP-5.5/sapi/fpm/fpm/events/ |
H A D | devpoll.c | 98 pollfds[i].fd = -1; in fpm_event_devpoll_init() 179 if (q->ev && q->ev->fd == active_pollfds[i].fd) { in fpm_event_devpoll_wait() 206 pollfd.fd = ev->fd; in fpm_event_devpoll_add() 217 ev->index = ev->fd; in fpm_event_devpoll_add() 231 pollfd.fd = ev->fd; in fpm_event_devpoll_remove()
|
H A D | epoll.c | 168 e.data.fd = ev->fd; in fpm_event_epoll_add() 176 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, ev->fd, &e) == -1) { in fpm_event_epoll_add() 177 zlog(ZLOG_ERROR, "epoll: unable to add fd %d", ev->fd); in fpm_event_epoll_add() 182 ev->index = ev->fd; in fpm_event_epoll_add() 196 e.data.fd = ev->fd; in fpm_event_epoll_remove() 204 if (epoll_ctl(epollfd, EPOLL_CTL_DEL, ev->fd, &e) == -1) { in fpm_event_epoll_remove() 205 zlog(ZLOG_ERROR, "epoll: unable to remove fd %d", ev->fd); in fpm_event_epoll_remove()
|
H A D | kqueue.c | 170 EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); in fpm_event_kqueue_add() 178 ev->index = ev->fd; in fpm_event_kqueue_add() 195 EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); in fpm_event_kqueue_remove()
|
H A D | poll.c | 90 pollfds[i].fd = -1; in fpm_event_poll_init() 161 … && q->ev->index >= 0 && q->ev->index < npollfds && q->ev->fd == active_pollfds[q->ev->index].fd) { in fpm_event_poll_wait() 191 if (pollfds[next_free_slot].fd == -1) { in fpm_event_poll_add() 193 pollfds[next_free_slot].fd = ev->fd; in fpm_event_poll_add() 206 if (pollfds[i].fd != -1) { in fpm_event_poll_add() 212 pollfds[i].fd = ev->fd; in fpm_event_poll_add() 223 zlog(ZLOG_ERROR, "poll: not enought space to add event (fd=%d)", ev->fd); in fpm_event_poll_add() 236 if (ev->index >= 0 && ev->index < npollfds && pollfds[ev->index].fd == ev->fd) { in fpm_event_poll_remove() 241 pollfds[ev->index].fd = -1; in fpm_event_poll_remove() 253 if (pollfds[i].fd != ev->fd) { in fpm_event_poll_remove() [all …]
|
H A D | port.c | 163 if (port_associate(pfd, PORT_SOURCE_FD, ev->fd, POLLIN, (void *)ev) < 0) { in fpm_event_port_add() 177 if (port_dissociate(pfd, PORT_SOURCE_FD, ev->fd) < 0) { in fpm_event_port_remove()
|