Home
last modified time | relevance | path

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

/PHP-7.2/win32/
H A Dconsole.c24 PHP_WINUTIL_API BOOL php_win32_console_fileno_is_console(zend_long fileno) in php_win32_console_fileno_is_console() argument
27 HANDLE handle = (HANDLE) _get_osfhandle(fileno); in php_win32_console_fileno_is_console()
38 PHP_WINUTIL_API BOOL php_win32_console_fileno_has_vt100(zend_long fileno) in php_win32_console_fileno_has_vt100() argument
41 HANDLE handle = (HANDLE) _get_osfhandle(fileno); in php_win32_console_fileno_has_vt100()
46 if (fileno != 0 && !GetNumberOfConsoleInputEvents(handle, &events)) { in php_win32_console_fileno_has_vt100()
60 PHP_WINUTIL_API BOOL php_win32_console_fileno_set_vt100(zend_long fileno, BOOL enable) in php_win32_console_fileno_set_vt100() argument
63 HANDLE handle = (HANDLE) _get_osfhandle(fileno); in php_win32_console_fileno_set_vt100()
68 if (fileno != 0 && !GetNumberOfConsoleInputEvents(handle, &events)) { in php_win32_console_fileno_set_vt100()
H A Dconsole.h45 PHP_WINUTIL_API BOOL php_win32_console_fileno_is_console(zend_long fileno);
51 PHP_WINUTIL_API BOOL php_win32_console_fileno_has_vt100(zend_long fileno);
57 PHP_WINUTIL_API BOOL php_win32_console_fileno_set_vt100(zend_long fileno, BOOL enable);
/PHP-7.2/Zend/
H A Dzend_stream.c67 if (handle && zend_fstat(fileno((FILE*)handle), &buf) == 0) { in zend_stream_stdio_fsizer()
116 if (file_handle->handle.fp && zend_fstat(fileno(file_handle->handle.fp), &buf) == 0) { in zend_stream_fsize()
192 …file_handle->handle.stream.isatty = isatty(fileno((FILE *)file_handle->handle.stream.handle)) … in zend_stream_fixup()
228 … *buf = mmap(0, size + ZEND_MMAP_AHEAD, PROT_READ, MAP_PRIVATE, fileno(file_handle->handle.fp), 0); in zend_stream_fixup()
/PHP-7.2/ext/standard/
H A Dstreamsfuncs.c1634 php_socket_t fileno; in PHP_FUNCTION() local
1643 php_stream_cast(stream, PHP_STREAM_AS_FD_FOR_SELECT, (void*)&fileno, 0); in PHP_FUNCTION()
1645 php_stream_cast(stream, PHP_STREAM_AS_FD, (void*)&fileno, 0); in PHP_FUNCTION()
1652 RETVAL_BOOL(php_win32_console_fileno_is_console(fileno)); in PHP_FUNCTION()
1655 RETVAL_BOOL(isatty(fileno)); in PHP_FUNCTION()
1674 zend_long fileno; in PHP_FUNCTION() local
1687 php_stream_cast(stream, PHP_STREAM_AS_FD_FOR_SELECT, (void*)&fileno, 0); in PHP_FUNCTION()
1690 php_stream_cast(stream, PHP_STREAM_AS_FD, (void*)&fileno, 0); in PHP_FUNCTION()
1702 if (!php_win32_console_fileno_is_console(fileno)) { in PHP_FUNCTION()
1708 if (php_win32_console_fileno_has_vt100(fileno)) { in PHP_FUNCTION()
[all …]
H A Diptc.c222 zend_fstat(fileno(fp), &sb); in PHP_FUNCTION()
/PHP-7.2/sapi/phpdbg/
H A Dphpdbg.c967 …if (((fstat(fileno(stderr), &stat[2]) < 0) & (fstat(fileno(stdout), &stat[0]) < 0)) | (fstat(data-… in phpdbg_stdiop_write()
1209 phpdbg_rlog(fileno(stderr), "accepting connections on %s:%u", address, port); in phpdbg_remote_init()
1219 phpdbg_rlog(fileno(stderr), "connection established from %s", buffer); in phpdbg_remote_init()
1223 dup2(*socket, fileno(stdout)); in phpdbg_remote_init()
1224 dup2(*socket, fileno(stdin)); in phpdbg_remote_init()
1695 PHPDBG_G(io)[PHPDBG_STDOUT].fd = fileno(stdout); in main()
1836 PHPDBG_G(io)[PHPDBG_STDIN].fd = fileno(stdin); in main()
1838 PHPDBG_G(io)[PHPDBG_STDOUT].fd = fileno(stdout); in main()
1852 PHPDBG_G(io)[PHPDBG_STDIN].fd = fileno(stdin); in main()
1854 PHPDBG_G(io)[PHPDBG_STDOUT].fd = fileno(stdout); in main()
[all …]
H A Dphpdbg_opcode.c165 phpdbg_log_ex(fileno(PHPDBG_G(oplog)), "L%-5u %16p %s %s\n", in phpdbg_print_opline_ex()
H A Dphpdbg_utils.c347 columns = ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 ? w.ws_col : 80; in phpdbg_get_terminal_width()
365 lines = ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 ? w.ws_row : 40; in phpdbg_get_terminal_height()
/PHP-7.2/main/streams/
H A Dplain_wrapper.c153 #define PHP_STDIOP_GET_FD(anfd, data) anfd = (data)->file ? fileno((data)->file) : (data)->fd
200 self->fd = fileno(file); in _php_stream_fopen_from_file_int()
328 self->fd = fileno(file); in _php_stream_fopen_from_pipe()
/PHP-7.2/ext/zip/lib/
H A Dzip_source_filep.c416 err = fstat(fileno(ctx->f), &fst); in read_file()
H A Dzipint.h96 #define fileno _fileno macro
/PHP-7.2/ext/opcache/
H A DZendAccelerator.c886 if (zend_fstat(fileno(file_handle->handle.fp), &statbuf) == -1) { in zend_get_file_handle_timestamp()
/PHP-7.2/ext/pcre/pcrelib/
H A DChangeLog2712 27. Wrapped the definitions of fileno and isatty for Windows, which appear in
2895 HAVE_UNISTD_H; (2) #define isatty and fileno as _isatty and _fileno.
/PHP-7.2/ext/sqlite3/libsqlite/
H A Dsqlite3.c23537 backtrace_symbols_fd(pBt, pHdr->nBacktrace, fileno(out)); in sqlite3MemdebugDump()

Completed in 488 milliseconds