Home
last modified time | relevance | path

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

12345678

/PHP-7.0/ext/zip/lib/
H A Dmkstemp.c64 int fd; in _zip_mkstemp()
128 if ((fd=open(path, O_CREAT|O_EXCL|O_RDWR|O_BINARY, 0600)) >= 0) in _zip_mkstemp()
129 return (fd); in _zip_mkstemp()
/PHP-7.0/ext/standard/tests/file/
H A Dbug71882.phpt5 $fd = fopen("php://memory", "w+");
6 var_dump(ftruncate($fd, -1));
H A Dfile_variation7.phpt7 $fd = fopen($filepath, "w+");
8 fwrite($fd, "Line 1\n\n \n \n\Line 3");
9 fclose($fd);
H A Dphp_fd_wrapper_04.phpt2 php://fd wrapper: invalid file descriptor
14 fopen("php://fd/12", "w");
18 Warning: fopen(php://fd/12): failed to open stream: Error duping file descriptor 12; possibly it do…
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-7.0/ext/curl/tests/
H A Dbug62839.phpt10 $fd = tmpfile();
11 curl_setopt($curl, CURLOPT_FILE, $fd);
/PHP-7.0/main/
H A Dfastcgi.c48 #define FCGI_LOCK(fd) \ argument
129 # define FCGI_LOCK(fd) argument
215 int fd; member
886 req->fd = -1; in fcgi_init_request()
1308 close(req->fd); in fcgi_close()
1313 req->fd = -1; in fcgi_close()
1370 if (req->fd < 0) {
1415 req->fd = -1;
1436 fds.fd = req->fd;
1485 return req->fd;
[all …]
/PHP-7.0/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-7.0/ext/standard/
H A Dflock_compat.h28 PHPAPI int php_flock(int fd, int operation);
35 PHPAPI int flock(int fd, int operation);
/PHP-7.0/ext/phar/
H A Dutil.c1004 fd = PHAR_G(last_phar); in phar_get_archive()
1005 fd_ptr = fd; in phar_get_archive()
1026 fd = fd_ptr; in phar_get_archive()
1027 PHAR_G(last_phar) = fd; in phar_get_archive()
1048 fd = fd_ptr; in phar_get_archive()
1051 …if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))… in phar_get_archive()
1058 …if (fd->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), fd->alias… in phar_get_archive()
1059 zend_hash_str_del(&(PHAR_G(phar_alias_map)), fd->alias, fd->alias_len); in phar_get_archive()
1076 fd = fd_ptr; in phar_get_archive()
1081 if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { in phar_get_archive()
[all …]
/PHP-7.0/ext/opcache/
H A Dzend_file_cache.c735 int fd; in zend_file_cache_script_store() local
765 close(fd); in zend_file_cache_script_store()
804 close(fd); in zend_file_cache_script_store()
818 close(fd); in zend_file_cache_script_store()
831 close(fd); in zend_file_cache_script_store()
1256 int fd; in zend_file_cache_script_load() local
1277 close(fd); in zend_file_cache_script_load()
1285 close(fd); in zend_file_cache_script_load()
1295 close(fd); in zend_file_cache_script_load()
1303 close(fd); in zend_file_cache_script_load()
[all …]
/PHP-7.0/sapi/litespeed/
H A Dlsapilib.c682 if ( fd == -1 ) in readSecret()
690 close( fd ); in readSecret()
704 close( fd ); in readSecret()
710 close( fd ); in readSecret()
713 close( fd ); in readSecret()
1296 fd = dup( fd ); in LSAPI_InitRequest()
2299 int fd; in LSAPI_CreateListenSock2() local
2338 close(fd); in LSAPI_CreateListenSock2()
2445 int fd = -1; in LSAPI_CreateListenSock() local
2451 return fd; in LSAPI_CreateListenSock()
[all …]
/PHP-7.0/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));
/PHP-7.0/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()
494 int fd; in fpm_socket_unix_test_connect() local
500 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in fpm_socket_unix_test_connect()
504 if (connect(fd, (struct sockaddr *)sock, socklen) == -1) { in fpm_socket_unix_test_connect()
505 close(fd); in fpm_socket_unix_test_connect()
509 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-7.0/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-7.0/ext/fileinfo/libmagic/
H A Delfclass.h43 if (dophn_core(ms, clazz, swap, fd,
58 if (dophn_exec(ms, clazz, swap, fd,
68 if (doshn(ms, clazz, swap, fd,
/PHP-7.0/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-7.0/sapi/cli/
H A Dphp_cli_server.c755 poller->max_fd = fd; in php_cli_server_poller_add()
769 while (fd > 0) { in php_cli_server_poller_remove()
770 fd--; in php_cli_server_poller_remove()
775 poller->max_fd = fd; in php_cli_server_poller_remove()
792 SOCKET fd; in php_cli_server_poller_iter_on_active() member
809 if (e->fd == fd) { in php_cli_server_poller_iter_on_active()
816 n->fd = fd; in php_cli_server_poller_iter_on_active()
831 php_socket_t fd; in php_cli_server_poller_iter_on_active() local
834 for (fd=0 ; fd<=max_fd ; fd++) { in php_cli_server_poller_iter_on_active()
2010 int fd; in php_cli_server_begin_send_static() local
[all …]
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_sigsafe.c16 …zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("Tried to allocate more than " EXP_STR(… in ZEND_EXTERN_MODULE_GLOBALS()
22 …zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("Bailed out without a bailout address i… in ZEND_EXTERN_MODULE_GLOBALS()

Completed in 82 milliseconds

12345678