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

VxWorks

开发平台:

C/C++

  1. /* fioLib.h - header for formatted i/o library */
  2. /* Copyright 1984-1995 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01o,14may95,p_m  added fioLibInit() prototype.
  7. 01n,20jul92,jmm  removed declaration of itob()
  8. 01m,13nov92,dnw  made include of stdarg.h conditional on __STDC__
  9. 01l,22sep92,rrr  added support for c++
  10. 01k,02aug92,jcf  added printExc().
  11. 01j,04jul92,jcf  cleaned up.
  12. 01i,26may92,rrr  the tree shuffle
  13. 01h,04dec91,rrr  some more ansi cleanup.
  14. 01g,04oct91,rrr  passed through the ansification filter
  15.   -changed includes to have absolute path from h/
  16.   -fixed #else and #endif
  17.   -changed copyright notice
  18. 01f,24mar91,del  added include of varargs.h.
  19. 01e,05oct90,shl  added ANSI function prototypes.
  20.                  added copyright notice.
  21.                  made #endif ANSI style.
  22. 01d,07aug90,shl  added INCfioLibh to #endif.
  23. 01c,10jun90,dnw  removed S_fioLib_UNEXPECTED_EOF (no longer returned by fioRead)
  24.  This file is now just a place holder!
  25. 01b,24dec86,gae  changed stsLib.h to vwModNum.h.
  26. 01a,07aug84,ecs  written
  27. */
  28. #ifndef __INCfioLibh
  29. #define __INCfioLibh
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. #if defined(__STDC__) || defined(__cplusplus)
  34. #include "stdarg.h"
  35. #endif /* __STDC__ */
  36. /* function declarations */
  37. #if defined(__STDC__) || defined(__cplusplus)
  38. extern void  fioLibInit (void);
  39. extern void  fioFltInstall (FUNCPTR formatRtn, FUNCPTR scanRtn);
  40. extern int  fioFormatV (const char *fmt, va_list vaList,
  41.     FUNCPTR outRoutine, int outarg);
  42. extern char * nindex (char *buffer, int c, int n);
  43. extern int  fioScanV (const char *fmt, FUNCPTR getRtn, int getArg,
  44.   int *pUnget, va_list vaList);
  45. extern int  fioRead (int fd, char *buffer, int maxbytes);
  46. extern int  fioRdString (int fd, char string[], int maxbytes);
  47. extern void  printExc (char* fmt, int arg1, int arg2, int arg3,
  48.   int arg4, int arg5);
  49. #else
  50. extern void  fioLibInit ();
  51. extern void  fioFltInstall ();
  52. extern int  fioFormatV ();
  53. extern char * nindex ();
  54. extern int  fioScanV ();
  55. extern int  fioRead ();
  56. extern int  fioRdString ();
  57. extern void  printExc ();
  58. #endif /* __STDC__ */
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62. #endif /* __INCfioLibh */