Home
last modified time | relevance | path

Searched refs:fileno (Results 1 – 9 of 9) sorted by relevance

/php-src/win32/
H A Dconsole.c22 PHP_WINUTIL_API BOOL php_win32_console_fileno_is_console(zend_long fileno) in php_win32_console_fileno_is_console() argument
25 HANDLE handle = (HANDLE) _get_osfhandle(fileno); in php_win32_console_fileno_is_console()
36 PHP_WINUTIL_API BOOL php_win32_console_fileno_has_vt100(zend_long fileno) in php_win32_console_fileno_has_vt100() argument
39 HANDLE handle = (HANDLE) _get_osfhandle(fileno); in php_win32_console_fileno_has_vt100()
44 if (fileno != 0 && !GetNumberOfConsoleInputEvents(handle, &events)) { in php_win32_console_fileno_has_vt100()
58 PHP_WINUTIL_API BOOL php_win32_console_fileno_set_vt100(zend_long fileno, BOOL enable) in php_win32_console_fileno_set_vt100() argument
61 HANDLE handle = (HANDLE) _get_osfhandle(fileno); in php_win32_console_fileno_set_vt100()
66 if (fileno != 0 && !GetNumberOfConsoleInputEvents(handle, &events)) { in php_win32_console_fileno_set_vt100()
H A Dconsole.h41 PHP_WINUTIL_API BOOL php_win32_console_fileno_is_console(zend_long fileno);
47 PHP_WINUTIL_API BOOL php_win32_console_fileno_has_vt100(zend_long fileno);
53 PHP_WINUTIL_API BOOL php_win32_console_fileno_set_vt100(zend_long fileno, BOOL enable);
/php-src/ext/standard/
H A Dstreamsfuncs.c1681 php_socket_t fileno; in PHP_FUNCTION() local
1694 …php_stream_cast(stream, PHP_STREAM_AS_FD_FOR_SELECT | PHP_STREAM_CAST_INTERNAL, (void*)&fileno, 0); in PHP_FUNCTION()
1696 php_stream_cast(stream, PHP_STREAM_AS_FD | PHP_STREAM_CAST_INTERNAL, (void*)&fileno, 0); in PHP_FUNCTION()
1703 RETVAL_BOOL(php_win32_console_fileno_is_console(fileno)); in PHP_FUNCTION()
1706 RETVAL_BOOL(isatty(fileno)); in PHP_FUNCTION()
1724 zend_long fileno; in PHP_FUNCTION() local
1739 …php_stream_cast(stream, PHP_STREAM_AS_FD_FOR_SELECT | PHP_STREAM_CAST_INTERNAL, (void*)&fileno, 0); in PHP_FUNCTION()
1741 php_stream_cast(stream, PHP_STREAM_AS_FD | PHP_STREAM_CAST_INTERNAL, (void*)&fileno, 0); in PHP_FUNCTION()
1754 if (!php_win32_console_fileno_is_console(fileno)) { in PHP_FUNCTION()
1760 if (php_win32_console_fileno_has_vt100(fileno)) { in PHP_FUNCTION()
[all …]
H A Diptc.c206 if (zend_fstat(fileno(fp), &sb) != 0) { in PHP_FUNCTION()
/php-src/Zend/
H A Dzend_stream.c43 if (handle && zend_fstat(fileno((FILE*)handle), &buf) == 0) { in zend_stream_stdio_fsizer()
150 file_handle->handle.stream.isatty = isatty(fileno((FILE *)file_handle->handle.stream.handle)); in zend_stream_fixup()
/php-src/sapi/phpdbg/
H A Dphpdbg.c864 int stat_stderr = fstat(fileno(stderr), &stat[2]); in phpdbg_stdiop_write()
865 int stat_stdout = fstat(fileno(stdout), &stat[0]); in phpdbg_stdiop_write()
1106 php_stream *stream = php_stream_fopen_from_fd(dup(fileno(PHPDBG_G(stdin_file))), "r", NULL); in phpdbg_stream_url_wrap_php()
1369 PHPDBG_G(io)[PHPDBG_STDOUT].fd = fileno(stdout); in main()
1474 PHPDBG_G(io)[PHPDBG_STDIN].fd = fileno(stdin); in main()
1475 PHPDBG_G(io)[PHPDBG_STDOUT].fd = fileno(stdout); in main()
1476 PHPDBG_G(io)[PHPDBG_STDERR].fd = fileno(stderr); in main()
H A Dphpdbg_utils.c361 columns = (uint32_t) ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 ? w.ws_col : 80; in phpdbg_get_terminal_width()
382 lines = (uint32_t) ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 ? w.ws_row : 40; in phpdbg_get_terminal_height()
/php-src/main/streams/
H A Dplain_wrapper.c160 #define PHP_STDIOP_GET_FD(anfd, data) anfd = (data)->file ? fileno((data)->file) : (data)->fd
209 self->fd = fileno(file); in _php_stream_fopen_from_file_int()
338 self->fd = fileno(file); in _php_stream_fopen_from_pipe()
/php-src/ext/opcache/
H A DZendAccelerator.c1044 if (zend_fstat(fileno(file_handle->handle.fp), &statbuf) == -1) { in zend_get_file_handle_timestamp()

Completed in 47 milliseconds