Home
last modified time | relevance | path

Searched refs:fd (Results 101 – 125 of 209) sorted by relevance

123456789

/PHP-7.4/sapi/fpm/fpm/events/
H A Dport.c174 if (port_associate(pfd, PORT_SOURCE_FD, ev->fd, POLLIN, (void *)ev) < 0) { in fpm_event_port_add()
188 if (port_dissociate(pfd, PORT_SOURCE_FD, ev->fd) < 0) { in fpm_event_port_remove()
/PHP-7.4/ext/zlib/
H A Dzlib_fopen_wrapper.c131 php_socket_t fd; in php_stream_gzopen() local
133 if (SUCCESS == php_stream_cast(innerstream, PHP_STREAM_AS_FD, (void **) &fd, REPORT_ERRORS)) { in php_stream_gzopen()
136 self->gz_file = gzdopen(dup(fd), mode); in php_stream_gzopen()
/PHP-7.4/ext/posix/
H A Dposix.c146 ZEND_ARG_INFO(0, fd)
150 ZEND_ARG_INFO(0, fd)
804 int fd; in PHP_FUNCTION() local
815 if (!php_posix_stream_get_fd(z_fd, &fd)) { in PHP_FUNCTION()
820 fd = zval_get_long(z_fd); in PHP_FUNCTION()
829 if (ttyname_r(fd, p, buflen)) { in PHP_FUNCTION()
837 if (NULL == (p = ttyname(fd))) { in PHP_FUNCTION()
851 int fd; in PHP_FUNCTION() local
859 if (!php_posix_stream_get_fd(z_fd, &fd)) { in PHP_FUNCTION()
864 fd = zval_get_long(z_fd); in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/standard/
H A Dproc_open.c376 static inline HANDLE dup_fd_as_handle(int fd) in dup_fd_as_handle() argument
378 return dup_handle((HANDLE)_get_osfhandle(fd), TRUE, FALSE); in dup_fd_as_handle()
381 # define close_descriptor(fd) CloseHandle(fd) argument
383 # define close_descriptor(fd) close(fd) argument
644 php_socket_t fd; in PHP_FUNCTION() local
653 descriptors[ndesc].childend = dup_fd_as_handle((int)fd); in PHP_FUNCTION()
659 descriptors[ndesc].childend = dup(fd); in PHP_FUNCTION()
721 php_socket_t fd; in PHP_FUNCTION() local
751 (void **)&fd, REPORT_ERRORS)) { in PHP_FUNCTION()
757 _close((int)fd); in PHP_FUNCTION()
[all …]
H A Dphp_random.h31 int fd; member
/PHP-7.4/ext/standard/tests/file/
H A Dfile_variation6.phpt7 $fd = fopen($filepath, "w+");
8 fwrite($fd, "Line 1\nLine 2\nLine 3");
9 fclose($fd);
H A Dchmod_variation2-win32-mb.phpt21 $fd = fopen($filepath, "w+");
22 fclose($fd);
H A Dchmod_variation2-win32.phpt21 $fd = fopen($filepath, "w+");
22 fclose($fd);
H A Dmove_uploaded_file_basic.phpt47 $fd = fopen($destination4, "w");
48 fclose($fd);
H A Dchmod_variation2.phpt21 $fd = fopen($filepath, "w+");
22 fclose($fd);
/PHP-7.4/win32/
H A Dselect.c50 #define SAFE_FD_ISSET(fd, set) (set != NULL && FD_ISSET(fd, set)) in php_select() argument
/PHP-7.4/sapi/fpm/fpm/
H A Dzlog.h77 int fd; member
94 void zlog_stream_init_ex(struct zlog_stream *stream, int flags, int fd);
H A Dfpm_conf.c958 int fd; in fpm_conf_process_all_pools() local
966 close(fd); in fpm_conf_process_all_pools()
1155 int fd; in fpm_conf_write_pid() local
1173 close(fd); in fpm_conf_write_pid()
1176 close(fd); in fpm_conf_write_pid()
1523 int fd, n; in fpm_conf_load_ini_file() local
1535 if (fd < 0) { in fpm_conf_load_ini_file()
1542 close(fd); in fpm_conf_load_ini_file()
1577 close(fd); in fpm_conf_load_ini_file()
1589 close(fd); in fpm_conf_load_ini_file()
[all …]
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch676 - int fd;
688 - fd = -1;
765 - fd = -1;
842 - if (fd != -1)
881 - int fd = -1;
1027 b->fd = fd;
1030 - else if (b->fd == -1 || fstat(b->fd, &b->st) == -1)
1031 + else if (b->fd == -1 || zend_fstat(b->fd, &b->st) == -1)
1525 return fd;
1742 int fd;
[all …]
/PHP-7.4/ext/fileinfo/libmagic/
H A Dmagic.c159 close_and_restore(const struct magic_set *ms, const char *name, int fd,
162 if (fd == STDIN_FILENO || name == NULL)
164 (void) close(fd);
197 magic_descriptor(struct magic_set *ms, int fd) in magic_descriptor() argument
H A Dis_json.c440 int fd, rv; in main() local
445 if ((fd = open(argv[1], O_RDONLY)) == -1) in main()
448 if (fstat(fd, &st) == -1) in main()
454 if (read(fd, p, st.st_size) != st.st_size) in main()
/PHP-7.4/ext/bz2/
H A Dbz2.c293 php_socket_t fd; in _php_stream_bz2open() local
294 if (SUCCESS == php_stream_cast(stream, PHP_STREAM_AS_FD, (void **) &fd, REPORT_ERRORS)) { in _php_stream_bz2open()
295 bz_file = BZ2_bzdopen((int)fd, mode); in _php_stream_bz2open()
434 php_socket_t fd; in PHP_FUNCTION() local
470 if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_FD, (void *) &fd, REPORT_ERRORS)) { in PHP_FUNCTION()
474 bz = BZ2_bzdopen((int)fd, mode); in PHP_FUNCTION()
/PHP-7.4/ext/spl/tests/
H A DSplFileInfo_getGroup_basic.phpt6 Filippo De Santis <fd@ideato.it>
H A DSplFileInfo_getOwner_basic.phpt6 Filippo De Santis <fd@ideato.it>
H A DSplFileInfo_getPerms_error.phpt6 Filippo De Santis <fd@ideato.it>
H A DDirectoryIterator_getInode_basic.phpt6 Filippo De Santis <fd@ideato.it>
H A DSplFileInfo_getGroup_error.phpt6 Filippo De Santis <fd@ideato.it>
H A DSplFileInfo_getInode_error.phpt6 Filippo De Santis <fd@ideato.it>
H A DSplFileInfo_getOwner_error.phpt6 Filippo De Santis <fd@ideato.it>
/PHP-7.4/ext/standard/tests/http/
H A Dserver.inc86 $fd = fopen($file, 'rb');
87 stream_copy_to_stream($fd, $sock);

Completed in 58 milliseconds

123456789