loc_incl.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * loc_incl.h - local include file for stdio library
  3. */
  4. /* $Header$ */
  5. #include <stdio.h>
  6. #define fileno(p) ((p)->_fd)
  7. #define io_testflag(p,x) ((p)->_flags & (x))
  8. #include <stdarg.h>
  9. int _doprnt(const char *format, va_list ap, FILE *stream);
  10. int _doscan(FILE * stream, const char *format, va_list ap);
  11. char *_i_compute(unsigned long val, int base, char *s, int nrdigits);
  12. void __cleanup(void);
  13. FILE *popen(const char *command, const char *type);
  14. FILE *fdopen(int fd, const char *mode);
  15. #ifndef NOFLOAT
  16. char *_pfloat(long double r, register char *s, int n, int flags);
  17. char *_pscien(long double r, register char *s, int n, int flags);
  18. char *_ecvt(long double value, int ndigit, int *decpt, int *sign);
  19. char *_fcvt(long double value, int ndigit, int *decpt, int *sign);
  20. char *_gcvt(long double value, int ndigit, char *s, int flags);
  21. #endif /* NOFLOAT */
  22. #define FL_LJUST 0x0001 /* left-justify field */
  23. #define FL_SIGN 0x0002 /* sign in signed conversions */
  24. #define FL_SPACE 0x0004 /* space in signed conversions */
  25. #define FL_ALT 0x0008 /* alternate form */
  26. #define FL_ZEROFILL 0x0010 /* fill with zero's */
  27. #define FL_SHORT 0x0020 /* optional h */
  28. #define FL_LONG 0x0040 /* optional l */
  29. #define FL_LONGDOUBLE 0x0080 /* optional L */
  30. #define FL_WIDTHSPEC 0x0100 /* field width is specified */
  31. #define FL_PRECSPEC 0x0200 /* precision is specified */
  32. #define FL_SIGNEDCONV 0x0400 /* may contain a sign */
  33. #define FL_NOASSIGN 0x0800 /* do not assign (in scanf) */
  34. #define FL_NOMORE 0x1000 /* all flags collected */