ReactOS  0.4.9-dev-717-g6d91262
stdio.h File Reference
#include <crtdefs.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 NULL   ((void *)0)
 
#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)
 
_Check_return_
__MINGW_EXTENSION _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 (_Out_ wchar_t *, _Printf_format_string_ const wchar_t *,...)
 
_CRTIMP int __cdecl vswprintf (_Out_ wchar_t *, const wchar_t *, va_list)
 
_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)
 
_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)
 
_Check_return_
__MINGW_EXTENSION _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 __int64 fpos_t
 

Macro Definition Documentation

#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.

#define _CRT_DIRECTORY_DEFINED

Definition at line 507 of file stdio.h.

#define _CRT_PERROR_DEFINED

Definition at line 445 of file stdio.h.

#define _CRT_WPERROR_DEFINED

Definition at line 1041 of file stdio.h.

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

Definition at line 1118 of file stdio.h.

#define _FILE_DEFINED

Definition at line 38 of file stdio.h.

#define _FPOS_T_DEFINED

Definition at line 112 of file stdio.h.

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

Definition at line 117 of file stdio.h.

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

Definition at line 1119 of file stdio.h.

#define _getc_nolock (   _stream)    _fgetc_nolock(_stream)

Definition at line 1120 of file stdio.h.

#define _getchar_nolock ( )    _getc_nolock(stdin)

Definition at line 1122 of file stdio.h.

#define _getwc_nolock (   _stm)    _fgetwc_nolock(_stm)

Definition at line 1110 of file stdio.h.

#define _getwchar_nolock ( )    _getwc_nolock(stdin)

Definition at line 1124 of file stdio.h.

#define _IOB_ENTRIES   20
#define _IOEOF   0x0010

Definition at line 133 of file stdio.h.

Referenced by _filbuf(), _flsbuf(), _fseeki64(), _getw(), clearerr(), feof(), and fread().

#define _IOERR   0x0020

Definition at line 134 of file stdio.h.

Referenced by _filbuf(), _flsbuf(), _putw(), clearerr(), fclose(), ferror(), fread(), fwrite(), and msvcrt_flush_buffer().

#define _IOLBF   0x0040

Definition at line 129 of file stdio.h.

Referenced by main(), OpenControlConnection(), OpenTrace(), and setvbuf().

#define _IOMYBUF   0x0008
#define _NFILE   _NSTREAM_

Definition at line 21 of file stdio.h.

#define _NSTREAM_   512

Definition at line 22 of file stdio.h.

#define _OFF64_T_DEFINED

Definition at line 89 of file stdio.h.

#define _OFF_T_

Definition at line 80 of file stdio.h.

#define _OFF_T_DEFINED

Definition at line 78 of file stdio.h.

#define _P_tmpdir   "\\"

Definition at line 45 of file stdio.h.

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

Definition at line 1121 of file stdio.h.

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

Definition at line 1123 of file stdio.h.

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

Definition at line 1109 of file stdio.h.

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

Definition at line 1125 of file stdio.h.

#define _STDIO_DEFINED

Definition at line 1115 of file stdio.h.

#define _STDSTREAM_DEFINED

Definition at line 105 of file stdio.h.

#define _SYS_OPEN   20

Definition at line 66 of file stdio.h.

#define _TWO_DIGIT_EXPONENT   0x1

Definition at line 139 of file stdio.h.

Referenced by test__get_output_format().

#define _USERBUF   0x0100
#define _wP_tmpdir   L"\\"

Definition at line 46 of file stdio.h.

#define _WSTDIO_DEFINED

Definition at line 1112 of file stdio.h.

#define BUFSIZ   512

Definition at line 20 of file stdio.h.

#define FOPEN_MAX   20

Definition at line 65 of file stdio.h.

#define getwc (   _stm)    fgetwc(_stm)

Definition at line 1107 of file stdio.h.

Referenced by StringGetsExWorkerW().

Definition at line 1100 of file stdio.h.

#define L_tmpnam   (sizeof(_P_tmpdir) + 12)

Definition at line 49 of file stdio.h.

#define NULL   ((void *)0)

Definition at line 73 of file stdio.h.

#define P_tmpdir   _P_tmpdir

Definition at line 1217 of file stdio.h.

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

Definition at line 1108 of file stdio.h.

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

Definition at line 1101 of file stdio.h.

#define SEEK_CUR   1

Definition at line 56 of file stdio.h.

#define SEEK_END   2

Definition at line 57 of file stdio.h.

#define SEEK_SET   0

Definition at line 58 of file stdio.h.

#define snprintf   _snprintf

Definition at line 710 of file stdio.h.

#define stderr   (&_iob[2])

Definition at line 108 of file stdio.h.

#define STDERR_FILENO   2

Definition at line 62 of file stdio.h.

#define stdin   (&_iob[0])

Definition at line 106 of file stdio.h.

#define STDIN_FILENO   0

Definition at line 60 of file stdio.h.

#define stdout   (&_iob[1])

Definition at line 107 of file stdio.h.

#define STDOUT_FILENO   1

Definition at line 61 of file stdio.h.

#define SYS_OPEN   _SYS_OPEN

Definition at line 1218 of file stdio.h.

#define TMP_MAX   32767

Definition at line 67 of file stdio.h.

Referenced by _wtmpnam(), and tmpnam().

#define vsnprintf   _vsnprintf

Definition at line 707 of file stdio.h.

#define WEOF   (wint_t)(0xFFFF)

Definition at line 732 of file stdio.h.

#define wpopen   _wpopen

Definition at line 1058 of file stdio.h.

Typedef Documentation

typedef long _off_t

Definition at line 81 of file stdio.h.

typedef struct _iobuf FILE

Definition at line 37 of file stdio.h.

typedef long off_t

Definition at line 83 of file stdio.h.

Function Documentation

_CRTIMP FILE* __cdecl __iob_func ( void  )

Definition at line 683 of file file.c.

684 {
685  return &_iob[0];
686 }
FILE _iob[_IOB_ENTRIES]
Definition: file.c:133
_Check_return_opt_ _CRTIMP int __cdecl _fclose_nolock ( _Inout_ FILE _File)

Definition at line 1081 of file file.c.

Referenced by msvcrt_free_io(), and test_fopen_fclose_fcloseall().

1082 {
1083  int num_closed = 0, i;
1084  FILE *file;
1085 
1086  LOCK_FILES();
1087  for (i = 3; i < MSVCRT_stream_idx; i++) {
1088  file = msvcrt_get_file(i);
1089 
1090  if (file->_flag && !fclose(file))
1091  num_closed++;
1092  }
1093  UNLOCK_FILES();
1094 
1095  TRACE(":closed (%d) handles\n",num_closed);
1096  return num_closed;
1097 }
static int MSVCRT_stream_idx
Definition: file.c:135
GLenum GLclampf GLint i
Definition: glfuncs.h:14
#define UNLOCK_FILES()
Definition: file.c:156
#define TRACE(s)
Definition: solgame.cpp:4
const char file[]
Definition: icontest.c:11
#define LOCK_FILES()
Definition: file.c:155
int _flag
Definition: mbstring.h:23
static FILE * msvcrt_get_file(int i)
Definition: file.c:269
int CDECL fclose(FILE *file)
Definition: file.c:2783
_Check_return_opt_ _CRTIMP int __cdecl _fflush_nolock ( _Inout_opt_ FILE _File)

Definition at line 2906 of file file.c.

2907 {
2908  return fgetc(stdin);
2909 }
FILE * stdin
int CDECL fgetc(FILE *file)
Definition: file.c:2886
_Check_return_opt_ _CRTIMP wint_t __cdecl _fgetwc_nolock ( _Inout_ FILE _File)

Definition at line 3027 of file file.c.

3028 {
3029  return fgetwc(stdin);
3030 }
FILE * stdin
wint_t CDECL fgetwc(FILE *file)
Definition: file.c:2946
_Check_return_ _CRTIMP int __cdecl _filbuf ( _Inout_ FILE _File)
_Check_return_opt_ _CRTIMP int __cdecl _flsbuf ( _In_ int  _Ch,
_Inout_ FILE _File 
)

Definition at line 893 of file file.c.

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

894 {
896 }
#define _IOREAD
Definition: stdio.h:125
#define _IOWRT
Definition: stdio.h:126
static int msvcrt_flush_all_buffers(int mask)
Definition: file.c:867
_Check_return_opt_ _CRTIMP wint_t __cdecl _fputwc_nolock ( _In_ wchar_t  _Ch,
_Inout_ 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_opt_ __MINGW_EXTENSION _CRTIMP int __cdecl _fseeki64 ( _Inout_ FILE _File,
_In_ __int64  _Offset,
_In_ int  _Origin 
)
_Check_return_opt_ __MINGW_EXTENSION _CRTIMP int __cdecl _fseeki64_nolock ( _Inout_ FILE _File,
_In_ __int64  _Offset,
_In_ int  _Origin 
)
_Check_return_ _CRTIMP FILE* __cdecl _fsopen ( _In_z_ const char _Filename,
_In_z_ const char _Mode,
_In_ int  _ShFlag 
)
_Check_return_ _CRTIMP long __cdecl _ftell_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 unsigned int __cdecl _get_output_format ( void  )

Definition at line 2 of file ofmt_stub.c.

3 {
4  return 0;
5 }
_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
_Check_return_ _CRTIMP int __cdecl _getmaxstdio ( void  )

Definition at line 4026 of file file.c.

4027 {
4028  return MSVCRT_max_streams;
4029 }
static int MSVCRT_max_streams
Definition: file.c:135
_CRTIMP wchar_t* __cdecl _getws ( wchar_t _String)

Definition at line 3663 of file file.c.

3664 {
3665  wint_t cc;
3666  wchar_t* ws = buf;
3667 
3668  _lock_file(stdin);
3669  for (cc = fgetwc(stdin); cc != WEOF && cc != '\n';
3670  cc = fgetwc(stdin))
3671  {
3672  if (cc != '\r')
3673  *buf++ = (wchar_t)cc;
3674  }
3675  *buf = '\0';
3676 
3677  TRACE("got %s\n", debugstr_w(ws));
3679  return ws;
3680 }
const char * ws
Definition: skip_ws.cpp:7
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
void CDECL _unlock_file(FILE *file)
Definition: file.c:1205
FILE * stdin
#define debugstr_w
Definition: kernel32.h:32
int wint_t
Definition: _apple.h:38
#define TRACE(s)
Definition: solgame.cpp:4
void CDECL _lock_file(FILE *file)
Definition: file.c:1193
#define WEOF
Definition: conio.h:185
uint32_t cc
Definition: isohybrid.c:75
wint_t CDECL fgetwc(FILE *file)
Definition: file.c:2946
#define wchar_t
Definition: wchar.h:102
_CRTIMP void __cdecl _lock_file ( _Inout_ FILE _File)
_Check_return_opt_ _CRTIMP int __cdecl _putw ( _In_ int  _Word,
_Inout_ FILE _File 
)

Definition at line 2094 of file file.c.

2095 {
2096  int num_removed = 0, i;
2097  FILE *file;
2098 
2099  LOCK_FILES();
2100  for (i = 3; i < MSVCRT_stream_idx; i++) {
2101  file = msvcrt_get_file(i);
2102 
2103  if (file->_tmpfname)
2104  {
2105  fclose(file);
2106  num_removed++;
2107  }
2108  }
2109  UNLOCK_FILES();
2110 
2111  if (num_removed)
2112  TRACE(":removed (%d) temp files\n",num_removed);
2113  return num_removed;
2114 }
static int MSVCRT_stream_idx
Definition: file.c:135
char * _tmpfname
Definition: mbstring.h:27
GLenum GLclampf GLint i
Definition: glfuncs.h:14
#define UNLOCK_FILES()
Definition: file.c:156
#define TRACE(s)
Definition: solgame.cpp:4
const char file[]
Definition: icontest.c:11
#define LOCK_FILES()
Definition: file.c:155
static FILE * msvcrt_get_file(int i)
Definition: file.c:269
int CDECL fclose(FILE *file)
Definition: file.c:2783
_Check_return_opt_ _CRTIMP unsigned int __cdecl _set_output_format ( _In_ unsigned int  _Format)
_CRTIMP int __cdecl _set_printf_count_output ( _In_ int  _Value)
_Check_return_opt_ _CRTIMP int __cdecl _setmaxstdio ( _In_ int  _Max)
_CRTIMP int __cdecl _snprintf ( char _Dest,
size_t  _Count,
const char _Format,
  ... 
)

Definition at line 718 of file sprintf.c.

Referenced by test_Z().

719 {
720  va_list args;
721  int i;
722 
723  va_start(args, fmt);
724  i=_vsnprintf(buf,cnt,fmt,args);
725  va_end(args);
726  return i;
727 }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int __cdecl _vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args)
Definition: sprintf.c:386
GLenum GLclampf GLint i
Definition: glfuncs.h:14
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define args
Definition: format.c:66
Definition: dsound.c:943
_CRTIMP int __cdecl _snwprintf ( wchar_t _Dest,
size_t  _Count,
const wchar_t _Format,
  ... 
)
_CRTIMP int __cdecl _swprintf ( wchar_t _Dest,
const wchar_t _Format,
  ... 
)
_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_ _CRTIMP char* __cdecl _tempnam ( _In_opt_z_ const char _DirName,
_In_opt_z_ const char _FilePrefix 
)
_Check_return_opt_ _CRTIMP int __cdecl _ungetc_nolock ( _In_ int  _Ch,
_Inout_ FILE _File 
)
_Check_return_opt_ _CRTIMP wint_t __cdecl _ungetwc_nolock ( _In_ wint_t  _Ch,
_Inout_ FILE _File 
)
_Check_return_ _CRTIMP int __cdecl _unlink ( _In_z_ const char _Filename)
_CRTIMP void __cdecl _unlock_file ( _Inout_ FILE _File)
_CRTIMP int __cdecl _vsnprintf ( char _Dest,
size_t  _Count,
const char _Format,
va_list  _Args 
)

Definition at line 386 of file sprintf.c.

Referenced by _snprintf(), sprintf(), and vsprintf().

387 {
388  int len;
389  unsigned long long num;
390  double _double;
391 
392  int base;
393  char *str, *end;
394  const char *s;
395  const wchar_t *sw;
396 
397  int flags; /* flags to number() */
398 
399  int field_width; /* width of output field */
400  int precision; /* min. # of digits for integers; max
401  number of chars for from string */
402  int qualifier; /* 'h', 'l', 'L', 'I' or 'w' for integer fields */
403 
404  /* clear the string buffer with zero so we do not need NULL terment it at end */
405 
406  str = buf;
407  end = buf + cnt - 1;
408  if (end < buf - 1) {
409  end = ((char *) -1);
410  cnt = end - buf + 1;
411  }
412 
413  for ( ; *fmt ; ++fmt) {
414  if (*fmt != '%') {
415  if (str <= end)
416  *str = *fmt;
417  ++str;
418  continue;
419  }
420 
421  /* process flags */
422  flags = 0;
423  repeat:
424  ++fmt; /* this also skips first '%' */
425  switch (*fmt) {
426  case '-': flags |= LEFT; goto repeat;
427  case '+': flags |= PLUS; goto repeat;
428  case ' ': flags |= SPACE; goto repeat;
429  case '#': flags |= SPECIAL; goto repeat;
430  case '0': flags |= ZEROPAD; goto repeat;
431  }
432 
433  /* get field width */
434  field_width = -1;
435  if (isdigit(*fmt))
436  field_width = skip_atoi(&fmt);
437  else if (*fmt == '*') {
438  ++fmt;
439  /* it's the next argument */
440  field_width = va_arg(args, int);
441  if (field_width < 0) {
442  field_width = -field_width;
443  flags |= LEFT;
444  }
445  }
446 
447  /* get the precision */
448  precision = -1;
449  if (*fmt == '.') {
450  ++fmt;
451  if (isdigit(*fmt))
452  precision = skip_atoi(&fmt);
453  else if (*fmt == '*') {
454  ++fmt;
455  /* it's the next argument */
456  precision = va_arg(args, int);
457  }
458  if (precision < 0)
459  precision = 0;
460  }
461 
462  /* get the conversion qualifier */
463  qualifier = -1;
464  if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L' || *fmt == 'w') {
465  qualifier = *fmt;
466  ++fmt;
467  } else if (*fmt == 'I' && *(fmt+1) == '6' && *(fmt+2) == '4') {
468  qualifier = *fmt;
469  fmt += 3;
470  } else if (*fmt == 'I' && *(fmt+1) == '3' && *(fmt+2) == '2') {
471  qualifier = 'l';
472  fmt += 3;
473  } else if (*fmt == 'F' && *(fmt+1) == 'p') {
474  fmt += 1;
475  flags |= REMOVEHEX;
476  }
477 
478  /* default base */
479  base = 10;
480 
481  switch (*fmt) {
482  case 'c': /* finished */
483  if (qualifier == 'l' || qualifier == 'w') {
484  wchar_t sw1[2];
485  /* print unicode string */
486  sw1[0] = (wchar_t) va_arg(args, int);
487  sw1[1] = 0;
488  str = stringw(str, end, (wchar_t *)&sw1, -1, field_width, precision, flags);
489  } else {
490  char s1[2];
491  /* print ascii string */
492  s1[0] = ( unsigned char) va_arg(args, int);
493  s1[1] = 0;
494  str = string(str, end, (char *)&s1, -1, field_width, precision, flags);
495  }
496  continue;
497 
498  case 'C': /* finished */
499  if (!(flags & LEFT))
500  while (--field_width > 0) {
501  if (str <= end)
502  *str = ' ';
503  ++str;
504  }
505  if (qualifier == 'h') {
506  if (str <= end)
507  *str = (unsigned char) va_arg(args, int);
508  ++str;
509  } else {
510  if (str <= end)
511  *str = (unsigned char)(wchar_t) va_arg(args, int);
512  ++str;
513  }
514  while (--field_width > 0) {
515  if (str <= end)
516  *str = ' ';
517  ++str;
518  }
519  continue;
520 
521  case 's': /* finished */
522  if (qualifier == 'l' || qualifier == 'w') {
523  /* print unicode string */
524  sw = va_arg(args, wchar_t *);
525  str = stringw(str, end, sw, -1, field_width, precision, flags);
526  } else {
527  /* print ascii string */
528  s = va_arg(args, char *);
529  str = string(str, end, s, -1, field_width, precision, flags);
530  }
531  continue;
532 
533  case 'S':
534  if (qualifier == 'h') {
535  /* print ascii string */
536  s = va_arg(args, char *);
537  str = string(str, end, s, -1, field_width, precision, flags);
538  } else {
539  /* print unicode string */
540  sw = va_arg(args, wchar_t *);
541  str = stringw(str, end, sw, -1, field_width, precision, flags);
542  }
543  continue;
544 
545  case 'Z':
546  if (qualifier == 'w') {
547  /* print counted unicode string */
549  if ((pus == NULL) || (pus->Buffer == NULL)) {
550  sw = NULL;
551  len = -1;
552  } else {
553  sw = pus->Buffer;
554  len = pus->Length / sizeof(WCHAR);
555  }
556  str = stringw(str, end, sw, len, field_width, precision, flags);
557  } else {
558  /* print counted ascii string */
560  if ((pus == NULL) || (pus->Buffer == NULL)) {
561  s = NULL;
562  len = -1;
563  } else {
564  s = pus->Buffer;
565  len = pus->Length;
566  }
567  str = string(str, end, s, len, field_width, precision, flags);
568  }
569  continue;
570 
571  case 'p':
572  if ((flags & LARGE) == 0)
573  flags |= LARGE;
574 
575  if (field_width == -1) {
576  field_width = 2 * sizeof(void *);
577  flags |= ZEROPAD;
578  }
579  str = number(str, end,
580  (ULONG_PTR) va_arg(args, void *), 16,
581  field_width, precision, flags);
582  continue;
583 
584  case 'n':
585  /* FIXME: What does C99 say about the overflow case here? */
586  if (qualifier == 'l') {
587  long * ip = va_arg(args, long *);
588  *ip = (str - buf);
589  } else {
590  int * ip = va_arg(args, int *);
591  *ip = (str - buf);
592  }
593  continue;
594 
595  /* float number formats - set up the flags and "break" */
596  case 'e':
597  case 'E':
598  case 'f':
599  case 'g':
600  case 'G':
601  _double = (double)va_arg(args, double);
602  if ( _isnan(_double) ) {
603  s = "Nan";
604  len = 3;
605  while ( len > 0 ) {
606  if (str <= end)
607  *str = *s++;
608  ++str;
609  len --;
610  }
611  } else if ( _isinf(_double) < 0 ) {
612  s = "-Inf";
613  len = 4;
614  while ( len > 0 ) {
615  if (str <= end)
616  *str = *s++;
617  ++str;
618  len --;
619  }
620  } else if ( _isinf(_double) > 0 ) {
621  s = "+Inf";
622  len = 4;
623  while ( len > 0 ) {
624  if (str <= end)
625  *str = *s++;
626  ++str;
627  len --;
628  }
629  } else {
630  if ( precision == -1 )
631  precision = 6;
632  str = numberf(str, end, (int)_double, base, field_width, precision, flags);
633  }
634 
635  continue;
636 
637 
638  /* integer number formats - set up the flags and "break" */
639  case 'o':
640  base = 8;
641  break;
642 
643  case 'b':
644  base = 2;
645  break;
646 
647  case 'X':
648  flags |= LARGE;
649  case 'x':
650  base = 16;
651  break;
652 
653  case 'd':
654  case 'i':
655  flags |= SIGN;
656  case 'u':
657  break;
658 
659  default:
660  if (*fmt) {
661  if (str <= end)
662  *str = *fmt;
663  ++str;
664  } else
665  --fmt;
666  continue;
667  }
668 
669  if (qualifier == 'I')
670  num = va_arg(args, unsigned long long);
671  else if (qualifier == 'l') {
672  if (flags & SIGN)
673  num = va_arg(args, long);
674  else
675  num = va_arg(args, unsigned long);
676  }
677  else if (qualifier == 'h') {
678  if (flags & SIGN)
679  num = va_arg(args, int);
680  else
681  num = va_arg(args, unsigned int);
682  }
683  else {
684  if (flags & SIGN)
685  num = va_arg(args, int);
686  else
687  num = va_arg(args, unsigned int);
688  }
689  str = number(str, end, num, base, field_width, precision, flags);
690  }
691  if (str <= end)
692  *str = '\0';
693  else if (cnt > 0)
694  /* don't write out a null byte if the buf size is zero */
695  *end = '\0';
696  return str-buf;
697 }
#define LEFT
Definition: sprintf.c:26
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define SPECIAL
Definition: sprintf.c:27
const char * fmt
Definition: wsprintf.c:30
GLuint GLuint end
Definition: gl.h:1545
static int skip_atoi(const char **s)
Definition: sprintf.c:79
#define WCHAR
Definition: msvc.h:43
Definition: match.c:390
uint32_t ULONG_PTR
Definition: typedefs.h:63
const XML_Char int const XML_Char int const XML_Char * base
Definition: expat.h:331
#define PLUS
Definition: sprintf.c:24
static char * string(char *buf, char *end, const char *s, int len, int field_width, int precision, int flags)
Definition: sprintf.c:286
static const char mbstate_t *static wchar_t const char mbstate_t *static const wchar_t int *static double
Definition: string.c:80
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
static APTTYPEQUALIFIER * qualifier
Definition: compobj.c:80
unsigned char
Definition: typeof.h:27
#define ZEROPAD
Definition: sprintf.c:22
#define isdigit(c)
Definition: acclib.h:68
GLenum GLint GLint * precision
Definition: glext.h:7539
Definition: dhcpd.h:61
struct S1 s1
GLuint GLuint num
Definition: glext.h:9618
GLbitfield flags
Definition: glext.h:7161
#define LARGE
Definition: sprintf.c:28
GLdouble s
Definition: gl.h:2039
GLenum GLsizei len
Definition: glext.h:6722
#define REMOVEHEX
Definition: sprintf.c:29
static __inline int _isinf(double __x)
Definition: sprintf.c:40
static int repeat
Definition: xmllint.c:143
static __inline int _isnan(double __x)
Definition: sprintf.c:55
static char * numberf(char *buf, char *end, double num, int base, int size, int precision, int type)
Definition: sprintf.c:183
#define va_arg(ap, T)
Definition: acmsvcex.h:89
#define SPACE
Definition: sprintf.c:25
static char * number(char *buf, char *end, long long num, int base, int size, int precision, int type)
Definition: sprintf.c:90
#define wchar_t
Definition: wchar.h:102
static char * stringw(char *buf, char *end, const wchar_t *sw, int len, int field_width, int precision, int flags)
Definition: sprintf.c:335
#define SIGN
Definition: sprintf.c:23
Definition: dsound.c:943
_CRTIMP int __cdecl _vswprintf ( wchar_t _Dest,
const wchar_t _Format,
va_list  _Args 
)
_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 
)
_Check_return_ _CRTIMP FILE* __cdecl _wfdopen ( _In_ int  _FileHandle,
_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 
)

Referenced by DllMain().

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

Referenced by LoadIniFile(), and WriteIniFile().

_CRTIMP void __cdecl _wperror ( _In_opt_z_ const wchar_t _ErrMsg)

Referenced by ReadFromFile().

_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)
_Check_return_ _CRTIMP wchar_t* __cdecl _wtempnam ( _In_opt_z_ const wchar_t _Directory,
_In_opt_z_ const wchar_t _FilePrefix 
)
_CRTIMP void __cdecl clearerr ( _Inout_ FILE _File)

Referenced by read_mbr_template().

Referenced by __CloseHandle(), _Filebuf_base::_M_close(), _pclose(), abort(), CCabinet::AddFile(), bsClose(), BZ2_bzclose(), bzopen_or_bzdopen(), check_atari(), check_bitmap_data(), check_file_size(), check_for_files(), CheckForNewV3User(), cleanReq(), cleanUpAndFail(), File::close(), CCabinet::Close(), close_backing_store(), close_file(), close_log_files(), close_merge_image(), CloseBookmarkFile(), CloseF(), CloseFile(), CloseTrace(), CCabinet::CommitDisk(), compare_export_(), compat_fclose(), compress(), compressStream(), config_load(), copyfont(), create_cache(), create_nls_file(), create_output_file(), create_sic(), CreateCaseDiff(), CreateSpecFile(), DbgHelpAddLineNumber(), CCFDATAStorage::Destroy(), disk_cleanup(), DllMain(), do_import(), do_update_base(), DoParsing(), DosBIOSInitialize(), EndLog(), endnetconfig(), endrpcent(), errconfig(), error_exit(), export_registry_key(), ExportBinaryHive(), extract_test(), CCabinet::ExtractFile(), fclose_file_func(), figurefiletype(), file_exists(), fileClient(), fileExists(), ForF(), gen_add_list(), Generate(), generate_xa_rr_attributes(), get_ImageBase(), get_list_blocks(), get_subtests(), getICMPStats(), getnetconfigent(), getnetid(), GetOurHostName(), getpublicandprivatekey(), getSection(), getUdpTable(), gl_check_inputrc_for_vi(), gl_histloadfile(), gl_histsavefile(), import_certs_from_file(), ImportRegistryFile(), InfHostOpenFile(), InfHostWriteFile(), init(), init_leases_list(), init_logger_addr(), TScript::initScript(), kbd_c(), kbd_def(), kbd_h(), kbd_rc(), CDFParser::Load(), Load_CP2Unicode_Table(), load_file(), Load_OEM2Unicode_Table(), LoadBootIni(), loadFile(), LoadFile(), tinyxml2::XMLDocument::LoadFile(), LoadFirewallPrefs(), LoadIniFile(), LoadPrefs(), LoadSystemIni(), log_file(), logMess(), logmsg(), LogOpen(), LogXfer(), main(), MainWndProc(), myClose(), nls_from_txt(), of_help(), OpenBookmarkFile(), openSection(), OpenTmpBookmarkFile(), parse_switches(), parseAndPrintFile(), TANSIParser::ParseEscapeANSI(), pass(), PerformRegAction(), pop_import(), TANSIParser::PrintBuffer(), processRequest(), PutBookmark(), read_cache(), read_file(), read_input_file(), read_JPEG_file(), read_mbr_template(), read_quant_tables(), read_rcfile(), readAllPolygons(), readconfig(), ReadFromFile(), readSection(), recvrequest(), reg_import(), regscan(), remglob(), RunBookmarkEditor(), RunScript(), ruserpass(), saveFile(), tinyxml2::XMLDocument::SaveFile(), SavePrefs(), SdbCloseDatabase(), select_file_name(), send_file(), sendrequest(), ServiceMain(), set_LogFile(), CCabinet::SetCabinetReservedFile(), SpoolX(), START_TEST(), FstreamTest::tellp(), test___getmainargs(), test___getmainargs_parent(), test_file_truncate(), test_fprintf(), test_searchenv(), testStream(), CCFDATAStorage::Truncate(), txt_get_glyph_table(), txt_get_header(), txt_get_mb_table(), txt_get_wc_table(), uncompress(), uncompressStream(), unpack_iso(), updateSvnlog(), verify_output_file(), wmain(), wpp_default_close(), write_casemap_file(), write_client(), write_dlldata(), write_dlldata_list(), write_header(), write_id_data(), write_if_change(), write_JPEG_file(), write_local_stubs(), write_one_file(), write_proxies(), write_regscript(), write_server(), directedLine::writeAllPolygons(), CCabinet::WriteFileToScratchStorage(), WriteIniFile(), XCOPY_ProcessExcludeFile(), xkeymap_from_locale(), xkeymap_read(), xmlMemDisplay(), xmlMemDisplayLast(), xmlMemoryDump(), xsltDocumentElem(), CDFParser::~CDFParser(), FileReporter::~FileReporter(), and TANSIParser::~TANSIParser().

Referenced by alarm_intr(), bsClose(), BZ2_bzWriteClose64(), cd(), cdup(), check_blocks(), cmdabort(), cmdscanner(), CmpFileFlush(), command(), compress(), compressStream(), confirm(), dataconn(), delete(), disk_ioctl(), do_chmod(), domacro(), domap(), doproxy(), dprintf(), eprintf(), Error(), fsetmode(), get_key(), GetCmd(), getit(), GetPass(), getreply(), globulize(), help(), hookup(), initconn(), InputChar(), InteractiveConsole(), lcd(), LocalListCmd(), log_debug(), log_hexdump(), login(), logMess(), ls(), macdef(), main(), makedir(), mdelete(), mget(), mls(), modtime(), MonitorChildThread(), mput(), NcFTPConfirmResumeDownloadProc(), NcFTPConfirmResumeUploadProc(), newer(), OpenMsg(), OpenPager(), stdio_ostreambuf::overflow(), PrintF(), PrintStartupBanner(), PromptForBookmarkName(), proxtrans(), PrPhilBar(), PrStatBar(), ptransfer(), put(), PutCmd(), pwd(), query_done(), quote(), recvrequest(), remglob(), removedir(), rename_file(), renamefile(), restart(), rewrite_client_leases(), SaveCurrentAsBookmark(), SaveUnsavedBookmark(), sendrequest(), SendTelnetInterrupt(), serial_create(), setbell(), setcase(), setcr(), setdebug(), setform(), setglob(), sethash(), setnmap(), setntrans(), setpassive(), setpeer(), setport(), setprompt(), setrunique(), setstruct(), setsunique(), settrace(), settype(), setverbose(), shell(), site(), sizecmd(), START_TEST(), status(), stdio_streambuf_base::sync(), testf(), uncompress(), uncompressStream(), usage(), user(), wintirpc_debug(), write_client_lease(), write_one_file(), WriteBmLine(), xdrstdio_destroy(), FileReporter::~FileReporter(), and stdio_streambuf_base::~stdio_streambuf_base().

_Check_return_opt_ _CRTIMP int __cdecl fgetpos ( _Inout_ FILE _File,
_Out_ fpos_t _Pos 
)
_Check_return_opt_ _CRTIMP wchar_t* __cdecl fgetws ( _Out_writes_z_(_SizeInWords) wchar_t _Dst,
_In_ int  _SizeInWords,
_Inout_ FILE _File 
)
_Check_return_ _CRTIMP FILE* __cdecl fopen ( _In_z_ const char _Filename,
_In_z_ const char _Mode 
)

Referenced by CCabinet::AddFile(), bzopen_or_bzdopen(), tinyxml2::callfopen(), check_atari(), check_bitmap_data(), check_for_files(), CheckForNewV3User(), CCabinet::CommitDisk(), compare_export_(), compat_fopen(), compress(), config_load(), copyfont(), create_cache(), create_nls_file(), CreateCaseDiff(), DbgHelpAddLineNumber(), disk_openimage(), do_import(), EndLog(), ExportBinaryHive(), extract_test(), CCabinet::ExtractFile(), figurefiletype(), file_exists(), fileClient(), fileExists(), FileReporter::FileReporter(), fopen_file_func(), fopen_output_safely(), gen_add_list(), Generate(), generate_xa_rr_attributes(), get_ImageBase(), get_list_blocks(), get_subtests(), getICMPStats(), getnetconfigent(), getnetid(), GetOurHostName(), getpublicandprivatekey(), getrpcent(), getSection(), getUdpTable(), gl_check_inputrc_for_vi(), gl_histloadfile(), gl_histsavefile(), InfHostOpenFile(), InfHostWriteFile(), init(), init_client(), init_leases_list(), init_logger_addr(), init_proxy(), init_server(), TScript::initScript(), jpeg_open_backing_store(), kbd_c(), kbd_def(), kbd_h(), kbd_rc(), CDFParser::Load(), Load_CP2Unicode_Table(), load_file(), Load_OEM2Unicode_Table(), loadFile(), LoadFile(), LoadFirewallPrefs(), LoadPrefs(), log_file(), logMess(), logmsg(), LogOpen(), LogXfer(), main(), MainWndProc(), nls_from_txt(), File::open(), CCabinet::Open(), open_log_files(), open_merge_image(), OpenBookmarkFile(), OpenF(), openSection(), OpenTmpBookmarkFile(), OpenTrace(), parse_switches(), parseAndPrintFile(), TANSIParser::ParseEscapeANSI(), pass(), pfopen(), processRequest(), read_cache(), read_file(), read_input_file(), read_JPEG_file(), read_mbr_template(), read_quant_tables(), read_rcfile(), readAllPolygons(), readconfig(), recvrequest(), REGPROC_open_export_file(), regscan(), remglob(), rewrite_client_leases(), RunBookmarkEditor(), ruserpass(), saveFile(), SavePrefs(), SdbpCreate(), select_file_name(), send_file(), sendrequest(), set_LogFile(), CCabinet::SetCabinetReservedFile(), setnetconfig(), setrpcent(), SpoolX(), START_TEST(), TANSIParser::TANSIParser(), FstreamTest::tellp(), test___getmainargs(), test___getmainargs_parent(), test_fprintf(), test_searchenv(), testf(), txt_get_glyph_table(), txt_get_header(), txt_get_mb_table(), txt_get_wc_table(), uncompress(), unpack_iso(), updateSvnlog(), wintirpc_debug(), wpp_default_open(), write_casemap_file(), write_client_lease(), write_dlldata(), write_dlldata_list(), write_header(), write_id_data(), write_if_change(), write_JPEG_file(), write_local_stubs(), write_one_file(), write_regscript(), directedLine::writeAllPolygons(), CCabinet::WriteFileToScratchStorage(), CDFParser::WriteInfLine(), xkeymap_open(), xmlMemDisplay(), xmlMemDisplayLast(), xmlMemoryDump(), and xsltDocumentElem().

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

Referenced by __report_error(), __rpc_broadenable(), __rpcb_findaddr_timed(), __xprt_do_unregister(), _amsg_exit(), _assert(), _chm_decompress_block(), _getgroups(), _getopt_internal(), _mesa_problem(), _svcauth_gss(), _TIFFPrettyPrintField(), _TIFFprintAsciiBounded(), _TIFFprintAsciiTag(), _TIFFPrintField(), _TIFFPrintFieldInfo(), _vwarnx(), aargh(), abort(), add_cache(), add_expand_text(), add_hash(), adns__vdiag(), adnsfail(), arg_get_long(), arg_get_utf8(), assign_file_addresses(), assign_stub_out_args(), attributeDeclDebug(), authgss_create(), authgss_create_default(), authgss_destroy(), authgss_validate(), BackToTop(), bezierPatchMeshMake(), bezierPatchMeshNumTriangles(), bezierPatchMeshPutPatch(), buffered_fullread(), build_huffman_tree(), build_tree(), byte_till_end(), BZ2_bz__AssertH__fail(), cadvise(), cdataBlockDebug(), charactersDebug(), chat(), check_cache(), check_entropy(), check_for_files(), check_lame_tag(), CheckForNewV3User(), checkRecv(), CheckTestFile(), chmc_add_entry(), chmc_crunch_lzx(), chmc_section_create(), cleanUpAndFail(), ClickProc(), clnt_cb_thread(), clnt_pcreateerror(), clnt_perrno(), clnt_perror(), clnt_vc_create(), clnt_vc_destroy(), CloseTrace(), CommandShell(), commentDebug(), compress(), compressedStreamEOF(), compressStream(), configError(), configparseerr(), ConvertCoffs(), convertHexCSVToHex(), convertHexToDWord(), ConvertStabs(), copyFileName(), copyfont(), crcError(), create_cache(), CreateOutputFile(), CreateSpecFile(), CreateTestDir(), CreateTestFile(), directedLine::cutoffPolygon(), dataconn(), DBG_check(), DbgHelpAddLineNumber(), DbgHelpAddStringToTable(), debug_error(), declare_stub_args(), decode_header(), decode_the_frame(), decodeA(), delete_registry_key(), disk_enum_devices(), display_dhcp_packet(), do_layer2(), do_rva(), do_test(), do_write_c_method_def(), DoDllRegisterServer(), DoDllUnregisterServer(), DoRegServer(), DoService(), DoUnregServer(), dprintf(), dump_tree(), dump_var_desc(), DumpCharacterFontData(), DumpFont(), dumpHex(), dumpStr(), dumptype(), DwExecIntruction(), elementDeclDebug(), encodeA(), FileReporter::end(), end_cplusplus_guard(), endDocumentDebug(), endElementDebug(), endElementNsDebug(), OpenGLSurfaceEvaluator::endmap2f(), endnetpath(), entityDeclDebug(), eprintf(), FileReporter::error(), Error(), error(), ErrorExit(), ErrorHook(), Slicer::evalStream(), ewmh_get_window_desktop(), ExecuteKill(), ExecuteTest(), expand_define(), expand_macro(), expand_special(), export_hkey(), export_registry_key(), externalSubsetDebug(), failure_errno(), failure_status(), fatal_error(), figurefiletype(), file_write(), fileClient(), fill_boot_desc(), find_lease(), find_match_at(), find_or_create_directory(), FindFonts(), fputcSocket(), fputSocket(), frame_buffercheck(), frame_cpu_opt(), free_variable(), FTC_MruNode_Prepend(), FTC_MruNode_Remove(), FTC_MruNode_Up(), FTPPerror(), gen_proxy(), gen_stub(), gen_stub_thunk(), Generate(), generate_one_directory(), generate_xa_rr_attributes(), generic_msg(), get_current_desktop(), get_current_workarea(), get_property_value(), getbits(), getclnthandle(), GetCmd(), getEntityDebug(), GetExportsFromFile(), getnetconfig(), getnetconfigent(), getnetid(), Getopt(), getopt(), getpacket(), getParameterEntityDebug(), getpublicandprivatekey(), gl_histsavefile(), gluNurbsSurface(), hasExternalSubsetDebug(), hasInternalSubsetDebug(), help(), HexDump(), hookup(), ignorableWhitespaceDebug(), III_get_side_info(), indent(), init_begin(), init_finish(), init_server(), InitConnectionInfo(), InitUserInfo(), insert_file_entry(), internalSubsetDebug(), ioError(), iso_connect(), isohybrid_error(), isohybrid_warning(), isStandaloneDebug(), Jobs(), kbd_c(), kbd_def(), kbd_h(), kbd_rc(), lhash_val_of_name_sys(), LIBXML_ATTR_FORMAT(), license(), light_fast_rgba(), light_fast_rgba_single(), light_rgba(), light_rgba_spec(), ListCmd(), LoadProc(), LocalChdirCmd(), LocalListCmd(), log_debug(), log_hexdump(), login(), logMess(), LogOpen(), LogXfer(), Ls(), Ls1(), LsC(), LsL(), lz_analyze_block(), lz_compress(), lzx_compress_block(), lzx_output_literal(), lzx_output_match(), lzx_write_bits(), lzx_write_compressed_literals(), lzx_write_compressed_tree(), macro_add_arg(), macro_add_expansion(), main(), make_listening_socket(), MakeArgv(), mallocFail(), MC_sweepY(), merge_remaining_entries(), MergeStabsAndCoffs(), FileReporter::message(), MlsCmd(), mmDumpMemInfo(), mmFreeMem(), mpg123_fmt(), mpg123_fmt_all(), mpg123_fmt_none(), msg(), msg_spy_find_next_msg(), mySignalCatcher(), mySIGSEGVorSIGBUScatcher(), names_dump(), nanox_event(), nc_perror(), netfinger(), next_marker(), normalize(), notationDeclDebug(), OnCreate(), OOM(), OpenBookmarkFile(), OpenCmd(), OpenMsg(), OpenTmpBookmarkFile(), OpenTrace(), out_params(), OutOfMemory(), outOfMemory(), output_if_debug(), output_message(), Output_stublabel(), OutputError(), OutputHeader_asmstub(), OutputHeader_def(), OutputHeader_stub(), OutputLine_asmstub(), OutputLine_def(), OutputLine_def_GCC(), OutputLine_def_MS(), OutputLine_stub(), override_version(), pad(), PageCmd(), panic(), parse_arguments(), parse_cmdlineargs(), parse_dhcp_options(), parse_new_id3(), parse_switches(), parseAndPrintFile(), ParseFile(), parsePath(), ParsePEHeaders(), pipeClient(), pipeServer(), PlotCharacter(), pop_buffer(), pp_add_macro(), pp_do_include(), pp_internal_error(), pp_pop_if(), pp_push_if(), PredictorPrintDir(), PreInit(), print(), print_access_mask(), print_condwait_status(), print_create_attributes(), print_disconnect_reason(), print_disposition(), print_dnsfail(), print_error(), print_file_id_both_dir_info(), print_hexbuf(), print_hexbuf_no_asci(), print_phase_basetype(), print_rpc_gss_sec(), print_share_mode(), print_sr_status_flags(), print_text_marker(), PrintHosts(), printline(), PrintName(), PrintNameTable(), printopts(), PrintStartupBanner(), FileReporter::printSummary(), PrintUsage(), process_comment(), process_data(), process_dhcp_packet(), process_extra(), process_file(), process_picture(), RequestHandler::process_request(), process_text(), processingInstructionDebug(), processRegEntry(), processRegLinesA(), ProcessRelocations(), processSetValue(), proclog(), FileReporter::progress(), promote_framename(), proxy_free_variables(), PrPhilBar(), PrSizeAndRateMeter(), PrStatBar(), PutBookmark(), PutCmd(), rdp2vnc_connect(), rdpsnd_process_negotiate(), read_frame(), read_header_file(), read_JPEG_file(), read_merging_directory(), read_password(), read_quant_tables(), read_rcfile(), read_stdin(), readError(), recvrequest(), redundant(), referenceDebug(), registerNode(), REGPROC_open_export_file(), REGPROC_print_error(), REGPROC_unescape_string(), release_lease(), resolveEntityDebug(), rpc_broadcast_exp(), WriterThread::Run(), RunBatch(), RunBookmarkEditor(), ruserpass(), SaveCurrentAsBookmark(), SavePrefs(), scan_directory_tree(), search_tree_file(), select_transform(), sendrequest(), SendTelnetInterrupt(), ServeOneClient(), Server(), ServiceCtrlHandler(), ServiceMain(), set_quant_slots(), set_sample_factors(), SetAnonPass(), SetAutoAscii(), SetAutoResume(), SetAutoSaveChangesToExistingBookmarks(), SetConfirmClose(), SetConnTimeout(), SetCtrlTimeout(), setDocumentLocatorDebug(), SetLogSize(), SetNoAds(), SetOneTimeMessages(), SetPager(), SetPassive(), SetRedialDelay(), SetSavePasswords(), SetSOBufsize(), SetStartupURL(), setup_tables(), setValue(), SetXferTimeout(), SetXtermTitle(), SetXtTitle(), showFileNames(), showVersion(), sic_list(), skip_junk(), sort_n_finish(), SpoolGetCmd(), SpoolPutCmd(), SpoolX(), start_cplusplus_guard(), startDocumentDebug(), startElementDebug(), startElementNsDebug(), StartServiceThread(), sunboot_write(), susage(), svc_getreqset(), svcauth_gss_accept_sec_context(), sweepY(), synth_ntom_set_step(), sysfail(), TCPFree(), TCPMalloc(), test_decodeNameConstraints(), test_fprintf(), testf(), testSAX(), testStream(), textAsk(), textDelta(), textStep(), TIFFPrintDirectory(), TIM_SORT_RESIZE(), tooManyBlocks(), Trace(), try_query_param(), try_start_stop(), tx_compress_dxtn(), ui_create_window(), ui_draw_text(), uncompress(), uncompressStream(), unimpl(), unixErrorHandler(), unixWarningHandler(), unparsedEntityDeclDebug(), UpdateSCMStatus(), RequestHandler::urldec(), usage(), Usage(), usageerr(), user(), userlist(), verr(), verrx(), vwarn(), vwarnx(), WaitForConnect(), warning(), wave_out_close(), wave_out_open(), wave_out_set_format(), wave_out_volume(), wave_out_write(), wetwork(), Win32ErrorHandler(), Win32WarningHandler(), WindowThreadProc(), WinMain(), wmain(), write_args(), write_client(), write_client_call_routine(), write_client_func_decl(), write_client_ifaces(), write_client_lease(), write_client_routines(), write_clientinterfacedecl(), write_coclass(), write_coclass_forward(), write_com_interface_end(), write_com_interface_start(), write_context_handle_rundowns(), write_cpp_method_def(), write_declaration(), write_dispatchtable(), write_dlldata_list(), write_endpoints(), write_enums(), write_exceptions(), write_expr(), write_expr_eval_routine_list(), write_expr_eval_routines(), write_fields(), write_files(), write_formatstringsdecl(), write_forward(), write_full_pointer_free(), write_full_pointer_init(), write_func_param_struct(), write_function_proto(), write_function_stub(), write_generic_handle_routines(), write_guid(), write_header(), write_header_stmts(), write_id_data(), write_id_guid(), write_if_change(), write_implicithandledecl(), write_import(), write_inline_wrappers(), write_ip_tfs(), write_JPEG_file(), write_library(), write_line(), write_local_stubs(), write_locals(), write_method_macro(), write_method_proto(), write_nonsimple_pointer(), write_one_file(), write_packet(), write_parameter_conf_or_var_exprs(), write_parameters_init(), write_proxies(), write_proxy(), write_proxy_routines(), write_remoting_arg(), write_rpc_interface_end(), write_rpc_interface_start(), write_server(), write_server_stmts(), write_serverinterfacedecl(), write_stdout(), write_stub_methods(), write_stubdescdecl(), write_stubdescriptor(), write_type_definition(), write_type_left(), write_type_right(), write_type_v(), write_typedef(), write_user_quad_list(), write_user_types(), write_uuid_decl(), directedLine::writeAllPolygons(), WriteBmLine(), WriteDefaultFirewallPrefs(), writeError(), WriteTable(), xmlCheckVersion(), xmlDictAddQString(), xmlDictAddString(), xmlDictCreate(), xmlDictCreateSub(), xmlDictGrow(), xmlInitializeGlobalState(), xmllintExternalEntityLoader(), xmlMemDisplay(), xmlMemDisplayLast(), xmlMemShow(), xmlPrintURI(), xprt_register(), xsltDebugDumpExtensions(), xsltDebugDumpExtensionsCallback(), xsltDebugDumpExtModulesCallback(), xsltInitAllDocKeys(), xsltInitCtxtKey(), xsltInitCtxtKeys(), xsltInitDocKeyTable(), xsltPatPushState(), xsltSaveProfiling(), xsltTestCompMatch(), yy_fatal_error(), and yyparse().

Referenced by ConWrite(), and main().

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

Referenced by WriteIniFile().

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

Referenced by main(), and xfwrite().

_Check_return_opt_ _CRTIMP int __cdecl fsetpos ( _Inout_ FILE _File,
_In_ const fpos_t _Pos 
)
_Check_return_ _CRTIMP int __cdecl fwscanf ( _Inout_ FILE _File,
_In_z_ _Scanf_format_string_ const wchar_t _Format,
  ... 
)

Definition at line 3627 of file file.c.

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

3628 {
3629  return fgetc(stdin);
3630 }
FILE * stdin
int CDECL fgetc(FILE *file)
Definition: file.c:2886
_CRTIMP char* __cdecl gets ( char _Buffer)

Definition at line 3643 of file file.c.

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().

3644 {
3645  int cc;
3646  char * buf_start = buf;
3647 
3648  _lock_file(stdin);
3649  for(cc = fgetc(stdin); cc != EOF && cc != '\n';
3650  cc = fgetc(stdin))
3651  if(cc != '\r') *buf++ = (char)cc;
3652 
3653  *buf = '\0';
3654 
3655  TRACE("got '%s'\n", buf_start);
3657  return buf_start;
3658 }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
void CDECL _unlock_file(FILE *file)
Definition: file.c:1205
FILE * stdin
unsigned char
Definition: typeof.h:27
#define TRACE(s)
Definition: solgame.cpp:4
void CDECL _lock_file(FILE *file)
Definition: file.c:1193
uint32_t cc
Definition: isohybrid.c:75
#define EOF
Definition: stdio.h:24
int CDECL fgetc(FILE *file)
Definition: file.c:2886
_Check_return_opt_ _CRTIMP int __cdecl putw ( _In_ int  _Ch,
_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 
)

Referenced by _tmain(), and main().

int __cdecl snprintf ( char s,
size_t  n,
const char format,
  ... 
)
_CRTIMP int __cdecl snwprintf ( wchar_t s,
size_t  n,
const wchar_t format,
  ... 
)
int __cdecl sprintf ( char _Dest,
const char _Format,
  ... 
)

Definition at line 761 of file utprint.c.

765 {
766  va_list Args;
767  int Length;
768 
769 
770  va_start (Args, Format);
771  Length = vsnprintf (String, ACPI_UINT32_MAX, Format, Args);
772  va_end (Args);
773 
774  return (Length);
775 }
int vsnprintf(char *String, ACPI_SIZE Size, const char *Format, va_list Args)
Definition: utprint.c:433
CHAR16 * String
Definition: acefiex.h:201
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
char ** Args
Definition: acdebug.h:342
#define ACPI_UINT32_MAX
Definition: actypes.h:66
VOID UINTN Length
Definition: acefiex.h:744
#define va_start(ap, A)
Definition: acmsvcex.h:91
_Check_return_ _CRTIMP int __cdecl sscanf ( _In_z_ const char _Src,
_In_z_ _Scanf_format_string_ const char _Format,
  ... 
)

Referenced by __rpc_get_time_offset(), Addhost(), ata_bblk(), cache_entry_create(), check_version(), CheckForNewV3User(), convertHexToDWord(), create_sic(), CRYPT_AsnEncodeOid(), Deletehost(), DissectArcPath2(), doChild(), DoCOMPANY(), DoCOPYRIGHT(), DoDESCRIPTIONS(), DoKBD(), DoKEYNAME(), DoLANGUAGENAMES(), DoLAYOUT(), DoLOCALENAME(), DoSHIFTSTATE(), DoVERSION(), error(), find_typelib_key(), FTP_DoPassive(), FTP_ParseNextFile(), FTPFileSize(), getCharacterInfo(), getit(), GetOptUlong(), getRevision(), GetStartSpoolDate(), getTBRevision(), getVKNum(), handle_address_cmd(), handle_escape_cmd(), initconn(), is_float(), is_guid(), is_integer(), isOffset(), jinit_memory_mgr(), load_persistent_cookie(), main(), match_mod(), modtime(), my_atoi(), netname2user(), ntlm_AcceptSecurityContext(), ntlm_InitializeSecurityContextW(), OpenBookmarkFile(), optionParse(), override_version(), parse_arguments(), parse_list_response(), parse_reg_reservation(), parse_stat_response(), parse_switches(), parse_uidl_response(), ParseHostLine(), Passive(), regscan(), set_quality_ratings(), set_quant_slots(), set_sample_factors(), SkipLines(), SLTG_DoRefs(), START_TEST(), system_icmp(), Test_ifuncs(), test_listbox_dlgdir(), test_listbox_LB_DIR(), test_retval(), test_strdate(), test_strtime(), TLB_GUIDFromString(), translate_line(), uaddr_to_sockaddr(), UnDate(), UnDosLine(), UnLslRLine(), UnMDTMDate(), UnMlsT(), updateSvnlog(), URLCopyToken(), RequestHandler::urldec(), UXTHEME_RestoreSystemMetrics(), while(), wined3d_adapter_init_gl_caps(), xmlInitMemory(), and xsltNumberComp().

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

Referenced by get_subtests(), and run_tests().

Definition at line 3912 of file file.c.

Referenced by CCFDATAStorage::Create(), create_temp_binary(), jpeg_open_backing_store(), open_file_test(), patch_file(), test_color_contexts(), test_CreateDirectoryA(), test_CryptCATAdminAddRemoveCatalog(), test_GetNamedSecurityInfoA(), test_retrieveObjectByUrl(), test_SetupCopyOEMInf(), testInstallClass(), and CCFDATAStorage::Truncate().

3913 {
3914  char *filename = tmpnam(NULL);
3915  int fd;
3916  FILE* file = NULL;
3917 
3918  LOCK_FILES();
3919  fd = _open(filename, _O_CREAT | _O_BINARY | _O_RDWR | _O_TEMPORARY,
3920  _S_IREAD | _S_IWRITE);
3921  if (fd != -1 && (file = msvcrt_alloc_fp()))
3922  {
3923  if (msvcrt_init_fp(file, fd, _IORW) == -1)
3924  {
3925  file->_flag = 0;
3926  file = NULL;
3927  }
3928  else file->_tmpfname = _strdup(filename);
3929  }
3930 
3931  if(fd != -1 && !file)
3932  _close(fd);
3933  UNLOCK_FILES();
3934  return file;
3935 }
#define _S_IREAD
Definition: cabinet.h:34
#define _O_CREAT
Definition: cabinet.h:46
char * _tmpfname
Definition: mbstring.h:27
#define _strdup
Definition: debug_ros.c:7
const char * filename
Definition: ioapi.h:135
static int msvcrt_init_fp(FILE *file, int fd, unsigned stream_flags)
Definition: file.c:382
#define _O_RDWR
Definition: cabinet.h:39
smooth NULL
Definition: ftsmooth.c:416
#define _S_IWRITE
Definition: cabinet.h:33
#define UNLOCK_FILES()
Definition: file.c:156
int CDECL _close(int fd)
Definition: file.c:931
const char file[]
Definition: icontest.c:11
#define _O_BINARY
Definition: cabinet.h:51
#define LOCK_FILES()
Definition: file.c:155
int _flag
Definition: mbstring.h:23
static HANDLE fd
Definition: io.c:55
int CDECL _open(const char *path, int flags,...)
Definition: file.c:2001
#define _O_TEMPORARY
Definition: cabinet.h:44
static FILE * msvcrt_alloc_fp(void)
Definition: file.c:360
#define _IORW
Definition: stdio.h:136
char *CDECL tmpnam(char *s)
Definition: file.c:3848
Definition: fci.c:126
_CRTIMP char* __cdecl tmpnam ( _Pre_maybenull_ _Post_z_ char _Buffer)
_Check_return_opt_ _CRTIMP wint_t __cdecl ungetwc ( _In_ wint_t  _Ch,
_Inout_ FILE _File 
)
_Check_return_ _CRTIMP int __cdecl unlink ( _In_z_ const char _Filename)
int __cdecl vfscanf ( FILE *__restrict__  fp,
const char Format,
va_list  argp 
)
_Check_return_opt_ _CRTIMP int __cdecl vfwprintf ( _Inout_ FILE _File,
_In_z_ _Printf_format_string_ const wchar_t _Format,
va_list  _ArgList 
)

Referenced by _vcwprintf(), fwprintf(), and vwprintf().

_CRTIMP int __cdecl vfwscanf ( FILE ,
const wchar_t ,
va_list   
)
int __cdecl vscanf ( const char *__restrict__  Format,
va_list  argp 
)
_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 
)
__CRT_INLINE int __cdecl vsnwprintf ( wchar_t s,
size_t  n,
const wchar_t format,
va_list  arg 
)

Definition at line 930 of file stdio.h.

Referenced by EfiPrintf(), pSetupDebugPrint(), BtrfsRecv::ShowRecvError(), BtrfsSend::ShowSendError(), and ShowStringError().

931  {
932 #ifdef _MSC_VER
933 #pragma warning(push)
934 #pragma warning(disable:28719) /* disable banned api usage warning */
935 #endif /* _MSC_VER */
936  return _vsnwprintf(s,n,format,arg);
937 #ifdef _MSC_VER
938 #pragma warning(pop)
939 #endif /* _MSC_VER */
940  }
GLuint n
Definition: s_context.h:57
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
GLdouble s
Definition: gl.h:2039
_CRTIMP int __cdecl _vsnwprintf(wchar_t *_Dest, size_t _Count, const wchar_t *_Format, va_list _Args)
int __cdecl vsscanf ( const char *__restrict__  _Str,
const char *__restrict__  Format,
va_list  argp 
)
_CRTIMP int __cdecl vswscanf ( const wchar_t ,
const wchar_t ,
va_list   
)
_CRTIMP int __cdecl vwscanf ( const wchar_t ,
va_list   
)

Referenced by wmain().

Variable Documentation

__MINGW_EXTENSION typedef long long _off64_t

Definition at line 90 of file stdio.h.

__MINGW_EXTENSION typedef __int64 fpos_t

Definition at line 116 of file stdio.h.

Referenced by test_filbuf(), test_fileops(), and test_write_flush_size().

__MINGW_EXTENSION typedef long long off64_t

Definition at line 92 of file stdio.h.