summaryrefslogtreecommitdiff
path: root/include/iconv.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2013-11-17 22:52:17 +0000
committerPeter Wemm <peter@FreeBSD.org>2013-11-17 22:52:17 +0000
commit091b8336ae1c77b1c268d3b28b4f37630da60c5c (patch)
treea08268f5081298bbb417c0278202ffe5b5b18bde /include/iconv.h
parentb20a9aa92a174e3769baa4defbdabd88d535d568 (diff)
downloadsrc-test-091b8336ae1c77b1c268d3b28b4f37630da60c5c.tar.gz
src-test-091b8336ae1c77b1c268d3b28b4f37630da60c5c.zip
Attempt to move the POSIX iconv* symbols out of runtime linker space.
FreeBSD systems usually implemented this as a third party module and our implementation hasn't played as nicely with the old way as it could have. To that end: * Rename the iconv* symbols in libc.so.7 to have a __bsd_ prefix. * Provide .symver compatability with existing 10.x+ binaries that referenced the iconv symbols. All existing binaries should work. * Like on Linux/glibc systems, add a libc_nonshared.a to the ldscript at /usr/lib/libc.so. * Move the "iconv*" wrapper symbols to libc_nonshared.a This should solve the runtime ambiguity about which symbols resolve to where. If you compile against the iconv in libc, your runtime dependencies will be unambiguous. Old 9.x libraries and binaries will always resolve against their libiconv.so.3 like they did on 9.x. They won't resolve against libc. Old 10.x binaries will be satisified by the .symver helpers. This should allow ports to selectively compile against the libiconv port if needed and it should behave without ambiguity now. Discussed with: kib
Notes
Notes: svn path=/head/; revision=258283
Diffstat (limited to 'include/iconv.h')
-rw-r--r--include/iconv.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/iconv.h b/include/iconv.h
index c6b0799725cba..da1036a331df6 100644
--- a/include/iconv.h
+++ b/include/iconv.h
@@ -69,17 +69,12 @@ size_t __iconv(iconv_t, const char **, size_t *, char **,
/*
* GNU interfaces for iconv
*/
-/* We have iconvctl() */
-#define _ICONV_VERSION 0x0108
-extern int _iconv_version;
-
typedef struct {
void *spaceholder[64];
} iconv_allocation_t;
int iconv_open_into(const char *, const char *, iconv_allocation_t *);
-void iconv_set_relocation_prefix(const char *orig_prefix,
- const char *curr_prefix);
+void iconv_set_relocation_prefix(const char *, const char *);
/*
* iconvctl() request macros