📄 stdiosupp.hxx
字号:
#ifndef CYGONCE_LIBC_CLIBINCL_STDIOSUPP_HXX#define CYGONCE_LIBC_CLIBINCL_STDIOSUPP_HXX//========================================================================//// stdiosupp.hxx//// Support for C library standard I/O routines////========================================================================//####COPYRIGHTBEGIN####//// -------------------------------------------// The contents of this file are subject to the Cygnus eCos Public License// Version 1.0 (the "License"); you may not use this file except in// compliance with the License. You may obtain a copy of the License at// http://sourceware.cygnus.com/ecos// // Software distributed under the License is distributed on an "AS IS"// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the// License for the specific language governing rights and limitations under// the License.// // The Original Code is eCos - Embedded Cygnus Operating System, released// September 30, 1998.// // The Initial Developer of the Original Code is Cygnus. Portions created// by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved.// -------------------------------------------////####COPYRIGHTEND####//========================================================================//#####DESCRIPTIONBEGIN####//// Author(s): jlarmour// Contributors: jlarmour// Date: 1998-02-13// Purpose: // Description: // Usage: #include "clibincl/stdiosupp.hxx"////####DESCRIPTIONEND####////========================================================================// CONFIGURATION#include <pkgconf/libc.h> // Configuration header// Include the C library?#if defined(CYGPKG_LIBC) && defined(CYGPKG_LIBC_STDIO)// INCLUDES#include <cyg/infra/cyg_type.h> // common type definitions and support#include <stddef.h> // NULL and size_t from compiler#include <stdarg.h> // va_list from compiler#include <stdio.h> // Main standard I/O header#include <cyg/io/devtab.h> // Device table#include "clibincl/stream.hxx" // Cyg_StdioStream#include <errno.h> // Cyg_ErrNo// FUNCTION PROTOTYPES//========================================================================// Miscellaneous support functionsexternC cyg_io_handle_tCyg_libc_stdio_find_filename( const char *filename );externC Cyg_ErrNocyg_libc_stdio_flush_all_but( Cyg_StdioStream *not_this_stream );//========================================================================// ISO C 7.9.5 File access functionsexternC int_fclose( FILE * /* stream */ );externC int_fflush( FILE * /* stream */ );externC FILE *_fopen( const char * /* filename */, const char * /* mode */ );externC FILE *_freopen( const char * /* filename */, const char * /* mode */, FILE * /* stream */ );externC void_setbuf( FILE * /* stream */, char * /* buffer */ );externC int_setvbuf( FILE * /* stream */, char * /* buffer */, int /* mode */, size_t /* size */ );//========================================================================// ISO C 7.9.6 Formatted input/output functionsexternC int_fprintf( FILE * /* stream */, const char * /* format */, ... );externC int_fscanf( FILE * /* stream */, const char * /* format */, ... );externC int_printf( const char * /* format */, ... );externC int_scanf( const char * /* format */, ... );externC int_sprintf( char * /* str */, const char * /* format */, ... );externC int_sscanf( const char * /* str */, const char * /* format */, ... );externC int_vfprintf( FILE * /* stream */, const char * /* format */, va_list /* args */ );externC int_vprintf( const char * /* format */, va_list /* args */ );externC int_vsprintf( char * /* str */, const char * /* format */, va_list /* args */ );//========================================================================// ISO C 7.9.7 Character input/output functionsexternC int_fgetc( FILE * /* stream */ );externC char *_fgets( char * /* str */, int /* length */, FILE * /* stream */ );externC int_fputc( int /* c */, FILE * /* stream */ );externC int_fputs( const char * /* str */, FILE * /* stream */ );externC char *_gets( char * );externC int_puts( const char * /* str */ );externC int_ungetc( int /* c */, FILE * /* stream */ );//========================================================================// ISO C 7.9.8 Direct input/output functionsexternC size_t_fread( void * /* ptr */, size_t /* object_size */, size_t /* num_objects */, FILE * /* stream */ );externC size_t_fwrite( const void * /* ptr */, size_t /* object_size */, size_t /* num_objects */, FILE * /* stream */ );//========================================================================// ISO C 7.9.10 Error-handling functionsexternC void_clearerr( FILE * /* stream */ );externC int_feof( FILE * /* stream */ );externC int_ferror( FILE * /* stream */ );externC void_perror( const char * /* prefix_str */ );//========================================================================// Other non-ISO C functionsexternC int_fnprintf( FILE * /* stream */, size_t /* length */, const char * /* format */, ... );externC int_snprintf( char * /* str */, size_t /* length */, const char * /* format */, ... );externC int_vfnprintf( FILE * /* stream */, size_t /* length */, const char * /* format */, va_list /* args */ );externC int_vsnprintf( char * /* str */, size_t /* length */, const char * /* format */, va_list /* args */ );externC int_vscanf( const char * /* format */, va_list /* args */ );externC int_vsscanf( const char * /* str */, const char * /* format */, va_list /* args */ );externC int_vfscanf( FILE * /* stream */, const char * /* format */, va_list /* args */ );#endif // if defined(CYGPKG_LIBC) && defined(CYGPKG_LIBC_STDIO)#endif // CYGONCE_LIBC_CLIBINCL_STDIOSUPP_HXX multiple inclusion protection// EOF stdiosupp.hxx
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -