diff options
author | ache <ache@FreeBSD.org> | 2004-10-18 02:06:18 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2004-10-18 02:06:18 +0000 |
commit | bc82f1441b839d64b467b8eba61655474f90ba48 (patch) | |
tree | 4b2af3d71baa66fcb30b5f62a327d52af948dd7e /lib/libc/locale | |
parent | a85fd49a1d410a3ed58bdb61c4ec1d7a27884c53 (diff) | |
download | FreeBSD-src-bc82f1441b839d64b467b8eba61655474f90ba48.zip FreeBSD-src-bc82f1441b839d64b467b8eba61655474f90ba48.tar.gz |
Remove setrunelocale()
Diffstat (limited to 'lib/libc/locale')
-rw-r--r-- | lib/libc/locale/setrunelocale.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c index 5ca255c..53699e7 100644 --- a/lib/libc/locale/setrunelocale.c +++ b/lib/libc/locale/setrunelocale.c @@ -34,9 +34,6 @@ * SUCH DAMAGE. */ -/* setrunelocale() is obsolete in FreeBSD 6 -- use ANSI functions instead. */ -#define OBSOLETE_IN_6 - #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -64,26 +61,6 @@ extern _RuneLocale *_Read_RuneMagi(FILE *); static int __setrunelocale(const char *); -__warn_references(setrunelocale, "warning: setrunelocale() is obsolete. See setrunelocale(3)."); -int -setrunelocale(char *encoding) -{ - int ret; - - if (!encoding || !*encoding || strlen(encoding) > ENCODING_LEN || - (encoding[0] == '.' && - (encoding[1] == '\0' || - (encoding[1] == '.' && encoding[2] == '\0'))) || - strchr(encoding, '/') != NULL) - return (EINVAL); - - ret = __detect_path_locale(); - if (ret != 0) - return (ret); - - return (__setrunelocale((const char *)encoding)); -} - static int __setrunelocale(const char *encoding) { |