diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/hidden/locale.h | 26 | ||||
-rw-r--r-- | lib/libc/locale/localeconv.c | 3 | ||||
-rw-r--r-- | lib/libc/locale/setlocale.c | 3 |
3 files changed, 30 insertions, 2 deletions
diff --git a/lib/libc/hidden/locale.h b/lib/libc/hidden/locale.h new file mode 100644 index 00000000000..242e35325a3 --- /dev/null +++ b/lib/libc/hidden/locale.h @@ -0,0 +1,26 @@ +/* $OpenBSD: locale.h,v 1.1 2015/09/14 12:21:03 guenther Exp $ */ +/* + * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef _LIBC_LOCALE_H_ +#define _LIBC_LOCALE_H_ + +#include_next <locale.h> + +PROTO_NORMAL(localeconv); +PROTO_NORMAL(setlocale); + +#endif /* _LIBC_LOCALE_H_ */ diff --git a/lib/libc/locale/localeconv.c b/lib/libc/locale/localeconv.c index 8421fa3d953..1facb5484d4 100644 --- a/lib/libc/locale/localeconv.c +++ b/lib/libc/locale/localeconv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: localeconv.c,v 1.6 2014/07/14 07:22:07 pelikan Exp $ */ +/* $OpenBSD: localeconv.c,v 1.7 2015/09/14 12:21:03 guenther Exp $ */ /* * Written by J.T. Conklin <jtc@netbsd.org>. * Public domain. @@ -63,3 +63,4 @@ localeconv(void) return (&ret); } +DEF_STRONG(localeconv); diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index 9b0481df199..b508c217213 100644 --- a/lib/libc/locale/setlocale.c +++ b/lib/libc/locale/setlocale.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setlocale.c,v 1.23 2015/08/14 14:30:40 stsp Exp $ */ +/* $OpenBSD: setlocale.c,v 1.24 2015/09/14 12:21:03 guenther Exp $ */ /* * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -166,6 +166,7 @@ setlocale(int category, const char *locale) return (currentlocale()); } +DEF_STRONG(setlocale); static char * currentlocale(void) |