stdioInit.c
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* stdioLibInit.c - stdio library initialization */
  2. /* Copyright 1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01c,13oct92,jcf  removed stdioShow reference.
  7. 01b,24sep92,smb  removed POSIX extensions.
  8. 01a,05sep92,smb  written.
  9. */
  10. /*
  11. DESCRIPTION
  12. This file is used to include the stdio ANSI C library routines in the 
  13. VxWorks build. The routines are only included when this file is 
  14. included by usrConfig.c.
  15. NOMANUAL
  16. */
  17. #ifndef  __INCstdioLibInitc
  18. #define  __INCstdioLibInitc
  19. #include "vxWorks.h"
  20. #include "stdio.h"
  21. #undef clearerr /* #undef needed for the MIPS compiler */
  22. #undef feof
  23. #undef ferror
  24. #undef getchar
  25. #undef getc
  26. #undef putchar
  27. #undef putc
  28. VOIDFUNCPTR stdioFiles[] =
  29.     {
  30.     (VOIDFUNCPTR) clearerr,
  31.     (VOIDFUNCPTR) fclose,
  32.     (VOIDFUNCPTR) feof,
  33.     (VOIDFUNCPTR) ferror,
  34.     (VOIDFUNCPTR) fflush,
  35.     (VOIDFUNCPTR) fgetc,
  36.     (VOIDFUNCPTR) fgetpos,
  37.     (VOIDFUNCPTR) fgets,
  38.     (VOIDFUNCPTR) fopen,
  39.     (VOIDFUNCPTR) fprintf,
  40.     (VOIDFUNCPTR) fputc,
  41.     (VOIDFUNCPTR) fputs,
  42.     (VOIDFUNCPTR) fread,
  43.     (VOIDFUNCPTR) freopen,
  44.     (VOIDFUNCPTR) fscanf,
  45.     (VOIDFUNCPTR) fseek,
  46.     (VOIDFUNCPTR) fsetpos,
  47.     (VOIDFUNCPTR) ftell,
  48.     (VOIDFUNCPTR) fwrite,
  49.     (VOIDFUNCPTR) getc,
  50.     (VOIDFUNCPTR) getchar,
  51.     (VOIDFUNCPTR) gets,
  52.     (VOIDFUNCPTR) perror,
  53.     (VOIDFUNCPTR) putc,
  54.     (VOIDFUNCPTR) putchar,
  55.     (VOIDFUNCPTR) puts,
  56.     (VOIDFUNCPTR) rewind,
  57.     (VOIDFUNCPTR) scanf,
  58.     (VOIDFUNCPTR) setbuf,
  59.     (VOIDFUNCPTR) setvbuf,
  60.     (VOIDFUNCPTR) tmpfile,
  61.     (VOIDFUNCPTR) tmpnam,
  62.     (VOIDFUNCPTR) ungetc,
  63.     (VOIDFUNCPTR) vfprintf,
  64.     (VOIDFUNCPTR) fdopen,
  65.     (VOIDFUNCPTR) fileno,
  66. #if _EXTENSION_WRS /* undef for ANSI */
  67.     (VOIDFUNCPTR) getw,
  68.     (VOIDFUNCPTR) putw,
  69.     (VOIDFUNCPTR) setbuffer,
  70. #endif /* _EXTENSION_WRS */
  71.     };
  72. #endif /* __INCstdioLibInitc */