Home
last modified time | relevance | path

Searched refs:fd (Results 51 – 75 of 181) sorted by relevance

12345678

/PHP-5.5/ext/standard/tests/http/
H A Dignore_errors.phpt24 $fd = fopen('http://127.0.0.1:12342/foo/bar', 'rb', false, $context);
25 var_dump($fd);
27 if ($fd) {
28 $meta_data = stream_get_meta_data($fd);
31 var_dump(stream_get_contents($fd));
H A Dbug38802.phpt24 $fd = fopen('http://127.0.0.1:12342/foo/bar', 'rb', false, $context);
25 var_dump($fd);
27 if ($fd) {
28 $meta_data = stream_get_meta_data($fd);
31 var_dump(stream_get_contents($fd));
/PHP-5.5/win32/
H A Dflock.c55 PHPAPI int flock(int fd, int op) in flock() argument
57 HANDLE hdl = (HANDLE) _get_osfhandle(fd); in flock()
/PHP-5.5/ext/phar/
H A Dutil.c1006 fd = PHAR_G(last_phar); in phar_get_archive()
1007 fd_ptr = &fd; in phar_get_archive()
1029 fd = *fd_ptr; in phar_get_archive()
1030 PHAR_G(last_phar) = fd; in phar_get_archive()
1052 fd = *fd_ptr; in phar_get_archive()
1055 …if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))… in phar_get_archive()
1062 …if (fd->alias_len && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), fd->alias, fd->ali… in phar_get_archive()
1063 zend_hash_del(&(PHAR_GLOBALS->phar_alias_map), fd->alias, fd->alias_len); in phar_get_archive()
1080 fd = *fd_ptr; in phar_get_archive()
1085 if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { in phar_get_archive()
[all …]
/PHP-5.5/sapi/litespeed/
H A Dlsapilib.c648 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 …]
/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_log.c38 int fd; in fpm_log_open() local
45 fd = open(wp->config->access_log, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); in fpm_log_open()
46 if (0 > fd) { in fpm_log_open()
54 dup2(fd, wp->log_fd); in fpm_log_open()
55 close(fd); in fpm_log_open()
56 fd = wp->log_fd; in fpm_log_open()
59 wp->log_fd = fd; in fpm_log_open()
62 if (0 > fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC)) { in fpm_log_open()
H A Dfpm_sockets.c55 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 Dfpm_events.h16 int fd; /* not set with FPM_EV_TIMEOUT */ member
45 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *,…
H A Dfpm_events.c60 int fd = ev->fd; in fpm_got_signal() local
64 res = read(fd, &c, 1); in fpm_got_signal()
471 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *,… in fpm_event_set() argument
473 if (!ev || !callback || fd < -1) { in fpm_event_set()
477 ev->fd = fd; in fpm_event_set()
/PHP-5.5/ext/mysqlnd/
H A Dmysqlnd_loaddata.c54 info->fd = php_stream_open_wrapper_ex((char *)filename, "r", 0, NULL, context); in mysqlnd_local_infile_init()
56 if (info->fd == NULL) { in mysqlnd_local_infile_init()
76 count = (int)php_stream_read(info->fd, (char *) buf, buf_len); in mysqlnd_local_infile_read()
117 if (info->fd) { in mysqlnd_local_infile_end()
118 php_stream_close(info->fd); in mysqlnd_local_infile_end()
119 info->fd = NULL; in mysqlnd_local_infile_end()
/PHP-5.5/ext/standard/tests/file/
H A Dfile_variation5-win32.phpt19 $fd = fopen($filepath, "w+");
20 fwrite($fd, "Line 1\nLine 2\nLine 3");
21 fclose($fd);
H A Dchmod_basic.phpt16 $fd = fopen($filename, "w+");
17 fclose($fd);
H A Dfgets_socket_variation2.phpt10 $fd = fopen($filename, "w+");
15 fwrite($fd, LINE_OF_DATA);
17 fclose($fd);
H A Dfile_variation5.phpt19 $fd = fopen($filepath, "w+");
20 fwrite($fd, "Line 1\nLine 2\nLine 3");
21 fclose($fd);
/PHP-5.5/main/streams/
H A Dphp_stream_plain_wrapper.h39 PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id ST…
40 #define php_stream_fopen_from_fd(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), (… argument
/PHP-5.5/sapi/isapi/stresstest/
H A Dstresstest.cpp388 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/tux/
H A Dphp_tux.c34 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/phttpd/
H A Dphttpd.c60 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/fpm/fpm/events/
H A Dkqueue.c170 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()
/PHP-5.5/sapi/cli/
H A Dphp_cli_server.c878 poller->max_fd = fd; in php_cli_server_poller_add()
892 while (fd > 0) { in php_cli_server_poller_remove()
893 fd--; in php_cli_server_poller_remove()
915 SOCKET fd; in php_cli_server_poller_iter_on_active() member
918 php_socket_t fd = 0; in php_cli_server_poller_iter_on_active() local
933 if (e->fd == fd) { in php_cli_server_poller_iter_on_active()
940 n->fd = fd; in php_cli_server_poller_iter_on_active()
955 php_socket_t fd; in php_cli_server_poller_iter_on_active() local
958 for (fd=0 ; fd<=max_fd ; fd++) { in php_cli_server_poller_iter_on_active()
2038 int fd; in php_cli_server_begin_send_static() local
[all …]
/PHP-5.5/ext/standard/
H A Dproc_open.c427 static inline HANDLE dup_fd_as_handle(int fd) in dup_fd_as_handle() argument
432 # define close_descriptor(fd) CloseHandle(fd) argument
434 # define close_descriptor(fd) close(fd) argument
559 int fd; in PHP_FUNCTION() local
568 descriptors[ndesc].childend = dup_fd_as_handle(fd); in PHP_FUNCTION()
574 descriptors[ndesc].childend = dup(fd); in PHP_FUNCTION()
632 int fd; in PHP_FUNCTION() local
658 (void **)&fd, REPORT_ERRORS)) { in PHP_FUNCTION()
663 descriptors[ndesc].childend = dup_fd_as_handle(fd); in PHP_FUNCTION()
664 _close(fd); in PHP_FUNCTION()
[all …]
/PHP-5.5/ext/posix/tests/
H A Dposix_ttyname_error.phpt19 $fd = 'foo';
22 var_dump(posix_ttyname( $fd, $extra_arg ) );
/PHP-5.5/ext/posix/
H A Dposix.c150 ZEND_ARG_INFO(0, fd)
154 ZEND_ARG_INFO(0, fd)
725 int fd; in PHP_FUNCTION() local
736 if (!php_posix_stream_get_fd(*z_fd, &fd TSRMLS_CC)) { in PHP_FUNCTION()
742 fd = Z_LVAL_PP(z_fd); in PHP_FUNCTION()
751 if (ttyname_r(fd, p, buflen)) { in PHP_FUNCTION()
758 if (NULL == (p = ttyname(fd))) { in PHP_FUNCTION()
772 int fd; in PHP_FUNCTION() local
780 if (!php_posix_stream_get_fd(*z_fd, &fd TSRMLS_CC)) { in PHP_FUNCTION()
786 fd = Z_LVAL_PP(z_fd); in PHP_FUNCTION()
[all …]
/PHP-5.5/ext/dba/
H A Ddba_dbm.c48 if((fd = VCWD_OPEN_MODE(buf, O_CREAT | mode | O_WRONLY, filemode)) == -1) \
50 close(fd);
59 int fd; in DBA_OPEN_FUNC() local
/PHP-5.5/ext/zlib/
H A Dzlib_fopen_wrapper.c132 int fd; in php_stream_gzopen() local
134 if (SUCCESS == php_stream_cast(innerstream, PHP_STREAM_AS_FD, (void **) &fd, REPORT_ERRORS)) { in php_stream_gzopen()
137 self->gz_file = gzdopen(dup(fd), mode); in php_stream_gzopen()

Completed in 113 milliseconds

12345678