Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:14:08

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 /*
0011     stdio.h synopsis
0012 
0013 Macros:
0014 
0015     BUFSIZ
0016     EOF
0017     FILENAME_MAX
0018     FOPEN_MAX
0019     L_tmpnam
0020     NULL
0021     SEEK_CUR
0022     SEEK_END
0023     SEEK_SET
0024     TMP_MAX
0025     _IOFBF
0026     _IOLBF
0027     _IONBF
0028     stderr
0029     stdin
0030     stdout
0031 
0032 Types:
0033 
0034 FILE
0035 fpos_t
0036 size_t
0037 
0038 int remove(const char* filename);
0039 int rename(const char* old, const char* new);
0040 FILE* tmpfile(void);
0041 char* tmpnam(char* s);
0042 int fclose(FILE* stream);
0043 int fflush(FILE* stream);
0044 FILE* fopen(const char* restrict filename, const char* restrict mode);
0045 FILE* freopen(const char* restrict filename, const char * restrict mode,
0046               FILE * restrict stream);
0047 void setbuf(FILE* restrict stream, char* restrict buf);
0048 int setvbuf(FILE* restrict stream, char* restrict buf, int mode, size_t size);
0049 int fprintf(FILE* restrict stream, const char* restrict format, ...);
0050 int fscanf(FILE* restrict stream, const char * restrict format, ...);
0051 int printf(const char* restrict format, ...);
0052 int scanf(const char* restrict format, ...);
0053 int snprintf(char* restrict s, size_t n, const char* restrict format, ...);    // C99
0054 int sprintf(char* restrict s, const char* restrict format, ...);
0055 int sscanf(const char* restrict s, const char* restrict format, ...);
0056 int vfprintf(FILE* restrict stream, const char* restrict format, va_list arg);
0057 int vfscanf(FILE* restrict stream, const char* restrict format, va_list arg);  // C99
0058 int vprintf(const char* restrict format, va_list arg);
0059 int vscanf(const char* restrict format, va_list arg);                          // C99
0060 int vsnprintf(char* restrict s, size_t n, const char* restrict format,         // C99
0061               va_list arg);
0062 int vsprintf(char* restrict s, const char* restrict format, va_list arg);
0063 int vsscanf(const char* restrict s, const char* restrict format, va_list arg); // C99
0064 int fgetc(FILE* stream);
0065 char* fgets(char* restrict s, int n, FILE* restrict stream);
0066 int fputc(int c, FILE* stream);
0067 int fputs(const char* restrict s, FILE* restrict stream);
0068 int getc(FILE* stream);
0069 int getchar(void);
0070 char* gets(char* s);  // removed in C++14
0071 int putc(int c, FILE* stream);
0072 int putchar(int c);
0073 int puts(const char* s);
0074 int ungetc(int c, FILE* stream);
0075 size_t fread(void* restrict ptr, size_t size, size_t nmemb,
0076              FILE* restrict stream);
0077 size_t fwrite(const void* restrict ptr, size_t size, size_t nmemb,
0078               FILE* restrict stream);
0079 int fgetpos(FILE* restrict stream, fpos_t* restrict pos);
0080 int fseek(FILE* stream, long offset, int whence);
0081 int fsetpos(FILE*stream, const fpos_t* pos);
0082 long ftell(FILE* stream);
0083 void rewind(FILE* stream);
0084 void clearerr(FILE* stream);
0085 int feof(FILE* stream);
0086 int ferror(FILE* stream);
0087 void perror(const char* s);
0088 */
0089 
0090 #if defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0091 #  include <__cxx03/stdio.h>
0092 #else
0093 #  include <__config>
0094 
0095 #  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0096 #    pragma GCC system_header
0097 #  endif
0098 
0099 // The inclusion of the system's <stdio.h> is intentionally done once outside of any include
0100 // guards because some code expects to be able to include the underlying system header multiple
0101 // times to get different definitions based on the macros that are set before inclusion.
0102 #  if __has_include_next(<stdio.h>)
0103 #    include_next <stdio.h>
0104 #  endif
0105 
0106 #  ifndef _LIBCPP_STDIO_H
0107 #    define _LIBCPP_STDIO_H
0108 
0109 #    ifdef __cplusplus
0110 
0111 #      undef getc
0112 #      undef putc
0113 #      undef clearerr
0114 #      undef feof
0115 #      undef ferror
0116 #      undef putchar
0117 #      undef getchar
0118 
0119 #    endif // __cplusplus
0120 #  endif   // _LIBCPP_STDIO_H
0121 
0122 #endif // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)