30 extern int _EXFUN(__svfscanf_r,(
struct _reent *,FILE *, _CONST
char *,va_list));
31 extern FILE *_EXFUN(__sfp,(
struct _reent *));
32 extern int _EXFUN(__sflags,(
struct _reent *,_CONST
char*,
int*));
33 extern int _EXFUN(__srefill,(FILE *));
34 extern _READ_WRITE_RETURN_TYPE _EXFUN(__sread,(
void *,
char *,
int));
35 extern _READ_WRITE_RETURN_TYPE _EXFUN(__swrite,(
void *,
char const *,
int));
36 extern _fpos_t _EXFUN(__sseek,(
void *, _fpos_t,
int));
37 extern int _EXFUN(__sclose,(
void *));
38 extern int _EXFUN(__stextmode,(
int));
39 extern void _EXFUN(__sinit,(
struct _reent *));
40 extern void _EXFUN(_cleanup_r,(
struct _reent *));
41 extern void _EXFUN(__smakebuf,(FILE *));
42 extern int _EXFUN(_fwalk,(
struct _reent *,
int (*)(FILE *)));
43 struct _glue * _EXFUN(__sfmoreglue,(
struct _reent *,
int n));
44 extern int _EXFUN(__srefill,(FILE *fp));
48 #define CHECK_INIT(fp) \
51 if (!_REENT->__sdidinit) \
58 #define cantwrite(fp) \
59 ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && \
65 #define HASUB(fp) ((fp)->_ub._base != NULL)
66 #define FREEUB(fp) { \
67 if ((fp)->_ub._base != (fp)->_ubuf) \
68 _free_r(_REENT, (char *)(fp)->_ub._base); \
69 (fp)->_ub._base = NULL; \
74 #define HASLB(fp) ((fp)->_lb._base != NULL)
75 #define FREELB(fp) { _free_r(_REENT,(char *)(fp)->_lb._base); (fp)->_lb._base = NULL; }
79 char *_EXFUN(_dcvt,(
struct _reent *,
char *,
double,
int,
int,
char,
int));
80 char *_EXFUN(_sicvt,(
char *,
short,
char));
81 char *_EXFUN(_icvt,(
char *,
int,
char));
82 char *_EXFUN(_licvt,(
char *,
long,
char));
84 char *_EXFUN(_llicvt,(
char *,
long long,
char));
87 #define CVT_BUF_SIZE 128