Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/iconv/iconv_compat.c
Show All 32 Lines | |||||
* space was exposed via libc.so.7 in its early life. This is | * space was exposed via libc.so.7 in its early life. This is | ||||
* a transition aide, these wrappers will not normally ever be | * a transition aide, these wrappers will not normally ever be | ||||
* executed except via __sym_compat() references. | * executed except via __sym_compat() references. | ||||
*/ | */ | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <iconv.h> | #include <iconv.h> | ||||
#include "iconv-internal.h" | #include "iconv-internal.h" | ||||
size_t | static size_t | ||||
__iconv_compat(iconv_t a, char ** b, size_t * c, char ** d, | __iconv_compat(iconv_t a, char ** b, size_t * c, char ** d, | ||||
size_t * e, __uint32_t f, size_t *g) | size_t * e, __uint32_t f, size_t *g) | ||||
{ | { | ||||
return __bsd___iconv(a, b, c, d, e, f, g); | return __bsd___iconv(a, b, c, d, e, f, g); | ||||
} | } | ||||
void | static void | ||||
__iconv_free_list_compat(char ** a, size_t b) | __iconv_free_list_compat(char ** a, size_t b) | ||||
{ | { | ||||
__bsd___iconv_free_list(a, b); | __bsd___iconv_free_list(a, b); | ||||
} | } | ||||
int | static int | ||||
__iconv_get_list_compat(char ***a, size_t *b, __iconv_bool c) | __iconv_get_list_compat(char ***a, size_t *b, __iconv_bool c) | ||||
{ | { | ||||
return __bsd___iconv_get_list(a, b, c); | return __bsd___iconv_get_list(a, b, c); | ||||
} | } | ||||
size_t | static size_t | ||||
iconv_compat(iconv_t a, char ** __restrict b, | iconv_compat(iconv_t a, char ** __restrict b, | ||||
size_t * __restrict c, char ** __restrict d, | size_t * __restrict c, char ** __restrict d, | ||||
size_t * __restrict e) | size_t * __restrict e) | ||||
{ | { | ||||
return __bsd_iconv(a, b, c, d, e); | return __bsd_iconv(a, b, c, d, e); | ||||
} | } | ||||
const char * | static const char * | ||||
iconv_canonicalize_compat(const char *a) | iconv_canonicalize_compat(const char *a) | ||||
{ | { | ||||
return __bsd_iconv_canonicalize(a); | return __bsd_iconv_canonicalize(a); | ||||
} | } | ||||
int | static int | ||||
iconv_close_compat(iconv_t a) | iconv_close_compat(iconv_t a) | ||||
{ | { | ||||
return __bsd_iconv_close(a); | return __bsd_iconv_close(a); | ||||
} | } | ||||
iconv_t | static iconv_t | ||||
iconv_open_compat(const char *a, const char *b) | iconv_open_compat(const char *a, const char *b) | ||||
{ | { | ||||
return __bsd_iconv_open(a, b); | return __bsd_iconv_open(a, b); | ||||
} | } | ||||
int | static int | ||||
iconv_open_into_compat(const char *a, const char *b, iconv_allocation_t *c) | iconv_open_into_compat(const char *a, const char *b, iconv_allocation_t *c) | ||||
{ | { | ||||
return __bsd_iconv_open_into(a, b, c); | return __bsd_iconv_open_into(a, b, c); | ||||
} | } | ||||
void | static void | ||||
iconv_set_relocation_prefix_compat(const char *a, const char *b) | iconv_set_relocation_prefix_compat(const char *a, const char *b) | ||||
{ | { | ||||
return __bsd_iconv_set_relocation_prefix(a, b); | return __bsd_iconv_set_relocation_prefix(a, b); | ||||
} | } | ||||
int | static int | ||||
iconvctl_compat(iconv_t a, int b, void *c) | iconvctl_compat(iconv_t a, int b, void *c) | ||||
{ | { | ||||
return __bsd_iconvctl(a, b, c); | return __bsd_iconvctl(a, b, c); | ||||
} | } | ||||
void | static void | ||||
iconvlist_compat(int (*a) (unsigned int, const char * const *, void *), void *b) | iconvlist_compat(int (*a) (unsigned int, const char * const *, void *), void *b) | ||||
{ | { | ||||
return __bsd_iconvlist(a, b); | return __bsd_iconvlist(a, b); | ||||
} | } | ||||
int _iconv_version_compat = 0x0108; /* Magic - not used */ | int _iconv_version_compat = 0x0108; /* Magic - not used */ | ||||
__sym_compat(__iconv, __iconv_compat, FBSD_1.2); | __sym_compat(__iconv, __iconv_compat, FBSD_1.2); | ||||
Show All 11 Lines |