ReactOS 0.4.16-dev-2104-gb84fa49
stdio.h File Reference
#include <corecrt.h>
#include <stdarg.h>
#include <vadefs.h>
#include <sec_api/stdio_s.h>
Include dependency graph for stdio.h:

Go to the source code of this file.

Classes

struct  _iobuf
 

Macros

#define __need___va_list
 
#define BUFSIZ   512
 
#define _NFILE   _NSTREAM_
 
#define _NSTREAM_   512
 
#define _IOB_ENTRIES   20
 
#define EOF   (-1)
 
#define _FILE_DEFINED
 
#define _P_tmpdir   "\\"
 
#define _wP_tmpdir   L"\\"
 
#define L_tmpnam   (sizeof(_P_tmpdir) + 12)
 
#define SEEK_CUR   1
 
#define SEEK_END   2
 
#define SEEK_SET   0
 
#define STDIN_FILENO   0
 
#define STDOUT_FILENO   1
 
#define STDERR_FILENO   2
 
#define FILENAME_MAX   260
 
#define FOPEN_MAX   20
 
#define _SYS_OPEN   20
 
#define TMP_MAX   32767
 
#define _OFF_T_DEFINED
 
#define _OFF_T_
 
#define _OFF64_T_DEFINED
 
#define _STDSTREAM_DEFINED
 
#define stdin   (&_iob[0])
 
#define stdout   (&_iob[1])
 
#define stderr   (&_iob[2])
 
#define _FPOS_T_DEFINED
 
#define _FPOSOFF(fp)   ((long)(fp))
 
#define _IOREAD   0x0001
 
#define _IOWRT   0x0002
 
#define _IOFBF   0x0000
 
#define _IOLBF   0x0040
 
#define _IONBF   0x0004
 
#define _IOMYBUF   0x0008
 
#define _IOEOF   0x0010
 
#define _IOERR   0x0020
 
#define _IOSTRG   0x0040
 
#define _IORW   0x0080
 
#define _USERBUF   0x0100
 
#define _TWO_DIGIT_EXPONENT   0x1
 
#define _CRT_PERROR_DEFINED
 
#define _CRT_DIRECTORY_DEFINED
 
#define vsnprintf   _vsnprintf
 
#define snprintf   _snprintf
 
#define WEOF   (wint_t)(0xFFFF)
 
#define _CRT_WPERROR_DEFINED
 
#define wpopen   _wpopen
 
#define getwchar()   fgetwc(stdin)
 
#define putwchar(_c)   fputwc((_c),stdout)
 
#define getwc(_stm)   fgetwc(_stm)
 
#define putwc(_c, _stm)   fputwc(_c,_stm)
 
#define _putwc_nolock(_c, _stm)   _fputwc_nolock(_c,_stm)
 
#define _getwc_nolock(_stm)   _fgetwc_nolock(_stm)
 
#define _WSTDIO_DEFINED
 
#define _STDIO_DEFINED
 
#define _fgetc_nolock(_stream)   (--(_stream)->_cnt >= 0 ? 0xff & *(_stream)->_ptr++ : _filbuf(_stream))
 
#define _fputc_nolock(_c, _stream)   (--(_stream)->_cnt >= 0 ? 0xff & (*(_stream)->_ptr++ = (char)(_c)) : _flsbuf((_c),(_stream)))
 
#define _getc_nolock(_stream)   _fgetc_nolock(_stream)
 
#define _putc_nolock(_c, _stream)   _fputc_nolock(_c,_stream)
 
#define _getchar_nolock()   _getc_nolock(stdin)
 
#define _putchar_nolock(_c)   _putc_nolock((_c),stdout)
 
#define _getwchar_nolock()   _getwc_nolock(stdin)
 
#define _putwchar_nolock(_c)   _putwc_nolock((_c),stdout)
 
#define P_tmpdir   _P_tmpdir
 
#define SYS_OPEN   _SYS_OPEN
 

Typedefs

typedef struct _iobuf FILE
 
typedef long _off_t
 
typedef long off_t
 

Functions

_CRTIMP FILE *__cdecl __iob_func (void)
 
_Check_return_ _CRTIMP int __cdecl _filbuf (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _flsbuf (_In_ int _Ch, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP FILE *__cdecl _fsopen (_In_z_ const char *_Filename, _In_z_ const char *_Mode, _In_ int _ShFlag)
 
_CRTIMP void __cdecl clearerr (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl fclose (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _fcloseall (void)
 
_Check_return_ _CRTIMP FILE *__cdecl _fdopen (_In_ int _FileHandle, _In_z_ const char *_Mode)
 
_Check_return_ _CRTIMP int __cdecl feof (_In_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl ferror (_In_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl fflush (_Inout_opt_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl fgetc (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _fgetchar (void)
 
_Check_return_opt_ _CRTIMP int __cdecl fgetpos (_Inout_ FILE *_File, _Out_ fpos_t *_Pos)
 
_Check_return_opt_ _CRTIMP char *__cdecl fgets (_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl _fileno (_In_ FILE *_File)
 
_Check_return_ _CRTIMP char *__cdecl _tempnam (_In_opt_z_ const char *_DirName, _In_opt_z_ const char *_FilePrefix)
 
_Check_return_opt_ _CRTIMP int __cdecl _flushall (void)
 
_Check_return_ _CRTIMP FILE *__cdecl fopen (_In_z_ const char *_Filename, _In_z_ const char *_Mode)
 
_Check_return_opt_ _CRTIMP int __cdecl fprintf (_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl fputc (_In_ int _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _fputchar (_In_ int _Ch)
 
_Check_return_opt_ _CRTIMP int __cdecl fputs (_In_z_ const char *_Str, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP size_t __cdecl fread (_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP FILE *__cdecl freopen (_In_z_ const char *_Filename, _In_z_ const char *_Mode, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl fscanf (_Inout_ FILE *_File, _In_z_ _Scanf_format_string_ const char *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl fsetpos (_Inout_ FILE *_File, _In_ const fpos_t *_Pos)
 
_Check_return_opt_ _CRTIMP int __cdecl fseek (_Inout_ FILE *_File, _In_ long _Offset, _In_ int _Origin)
 
_Check_return_ _CRTIMP long __cdecl ftell (_Inout_ FILE *_File)
 
_Check_return_opt_ __MINGW_EXTENSION _CRTIMP int __cdecl _fseeki64 (_Inout_ FILE *_File, _In_ __int64 _Offset, _In_ int _Origin)
 
__MINGW_EXTENSION _Check_return_ _CRTIMP __int64 __cdecl _ftelli64 (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP size_t __cdecl fwrite (_In_reads_bytes_(_Size *_Count) const void *_Str, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl getc (_Inout_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl getchar (void)
 
_Check_return_ _CRTIMP int __cdecl _getmaxstdio (void)
 
_CRTIMP char *__cdecl gets (char *_Buffer)
 
_Check_return_ _CRTIMP int __cdecl _getw (_Inout_ FILE *_File)
 
_CRTIMP void __cdecl perror (_In_opt_z_ const char *_ErrMsg)
 
_Check_return_opt_ _CRTIMP int __cdecl _pclose (_Inout_ FILE *_File)
 
_Check_return_ _CRTIMP FILE *__cdecl _popen (_In_z_ const char *_Command, _In_z_ const char *_Mode)
 
_Check_return_opt_ _CRTIMP int __cdecl printf (_In_z_ _Printf_format_string_ const char *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl putc (_In_ int _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl putchar (_In_ int _Ch)
 
_Check_return_opt_ _CRTIMP int __cdecl puts (_In_z_ const char *_Str)
 
_Check_return_opt_ _CRTIMP int __cdecl _putw (_In_ int _Word, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl remove (_In_z_ const char *_Filename)
 
_Check_return_ _CRTIMP int __cdecl rename (_In_z_ const char *_OldFilename, _In_z_ const char *_NewFilename)
 
_Check_return_ _CRTIMP int __cdecl _unlink (_In_z_ const char *_Filename)
 
_Check_return_ _CRTIMP int __cdecl unlink (_In_z_ const char *_Filename)
 
_CRTIMP void __cdecl rewind (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _rmtmp (void)
 
_Check_return_ _CRTIMP int __cdecl scanf (_In_z_ _Scanf_format_string_ const char *_Format,...)
 
_CRTIMP void __cdecl setbuf (_Inout_ FILE *_File, _Inout_updates_opt_(BUFSIZ) _Post_readable_size_(0) char *_Buffer)
 
_Check_return_opt_ _CRTIMP int __cdecl _setmaxstdio (_In_ int _Max)
 
_Check_return_opt_ _CRTIMP unsigned int __cdecl _set_output_format (_In_ unsigned int _Format)
 
_Check_return_opt_ _CRTIMP unsigned int __cdecl _get_output_format (void)
 
_Check_return_opt_ _CRTIMP int __cdecl setvbuf (_Inout_ FILE *_File, _Inout_updates_opt_z_(_Size) char *_Buf, _In_ int _Mode, _In_ size_t _Size)
 
_Check_return_ _CRTIMP int __cdecl _scprintf (_In_z_ _Printf_format_string_ const char *_Format,...)
 
_Check_return_ _CRTIMP int __cdecl sscanf (_In_z_ const char *_Src, _In_z_ _Scanf_format_string_ const char *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl _snscanf (_In_reads_bytes_(_MaxCount) _Pre_z_ const char *_Src, _In_ size_t _MaxCount, _In_z_ _Scanf_format_string_ const char *_Format,...)
 
_Check_return_ _CRTIMP FILE *__cdecl tmpfile (void)
 
_CRTIMP char *__cdecl tmpnam (_Pre_maybenull_ _Post_z_ char *_Buffer)
 
_Check_return_opt_ _CRTIMP_ALT int __cdecl ungetc (_In_ int _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl vfprintf (_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
 
_Check_return_opt_ _CRTIMP int __cdecl vprintf (_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
 
_Check_return_opt_ _CRTIMP int __cdecl vsnprintf (_Out_writes_(_MaxCount) char *_DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
 
_CRTIMP int __cdecl _snprintf (char *_Dest, size_t _Count, const char *_Format,...)
 
_CRTIMP int __cdecl _vsnprintf (char *_Dest, size_t _Count, const char *_Format, va_list _Args)
 
int __cdecl sprintf (char *_Dest, const char *_Format,...)
 
int __cdecl vsprintf (char *_Dest, const char *_Format, va_list _Args)
 
int __cdecl snprintf (char *s, size_t n, const char *format,...)
 
int __cdecl vscanf (const char *__restrict__ Format, va_list argp)
 
int __cdecl vfscanf (FILE *__restrict__ fp, const char *Format, va_list argp)
 
int __cdecl vsscanf (const char *__restrict__ _Str, const char *__restrict__ Format, va_list argp)
 
_Check_return_ _CRTIMP int __cdecl _vscprintf (_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
 
_CRTIMP int __cdecl _set_printf_count_output (_In_ int _Value)
 
_CRTIMP int __cdecl _get_printf_count_output (void)
 
_Check_return_ _CRTIMP FILE *__cdecl _wfsopen (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode, _In_ int _ShFlag)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl fgetwc (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl _fgetwchar (void)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl fputwc (_In_ wchar_t _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl _fputwchar (_In_ wchar_t _Ch)
 
_Check_return_ _CRTIMP wint_t __cdecl getwc (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl putwc (_In_ wchar_t _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl putwchar (_In_ wchar_t _Ch)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl ungetwc (_In_ wint_t _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wchar_t *__cdecl fgetws (_Out_writes_z_(_SizeInWords) wchar_t *_Dst, _In_ int _SizeInWords, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl fputws (_In_z_ const wchar_t *_Str, _Inout_ FILE *_File)
 
_CRTIMP wchar_t *__cdecl _getws (wchar_t *_String)
 
_Check_return_opt_ _CRTIMP int __cdecl _putws (_In_z_ const wchar_t *_Str)
 
_Check_return_opt_ _CRTIMP int __cdecl fwprintf (_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl wprintf (_In_z_ _Printf_format_string_ const wchar_t *_Format,...)
 
_Check_return_ _CRTIMP int __cdecl _scwprintf (_In_z_ _Printf_format_string_ const wchar_t *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl vfwprintf (_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
 
_Check_return_opt_ _CRTIMP int __cdecl vwprintf (_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
 
_Check_return_opt_ _CRTIMP int __cdecl _swprintf_c (_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl _vswprintf_c (_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
 
_CRTIMP int __cdecl _snwprintf (wchar_t *_Dest, size_t _Count, const wchar_t *_Format,...)
 
_CRTIMP int __cdecl _vsnwprintf (wchar_t *_Dest, size_t _Count, const wchar_t *_Format, va_list _Args)
 
_CRTIMP int __cdecl snwprintf (wchar_t *s, size_t n, const wchar_t *format,...)
 
__CRT_INLINE int __cdecl vsnwprintf (wchar_t *s, size_t n, const wchar_t *format, va_list arg)
 
_CRTIMP int __cdecl vwscanf (const wchar_t *, va_list)
 
_CRTIMP int __cdecl vfwscanf (FILE *, const wchar_t *, va_list)
 
_CRTIMP int __cdecl vswscanf (const wchar_t *, const wchar_t *, va_list)
 
_CRTIMP int __cdecl _swprintf (wchar_t *_Dest, const wchar_t *_Format,...)
 
_CRTIMP int __cdecl _vswprintf (wchar_t *_Dest, const wchar_t *_Format, va_list _Args)
 
static _Check_return_opt_ int __cdecl swprintf (_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
 
static _Check_return_opt_ int __cdecl vswprintf (_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
 
_Check_return_ _CRTIMP wchar_t *__cdecl _wtempnam (_In_opt_z_ const wchar_t *_Directory, _In_opt_z_ const wchar_t *_FilePrefix)
 
_Check_return_ _CRTIMP int __cdecl _vscwprintf (_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
 
_Check_return_ _CRTIMP int __cdecl fwscanf (_Inout_ FILE *_File, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
 
_Check_return_ _CRTIMP int __cdecl swscanf (_In_z_ const wchar_t *_Src, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl _snwscanf (_In_reads_(_MaxCount) _Pre_z_ const wchar_t *_Src, _In_ size_t _MaxCount, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
 
_Check_return_ _CRTIMP int __cdecl wscanf (_In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
 
_Check_return_ _CRTIMP FILE *__cdecl _wfdopen (_In_ int _FileHandle, _In_z_ const wchar_t *_Mode)
 
_Check_return_ _CRTIMP FILE *__cdecl _wfopen (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode)
 
_Check_return_ _CRTIMP FILE *__cdecl _wfreopen (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode, _Inout_ FILE *_OldFile)
 
_CRTIMP void __cdecl _wperror (_In_opt_z_ const wchar_t *_ErrMsg)
 
_Check_return_ _CRTIMP FILE *__cdecl _wpopen (_In_z_ const wchar_t *_Command, _In_z_ const wchar_t *_Mode)
 
_Check_return_ _CRTIMP int __cdecl _wremove (_In_z_ const wchar_t *_Filename)
 
_CRTIMP wchar_t *__cdecl _wtmpnam (_Pre_maybenull_ _Post_z_ wchar_t *_Buffer)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl _fgetwc_nolock (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl _fputwc_nolock (_In_ wchar_t _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl _ungetwc_nolock (_In_ wint_t _Ch, _Inout_ FILE *_File)
 
_CRTIMP void __cdecl _lock_file (_Inout_ FILE *_File)
 
_CRTIMP void __cdecl _unlock_file (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _fclose_nolock (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _fflush_nolock (_Inout_opt_ FILE *_File)
 
_Check_return_opt_ _CRTIMP size_t __cdecl _fread_nolock (_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _fseek_nolock (_Inout_ FILE *_File, _In_ long _Offset, _In_ int _Origin)
 
_Check_return_ _CRTIMP long __cdecl _ftell_nolock (_Inout_ FILE *_File)
 
_Check_return_opt_ __MINGW_EXTENSION _CRTIMP int __cdecl _fseeki64_nolock (_Inout_ FILE *_File, _In_ __int64 _Offset, _In_ int _Origin)
 
__MINGW_EXTENSION _Check_return_ _CRTIMP __int64 __cdecl _ftelli64_nolock (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP size_t __cdecl _fwrite_nolock (_In_reads_bytes_(_Size *_Count) const void *_DstBuf, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _ungetc_nolock (_In_ int _Ch, _Inout_ FILE *_File)
 
_CRTIMP char *__cdecl tempnam (_In_opt_z_ const char *_Directory, _In_opt_z_ const char *_FilePrefix)
 
_Check_return_opt_ _CRTIMP int __cdecl fcloseall (void)
 
_Check_return_ _CRTIMP FILE *__cdecl fdopen (_In_ int _FileHandle, _In_z_ const char *_Format)
 
_Check_return_opt_ _CRTIMP int __cdecl fgetchar (void)
 
_Check_return_ _CRTIMP int __cdecl fileno (_In_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl flushall (void)
 
_Check_return_opt_ _CRTIMP int __cdecl fputchar (_In_ int _Ch)
 
_Check_return_ _CRTIMP int __cdecl getw (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl putw (_In_ int _Ch, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl rmtmp (void)
 

Variables

__MINGW_EXTENSION typedef long long _off64_t
 
__MINGW_EXTENSION typedef long long off64_t
 
__MINGW_EXTENSION typedef long long fpos_t
 
_CRTIMP int _commode
 

Macro Definition Documentation

◆ __need___va_list

#define __need___va_list

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER within this package.

Definition at line 11 of file stdio.h.

◆ _CRT_DIRECTORY_DEFINED

#define _CRT_DIRECTORY_DEFINED

Definition at line 506 of file stdio.h.

◆ _CRT_PERROR_DEFINED

#define _CRT_PERROR_DEFINED

Definition at line 444 of file stdio.h.

◆ _CRT_WPERROR_DEFINED

#define _CRT_WPERROR_DEFINED

Definition at line 1065 of file stdio.h.

◆ _fgetc_nolock

#define _fgetc_nolock (   _stream)    (--(_stream)->_cnt >= 0 ? 0xff & *(_stream)->_ptr++ : _filbuf(_stream))

Definition at line 1142 of file stdio.h.

◆ _FILE_DEFINED

#define _FILE_DEFINED

Definition at line 38 of file stdio.h.

◆ _FPOS_T_DEFINED

#define _FPOS_T_DEFINED

Definition at line 104 of file stdio.h.

◆ _FPOSOFF

#define _FPOSOFF (   fp)    ((long)(fp))

Definition at line 112 of file stdio.h.

◆ _fputc_nolock

#define _fputc_nolock (   _c,
  _stream 
)    (--(_stream)->_cnt >= 0 ? 0xff & (*(_stream)->_ptr++ = (char)(_c)) : _flsbuf((_c),(_stream)))

Definition at line 1143 of file stdio.h.

◆ _getc_nolock

#define _getc_nolock (   _stream)    _fgetc_nolock(_stream)

Definition at line 1144 of file stdio.h.

◆ _getchar_nolock

#define _getchar_nolock ( )    _getc_nolock(stdin)

Definition at line 1146 of file stdio.h.

◆ _getwc_nolock

#define _getwc_nolock (   _stm)    _fgetwc_nolock(_stm)

Definition at line 1134 of file stdio.h.

◆ _getwchar_nolock

#define _getwchar_nolock ( )    _getwc_nolock(stdin)

Definition at line 1148 of file stdio.h.

◆ _IOB_ENTRIES

#define _IOB_ENTRIES   20

Definition at line 23 of file stdio.h.

◆ _IOEOF

#define _IOEOF   0x0010

Definition at line 132 of file stdio.h.

◆ _IOERR

#define _IOERR   0x0020

Definition at line 133 of file stdio.h.

◆ _IOFBF

#define _IOFBF   0x0000

Definition at line 127 of file stdio.h.

◆ _IOLBF

#define _IOLBF   0x0040

Definition at line 128 of file stdio.h.

◆ _IOMYBUF

#define _IOMYBUF   0x0008

Definition at line 131 of file stdio.h.

◆ _IONBF

#define _IONBF   0x0004

Definition at line 129 of file stdio.h.

◆ _IOREAD

#define _IOREAD   0x0001

Definition at line 124 of file stdio.h.

◆ _IORW

#define _IORW   0x0080

Definition at line 135 of file stdio.h.

◆ _IOSTRG

#define _IOSTRG   0x0040

Definition at line 134 of file stdio.h.

◆ _IOWRT

#define _IOWRT   0x0002

Definition at line 125 of file stdio.h.

◆ _NFILE

#define _NFILE   _NSTREAM_

Definition at line 21 of file stdio.h.

◆ _NSTREAM_

#define _NSTREAM_   512

Definition at line 22 of file stdio.h.

◆ _OFF64_T_DEFINED

#define _OFF64_T_DEFINED

Definition at line 81 of file stdio.h.

◆ _OFF_T_

#define _OFF_T_

Definition at line 72 of file stdio.h.

◆ _OFF_T_DEFINED

#define _OFF_T_DEFINED

Definition at line 70 of file stdio.h.

◆ _P_tmpdir

#define _P_tmpdir   "\\"

Definition at line 45 of file stdio.h.

◆ _putc_nolock

#define _putc_nolock (   _c,
  _stream 
)    _fputc_nolock(_c,_stream)

Definition at line 1145 of file stdio.h.

◆ _putchar_nolock

#define _putchar_nolock (   _c)    _putc_nolock((_c),stdout)

Definition at line 1147 of file stdio.h.

◆ _putwc_nolock

#define _putwc_nolock (   _c,
  _stm 
)    _fputwc_nolock(_c,_stm)

Definition at line 1133 of file stdio.h.

◆ _putwchar_nolock

#define _putwchar_nolock (   _c)    _putwc_nolock((_c),stdout)

Definition at line 1149 of file stdio.h.

◆ _STDIO_DEFINED

#define _STDIO_DEFINED

Definition at line 1139 of file stdio.h.

◆ _STDSTREAM_DEFINED

#define _STDSTREAM_DEFINED

Definition at line 97 of file stdio.h.

◆ _SYS_OPEN

#define _SYS_OPEN   20

Definition at line 66 of file stdio.h.

◆ _TWO_DIGIT_EXPONENT

#define _TWO_DIGIT_EXPONENT   0x1

Definition at line 138 of file stdio.h.

◆ _USERBUF

#define _USERBUF   0x0100

Definition at line 136 of file stdio.h.

◆ _wP_tmpdir

#define _wP_tmpdir   L"\\"

Definition at line 46 of file stdio.h.

◆ _WSTDIO_DEFINED

#define _WSTDIO_DEFINED

Definition at line 1136 of file stdio.h.

◆ BUFSIZ

#define BUFSIZ   512

Definition at line 20 of file stdio.h.

◆ EOF

#define EOF   (-1)

Definition at line 24 of file stdio.h.

◆ FILENAME_MAX

#define FILENAME_MAX   260

Definition at line 64 of file stdio.h.

◆ FOPEN_MAX

#define FOPEN_MAX   20

Definition at line 65 of file stdio.h.

◆ getwc

#define getwc (   _stm)    fgetwc(_stm)

Definition at line 1131 of file stdio.h.

◆ getwchar

Definition at line 1124 of file stdio.h.

◆ L_tmpnam

#define L_tmpnam   (sizeof(_P_tmpdir) + 12)

Definition at line 49 of file stdio.h.

◆ P_tmpdir

#define P_tmpdir   _P_tmpdir

Definition at line 1241 of file stdio.h.

◆ putwc

#define putwc (   _c,
  _stm 
)    fputwc(_c,_stm)

Definition at line 1132 of file stdio.h.

◆ putwchar

#define putwchar (   _c)    fputwc((_c),stdout)

Definition at line 1125 of file stdio.h.

◆ SEEK_CUR

#define SEEK_CUR   1

Definition at line 56 of file stdio.h.

◆ SEEK_END

#define SEEK_END   2

Definition at line 57 of file stdio.h.

◆ SEEK_SET

#define SEEK_SET   0

Definition at line 58 of file stdio.h.

◆ snprintf

#define snprintf   _snprintf

Definition at line 709 of file stdio.h.

◆ stderr

#define stderr   (&_iob[2])

Definition at line 100 of file stdio.h.

◆ STDERR_FILENO

#define STDERR_FILENO   2

Definition at line 62 of file stdio.h.

◆ stdin

#define stdin   (&_iob[0])

Definition at line 98 of file stdio.h.

◆ STDIN_FILENO

#define STDIN_FILENO   0

Definition at line 60 of file stdio.h.

◆ stdout

#define stdout   (&_iob[1])

Definition at line 99 of file stdio.h.

◆ STDOUT_FILENO

#define STDOUT_FILENO   1

Definition at line 61 of file stdio.h.

◆ SYS_OPEN

#define SYS_OPEN   _SYS_OPEN

Definition at line 1242 of file stdio.h.

◆ TMP_MAX

#define TMP_MAX   32767

Definition at line 67 of file stdio.h.

◆ vsnprintf

#define vsnprintf   _vsnprintf

Definition at line 706 of file stdio.h.

◆ WEOF

#define WEOF   (wint_t)(0xFFFF)

Definition at line 731 of file stdio.h.

◆ wpopen

#define wpopen   _wpopen

Definition at line 1082 of file stdio.h.

Typedef Documentation

◆ _off_t

typedef long _off_t

Definition at line 73 of file stdio.h.

◆ FILE

typedef struct _iobuf FILE

Definition at line 37 of file stdio.h.

◆ off_t

typedef long off_t

Definition at line 75 of file stdio.h.

Function Documentation

◆ __iob_func()

_CRTIMP FILE *__cdecl __iob_func ( void  )

Definition at line 972 of file file.c.

973{
974 return iob_get_file(0);
975}
static FILE * iob_get_file(int i)
Definition: file.c:265

◆ _fclose_nolock()

_Check_return_opt_ _CRTIMP int __cdecl _fclose_nolock ( _Inout_ FILE _File)

◆ _fcloseall()

Definition at line 1373 of file file.c.

1374{
1375 int num_closed = 0, i;
1376 FILE *file;
1377
1378 LOCK_FILES();
1379 for (i = 3; i < MSVCRT_stream_idx; i++) {
1381
1382 if (file->_flag && !fclose(file))
1383 num_closed++;
1384 }
1385 UNLOCK_FILES();
1386
1387 TRACE(":closed (%d) handles\n",num_closed);
1388 return num_closed;
1389}
#define LOCK_FILES()
Definition: file.c:306
int CDECL fclose(FILE *file)
Definition: file.c:3757
#define UNLOCK_FILES()
Definition: file.c:307
static FILE * msvcrt_get_file(int i)
Definition: file.c:520
static int MSVCRT_stream_idx
Definition: file.c:279
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define TRACE(s)
Definition: solgame.cpp:4
Definition: fci.c:127

Referenced by __acrt_uninitialize_stdio(), msvcrt_free_io(), and test_fopen_fclose_fcloseall().

◆ _fdopen()

_Check_return_ _CRTIMP FILE *__cdecl _fdopen ( _In_ int  _FileHandle,
_In_z_ const char _Mode 
)

◆ _fflush_nolock()

_Check_return_opt_ _CRTIMP int __cdecl _fflush_nolock ( _Inout_opt_ FILE _File)

◆ _fgetchar()

Definition at line 3895 of file file.c.

3896{
3897 return fgetc(stdin);
3898}
int CDECL fgetc(FILE *file)
Definition: file.c:3863
#define stdin

Referenced by getchar().

◆ _fgetwc_nolock()

_Check_return_opt_ _CRTIMP wint_t __cdecl _fgetwc_nolock ( _Inout_ FILE _File)

◆ _fgetwchar()

Definition at line 4027 of file file.c.

4028{
4029 return fgetwc(stdin);
4030}
wint_t CDECL fgetwc(FILE *file)
Definition: file.c:3935

◆ _filbuf()

_Check_return_ _CRTIMP int __cdecl _filbuf ( _Inout_ FILE _File)

◆ _fileno()

_Check_return_ _CRTIMP int __cdecl _fileno ( _In_ FILE _File)

◆ _flsbuf()

_Check_return_opt_ _CRTIMP int __cdecl _flsbuf ( _In_ int  _Ch,
_Inout_ FILE _File 
)

◆ _flushall()

Definition at line 1174 of file file.c.

1175{
1177}
static int msvcrt_flush_all_buffers(int mask)
Definition: file.c:1148
#define _IOWRT
Definition: stdio.h:16
#define _IOREAD
Definition: stdio.h:15

Referenced by __acrt_uninitialize(), __acrt_uninitialize_stdio(), msvcrt_free_io(), test_fflush(), and wmain().

◆ _fputchar()

◆ _fputwc_nolock()

_Check_return_opt_ _CRTIMP wint_t __cdecl _fputwc_nolock ( _In_ wchar_t  _Ch,
_Inout_ FILE _File 
)

◆ _fputwchar()

◆ _fread_nolock()

_Check_return_opt_ _CRTIMP size_t __cdecl _fread_nolock ( _Out_writes_bytes_(_ElementSize *_Count) void _DstBuf,
_In_ size_t  _ElementSize,
_In_ size_t  _Count,
_Inout_ FILE _File 
)

◆ _fseek_nolock()

_Check_return_opt_ _CRTIMP int __cdecl _fseek_nolock ( _Inout_ FILE _File,
_In_ long  _Offset,
_In_ int  _Origin 
)

◆ _fseeki64()

_Check_return_opt_ __MINGW_EXTENSION _CRTIMP int __cdecl _fseeki64 ( _Inout_ FILE _File,
_In_ __int64  _Offset,
_In_ int  _Origin 
)

◆ _fseeki64_nolock()

_Check_return_opt_ __MINGW_EXTENSION _CRTIMP int __cdecl _fseeki64_nolock ( _Inout_ FILE _File,
_In_ __int64  _Offset,
_In_ int  _Origin 
)

◆ _fsopen()

_Check_return_ _CRTIMP FILE *__cdecl _fsopen ( _In_z_ const char _Filename,
_In_z_ const char _Mode,
_In_ int  _ShFlag 
)

◆ _ftell_nolock()

_Check_return_ _CRTIMP long __cdecl _ftell_nolock ( _Inout_ FILE _File)

◆ _ftelli64()

◆ _ftelli64_nolock()

◆ _fwrite_nolock()

_Check_return_opt_ _CRTIMP size_t __cdecl _fwrite_nolock ( _In_reads_bytes_(_Size *_Count) const void _DstBuf,
_In_ size_t  _Size,
_In_ size_t  _Count,
_Inout_ FILE _File 
)

◆ _get_output_format()

_Check_return_opt_ _CRTIMP unsigned int __cdecl _get_output_format ( void  )

Definition at line 401 of file misc.c.

402{
403 return output_format;
404}
static unsigned int output_format
Definition: misc.c:32

◆ _get_printf_count_output()

_CRTIMP int __cdecl _get_printf_count_output ( void  )

Definition at line 5 of file stubs.c.

6{
7 return n_format_enabled ? 1 : 0;
8}
static BOOL n_format_enabled
Definition: stubs.c:3

◆ _getmaxstdio()

_Check_return_ _CRTIMP int __cdecl _getmaxstdio ( void  )

Definition at line 5862 of file file.c.

5863{
5864 return MSVCRT_max_streams;
5865}
static int MSVCRT_max_streams
Definition: file.c:279

◆ _getw()

◆ _getws()

_CRTIMP wchar_t *__cdecl _getws ( wchar_t _String)

Definition at line 4879 of file file.c.

4880{
4881 wint_t cc;
4882 wchar_t* ws = buf;
4883
4885 for (cc = _fgetwc_nolock(stdin); cc != WEOF && cc != '\n';
4887 {
4888 if (cc != '\r')
4889 *buf++ = (wchar_t)cc;
4890 }
4892
4893 if ((cc == WEOF) && (ws == buf))
4894 {
4895 TRACE(":nothing read\n");
4896 return NULL;
4897 }
4898 *buf = '\0';
4899
4900 TRACE("got %s\n", debugstr_w(ws));
4901 return ws;
4902}
#define NULL
Definition: types.h:112
wint_t CDECL _fgetwc_nolock(FILE *file)
Definition: file.c:3949
void CDECL _lock_file(FILE *file)
Definition: file.c:1487
void CDECL _unlock_file(FILE *file)
Definition: file.c:1499
unsigned short wint_t
Definition: corecrt.h:243
#define WEOF
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
uint32_t cc
Definition: isohybrid.c:75
#define debugstr_w
Definition: kernel32.h:32
#define wchar_t
Definition: wchar.h:102
const char * ws
Definition: skip_ws.cpp:7

◆ _lock_file()

_CRTIMP void __cdecl _lock_file ( _Inout_ FILE _File)

◆ _pclose()

◆ _popen()

_Check_return_ _CRTIMP FILE *__cdecl _popen ( _In_z_ const char _Command,
_In_z_ const char _Mode 
)

◆ _putw()

_Check_return_opt_ _CRTIMP int __cdecl _putw ( _In_ int  _Word,
_Inout_ FILE _File 
)

◆ _putws()

◆ _rmtmp()

Definition at line 2748 of file file.c.

2749{
2750 int num_removed = 0, i;
2751 FILE *file;
2752
2753 LOCK_FILES();
2754 for (i = 3; i < MSVCRT_stream_idx; i++) {
2756
2757 if (file->_tmpfname)
2758 {
2759 fclose(file);
2760 num_removed++;
2761 }
2762 }
2763 UNLOCK_FILES();
2764
2765 if (num_removed)
2766 TRACE(":removed (%d) temp files\n",num_removed);
2767 return num_removed;
2768}

Referenced by __acrt_uninitialize_tmpfile().

◆ _scprintf()

◆ _scwprintf()

◆ _set_output_format()

_Check_return_opt_ _CRTIMP unsigned int __cdecl _set_output_format ( _In_ unsigned int  _Format)

◆ _set_printf_count_output()

_CRTIMP int __cdecl _set_printf_count_output ( _In_ int  _Value)

◆ _setmaxstdio()

_Check_return_opt_ _CRTIMP int __cdecl _setmaxstdio ( _In_ int  _Max)

◆ _snprintf()

_CRTIMP int __cdecl _snprintf ( char _Dest,
size_t  _Count,
const char _Format,
  ... 
)

Definition at line 1231 of file wcs.c.

1232{
1233 int retval;
1237 va_end(valist);
1238 return retval;
1239}
#define va_end(v)
Definition: stdarg.h:28
#define va_start(v, l)
Definition: stdarg.h:26
char * va_list
Definition: vadefs.h:50
GLenum GLsizei len
Definition: glext.h:6722
static va_list valist
Definition: printf.c:46
const WCHAR * str
Definition: format.c:58
#define vsnprintf
Definition: tif_win32.c:406
int retval
Definition: wcstombs.cpp:91

◆ _snscanf()

◆ _snwprintf()

_CRTIMP int __cdecl _snwprintf ( wchar_t _Dest,
size_t  _Count,
const wchar_t _Format,
  ... 
)

Definition at line 1493 of file wcs.c.

1494{
1495 int retval;
1499 va_end(valist);
1500 return retval;
1501}
#define _vsnwprintf
Definition: _vsnwprintf.c:28

◆ _snwscanf()

◆ _swprintf()

_CRTIMP int __cdecl _swprintf ( wchar_t _Dest,
const wchar_t _Format,
  ... 
)

Definition at line 1687 of file wcs.c.

1688{
1689 va_list ap;
1690 int r;
1691
1692 va_start( ap, format );
1693 r = _vsnwprintf( str, INT_MAX, format, ap );
1694 va_end( ap );
1695 return r;
1696}
#define INT_MAX
Definition: limits.h:26
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
void int int ULONGLONG int va_list * ap
Definition: winesup.h:36

Referenced by get_manifest_in_pe_file(), and Test_VerQueryValueW().

◆ _swprintf_c()

_Check_return_opt_ _CRTIMP int __cdecl _swprintf_c ( _Out_writes_z_(_SizeInWords) wchar_t _DstBuf,
_In_ size_t  _SizeInWords,
_In_z_ _Printf_format_string_ const wchar_t _Format,
  ... 
)

◆ _tempnam()

_Check_return_ _CRTIMP char *__cdecl _tempnam ( _In_opt_z_ const char _DirName,
_In_opt_z_ const char _FilePrefix 
)

◆ _ungetc_nolock()

_Check_return_opt_ _CRTIMP int __cdecl _ungetc_nolock ( _In_ int  _Ch,
_Inout_ FILE _File 
)

◆ _ungetwc_nolock()

_Check_return_opt_ _CRTIMP wint_t __cdecl _ungetwc_nolock ( _In_ wint_t  _Ch,
_Inout_ FILE _File 
)

◆ _unlink()

_Check_return_ _CRTIMP int __cdecl _unlink ( _In_z_ const char _Filename)

◆ _unlock_file()

_CRTIMP void __cdecl _unlock_file ( _Inout_ FILE _File)

◆ _vscprintf()

_Check_return_ _CRTIMP int __cdecl _vscprintf ( _In_z_ _Printf_format_string_ const char _Format,
va_list  _ArgList 
)

◆ _vscwprintf()

_Check_return_ _CRTIMP int __cdecl _vscwprintf ( _In_z_ _Printf_format_string_ const wchar_t _Format,
va_list  _ArgList 
)

◆ _vsnprintf()

_CRTIMP int __cdecl _vsnprintf ( char _Dest,
size_t  _Count,
const char _Format,
va_list  _Args 
)

Definition at line 881 of file wcs.c.

882{
883 static const char nullbyte = '\0';
884 struct _str_ctx_a ctx = {len, str};
885 int ret;
886
887 ret = pf_printf_a(puts_clbk_str_a, &ctx, format, NULL, 0,
889 puts_clbk_str_a(&ctx, 1, &nullbyte);
890 return ret;
891}
int pf_printf_a(puts_clbk_a, void *, const char *, _locale_t, DWORD, args_clbk, void *, va_list *)
printf_arg arg_clbk_valist(void *ctx, int arg_pos, int type, va_list *valist)
Definition: wcs.c:847
return ret
Definition: mutex.c:146

◆ _vsnwprintf()

_CRTIMP int __cdecl _vsnwprintf ( wchar_t _Dest,
size_t  _Count,
const wchar_t _Format,
va_list  _Args 
)

Definition at line 1365 of file wcs.c.

1367{
1368 struct _str_ctx_w ctx = {len, str};
1369 int ret;
1370
1371 ret = pf_printf_w(puts_clbk_str_w, &ctx, format, NULL, 0,
1373 puts_clbk_str_w(&ctx, 1, L"");
1374 return ret;
1375}
int pf_printf_w(puts_clbk_w, void *, const wchar_t *, _locale_t, DWORD, args_clbk, void *, va_list *)
#define L(x)
Definition: resources.c:13

◆ _vswprintf()

_CRTIMP int __cdecl _vswprintf ( wchar_t _Dest,
const wchar_t _Format,
va_list  _Args 
)

Definition at line 1765 of file wcs.c.

1766{
1767 return _vsnwprintf( str, INT_MAX, format, args );
1768}
Definition: match.c:390

◆ _vswprintf_c()

_Check_return_opt_ _CRTIMP int __cdecl _vswprintf_c ( _Out_writes_z_(_SizeInWords) wchar_t _DstBuf,
_In_ size_t  _SizeInWords,
_In_z_ _Printf_format_string_ const wchar_t _Format,
va_list  _ArgList 
)

◆ _wfdopen()

_Check_return_ _CRTIMP FILE *__cdecl _wfdopen ( _In_ int  _FileHandle,
_In_z_ const wchar_t _Mode 
)

◆ _wfopen()

_Check_return_ _CRTIMP FILE *__cdecl _wfopen ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _Mode 
)

◆ _wfreopen()

_Check_return_ _CRTIMP FILE *__cdecl _wfreopen ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _Mode,
_Inout_ FILE _OldFile 
)

◆ _wfsopen()

_Check_return_ _CRTIMP FILE *__cdecl _wfsopen ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _Mode,
_In_ int  _ShFlag 
)

◆ _wperror()

_CRTIMP void __cdecl _wperror ( _In_opt_z_ const wchar_t _ErrMsg)

◆ _wpopen()

_Check_return_ _CRTIMP FILE *__cdecl _wpopen ( _In_z_ const wchar_t _Command,
_In_z_ const wchar_t _Mode 
)

◆ _wremove()

_Check_return_ _CRTIMP int __cdecl _wremove ( _In_z_ const wchar_t _Filename)

◆ _wtempnam()

_Check_return_ _CRTIMP wchar_t *__cdecl _wtempnam ( _In_opt_z_ const wchar_t _Directory,
_In_opt_z_ const wchar_t _FilePrefix 
)

◆ _wtmpnam()

◆ clearerr()

_CRTIMP void __cdecl clearerr ( _Inout_ FILE _File)

◆ fclose()

◆ fcloseall()

◆ fdopen()

_Check_return_ _CRTIMP FILE *__cdecl fdopen ( _In_ int  _FileHandle,
_In_z_ const char _Format 
)

◆ feof()

◆ ferror()

_Check_return_ _CRTIMP int __cdecl ferror ( _In_ FILE _File)

◆ fflush()

◆ fgetc()

◆ fgetchar()

◆ fgetpos()

_Check_return_opt_ _CRTIMP int __cdecl fgetpos ( _Inout_ FILE _File,
_Out_ fpos_t _Pos 
)

◆ fgets()

_Check_return_opt_ _CRTIMP char *__cdecl fgets ( _Out_writes_z_(_MaxCount) char _Buf,
_In_ int  _MaxCount,
_Inout_ FILE _File 
)

◆ fgetwc()

◆ fgetws()

_Check_return_opt_ _CRTIMP wchar_t *__cdecl fgetws ( _Out_writes_z_(_SizeInWords) wchar_t _Dst,
_In_ int  _SizeInWords,
_Inout_ FILE _File 
)

◆ fileno()

_Check_return_ _CRTIMP int __cdecl fileno ( _In_ FILE _File)

◆ flushall()

◆ fopen()

_Check_return_ _CRTIMP FILE *__cdecl fopen ( _In_z_ const char _Filename,
_In_z_ const char _Mode 
)

◆ fprintf()

_Check_return_opt_ _CRTIMP int __cdecl fprintf ( _Inout_ FILE _File,
_In_z_ _Printf_format_string_ const char _Format,
  ... 
)

◆ fputc()

_Check_return_opt_ _CRTIMP int __cdecl fputc ( _In_ int  _Ch,
_Inout_ FILE _File 
)

◆ fputchar()

◆ fputs()

_Check_return_opt_ _CRTIMP int __cdecl fputs ( _In_z_ const char _Str,
_Inout_ FILE _File 
)

◆ fputwc()

◆ fputws()

_Check_return_opt_ _CRTIMP int __cdecl fputws ( _In_z_ const wchar_t _Str,
_Inout_ FILE _File 
)

◆ fread()

_Check_return_opt_ _CRTIMP size_t __cdecl fread ( _Out_writes_bytes_(_ElementSize *_Count) void _DstBuf,
_In_ size_t  _ElementSize,
_In_ size_t  _Count,
_Inout_ FILE _File 
)

◆ freopen()

_Check_return_ _CRTIMP FILE *__cdecl freopen ( _In_z_ const char _Filename,
_In_z_ const char _Mode,
_Inout_ FILE _File 
)

◆ fscanf()

_Check_return_ _CRTIMP int __cdecl fscanf ( _Inout_ FILE _File,
_In_z_ _Scanf_format_string_ const char _Format,
  ... 
)

◆ fseek()

_Check_return_opt_ _CRTIMP int __cdecl fseek ( _Inout_ FILE _File,
_In_ long  _Offset,
_In_ int  _Origin 
)

◆ fsetpos()

_Check_return_opt_ _CRTIMP int __cdecl fsetpos ( _Inout_ FILE _File,
_In_ const fpos_t _Pos 
)

◆ ftell()

◆ fwprintf()

◆ fwrite()

_Check_return_opt_ _CRTIMP size_t __cdecl fwrite ( _In_reads_bytes_(_Size *_Count) const void _Str,
_In_ size_t  _Size,
_In_ size_t  _Count,
_Inout_ FILE _File 
)

◆ fwscanf()

_Check_return_ _CRTIMP int __cdecl fwscanf ( _Inout_ FILE _File,
_In_z_ _Scanf_format_string_ const wchar_t _Format,
  ... 
)

◆ getc()

◆ getchar()

Definition at line 4813 of file file.c.

4814{
4815 return fgetc(stdin);
4816}

Referenced by FSE_normalizeCount(), get_key(), macdef(), main(), Main(), and printWindowsError().

◆ gets()

_CRTIMP char *__cdecl gets ( char _Buffer)

Definition at line 4871 of file file.c.

4872{
4873 return gets_s(buf, -1);
4874}
char *CDECL gets_s(char *buf, size_t len)
Definition: file.c:4829

Referenced by cd(), cmdscanner(), confirm(), delete(), do_chmod(), domacro(), doproxy(), getit(), macdef(), main(), makedir(), mdelete(), mget(), mls(), modtime(), mput(), put(), quote(), removedir(), renamefile(), setnmap(), setpeer(), site(), sizecmd(), and user().

◆ getw()

◆ getwc()

◆ perror()

_CRTIMP void __cdecl perror ( _In_opt_z_ const char _ErrMsg)

◆ printf()

◆ putc()

_Check_return_opt_ _CRTIMP int __cdecl putc ( _In_ int  _Ch,
_Inout_ FILE _File 
)

◆ putchar()

◆ puts()

◆ putw()

_Check_return_opt_ _CRTIMP int __cdecl putw ( _In_ int  _Ch,
_Inout_ FILE _File 
)

◆ putwc()

◆ putwchar()

◆ remove()

_Check_return_ _CRTIMP int __cdecl remove ( _In_z_ const char _Filename)

◆ rename()

_Check_return_ _CRTIMP int __cdecl rename ( _In_z_ const char _OldFilename,
_In_z_ const char _NewFilename 
)

◆ rewind()

_CRTIMP void __cdecl rewind ( _Inout_ FILE _File)

◆ rmtmp()

◆ scanf()

◆ setbuf()

◆ setvbuf()

_Check_return_opt_ _CRTIMP int __cdecl setvbuf ( _Inout_ FILE _File,
_Inout_updates_opt_z_(_Size) char _Buf,
_In_ int  _Mode,
_In_ size_t  _Size 
)

◆ snprintf()

int __cdecl snprintf ( char s,
size_t  n,
const char format,
  ... 
)

◆ snwprintf()

_CRTIMP int __cdecl snwprintf ( wchar_t s,
size_t  n,
const wchar_t format,
  ... 
)

◆ sprintf()

int __cdecl sprintf ( char _Dest,
const char _Format,
  ... 
)

Definition at line 1601 of file wcs.c.

1602{
1603 va_list ap;
1604 int r;
1605
1606 va_start( ap, format );
1607 r = vsnprintf( str, INT_MAX, format, ap );
1608 va_end( ap );
1609 return r;
1610}

◆ sscanf()

_Check_return_ _CRTIMP int __cdecl sscanf ( _In_z_ const char _Src,
_In_z_ _Scanf_format_string_ const char _Format,
  ... 
)

◆ swprintf()

static _Check_return_opt_ int __cdecl swprintf ( _Out_writes_z_(_SizeInWords) wchar_t _DstBuf,
_In_ size_t  _SizeInWords,
_In_z_ _Printf_format_string_ const wchar_t _Format,
  ... 
)
inlinestatic

Definition at line 958 of file stdio.h.

963 {
964 int ret;
966
969 va_end(args);
970 return ret;
971 }
_In_z_ _Printf_format_string_ char const *const _Format
Definition: printf.c:19
_In_ size_t _SizeInWords
Definition: time.h:309
#define args
Definition: format.c:66

◆ swscanf()

◆ tempnam()

_CRTIMP char *__cdecl tempnam ( _In_opt_z_ const char _Directory,
_In_opt_z_ const char _FilePrefix 
)

◆ tmpfile()

Definition at line 5199 of file file.c.

5200{
5201 char *filename = _tempnam(",", "t");
5202 int fd;
5203 FILE* file = NULL;
5204
5205 LOCK_FILES();
5208 if (fd != -1 && (file = msvcrt_alloc_fp()))
5209 {
5210 if (msvcrt_init_fp(file, fd, _IORW) == -1)
5211 {
5212 file->_flag = 0;
5213 file = NULL;
5214 }
5215 else file->_tmpfname = _strdup(filename);
5216 }
5217
5218 if(fd != -1 && !file)
5219 _close(fd);
5220 free(filename);
5221 UNLOCK_FILES();
5222 return file;
5223}
#define _S_IWRITE
Definition: stat.h:85
#define _S_IREAD
Definition: stat.h:84
#define free
Definition: debug_ros.c:5
#define _strdup
Definition: debug_ros.c:7
#define _O_RDWR
Definition: cabinet.h:39
#define _O_BINARY
Definition: cabinet.h:51
#define _O_TEMPORARY
Definition: cabinet.h:44
#define _O_CREAT
Definition: cabinet.h:46
static FILE * msvcrt_alloc_fp(void)
Definition: file.c:615
char *CDECL _tempnam(const char *dir, const char *prefix)
Definition: file.c:3441
int CDECL _close(int fd)
Definition: file.c:1219
int WINAPIV _open(const char *path, int flags,...)
Definition: file.c:2655
static int msvcrt_init_fp(FILE *file, int fd, unsigned stream_flags)
Definition: file.c:649
#define _IORW
Definition: stdio.h:21
const char * filename
Definition: ioapi.h:137
static int fd
Definition: io.c:51

Referenced by CCFDATAStorage::Create(), create_temp_binary(), HANDLE_CustomType7(), jpeg_open_backing_store(), JSPROXY_InternetInitializeAutoProxyDll(), open_file_test(), patch_file(), test_color_contexts(), test_CreateDirectoryA(), test_CryptCATAdminAddRemoveCatalog(), test_GetNamedSecurityInfoA(), test_install_class(), test_retrieveObjectByUrl(), test_SetupCopyOEMInf(), tmpfile_s(), transfer_file_http(), CCFDATAStorage::Truncate(), VerInstallFileA(), and VerInstallFileW().

◆ tmpnam()

_CRTIMP char *__cdecl tmpnam ( _Pre_maybenull_ _Post_z_ char _Buffer)

◆ ungetc()

_Check_return_opt_ _CRTIMP_ALT int __cdecl ungetc ( _In_ int  _Ch,
_Inout_ FILE _File 
)

◆ ungetwc()

_Check_return_opt_ _CRTIMP wint_t __cdecl ungetwc ( _In_ wint_t  _Ch,
_Inout_ FILE _File 
)

◆ unlink()

_Check_return_ _CRTIMP int __cdecl unlink ( _In_z_ const char _Filename)

◆ vfprintf()

_Check_return_opt_ _CRTIMP int __cdecl vfprintf ( _Inout_ FILE _File,
_In_z_ _Printf_format_string_ const char _Format,
va_list  _ArgList 
)

◆ vfscanf()

int __cdecl vfscanf ( FILE *__restrict__  fp,
const char Format,
va_list  argp 
)

◆ vfwprintf()

_Check_return_opt_ _CRTIMP int __cdecl vfwprintf ( _Inout_ FILE _File,
_In_z_ _Printf_format_string_ const wchar_t _Format,
va_list  _ArgList 
)

◆ vfwscanf()

_CRTIMP int __cdecl vfwscanf ( FILE ,
const wchar_t ,
va_list   
)

◆ vprintf()

◆ vscanf()

int __cdecl vscanf ( const char *__restrict__  Format,
va_list  argp 
)

◆ vsnprintf()

_Check_return_opt_ _CRTIMP int __cdecl vsnprintf ( _Out_writes_(_MaxCount) char _DstBuf,
_In_ size_t  _MaxCount,
_In_z_ _Printf_format_string_ const char _Format,
va_list  _ArgList 
)

◆ vsnwprintf()

__CRT_INLINE int __cdecl vsnwprintf ( wchar_t s,
size_t  n,
const wchar_t format,
va_list  arg 
)

Definition at line 931 of file stdio.h.

932 {
933#ifdef _MSC_VER
934#pragma warning(push)
935#pragma warning(disable:28719) /* disable banned api usage warning */
936#endif /* _MSC_VER */
937 return _vsnwprintf(s,n,format,arg);
938#ifdef _MSC_VER
939#pragma warning(pop)
940#endif /* _MSC_VER */
941 }
GLdouble s
Definition: gl.h:2039
GLdouble n
Definition: glext.h:7729

Referenced by EfiPrintf(), and pSetupDebugPrint().

◆ vsprintf()

◆ vsscanf()

int __cdecl vsscanf ( const char *__restrict__  _Str,
const char *__restrict__  Format,
va_list  argp 
)

◆ vswprintf()

static _Check_return_opt_ int __cdecl vswprintf ( _Out_writes_z_(_SizeInWords) wchar_t _DstBuf,
_In_ size_t  _SizeInWords,
_In_z_ _Printf_format_string_ const wchar_t _Format,
va_list  _ArgList 
)
inlinestatic

Definition at line 977 of file stdio.h.

982 {
983 return _vsnwprintf(_DstBuf, _SizeInWords, _Format, _ArgList);
984 }
_In_z_ _Printf_format_string_ char const *const va_list _ArgList
Definition: printf.c:23

◆ vswscanf()

_CRTIMP int __cdecl vswscanf ( const wchar_t ,
const wchar_t ,
va_list   
)

◆ vwprintf()

◆ vwscanf()

_CRTIMP int __cdecl vwscanf ( const wchar_t ,
va_list   
)

◆ wprintf()

◆ wscanf()

Variable Documentation

◆ _commode

_CRTIMP int _commode
extern

Definition at line 31 of file environ.c.

Referenced by __acrt_stdio_parse_mode(), _Success_(), and Test__commode().

◆ _off64_t

__MINGW_EXTENSION typedef long long _off64_t

Definition at line 82 of file stdio.h.

◆ fpos_t

Definition at line 111 of file stdio.h.

◆ off64_t

__MINGW_EXTENSION typedef long long off64_t

Definition at line 84 of file stdio.h.