|
|
|||
File indexing completed on 2026-05-03 08:13:46
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 #if defined(__need_FILE) || defined(__need___FILE) 0011 0012 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 0013 # pragma GCC system_header 0014 # endif 0015 0016 # include_next <stdio.h> 0017 0018 #elif !defined(_LIBCPP___CXX03_STDIO_H) 0019 # define _LIBCPP___CXX03_STDIO_H 0020 0021 /* 0022 stdio.h synopsis 0023 0024 Macros: 0025 0026 BUFSIZ 0027 EOF 0028 FILENAME_MAX 0029 FOPEN_MAX 0030 L_tmpnam 0031 NULL 0032 SEEK_CUR 0033 SEEK_END 0034 SEEK_SET 0035 TMP_MAX 0036 _IOFBF 0037 _IOLBF 0038 _IONBF 0039 stderr 0040 stdin 0041 stdout 0042 0043 Types: 0044 0045 FILE 0046 fpos_t 0047 size_t 0048 0049 int remove(const char* filename); 0050 int rename(const char* old, const char* new); 0051 FILE* tmpfile(void); 0052 char* tmpnam(char* s); 0053 int fclose(FILE* stream); 0054 int fflush(FILE* stream); 0055 FILE* fopen(const char* restrict filename, const char* restrict mode); 0056 FILE* freopen(const char* restrict filename, const char * restrict mode, 0057 FILE * restrict stream); 0058 void setbuf(FILE* restrict stream, char* restrict buf); 0059 int setvbuf(FILE* restrict stream, char* restrict buf, int mode, size_t size); 0060 int fprintf(FILE* restrict stream, const char* restrict format, ...); 0061 int fscanf(FILE* restrict stream, const char * restrict format, ...); 0062 int printf(const char* restrict format, ...); 0063 int scanf(const char* restrict format, ...); 0064 int snprintf(char* restrict s, size_t n, const char* restrict format, ...); // C99 0065 int sprintf(char* restrict s, const char* restrict format, ...); 0066 int sscanf(const char* restrict s, const char* restrict format, ...); 0067 int vfprintf(FILE* restrict stream, const char* restrict format, va_list arg); 0068 int vfscanf(FILE* restrict stream, const char* restrict format, va_list arg); // C99 0069 int vprintf(const char* restrict format, va_list arg); 0070 int vscanf(const char* restrict format, va_list arg); // C99 0071 int vsnprintf(char* restrict s, size_t n, const char* restrict format, // C99 0072 va_list arg); 0073 int vsprintf(char* restrict s, const char* restrict format, va_list arg); 0074 int vsscanf(const char* restrict s, const char* restrict format, va_list arg); // C99 0075 int fgetc(FILE* stream); 0076 char* fgets(char* restrict s, int n, FILE* restrict stream); 0077 int fputc(int c, FILE* stream); 0078 int fputs(const char* restrict s, FILE* restrict stream); 0079 int getc(FILE* stream); 0080 int getchar(void); 0081 char* gets(char* s); // removed in C++14 0082 int putc(int c, FILE* stream); 0083 int putchar(int c); 0084 int puts(const char* s); 0085 int ungetc(int c, FILE* stream); 0086 size_t fread(void* restrict ptr, size_t size, size_t nmemb, 0087 FILE* restrict stream); 0088 size_t fwrite(const void* restrict ptr, size_t size, size_t nmemb, 0089 FILE* restrict stream); 0090 int fgetpos(FILE* restrict stream, fpos_t* restrict pos); 0091 int fseek(FILE* stream, long offset, int whence); 0092 int fsetpos(FILE*stream, const fpos_t* pos); 0093 long ftell(FILE* stream); 0094 void rewind(FILE* stream); 0095 void clearerr(FILE* stream); 0096 int feof(FILE* stream); 0097 int ferror(FILE* stream); 0098 void perror(const char* s); 0099 */ 0100 0101 # include <__cxx03/__config> 0102 0103 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 0104 # pragma GCC system_header 0105 # endif 0106 0107 # if __has_include_next(<stdio.h>) 0108 # include_next <stdio.h> 0109 # endif 0110 0111 # ifdef __cplusplus 0112 0113 # undef getc 0114 # undef putc 0115 # undef clearerr 0116 # undef feof 0117 # undef ferror 0118 # undef putchar 0119 # undef getchar 0120 0121 # endif 0122 0123 #endif // _LIBCPP___CXX03_STDIO_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|