1c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania/* -*- c++ -*- */ 2c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania/* 3c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * Copyright (C) 2009 The Android Open Source Project 4c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * All rights reserved. 5c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * 6c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * Redistribution and use in source and binary forms, with or without 7c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * modification, are permitted provided that the following conditions 8c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * are met: 9c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * * Redistributions of source code must retain the above copyright 10c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * notice, this list of conditions and the following disclaimer. 11c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * * Redistributions in binary form must reproduce the above copyright 12c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * notice, this list of conditions and the following disclaimer in 13c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * the documentation and/or other materials provided with the 14c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * distribution. 15c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * 16c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 19c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 20c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 21c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 22c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 23c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 24c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 26c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * SUCH DAMAGE. 28c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania */ 29c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania 30c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania#ifndef BIONIC_LIBSTDCPP_INCLUDE_CSTDIO__ 31c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania#define BIONIC_LIBSTDCPP_INCLUDE_CSTDIO__ 32c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania 33c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania/* 34c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania * Standard C++ Library wrapper around the C stdio.h header file. 35c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania */ 36c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania#include <cstddef> 37c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania#include <stdio.h> 38c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania 390621a279adfb981ea1f0564e7fc8280cda78e043David 'Digit' Turnerextern "C++" { 400621a279adfb981ea1f0564e7fc8280cda78e043David 'Digit' Turner 41c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catanianamespace std { 42c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::FILE; 43c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fpos_t; 44c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania 45c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::clearerr; 46c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fclose; 47c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::feof; 48c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::ferror; 49c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fflush; 50c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fgetc; 51c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fgetpos; 52c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fgets; 53c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fopen; 54c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fprintf; 55c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fputc; 56c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fputs; 57c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fread; 58c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::freopen; 59c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fscanf; 60c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fseek; 61c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fsetpos; 62c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::ftell; 63c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::fwrite; 64c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::getc; 65c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::getchar; 669635046e53e14ff44348853a9cacdffd444b35aeDan Albert#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L 67c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::gets; 689635046e53e14ff44348853a9cacdffd444b35aeDan Albert#endif 69c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::perror; 70c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::printf; 71c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::putc; 72c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::putchar; 73c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::puts; 74c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::remove; 75c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::rename; 76c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::rewind; 77c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::scanf; 78c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::setbuf; 79c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::setvbuf; 80c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::sprintf; 81c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::sscanf; 82c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::tmpfile; 83c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::tmpnam; 84c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::ungetc; 85c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::vfprintf; 86c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::vprintf; 87c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::vsprintf; 88c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania 89c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::snprintf; 90c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::vfscanf; 91c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::vscanf; 92c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::vsnprintf; 93c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Cataniausing ::vsscanf; 94c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania} // namespace std 95c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania 960621a279adfb981ea1f0564e7fc8280cda78e043David 'Digit' Turner} // extern C++ 970621a279adfb981ea1f0564e7fc8280cda78e043David 'Digit' Turner 98c2fc66958cf2ec46dcea030ff51d1c340d70dd6aNiko Catania#endif // BIONIC_LIBSTDCPP_INCLUDE_CSTDIO__ 99