xref: /titanic_52/usr/src/cmd/ast/libast/i386/FEATURE/stdio (revision 906afcb89d0412cc073b95c2d701a804a8cdb62c)
1*906afcb8SAndy Fiddaman
2*906afcb8SAndy Fiddaman/* : : generated by proto : : */
3*906afcb8SAndy Fiddaman/* : : generated from contrib/ast/src/lib/libast/features/stdio by iffe version 2012-07-17 : : */
4*906afcb8SAndy Fiddaman
5*906afcb8SAndy Fiddaman#ifndef _SFSTDIO_H
6*906afcb8SAndy Fiddaman#if !defined(__PROTO__)
7*906afcb8SAndy Fiddaman#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
8*906afcb8SAndy Fiddaman#    if defined(__cplusplus)
9*906afcb8SAndy Fiddaman#      define __LINKAGE__	"C"
10*906afcb8SAndy Fiddaman#    else
11*906afcb8SAndy Fiddaman#      define __LINKAGE__
12*906afcb8SAndy Fiddaman#    endif
13*906afcb8SAndy Fiddaman#    define __STDARG__
14*906afcb8SAndy Fiddaman#    define __PROTO__(x)	x
15*906afcb8SAndy Fiddaman#    define __OTORP__(x)
16*906afcb8SAndy Fiddaman#    define __PARAM__(n,o)	n
17*906afcb8SAndy Fiddaman#    if !defined(__STDC__) && !defined(__cplusplus)
18*906afcb8SAndy Fiddaman#      if !defined(c_plusplus)
19*906afcb8SAndy Fiddaman#      	define const
20*906afcb8SAndy Fiddaman#      endif
21*906afcb8SAndy Fiddaman#      define signed
22*906afcb8SAndy Fiddaman#      define void		int
23*906afcb8SAndy Fiddaman#      define volatile
24*906afcb8SAndy Fiddaman#      define __V_		char
25*906afcb8SAndy Fiddaman#    else
26*906afcb8SAndy Fiddaman#      define __V_		void
27*906afcb8SAndy Fiddaman#    endif
28*906afcb8SAndy Fiddaman#  else
29*906afcb8SAndy Fiddaman#    define __PROTO__(x)	()
30*906afcb8SAndy Fiddaman#    define __OTORP__(x)	x
31*906afcb8SAndy Fiddaman#    define __PARAM__(n,o)	o
32*906afcb8SAndy Fiddaman#    define __LINKAGE__
33*906afcb8SAndy Fiddaman#    define __V_		char
34*906afcb8SAndy Fiddaman#    define const
35*906afcb8SAndy Fiddaman#    define signed
36*906afcb8SAndy Fiddaman#    define void		int
37*906afcb8SAndy Fiddaman#    define volatile
38*906afcb8SAndy Fiddaman#  endif
39*906afcb8SAndy Fiddaman#  define __MANGLE__	__LINKAGE__
40*906afcb8SAndy Fiddaman#  if defined(__cplusplus) || defined(c_plusplus)
41*906afcb8SAndy Fiddaman#    define __VARARG__	...
42*906afcb8SAndy Fiddaman#  else
43*906afcb8SAndy Fiddaman#    define __VARARG__
44*906afcb8SAndy Fiddaman#  endif
45*906afcb8SAndy Fiddaman#  if defined(__STDARG__)
46*906afcb8SAndy Fiddaman#    define __VA_START__(p,a)	va_start(p,a)
47*906afcb8SAndy Fiddaman#  else
48*906afcb8SAndy Fiddaman#    define __VA_START__(p,a)	va_start(p)
49*906afcb8SAndy Fiddaman#  endif
50*906afcb8SAndy Fiddaman#  if !defined(__INLINE__)
51*906afcb8SAndy Fiddaman#    if defined(__cplusplus)
52*906afcb8SAndy Fiddaman#      define __INLINE__	extern __MANGLE__ inline
53*906afcb8SAndy Fiddaman#    else
54*906afcb8SAndy Fiddaman#      if defined(_WIN32) && !defined(__GNUC__)
55*906afcb8SAndy Fiddaman#      	define __INLINE__	__inline
56*906afcb8SAndy Fiddaman#      endif
57*906afcb8SAndy Fiddaman#    endif
58*906afcb8SAndy Fiddaman#  endif
59*906afcb8SAndy Fiddaman#endif
60*906afcb8SAndy Fiddaman#if !defined(__LINKAGE__)
61*906afcb8SAndy Fiddaman#define __LINKAGE__		/* 2004-08-11 transition */
62*906afcb8SAndy Fiddaman#endif
63*906afcb8SAndy Fiddaman
64*906afcb8SAndy Fiddaman#define _SFSTDIO_H	1
65*906afcb8SAndy Fiddaman#define _sys_types	1	/* #include <sys/types.h> ok */
66*906afcb8SAndy Fiddaman#define __FILE_typedef	1
67*906afcb8SAndy Fiddaman#define _FILE_DEFINED	1
68*906afcb8SAndy Fiddaman#define _FILE_defined	1
69*906afcb8SAndy Fiddaman#define _FILEDEFED	1
70*906afcb8SAndy Fiddaman
71*906afcb8SAndy Fiddaman#ifndef __FILE_TAG
72*906afcb8SAndy Fiddaman#define __FILE_TAG	_sfio_s
73*906afcb8SAndy Fiddaman#endif
74*906afcb8SAndy Fiddaman
75*906afcb8SAndy Fiddaman#undef	FILE
76*906afcb8SAndy Fiddaman#undef	_FILE
77*906afcb8SAndy Fiddaman#undef	fpos_t
78*906afcb8SAndy Fiddaman#undef	fpos64_t
79*906afcb8SAndy Fiddaman
80*906afcb8SAndy Fiddamantypedef struct _sfio_s _sfio_FILE;
81*906afcb8SAndy Fiddaman
82*906afcb8SAndy Fiddaman#define FILE		_sfio_FILE
83*906afcb8SAndy Fiddaman#define _FILE		FILE
84*906afcb8SAndy Fiddaman
85*906afcb8SAndy Fiddaman#if !defined(__FILE) && !__CYGWIN__
86*906afcb8SAndy Fiddaman#undef	__FILE
87*906afcb8SAndy Fiddaman#define __FILE		FILE
88*906afcb8SAndy Fiddaman#endif
89*906afcb8SAndy Fiddaman
90*906afcb8SAndy Fiddaman#if defined(_AST_H) || defined(_SFIO_H)
91*906afcb8SAndy Fiddaman
92*906afcb8SAndy Fiddaman#define BUFSIZ		SF_BUFSIZE
93*906afcb8SAndy Fiddaman
94*906afcb8SAndy Fiddaman#else
95*906afcb8SAndy Fiddaman
96*906afcb8SAndy Fiddaman#ifndef BUFSIZ
97*906afcb8SAndy Fiddaman#define BUFSIZ		8192
98*906afcb8SAndy Fiddaman#endif
99*906afcb8SAndy Fiddaman
100*906afcb8SAndy Fiddaman#ifndef EOF
101*906afcb8SAndy Fiddaman#define EOF		(-1)
102*906afcb8SAndy Fiddaman#endif
103*906afcb8SAndy Fiddaman
104*906afcb8SAndy Fiddaman#ifndef NULL
105*906afcb8SAndy Fiddaman#define NULL		0
106*906afcb8SAndy Fiddaman#endif
107*906afcb8SAndy Fiddaman
108*906afcb8SAndy Fiddaman#ifndef SEEK_SET
109*906afcb8SAndy Fiddaman#define SEEK_SET	0
110*906afcb8SAndy Fiddaman#define SEEK_CUR	1
111*906afcb8SAndy Fiddaman#define SEEK_END	2
112*906afcb8SAndy Fiddaman#endif
113*906afcb8SAndy Fiddaman
114*906afcb8SAndy Fiddaman#include <ast_std.h>
115*906afcb8SAndy Fiddaman
116*906afcb8SAndy Fiddaman#include <sfio_s.h>
117*906afcb8SAndy Fiddaman
118*906afcb8SAndy Fiddaman#if __cplusplus
119*906afcb8SAndy Fiddaman#define _sf_(f)		(f)
120*906afcb8SAndy Fiddaman#else
121*906afcb8SAndy Fiddaman#define _sf_(f)		((struct _sfio_s*)(f))
122*906afcb8SAndy Fiddaman#endif
123*906afcb8SAndy Fiddaman
124*906afcb8SAndy Fiddaman#define _SF_EOF		0000200
125*906afcb8SAndy Fiddaman#define _SF_ERROR	0000400
126*906afcb8SAndy Fiddaman
127*906afcb8SAndy Fiddaman#endif
128*906afcb8SAndy Fiddaman
129*906afcb8SAndy Fiddaman#ifdef _NO_LARGEFILE64_SOURCE
130*906afcb8SAndy Fiddaman#undef _LARGEFILE64_SOURCE
131*906afcb8SAndy Fiddaman#endif
132*906afcb8SAndy Fiddaman
133*906afcb8SAndy Fiddaman#ifdef _LARGEFILE64_SOURCE
134*906afcb8SAndy Fiddaman#undef	off_t
135*906afcb8SAndy Fiddaman#endif
136*906afcb8SAndy Fiddaman
137*906afcb8SAndy Fiddaman#define fpos_t		_ast_fpos_t
138*906afcb8SAndy Fiddaman#if _typ_int64_t
139*906afcb8SAndy Fiddaman#define fpos64_t	_ast_fpos_t
140*906afcb8SAndy Fiddaman#endif
141*906afcb8SAndy Fiddaman
142*906afcb8SAndy Fiddamantypedef struct _ast_fpos_s
143*906afcb8SAndy Fiddaman{
144*906afcb8SAndy Fiddaman	intmax_t	_sf_offset;
145*906afcb8SAndy Fiddaman	unsigned char	_sf_state[64 - sizeof(intmax_t)];
146*906afcb8SAndy Fiddaman} _ast_fpos_t;
147*906afcb8SAndy Fiddaman
148*906afcb8SAndy Fiddaman#define _base		_data
149*906afcb8SAndy Fiddaman#define _ptr		_next
150*906afcb8SAndy Fiddaman#define _IOFBF		0
151*906afcb8SAndy Fiddaman#define _IONBF		1
152*906afcb8SAndy Fiddaman#define _IOLBF		2
153*906afcb8SAndy Fiddaman
154*906afcb8SAndy Fiddaman#if defined(__cplusplus) && defined(__THROW) && !defined(_UWIN)
155*906afcb8SAndy Fiddaman
156*906afcb8SAndy Fiddaman#undef	FILE
157*906afcb8SAndy Fiddaman#define FILE            FILE
158*906afcb8SAndy Fiddamantypedef struct _sfio_s FILE;
159*906afcb8SAndy Fiddaman
160*906afcb8SAndy Fiddaman#undef	strerror
161*906afcb8SAndy Fiddamanextern __MANGLE__ char*	strerror(int) __THROW;
162*906afcb8SAndy Fiddaman
163*906afcb8SAndy Fiddamanextern __MANGLE__ int	_doprnt __PROTO__((const char*, va_list, FILE*));
164*906afcb8SAndy Fiddamanextern __MANGLE__ int	_doscan __PROTO__((FILE*, const char*, va_list));
165*906afcb8SAndy Fiddamanextern __MANGLE__ int	asprintf __PROTO__((char**, const char*, ...));
166*906afcb8SAndy Fiddamanextern __MANGLE__ int	clearerr __PROTO__((FILE*));
167*906afcb8SAndy Fiddamanextern __MANGLE__ int	fclose __PROTO__((FILE*));
168*906afcb8SAndy Fiddamanextern __MANGLE__ FILE*	fdopen __PROTO__((int, const char*));
169*906afcb8SAndy Fiddamanextern __MANGLE__ int	feof __PROTO__((FILE*));
170*906afcb8SAndy Fiddamanextern __MANGLE__ int	ferror __PROTO__((FILE*));
171*906afcb8SAndy Fiddamanextern __MANGLE__ int	fflush __PROTO__((FILE*));
172*906afcb8SAndy Fiddamanextern __MANGLE__ int	fgetc __PROTO__((FILE*));
173*906afcb8SAndy Fiddamanextern __MANGLE__ int	fgetpos __PROTO__((FILE*, fpos_t*));
174*906afcb8SAndy Fiddamanextern __MANGLE__ char*	fgets __PROTO__((char*, int, FILE*));
175*906afcb8SAndy Fiddamanextern __MANGLE__ int	fileno __PROTO__((FILE*));
176*906afcb8SAndy Fiddamanextern __MANGLE__ FILE*	fopen __PROTO__((const char*, const char*));
177*906afcb8SAndy Fiddamanextern __MANGLE__ int	fprintf __PROTO__((FILE*, const char*, ...));
178*906afcb8SAndy Fiddamanextern __MANGLE__ int	fpurge __PROTO__((FILE*));
179*906afcb8SAndy Fiddamanextern __MANGLE__ int	fputc __PROTO__((int, FILE*));
180*906afcb8SAndy Fiddamanextern __MANGLE__ int	fputs __PROTO__((const char*, FILE*));
181*906afcb8SAndy Fiddamanextern __MANGLE__ size_t	fread __PROTO__((__V_*, size_t, size_t, FILE*));
182*906afcb8SAndy Fiddamanextern __MANGLE__ FILE*	freopen __PROTO__((const char*, const char*, FILE*));
183*906afcb8SAndy Fiddamanextern __MANGLE__ int	fscanf __PROTO__((FILE*, const char*, ...));
184*906afcb8SAndy Fiddamanextern __MANGLE__ int	fseek __PROTO__((FILE*, long, int));
185*906afcb8SAndy Fiddamanextern __MANGLE__ int	fseeko __PROTO__((FILE*, off_t, int));
186*906afcb8SAndy Fiddamanextern __MANGLE__ int	fsetpos __PROTO__((FILE*, const fpos_t*));
187*906afcb8SAndy Fiddamanextern __MANGLE__ long	ftell __PROTO__((FILE*));
188*906afcb8SAndy Fiddamanextern __MANGLE__ off_t	ftello __PROTO__((FILE*));
189*906afcb8SAndy Fiddamanextern __MANGLE__ size_t	fwrite __PROTO__((const __V_*, size_t, size_t, FILE*));
190*906afcb8SAndy Fiddamanextern __MANGLE__ int	getc __PROTO__((FILE*));
191*906afcb8SAndy Fiddamanextern __MANGLE__ int	getchar __PROTO__((void));
192*906afcb8SAndy Fiddamanextern __MANGLE__ char*	gets __PROTO__((char*));
193*906afcb8SAndy Fiddamanextern __MANGLE__ int	getw __PROTO__((FILE*));
194*906afcb8SAndy Fiddamanextern __MANGLE__ int	pclose __PROTO__((FILE*));
195*906afcb8SAndy Fiddamanextern __MANGLE__ FILE*	popen __PROTO__((const char*, const char*));
196*906afcb8SAndy Fiddamanextern __MANGLE__ int	printf __PROTO__((const char*, ...));
197*906afcb8SAndy Fiddamanextern __MANGLE__ int	putc __PROTO__((int, FILE*));
198*906afcb8SAndy Fiddamanextern __MANGLE__ int	putchar __PROTO__((int));
199*906afcb8SAndy Fiddamanextern __MANGLE__ int	puts __PROTO__((const char*));
200*906afcb8SAndy Fiddamanextern __MANGLE__ int	putw __PROTO__((int, FILE*));
201*906afcb8SAndy Fiddamanextern __MANGLE__ void	rewind __PROTO__((FILE*));
202*906afcb8SAndy Fiddamanextern __MANGLE__ int	scanf __PROTO__((const char*, ...));
203*906afcb8SAndy Fiddamanextern __MANGLE__ void	setbuf __PROTO__((FILE*, char*));
204*906afcb8SAndy Fiddamanextern __MANGLE__ int	setbuffer __PROTO__((FILE*, char*, int));
205*906afcb8SAndy Fiddamanextern __MANGLE__ int	setlinebuf __PROTO__((FILE*));
206*906afcb8SAndy Fiddamanextern __MANGLE__ int	setvbuf __PROTO__((FILE*, char*, int, size_t));
207*906afcb8SAndy Fiddamanextern __MANGLE__ int	snprintf __PROTO__((char*, int, const char*, ...));
208*906afcb8SAndy Fiddamanextern __MANGLE__ int	sprintf __PROTO__((char*, const char*, ...));
209*906afcb8SAndy Fiddamanextern __MANGLE__ int	sscanf __PROTO__((const char*, const char*, ...));
210*906afcb8SAndy Fiddamanextern __MANGLE__ FILE*	tmpfile __PROTO__((void));
211*906afcb8SAndy Fiddamanextern __MANGLE__ int	ungetc __PROTO__((int, FILE*));
212*906afcb8SAndy Fiddamanextern __MANGLE__ int	vasprintf __PROTO__((char**, const char*, va_list));
213*906afcb8SAndy Fiddamanextern __MANGLE__ int	vfprintf __PROTO__((FILE*, const char*, va_list));
214*906afcb8SAndy Fiddamanextern __MANGLE__ int	vfscanf __PROTO__((FILE*, const char*, va_list));
215*906afcb8SAndy Fiddamanextern __MANGLE__ int	vprintf __PROTO__((const char*, va_list));
216*906afcb8SAndy Fiddamanextern __MANGLE__ int	vscanf __PROTO__((const char*, va_list));
217*906afcb8SAndy Fiddamanextern __MANGLE__ int	vsnprintf __PROTO__((char*, int, const char*, va_list));
218*906afcb8SAndy Fiddamanextern __MANGLE__ int	vsprintf __PROTO__((char*, const char*, va_list));
219*906afcb8SAndy Fiddamanextern __MANGLE__ int	vsscanf __PROTO__((const char*, const char*, va_list));
220*906afcb8SAndy Fiddaman
221*906afcb8SAndy Fiddaman#if _typ_int64_t
222*906afcb8SAndy Fiddaman
223*906afcb8SAndy Fiddamanextern __MANGLE__ int		fgetpos64 __PROTO__((FILE*, fpos64_t*));
224*906afcb8SAndy Fiddamanextern __MANGLE__ int		fsetpos64 __PROTO__((FILE*, const fpos64_t*));
225*906afcb8SAndy Fiddamanextern __MANGLE__ int		fseek64 __PROTO__((FILE*, int64_t, int));
226*906afcb8SAndy Fiddamanextern __MANGLE__ int		fseeko64 __PROTO__((FILE*, int64_t, int));
227*906afcb8SAndy Fiddamanextern __MANGLE__ int64_t		ftell64 __PROTO__((FILE*));
228*906afcb8SAndy Fiddamanextern __MANGLE__ int64_t		ftello64 __PROTO__((FILE*));
229*906afcb8SAndy Fiddaman
230*906afcb8SAndy Fiddaman#endif
231*906afcb8SAndy Fiddaman
232*906afcb8SAndy Fiddamanextern __MANGLE__ void	clearerr_unlocked __PROTO__((FILE*));
233*906afcb8SAndy Fiddamanextern __MANGLE__ int	feof_unlocked __PROTO__((FILE*));
234*906afcb8SAndy Fiddamanextern __MANGLE__ int	ferror_unlocked __PROTO__((FILE*));
235*906afcb8SAndy Fiddamanextern __MANGLE__ int	fflush_unlocked __PROTO__((FILE*));
236*906afcb8SAndy Fiddamanextern __MANGLE__ int	fgetc_unlocked __PROTO__((FILE*));
237*906afcb8SAndy Fiddamanextern __MANGLE__ char*	fgets_unlocked __PROTO__((char*, int, FILE*));
238*906afcb8SAndy Fiddamanextern __MANGLE__ int	fileno_unlocked __PROTO__((FILE*));
239*906afcb8SAndy Fiddamanextern __MANGLE__ int	fputc_unlocked __PROTO__((int, FILE*));
240*906afcb8SAndy Fiddamanextern __MANGLE__ int	fputs_unlocked __PROTO__((char*, FILE*));
241*906afcb8SAndy Fiddamanextern __MANGLE__ size_t	fread_unlocked __PROTO__((__V_*, size_t, size_t, FILE*));
242*906afcb8SAndy Fiddamanextern __MANGLE__ size_t	fwrite_unlocked __PROTO__((__V_*, size_t, size_t, FILE*));
243*906afcb8SAndy Fiddamanextern __MANGLE__ int	getc_unlocked __PROTO__((FILE*));
244*906afcb8SAndy Fiddamanextern __MANGLE__ int	getchar_unlocked __PROTO__((void));
245*906afcb8SAndy Fiddamanextern __MANGLE__ int	putc_unlocked __PROTO__((int, FILE*));
246*906afcb8SAndy Fiddamanextern __MANGLE__ int	putchar_unlocked __PROTO__((int));
247*906afcb8SAndy Fiddaman
248*906afcb8SAndy Fiddamanextern __MANGLE__ void	flockfile __PROTO__((FILE*));
249*906afcb8SAndy Fiddamanextern __MANGLE__ int	ftrylockfile __PROTO__((FILE*));
250*906afcb8SAndy Fiddamanextern __MANGLE__ void	funlockfile __PROTO__((FILE*));
251*906afcb8SAndy Fiddaman
252*906afcb8SAndy Fiddaman#ifdef _USE_GNU
253*906afcb8SAndy Fiddaman
254*906afcb8SAndy Fiddamanextern __MANGLE__ int	fcloseall __PROTO__((void));
255*906afcb8SAndy Fiddamanextern __MANGLE__ FILE*	fmemopen __PROTO__((__V_*, size_t, const char*));
256*906afcb8SAndy Fiddamanextern __MANGLE__ ssize_t	__getdelim __PROTO__((char**, size_t*, int, FILE*));
257*906afcb8SAndy Fiddamanextern __MANGLE__ ssize_t	getdelim __PROTO__((char**, size_t*, int, FILE*));
258*906afcb8SAndy Fiddamanextern __MANGLE__ ssize_t	getline __PROTO__((char**, size_t*, FILE*));
259*906afcb8SAndy Fiddaman
260*906afcb8SAndy Fiddaman#endif
261*906afcb8SAndy Fiddaman
262*906afcb8SAndy Fiddaman#endif
263*906afcb8SAndy Fiddaman
264*906afcb8SAndy Fiddaman#ifndef FILENAME_MAX
265*906afcb8SAndy Fiddaman#define FILENAME_MAX	1024
266*906afcb8SAndy Fiddaman#endif
267*906afcb8SAndy Fiddaman#ifndef FOPEN_MAX
268*906afcb8SAndy Fiddaman#define FOPEN_MAX	60
269*906afcb8SAndy Fiddaman#endif
270*906afcb8SAndy Fiddaman#ifndef TMP_MAX
271*906afcb8SAndy Fiddaman#define TMP_MAX		17576
272*906afcb8SAndy Fiddaman#endif
273*906afcb8SAndy Fiddaman
274*906afcb8SAndy Fiddaman#define _doprnt		_ast_doprnt
275*906afcb8SAndy Fiddaman#define _doscan		_ast_doscan
276*906afcb8SAndy Fiddaman#define asprintf	_ast_asprintf
277*906afcb8SAndy Fiddaman#define clearerr	_ast_clearerr
278*906afcb8SAndy Fiddaman#define fclose		_ast_fclose
279*906afcb8SAndy Fiddaman#define fdopen		_ast_fdopen
280*906afcb8SAndy Fiddaman#define fflush		_ast_fflush
281*906afcb8SAndy Fiddaman#define fgetc		_ast_fgetc
282*906afcb8SAndy Fiddaman#define fgetpos		_ast_fgetpos
283*906afcb8SAndy Fiddaman#define fgetpos64	_ast_fgetpos64
284*906afcb8SAndy Fiddaman#define fgets		_ast_fgets
285*906afcb8SAndy Fiddaman#define fopen		_ast_fopen
286*906afcb8SAndy Fiddaman#define fprintf		_ast_fprintf
287*906afcb8SAndy Fiddaman#define fpurge		_ast_fpurge
288*906afcb8SAndy Fiddaman#define fputs		_ast_fputs
289*906afcb8SAndy Fiddaman#define fread		_ast_fread
290*906afcb8SAndy Fiddaman#define freopen		_ast_freopen
291*906afcb8SAndy Fiddaman#define fscanf		_ast_fscanf
292*906afcb8SAndy Fiddaman#define fseek		_ast_fseek
293*906afcb8SAndy Fiddaman#define fseek64		_ast_fseek64
294*906afcb8SAndy Fiddaman#define fseeko		_ast_fseeko
295*906afcb8SAndy Fiddaman#define fseeko64	_ast_fseeko64
296*906afcb8SAndy Fiddaman#define fsetpos		_ast_fsetpos
297*906afcb8SAndy Fiddaman#define fsetpos64	_ast_fsetpos64
298*906afcb8SAndy Fiddaman#define ftell		_ast_ftell
299*906afcb8SAndy Fiddaman#define ftell64		_ast_ftell64
300*906afcb8SAndy Fiddaman#define ftello		_ast_ftello
301*906afcb8SAndy Fiddaman#define ftello64	_ast_ftello64
302*906afcb8SAndy Fiddaman#define fwrite		_ast_fwrite
303*906afcb8SAndy Fiddaman#define gets		_ast_gets
304*906afcb8SAndy Fiddaman#define getw		_ast_getw
305*906afcb8SAndy Fiddaman#define pclose		_ast_pclose
306*906afcb8SAndy Fiddaman#define popen		_ast_popen
307*906afcb8SAndy Fiddaman#define printf		_ast_printf
308*906afcb8SAndy Fiddaman#define puts		_ast_puts
309*906afcb8SAndy Fiddaman#define putw		_ast_putw
310*906afcb8SAndy Fiddaman#define rewind		_ast_rewind
311*906afcb8SAndy Fiddaman#define scanf		_ast_scanf
312*906afcb8SAndy Fiddaman#define setbuf		_ast_setbuf
313*906afcb8SAndy Fiddaman#undef	setbuffer
314*906afcb8SAndy Fiddaman#define setbuffer	_ast_setbuffer
315*906afcb8SAndy Fiddaman#define setlinebuf	_ast_setlinebuf
316*906afcb8SAndy Fiddaman#define setvbuf		_ast_setvbuf
317*906afcb8SAndy Fiddaman#define snprintf	_ast_snprintf
318*906afcb8SAndy Fiddaman#define sprintf		_ast_sprintf
319*906afcb8SAndy Fiddaman#define sscanf		_ast_sscanf
320*906afcb8SAndy Fiddaman#define tmpfile		_ast_tmpfile
321*906afcb8SAndy Fiddaman#define ungetc		_ast_ungetc
322*906afcb8SAndy Fiddaman#define vasprintf	_ast_vasprintf
323*906afcb8SAndy Fiddaman#define vfprintf	_ast_vfprintf
324*906afcb8SAndy Fiddaman#define vfscanf		_ast_vfscanf
325*906afcb8SAndy Fiddaman#define vprintf		_ast_vprintf
326*906afcb8SAndy Fiddaman#define vscanf		_ast_vscanf
327*906afcb8SAndy Fiddaman#define vsnprintf	_ast_vsnprintf
328*906afcb8SAndy Fiddaman#define vsprintf	_ast_vsprintf
329*906afcb8SAndy Fiddaman#define vsscanf		_ast_vsscanf
330*906afcb8SAndy Fiddaman#define fcloseall	_ast_fcloseall
331*906afcb8SAndy Fiddaman#define _filbuf		_ast__filbuf
332*906afcb8SAndy Fiddaman#define fmemopen	_ast_fmemopen
333*906afcb8SAndy Fiddaman#define __getdelim	_ast___getdelim
334*906afcb8SAndy Fiddaman#define getdelim	_ast_getdelim
335*906afcb8SAndy Fiddaman#define getline		_ast_getline
336*906afcb8SAndy Fiddaman#define clearerr_unlocked _ast_clearerr_unlocked
337*906afcb8SAndy Fiddaman#define feof_unlocked	_ast_feof_unlocked
338*906afcb8SAndy Fiddaman#define ferror_unlocked	_ast_ferror_unlocked
339*906afcb8SAndy Fiddaman#define fflush_unlocked	_ast_fflush_unlocked
340*906afcb8SAndy Fiddaman#define fgetc_unlocked	_ast_fgetc_unlocked
341*906afcb8SAndy Fiddaman#define fgets_unlocked	_ast_fgets_unlocked
342*906afcb8SAndy Fiddaman#define fileno_unlocked	_ast_fileno_unlocked
343*906afcb8SAndy Fiddaman#define fputc_unlocked	_ast_fputc_unlocked
344*906afcb8SAndy Fiddaman#define fputs_unlocked	_ast_fputs_unlocked
345*906afcb8SAndy Fiddaman#define fread_unlocked	_ast_fread_unlocked
346*906afcb8SAndy Fiddaman#define fwrite_unlocked	_ast_fwrite_unlocked
347*906afcb8SAndy Fiddaman#define getc_unlocked	_ast_getc_unlocked
348*906afcb8SAndy Fiddaman#define getchar_unlocked _ast_getchar_unlocked
349*906afcb8SAndy Fiddaman#define putc_unlocked	_ast_putc_unlocked
350*906afcb8SAndy Fiddaman#define putchar_unlocked _ast_putchar_unlocked
351*906afcb8SAndy Fiddaman#define flockfile	_ast_flockfile
352*906afcb8SAndy Fiddaman#define ftrylockfile	_ast_ftrylockfile
353*906afcb8SAndy Fiddaman#define funlockfile	_ast_funlockfile
354*906afcb8SAndy Fiddaman
355*906afcb8SAndy Fiddaman#if defined(__STDPP__directive) && defined(__STDPP__initial)
356*906afcb8SAndy Fiddaman__STDPP__directive pragma pp:initial
357*906afcb8SAndy Fiddaman#endif
358*906afcb8SAndy Fiddaman#ifndef P_tmpdir
359*906afcb8SAndy Fiddaman#define P_tmpdir "/var/tmp/" /*NOCATLITERAL*/
360*906afcb8SAndy Fiddaman#endif
361*906afcb8SAndy Fiddaman#ifndef L_ctermid
362*906afcb8SAndy Fiddaman#define L_ctermid 9
363*906afcb8SAndy Fiddaman#endif
364*906afcb8SAndy Fiddaman#ifndef L_tmpnam
365*906afcb8SAndy Fiddaman#define L_tmpnam 25
366*906afcb8SAndy Fiddaman#endif
367*906afcb8SAndy Fiddaman#if defined(__STDPP__directive) && defined(__STDPP__initial)
368*906afcb8SAndy Fiddaman__STDPP__directive pragma pp:noinitial
369*906afcb8SAndy Fiddaman#endif
370*906afcb8SAndy Fiddaman#if defined(__cplusplus) && defined(__THROW)
371*906afcb8SAndy Fiddamanextern __MANGLE__ char*	ctermid(char*) __THROW;
372*906afcb8SAndy Fiddaman#else
373*906afcb8SAndy Fiddamanextern __MANGLE__ char*	ctermid __PROTO__((char*));
374*906afcb8SAndy Fiddaman#endif
375*906afcb8SAndy Fiddamanextern __MANGLE__ char*	tmpnam __PROTO__((char*));
376*906afcb8SAndy Fiddamanextern __MANGLE__ char*	tempnam __PROTO__((const char*, const char*));
377*906afcb8SAndy Fiddamanextern __MANGLE__ void	perror __PROTO__((const char*));
378*906afcb8SAndy Fiddaman#ifndef _AST_STD_H
379*906afcb8SAndy Fiddaman#ifndef remove
380*906afcb8SAndy Fiddamanextern __MANGLE__ int	remove __PROTO__((const char*));
381*906afcb8SAndy Fiddaman#endif
382*906afcb8SAndy Fiddaman#ifndef rename
383*906afcb8SAndy Fiddamanextern __MANGLE__ int	rename __PROTO__((const char*, const char*));
384*906afcb8SAndy Fiddaman#endif
385*906afcb8SAndy Fiddaman#endif
386*906afcb8SAndy Fiddaman
387*906afcb8SAndy Fiddaman#undef __MANGLE__
388*906afcb8SAndy Fiddaman#define __MANGLE__ __LINKAGE__
389*906afcb8SAndy Fiddaman
390*906afcb8SAndy Fiddaman#if _BLD_ast && defined(__EXPORT__)
391*906afcb8SAndy Fiddaman#undef __MANGLE__
392*906afcb8SAndy Fiddaman#define __MANGLE__ __LINKAGE__		__EXPORT__
393*906afcb8SAndy Fiddaman#endif
394*906afcb8SAndy Fiddaman
395*906afcb8SAndy Fiddamanextern __MANGLE__ int	_doprnt __PROTO__((const char*, va_list, FILE*));
396*906afcb8SAndy Fiddamanextern __MANGLE__ int	_doscan __PROTO__((FILE*, const char*, va_list));
397*906afcb8SAndy Fiddamanextern __MANGLE__ int	asprintf __PROTO__((char**, const char*, ...));
398*906afcb8SAndy Fiddamanextern __MANGLE__ int	clearerr __PROTO__((FILE*));
399*906afcb8SAndy Fiddamanextern __MANGLE__ int	fclose __PROTO__((FILE*));
400*906afcb8SAndy Fiddamanextern __MANGLE__ FILE*	fdopen __PROTO__((int, const char*));
401*906afcb8SAndy Fiddamanextern __MANGLE__ int	feof __PROTO__((FILE*));
402*906afcb8SAndy Fiddamanextern __MANGLE__ int	ferror __PROTO__((FILE*));
403*906afcb8SAndy Fiddamanextern __MANGLE__ int	fflush __PROTO__((FILE*));
404*906afcb8SAndy Fiddamanextern __MANGLE__ int	fgetc __PROTO__((FILE*));
405*906afcb8SAndy Fiddamanextern __MANGLE__ int	fgetpos __PROTO__((FILE*, fpos_t*));
406*906afcb8SAndy Fiddamanextern __MANGLE__ char*	fgets __PROTO__((char*, int, FILE*));
407*906afcb8SAndy Fiddamanextern __MANGLE__ int	fileno __PROTO__((FILE*));
408*906afcb8SAndy Fiddamanextern __MANGLE__ FILE*	fopen __PROTO__((const char*, const char*));
409*906afcb8SAndy Fiddamanextern __MANGLE__ int	fprintf __PROTO__((FILE*, const char*, ...));
410*906afcb8SAndy Fiddamanextern __MANGLE__ int	fpurge __PROTO__((FILE*));
411*906afcb8SAndy Fiddamanextern __MANGLE__ int	fputc __PROTO__((int, FILE*));
412*906afcb8SAndy Fiddamanextern __MANGLE__ int	fputs __PROTO__((const char*, FILE*));
413*906afcb8SAndy Fiddamanextern __MANGLE__ size_t	fread __PROTO__((__V_*, size_t, size_t, FILE*));
414*906afcb8SAndy Fiddamanextern __MANGLE__ FILE*	freopen __PROTO__((const char*, const char*, FILE*));
415*906afcb8SAndy Fiddamanextern __MANGLE__ int	fscanf __PROTO__((FILE*, const char*, ...));
416*906afcb8SAndy Fiddamanextern __MANGLE__ int	fseek __PROTO__((FILE*, long, int));
417*906afcb8SAndy Fiddamanextern __MANGLE__ int	fseeko __PROTO__((FILE*, off_t, int));
418*906afcb8SAndy Fiddamanextern __MANGLE__ int	fsetpos __PROTO__((FILE*, const fpos_t*));
419*906afcb8SAndy Fiddamanextern __MANGLE__ long	ftell __PROTO__((FILE*));
420*906afcb8SAndy Fiddamanextern __MANGLE__ off_t	ftello __PROTO__((FILE*));
421*906afcb8SAndy Fiddamanextern __MANGLE__ size_t	fwrite __PROTO__((const __V_*, size_t, size_t, FILE*));
422*906afcb8SAndy Fiddamanextern __MANGLE__ int	getc __PROTO__((FILE*));
423*906afcb8SAndy Fiddamanextern __MANGLE__ int	getchar __PROTO__((void));
424*906afcb8SAndy Fiddamanextern __MANGLE__ char*	gets __PROTO__((char*));
425*906afcb8SAndy Fiddamanextern __MANGLE__ int	getw __PROTO__((FILE*));
426*906afcb8SAndy Fiddamanextern __MANGLE__ int	pclose __PROTO__((FILE*));
427*906afcb8SAndy Fiddamanextern __MANGLE__ FILE*	popen __PROTO__((const char*, const char*));
428*906afcb8SAndy Fiddamanextern __MANGLE__ int	printf __PROTO__((const char*, ...));
429*906afcb8SAndy Fiddamanextern __MANGLE__ int	putc __PROTO__((int, FILE*));
430*906afcb8SAndy Fiddamanextern __MANGLE__ int	putchar __PROTO__((int));
431*906afcb8SAndy Fiddamanextern __MANGLE__ int	puts __PROTO__((const char*));
432*906afcb8SAndy Fiddamanextern __MANGLE__ int	putw __PROTO__((int, FILE*));
433*906afcb8SAndy Fiddamanextern __MANGLE__ void	rewind __PROTO__((FILE*));
434*906afcb8SAndy Fiddamanextern __MANGLE__ int	scanf __PROTO__((const char*, ...));
435*906afcb8SAndy Fiddamanextern __MANGLE__ void	setbuf __PROTO__((FILE*, char*));
436*906afcb8SAndy Fiddamanextern __MANGLE__ int	setbuffer __PROTO__((FILE*, char*, int));
437*906afcb8SAndy Fiddamanextern __MANGLE__ int	setlinebuf __PROTO__((FILE*));
438*906afcb8SAndy Fiddamanextern __MANGLE__ int	setvbuf __PROTO__((FILE*, char*, int, size_t));
439*906afcb8SAndy Fiddamanextern __MANGLE__ int	snprintf __PROTO__((char*, int, const char*, ...));
440*906afcb8SAndy Fiddamanextern __MANGLE__ int	sprintf __PROTO__((char*, const char*, ...));
441*906afcb8SAndy Fiddamanextern __MANGLE__ int	sscanf __PROTO__((const char*, const char*, ...));
442*906afcb8SAndy Fiddamanextern __MANGLE__ FILE*	tmpfile __PROTO__((void));
443*906afcb8SAndy Fiddamanextern __MANGLE__ int	ungetc __PROTO__((int, FILE*));
444*906afcb8SAndy Fiddamanextern __MANGLE__ int	vasprintf __PROTO__((char**, const char*, va_list));
445*906afcb8SAndy Fiddamanextern __MANGLE__ int	vfprintf __PROTO__((FILE*, const char*, va_list));
446*906afcb8SAndy Fiddamanextern __MANGLE__ int	vfscanf __PROTO__((FILE*, const char*, va_list));
447*906afcb8SAndy Fiddamanextern __MANGLE__ int	vprintf __PROTO__((const char*, va_list));
448*906afcb8SAndy Fiddamanextern __MANGLE__ int	vscanf __PROTO__((const char*, va_list));
449*906afcb8SAndy Fiddamanextern __MANGLE__ int	vsnprintf __PROTO__((char*, int, const char*, va_list));
450*906afcb8SAndy Fiddamanextern __MANGLE__ int	vsprintf __PROTO__((char*, const char*, va_list));
451*906afcb8SAndy Fiddamanextern __MANGLE__ int	vsscanf __PROTO__((const char*, const char*, va_list));
452*906afcb8SAndy Fiddaman
453*906afcb8SAndy Fiddaman#if _typ_int64_t
454*906afcb8SAndy Fiddaman
455*906afcb8SAndy Fiddamanextern __MANGLE__ int		fgetpos64 __PROTO__((FILE*, fpos64_t*));
456*906afcb8SAndy Fiddamanextern __MANGLE__ int		fsetpos64 __PROTO__((FILE*, const fpos64_t*));
457*906afcb8SAndy Fiddamanextern __MANGLE__ int		fseek64 __PROTO__((FILE*, int64_t, int));
458*906afcb8SAndy Fiddamanextern __MANGLE__ int		fseeko64 __PROTO__((FILE*, int64_t, int));
459*906afcb8SAndy Fiddamanextern __MANGLE__ int64_t		ftell64 __PROTO__((FILE*));
460*906afcb8SAndy Fiddamanextern __MANGLE__ int64_t		ftello64 __PROTO__((FILE*));
461*906afcb8SAndy Fiddaman
462*906afcb8SAndy Fiddaman#ifdef _LARGEFILE64_SOURCE
463*906afcb8SAndy Fiddaman
464*906afcb8SAndy Fiddaman#undef	fpos_t
465*906afcb8SAndy Fiddaman#undef	off_t
466*906afcb8SAndy Fiddaman#undef	fgetpos
467*906afcb8SAndy Fiddaman#undef	fsetpos
468*906afcb8SAndy Fiddaman#undef	fseek
469*906afcb8SAndy Fiddaman#undef	fseeko
470*906afcb8SAndy Fiddaman#undef	ftell
471*906afcb8SAndy Fiddaman#undef	ftello
472*906afcb8SAndy Fiddaman
473*906afcb8SAndy Fiddaman#define	fpos_t		fpos64_t
474*906afcb8SAndy Fiddaman#if _typ_off64_t
475*906afcb8SAndy Fiddaman#define	off_t		off64_t
476*906afcb8SAndy Fiddaman#else
477*906afcb8SAndy Fiddaman#define	off_t		int64_t
478*906afcb8SAndy Fiddaman#endif
479*906afcb8SAndy Fiddaman
480*906afcb8SAndy Fiddaman#define fgetpos		fgetpos64
481*906afcb8SAndy Fiddaman#define fsetpos		fsetpos64
482*906afcb8SAndy Fiddaman#define	fseek		fseek64
483*906afcb8SAndy Fiddaman#define	fseeko		fseeko64
484*906afcb8SAndy Fiddaman#define ftell		ftell64
485*906afcb8SAndy Fiddaman#define ftello		ftello64
486*906afcb8SAndy Fiddaman
487*906afcb8SAndy Fiddaman#endif
488*906afcb8SAndy Fiddaman
489*906afcb8SAndy Fiddaman#endif
490*906afcb8SAndy Fiddaman
491*906afcb8SAndy Fiddamanextern __MANGLE__ void	clearerr_unlocked __PROTO__((FILE*));
492*906afcb8SAndy Fiddamanextern __MANGLE__ int	feof_unlocked __PROTO__((FILE*));
493*906afcb8SAndy Fiddamanextern __MANGLE__ int	ferror_unlocked __PROTO__((FILE*));
494*906afcb8SAndy Fiddamanextern __MANGLE__ int	fflush_unlocked __PROTO__((FILE*));
495*906afcb8SAndy Fiddamanextern __MANGLE__ int	fgetc_unlocked __PROTO__((FILE*));
496*906afcb8SAndy Fiddamanextern __MANGLE__ char*	fgets_unlocked __PROTO__((char*, int, FILE*));
497*906afcb8SAndy Fiddamanextern __MANGLE__ int	fileno_unlocked __PROTO__((FILE*));
498*906afcb8SAndy Fiddamanextern __MANGLE__ int	fputc_unlocked __PROTO__((int, FILE*));
499*906afcb8SAndy Fiddamanextern __MANGLE__ int	fputs_unlocked __PROTO__((char*, FILE*));
500*906afcb8SAndy Fiddamanextern __MANGLE__ size_t	fread_unlocked __PROTO__((__V_*, size_t, size_t, FILE*));
501*906afcb8SAndy Fiddamanextern __MANGLE__ size_t	fwrite_unlocked __PROTO__((__V_*, size_t, size_t, FILE*));
502*906afcb8SAndy Fiddamanextern __MANGLE__ int	getc_unlocked __PROTO__((FILE*));
503*906afcb8SAndy Fiddamanextern __MANGLE__ int	getchar_unlocked __PROTO__((void));
504*906afcb8SAndy Fiddamanextern __MANGLE__ int	putc_unlocked __PROTO__((int, FILE*));
505*906afcb8SAndy Fiddamanextern __MANGLE__ int	putchar_unlocked __PROTO__((int));
506*906afcb8SAndy Fiddaman
507*906afcb8SAndy Fiddaman#ifdef _USE_GNU
508*906afcb8SAndy Fiddaman
509*906afcb8SAndy Fiddamanextern __MANGLE__ int	fcloseall __PROTO__((void));
510*906afcb8SAndy Fiddamanextern __MANGLE__ FILE*	fmemopen __PROTO__((__V_*, size_t, const char*));
511*906afcb8SAndy Fiddamanextern __MANGLE__ ssize_t	__getdelim __PROTO__((char**, size_t*, int, FILE*));
512*906afcb8SAndy Fiddamanextern __MANGLE__ ssize_t	getdelim __PROTO__((char**, size_t*, int, FILE*));
513*906afcb8SAndy Fiddamanextern __MANGLE__ ssize_t	getline __PROTO__((char**, size_t*, FILE*));
514*906afcb8SAndy Fiddaman
515*906afcb8SAndy Fiddaman#endif
516*906afcb8SAndy Fiddaman
517*906afcb8SAndy Fiddaman#undef __MANGLE__
518*906afcb8SAndy Fiddaman#define __MANGLE__ __LINKAGE__
519*906afcb8SAndy Fiddaman
520*906afcb8SAndy Fiddaman#if _BLD_DLL && _DLL_INDIRECT_DATA
521*906afcb8SAndy Fiddaman
522*906afcb8SAndy Fiddaman#define stdin		((FILE*)_ast_dll->_ast_stdin)
523*906afcb8SAndy Fiddaman#define stdout		((FILE*)_ast_dll->_ast_stdout)
524*906afcb8SAndy Fiddaman#define stderr		((FILE*)_ast_dll->_ast_stderr)
525*906afcb8SAndy Fiddaman
526*906afcb8SAndy Fiddaman#else
527*906afcb8SAndy Fiddaman
528*906afcb8SAndy Fiddaman#define	stdin		(&_Sfstdin)
529*906afcb8SAndy Fiddaman#define	stdout		(&_Sfstdout)
530*906afcb8SAndy Fiddaman#define	stderr		(&_Sfstderr)
531*906afcb8SAndy Fiddaman
532*906afcb8SAndy Fiddaman#endif
533*906afcb8SAndy Fiddaman
534*906afcb8SAndy Fiddaman#if defined(_AST_H) || defined(_SFIO_H)
535*906afcb8SAndy Fiddaman
536*906afcb8SAndy Fiddaman#define feof(f)		sfeof(f)
537*906afcb8SAndy Fiddaman#define ferror(f)	sferror(f)
538*906afcb8SAndy Fiddaman#define fileno(f)	sffileno(f)
539*906afcb8SAndy Fiddaman#define fputc(c,f)	sfputc(f,c)
540*906afcb8SAndy Fiddaman#define getc(f)		sfgetc(f)
541*906afcb8SAndy Fiddaman#define getchar()	sfgetc(sfstdin)
542*906afcb8SAndy Fiddaman#define putc(c,f)	sfputc(f,c)
543*906afcb8SAndy Fiddaman#define putchar(c)	sfputc(sfstdout,c)
544*906afcb8SAndy Fiddaman
545*906afcb8SAndy Fiddaman#else
546*906afcb8SAndy Fiddaman
547*906afcb8SAndy Fiddaman#if !_UWIN
548*906afcb8SAndy Fiddaman#if _BLD_ast && defined(__EXPORT__)
549*906afcb8SAndy Fiddaman#undef __MANGLE__
550*906afcb8SAndy Fiddaman#define __MANGLE__ __LINKAGE__ __EXPORT__
551*906afcb8SAndy Fiddaman#endif
552*906afcb8SAndy Fiddaman#if !_BLD_ast && defined(__IMPORT__)
553*906afcb8SAndy Fiddaman#undef __MANGLE__
554*906afcb8SAndy Fiddaman#define __MANGLE__ __LINKAGE__ __IMPORT__
555*906afcb8SAndy Fiddaman#endif
556*906afcb8SAndy Fiddaman#endif
557*906afcb8SAndy Fiddaman
558*906afcb8SAndy Fiddamanextern __MANGLE__ FILE	_Sfstdin;
559*906afcb8SAndy Fiddamanextern __MANGLE__ FILE	_Sfstdout;
560*906afcb8SAndy Fiddamanextern __MANGLE__ FILE	_Sfstderr;
561*906afcb8SAndy Fiddaman
562*906afcb8SAndy Fiddaman#undef __MANGLE__
563*906afcb8SAndy Fiddaman#define __MANGLE__ __LINKAGE__
564*906afcb8SAndy Fiddaman
565*906afcb8SAndy Fiddaman#define feof(f)		(_sf_(f)->_flags&_SF_EOF)
566*906afcb8SAndy Fiddaman#define ferror(f)	(_sf_(f)->_flags&_SF_ERROR)
567*906afcb8SAndy Fiddaman#define fileno(f)	(_sf_(f)->_file)
568*906afcb8SAndy Fiddaman#define fputc(c,f)	(_sf_(f)->_next>=_sf_(f)->_endw?_sfflsbuf(_sf_(f),(int)((unsigned char)(c))):(int)(*_sf_(f)->_next++=(unsigned char)(c)))
569*906afcb8SAndy Fiddaman#define getc(f)		(_sf_(f)->_next>=_sf_(f)->_endr?_sffilbuf(_sf_(f),0):(int)(*_sf_(f)->_next++))
570*906afcb8SAndy Fiddaman#define getchar()	getc(stdin)
571*906afcb8SAndy Fiddaman#define putc(c,f)	fputc(c,f)
572*906afcb8SAndy Fiddaman#define putchar(c)	fputc(c,stdout)
573*906afcb8SAndy Fiddaman
574*906afcb8SAndy Fiddaman#if _BLD_ast && defined(__EXPORT__)
575*906afcb8SAndy Fiddaman#undef __MANGLE__
576*906afcb8SAndy Fiddaman#define __MANGLE__ __LINKAGE__		__EXPORT__
577*906afcb8SAndy Fiddaman#endif
578*906afcb8SAndy Fiddaman
579*906afcb8SAndy Fiddamanextern __MANGLE__ int		_sffilbuf __PROTO__((FILE*, int));
580*906afcb8SAndy Fiddamanextern __MANGLE__ int		_sfflsbuf __PROTO__((FILE*, int));
581*906afcb8SAndy Fiddaman
582*906afcb8SAndy Fiddaman#undef __MANGLE__
583*906afcb8SAndy Fiddaman#define __MANGLE__ __LINKAGE__
584*906afcb8SAndy Fiddaman
585*906afcb8SAndy Fiddaman#endif
586*906afcb8SAndy Fiddaman
587*906afcb8SAndy Fiddaman#endif
588