1 /***********************************************************************
3 * This software is part of the ast package *
4 * Copyright (c) 1985-2010 AT&T Intellectual Property *
5 * and is licensed under the *
6 * Common Public License, Version 1.0 *
7 * by AT&T Intellectual Property *
9 * A copy of the License is available at *
10 * http://www.opensource.org/licenses/cpl1.0.txt *
11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
13 * Information and Software Systems Research *
17 * Glenn Fowler <gsf@research.att.com> *
18 * David Korn <dgk@research.att.com> *
19 * Phong Vo <kpv@research.att.com> *
21 ***********************************************************************/
27 #ifndef _NO_LARGEFILE64_SOURCE
28 #define _NO_LARGEFILE64_SOURCE 1
30 #undef _LARGEFILE64_SOURCE
32 #define _ast_fseeko ______fseeko
33 #define _ast_ftello ______ftello
45 #define STDIO_TRANSFER 1
47 typedef int (*Fun_f
)();
49 typedef struct Funvec_s
55 extern int _stdfun(Sfio_t
*, Funvec_t
*);
57 #define STDIO_INT(p,n,t,f,a) \
61 static Funvec_t _v = { n }; \
62 if ((_i = _stdfun(p, &_v)) < 0) \
65 return ((_s_f)_v.vec[_i])a; \
68 #define STDIO_PTR(p,n,t,f,a) \
72 static Funvec_t _v = { n }; \
73 if ((_i = _stdfun(p, &_v)) < 0) \
76 return ((_s_f)_v.vec[_i])a; \
79 #define STDIO_VOID(p,n,t,f,a) \
83 static Funvec_t _v = { n }; \
84 if ((_i = _stdfun(p, &_v)) < 0) \
88 ((_s_f)_v.vec[_i])a; \
95 #define STDIO_INT(p,n,t,f,a)
96 #define STDIO_PTR(p,n,t,f,a)
97 #define STDIO_VOID(p,n,t,f,a)
104 if (fwide(f, 0) < 0) \
110 #define extern __EXPORT__
113 extern int sfdcwide(Sfio_t
*);