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 ***********************************************************************/
23 /* : : generated by proto : : */
24 /* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_i386_32bit/src/lib/libast/features/iconv by iffe version 2009-12-04 : : */
26 #ifndef _def_iconv_ast
27 #if !defined(__PROTO__)
28 # if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
29 # if defined(__cplusplus)
30 # define __LINKAGE__ "C"
35 # define __PROTO__(x) x
37 # define __PARAM__(n,o) n
38 # if !defined(__STDC__) && !defined(__cplusplus)
39 # if !defined(c_plusplus)
50 # define __PROTO__(x) ()
51 # define __OTORP__(x) x
52 # define __PARAM__(n,o) o
60 # define __MANGLE__ __LINKAGE__
61 # if defined(__cplusplus) || defined(c_plusplus)
62 # define __VARARG__ ...
66 # if defined(__STDARG__)
67 # define __VA_START__(p,a) va_start(p,a)
69 # define __VA_START__(p,a) va_start(p)
71 # if !defined(__INLINE__)
72 # if defined(__cplusplus)
73 # define __INLINE__ extern __MANGLE__ inline
75 # if defined(_WIN32) && !defined(__GNUC__)
76 # define __INLINE__ __inline
81 #if !defined(__LINKAGE__)
82 #define __LINKAGE__ /* 2004-08-11 transition */
85 #define _def_iconv_ast 1
86 #define _sys_types 1 /* #include <sys/types.h> ok */
87 #define _hdr_iconv 1 /* #include <iconv.h> ok */
88 #define _lib_iconv_open 1 /* iconv_open() in default lib(s) */
89 #define _lib_iconv_close 1 /* iconv_close() in default lib(s) */
90 #define _lib_iconv 1 /* iconv() in default lib(s) */
91 #define _nxt_iconv <../include/iconv.h> /* include path for the native <iconv.h> */
92 #define _nxt_iconv_str "../include/iconv.h" /* include string for the native <iconv.h> */
93 #include <ast_common.h>
95 #include <../include/iconv.h> /* the native iconv.h */
103 #ifndef _ICONV_LIST_PRIVATE_
105 #define iconv_t _ast_iconv_t
107 #define iconv_f _ast_iconv_f
109 #define iconv_list_t _ast_iconv_list_t
111 #define iconv_open _ast_iconv_open
113 #define iconv _ast_iconv
115 #define iconv_close _ast_iconv_close
117 #define iconv_list _ast_iconv_list
119 #define iconv_move _ast_iconv_move
121 #define iconv_name _ast_iconv_name
123 #define iconv_write _ast_iconv_write
126 typedef Ccmap_t _ast_iconv_list_t
;
127 typedef __V_
* _ast_iconv_t
;
128 typedef size_t (*_ast_iconv_f
) __PROTO__((_ast_iconv_t
, char**, size_t*, char**, size_t*));
130 #if _BLD_ast && defined(__EXPORT__)
132 #define __MANGLE__ __LINKAGE__ __EXPORT__
135 extern __MANGLE__ _ast_iconv_t _ast_iconv_open
__PROTO__((const char*, const char*));
136 extern __MANGLE__
size_t _ast_iconv
__PROTO__((_ast_iconv_t
, char**, size_t*, char**, size_t*));
137 extern __MANGLE__
int _ast_iconv_close
__PROTO__((_ast_iconv_t
));
138 extern __MANGLE__ _ast_iconv_list_t
* _ast_iconv_list
__PROTO__((_ast_iconv_list_t
*));
139 extern __MANGLE__
int _ast_iconv_name
__PROTO__((const char*, char*, size_t));
141 extern __MANGLE__ ssize_t _ast_iconv_move
__PROTO__((_ast_iconv_t
, Sfio_t
*, Sfio_t
*, size_t, size_t*));
142 extern __MANGLE__ ssize_t _ast_iconv_write
__PROTO__((_ast_iconv_t
, Sfio_t
*, char**, size_t*, size_t*));
145 extern __MANGLE__ ssize_t _ast_iconv_move
__PROTO__((_ast_iconv_t
, FILE*, FILE*, size_t, size_t*));
146 extern __MANGLE__ ssize_t _ast_iconv_write
__PROTO__((_ast_iconv_t
, FILE*, char**, size_t*, size_t*));
151 #define __MANGLE__ __LINKAGE__