Home
last modified time | relevance | path

Searched refs:fd (Results 76 – 100 of 230) sorted by relevance

12345678910

/php-src/Zend/
H A Dzend_gdb.c114 int fd = open("/proc/self/status", O_RDONLY); in zend_gdb_present() local
116 if (fd >= 0) { in zend_gdb_present()
118 ssize_t n = read(fd, buf, sizeof(buf) - 1); in zend_gdb_present()
143 close(fd); in zend_gdb_present()
/php-src/ext/standard/tests/file/
H A Dbug71882.phpt5 $fd = fopen("php://memory", "w+");
7 var_dump(ftruncate($fd, -1));
H A Dfile_variation7.phpt8 $fd = fopen($filepath, "w+");
9 fwrite($fd, "Line 1\n\n \n \n\Line 3");
10 fclose($fd);
H A Dchmod_basic.phpt16 $fd = fopen($filename, "w+");
17 fclose($fd);
H A Dfile_variation5-win32-mb.phpt19 $fd = fopen($filepath, "w+");
20 fwrite($fd, "Line 1\nLine 2\nLine 3");
21 fclose($fd);
H A Dfile_variation5-win32.phpt19 $fd = fopen($filepath, "w+");
20 fwrite($fd, "Line 1\nLine 2\nLine 3");
21 fclose($fd);
H A Dfgets_socket_variation2.phpt10 $fd = fopen($filename, "w+");
15 fwrite($fd, LINE_OF_DATA);
17 fclose($fd);
/php-src/ext/mbstring/tests/
H A Dcasemapping.phpt106 fd
107 fd
109 fd
110 fd
111 fd
112 fd
/php-src/tests/output/
H A Dstream_isatty_non_castable_userwrapper.phpt17 $fd = fopen("test://foo","r");
18 var_dump(stream_isatty($fd));
/php-src/ext/phar/
H A Dutil.c1003 fd = PHAR_G(last_phar); in phar_get_archive()
1004 fd_ptr = fd; in phar_get_archive()
1025 fd = fd_ptr; in phar_get_archive()
1026 PHAR_G(last_phar) = fd; in phar_get_archive()
1047 fd = fd_ptr; in phar_get_archive()
1050 …if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))… in phar_get_archive()
1057 …if (fd->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), fd->alias… in phar_get_archive()
1058 zend_hash_str_del(&(PHAR_G(phar_alias_map)), fd->alias, fd->alias_len); in phar_get_archive()
1075 fd = fd_ptr; in phar_get_archive()
1080 if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { in phar_get_archive()
[all …]
/php-src/ext/opcache/
H A Dshared_alloc_mmap.c182 int flags = PROT_READ | PROT_WRITE, fd = -1; in create_segments() local
195 fd = VM_MAKE_TAG(251U); in create_segments()
236 p = mmap(NULL, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT, fd, 0); in create_segments()
244 p = mmap(NULL, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT, fd, 0); in create_segments()
251 p = mmap(0, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_HUGETLB, fd, 0); in create_segments()
257 p = mmap(NULL, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT, fd, 0); in create_segments()
263 p = mmap(0, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS, fd, 0); in create_segments()
/php-src/ext/posix/
H A Dposix.c451 zend_long fd = 0; in PHP_FUNCTION() local
462 if (php_posix_stream_get_fd(z_fd, &fd) == FAILURE) { in PHP_FUNCTION()
469 fd = zval_get_long(z_fd); in PHP_FUNCTION()
472 if (fd < 0 || fd > INT_MAX) { in PHP_FUNCTION()
489 err = ttyname_r(fd, p, buflen); in PHP_FUNCTION()
503 if (NULL == (p = ttyname(fd))) { in PHP_FUNCTION()
516 zend_long fd = 0; in PHP_FUNCTION() local
535 if (fd < 0 || fd > INT_MAX) { in PHP_FUNCTION()
539 if (isatty(fd)) { in PHP_FUNCTION()
1310 zend_long name, ret, fd = 0; in PHP_FUNCTION() local
[all …]
/php-src/ext/fileinfo/libmagic/
H A Dis_simh.c190 int fd; in main() local
194 if ((fd = open(argv[1], O_RDONLY)) == -1) in main()
197 if (fstat(fd, &st) == -1) in main()
203 if (read(fd, p, st.st_size) != st.st_size) in main()
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-src/ext/standard/tests/image/
H A Diptcembed_002.phpt40 $fd=fopen($file,"wb");
41 if ($fd) { fputs($fd,base64_decode($base64_1x1_jpeg)); fclose($fd); }
71 $fd=fopen($file2,"wb");
72 if ($fd) { fputs($fd,$content); fclose($fd); }
/php-src/ext/standard/tests/http/
H A Dignore_errors.phpt24 $fd = fopen("$uri/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 Dbug79265.phpt26 $fd = fopen($uri, 'rb', false, $context);
29 fclose($fd);
H A Dbug79265_2.phpt25 $fd = fopen($uri, 'rb', false, $context);
28 fclose($fd);
/php-src/ext/standard/
H A Dproc_open.c86 int fd, sd; in openpty() local
94 if (fd == -1) { in openpty()
98 if (grantpt(fd) != 0 || unlockpt(fd) != 0) { in openpty()
123 *master = fd; in openpty()
129 if (fd != -1) { in openpty()
130 close(fd); in openpty()
486 # define close_descriptor(fd) CloseHandle(fd) argument
488 # define close_descriptor(fd) close(fd) argument
836 return fd; in make_descriptor_cloexec()
900 php_socket_t fd; in set_proc_descriptor_to_file() local
[all …]
/php-src/main/streams/
H A Dphp_stream_plain_wrapper.h35 PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id, b…
36 #define php_stream_fopen_from_fd(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), (… argument
/php-src/ext/mysqlnd/
H A Dmysqlnd_loaddata.c50 info->fd = php_stream_open_wrapper_ex((char *)filename, "r", 0, NULL, context); in mysqlnd_local_infile_init()
52 if (info->fd == NULL) { in mysqlnd_local_infile_init()
72 count = (int) php_stream_read(info->fd, (char *) buf, buf_len); in mysqlnd_local_infile_read()
113 if (info->fd) { in mysqlnd_local_infile_end()
114 php_stream_close(info->fd); in mysqlnd_local_infile_end()
115 info->fd = NULL; in mysqlnd_local_infile_end()
/php-src/sapi/fpm/fpm/
H A Dfpm_log.c39 int fd; in fpm_log_open() local
46 fd = open(wp->config->access_log, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); in fpm_log_open()
47 if (0 > fd) { in fpm_log_open()
55 dup2(fd, wp->log_fd); in fpm_log_open()
56 close(fd); in fpm_log_open()
57 fd = wp->log_fd; in fpm_log_open()
60 wp->log_fd = fd; in fpm_log_open()
63 if (0 > fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC)) { in fpm_log_open()
H A Dfpm_events.h14 int fd; /* not set with FPM_EV_TIMEOUT */ member
43 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *,…
/php-src/sapi/litespeed/
H A Dlsapilib.c864 if ( fd == -1 ) in readSecret()
872 close( fd ); in readSecret()
886 close( fd ); in readSecret()
892 close( fd ); in readSecret()
895 close( fd ); in readSecret()
1500 fd = dup( fd ); in LSAPI_InitRequest()
2588 int fd; in LSAPI_CreateListenSock2() local
2627 close(fd); in LSAPI_CreateListenSock2()
2735 int fd = -1; in LSAPI_CreateListenSock() local
2741 return fd; in LSAPI_CreateListenSock()
[all …]
/php-src/sapi/fpm/fpm/events/
H A Dkqueue.c164 EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); in fpm_event_kqueue_add()
172 ev->index = ev->fd; in fpm_event_kqueue_add()
189 EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); in fpm_event_kqueue_remove()

Completed in 74 milliseconds

12345678910