35 extern u_char *_EXFUN(__sccl, (
char *, u_char *fmt));
37 _EXFUN(__svfscanf_r, (
struct _reent *,
FILE *, _CONST
char *, va_list));
39 _EXFUN(__ssvfscanf_r, (
struct _reent *,
FILE *, _CONST
char *, va_list));
41 _EXFUN(__svfiscanf_r, (
struct _reent *,
FILE *, _CONST
char *, va_list));
43 _EXFUN(__ssvfiscanf_r, (
struct _reent *,
FILE *, _CONST
char *, va_list));
45 _svfprintf_r, (
struct _reent *,
FILE *,
const char *,
46 va_list) _ATTRIBUTE((__format__(__printf__, 3, 0))));
48 _svfiprintf_r, (
struct _reent *,
FILE *,
const char *,
49 va_list) _ATTRIBUTE((__format__(__printf__, 3, 0))));
50 extern FILE *_EXFUN(__sfp, (
struct _reent *) );
51 extern int _EXFUN(__sflags, (
struct _reent *, _CONST
char *,
int *) );
52 extern int _EXFUN(__srefill_r, (
struct _reent *,
FILE *) );
53 extern _READ_WRITE_RETURN_TYPE
54 _EXFUN(__sread, (
struct _reent *,
void *,
char *,
int) );
55 extern _READ_WRITE_RETURN_TYPE
56 _EXFUN(__swrite, (
struct _reent *,
void *,
const char *,
int) );
57 extern _fpos_t _EXFUN(__sseek, (
struct _reent *,
void *, _fpos_t,
int) );
58 extern int _EXFUN(__sclose, (
struct _reent *,
void *) );
59 extern int _EXFUN(__stextmode, (
int) );
60 extern _VOID _EXFUN(__sinit, (
struct _reent *) );
61 extern _VOID _EXFUN(_cleanup_r, (
struct _reent *) );
62 extern _VOID _EXFUN(__smakebuf_r, (
struct _reent *,
FILE *) );
63 extern int _EXFUN(_fwalk, (
struct _reent *,
int (*)(
FILE *)));
65 _EXFUN(_fwalk_reent, (
struct _reent *,
int (*)(
struct _reent *,
FILE *)));
66 struct _glue *_EXFUN(__sfmoreglue, (
struct _reent *,
int n));
67 extern int _EXFUN(__submore, (
struct _reent *,
FILE *) );
69 #ifdef __LARGE64_FILES 70 extern _fpos64_t _EXFUN(__sseek64, (
struct _reent *,
void *, _fpos64_t,
int) );
71 extern _READ_WRITE_RETURN_TYPE
72 _EXFUN(__swrite64, (
struct _reent *,
void *,
const char *,
int) );
78 #define CHECK_INIT(ptr, fp) \ 81 if ((ptr) && !(ptr)->__sdidinit) \ 83 if ((fp) == (FILE *) &__sf_fake_stdin) \ 84 (fp) = _stdin_r(ptr); \ 85 else if ((fp) == (FILE *) &__sf_fake_stdout) \ 86 (fp) = _stdout_r(ptr); \ 87 else if ((fp) == (FILE *) &__sf_fake_stderr) \ 88 (fp) = _stderr_r(ptr); \ 91 #define CHECK_INIT(ptr, fp) \ 94 if ((ptr) && !(ptr)->__sdidinit) \ 99 #define CHECK_STD_INIT(ptr) \ 102 if ((ptr) && !(ptr)->__sdidinit) \ 108 #define cantwrite(ptr, fp) \ 109 ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && \ 110 __swsetup_r(ptr, fp)) 115 #define HASUB(fp) ((fp)->_ub._base != NULL) 116 #define FREEUB(ptr, fp) \ 118 if ((fp)->_ub._base != (fp)->_ubuf) \ 119 _free_r(ptr, (char *) (fp)->_ub._base); \ 120 (fp)->_ub._base = NULL; \ 125 #define HASLB(fp) ((fp)->_lb._base != NULL) 126 #define FREELB(ptr, fp) \ 128 _free_r(ptr, (char *) (fp)->_lb._base); \ 129 (fp)->_lb._base = NULL; \ 136 #define ORIENT(fp, ori) \ 139 if (!((fp)->_flags & __SORD)) \ 141 (fp)->_flags |= __SORD; \ 143 (fp)->_flags2 |= __SWID; \ 145 (fp)->_flags2 &= ~__SWID; \ 151 char *_EXFUN(_dcvt, (
struct _reent *,
char *,
double,
int,
int,
char,
int) );
152 char *_EXFUN(_sicvt, (
char *,
short,
char) );
153 char *_EXFUN(_icvt, (
char *,
int,
char) );
154 char *_EXFUN(_licvt, (
char *,
long,
char) );
156 char *_EXFUN(_llicvt, (
char *,
long long,
char) );
159 #define CVT_BUF_SIZE 128 163 #ifdef __SINGLE_THREAD__ 164 #define __sfp_lock_acquire() 165 #define __sfp_lock_release() 166 #define __sinit_lock_acquire() 167 #define __sinit_lock_release() 169 _VOID _EXFUN(__sfp_lock_acquire, (_VOID));
170 _VOID _EXFUN(__sfp_lock_release, (_VOID));
171 _VOID _EXFUN(__sinit_lock_acquire, (_VOID));
172 _VOID _EXFUN(__sinit_lock_release, (_VOID));