diff options
| author | tnozaki <tnozaki@NetBSD.org> | 2010-06-07 13:52:28 +0000 |
|---|---|---|
| committer | tnozaki <tnozaki@NetBSD.org> | 2010-06-07 13:52:28 +0000 |
| commit | 9efec5bce3da05aa74c710deaa180d73b2f1ab11 (patch) | |
| tree | 5c3668228f653ec862cbe9d2adf754afd6aacb05 /lib/libc/compat/include | |
| parent | 505728c6b8eb8b35ebee032595aed52e789a03bd (diff) | |
1. MB_LEN_MAX switch MD to MI.
2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32
so we have to add more setlocale(3) __RENAME func, __setlocale50.
3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/*
prepareing for next libc major crunk.
4. bump libc minor version.
Diffstat (limited to 'lib/libc/compat/include')
| -rw-r--r-- | lib/libc/compat/include/locale.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/libc/compat/include/locale.h b/lib/libc/compat/include/locale.h new file mode 100644 index 00000000000..455be3079c9 --- /dev/null +++ b/lib/libc/compat/include/locale.h @@ -0,0 +1,44 @@ +/* $NetBSD: locale.h,v 1.1 2010/06/07 13:52:30 tnozaki Exp $ */ + +/* + * Copyright (c) 1991, 1993 + * The Regents of the University of California. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * @(#)locale.h 8.1 (Berkeley) 6/2/93 + */ + +#ifndef _COMPAT_LOCALE_H_ +#define _COMPAT_LOCALE_H_ + +#define _LC_LAST 7 /* marks end */ + +__BEGIN_DECLS +char *setlocale(int, const char *); +char *__setlocale_mb_len_max_32(int, const char *); +__END_DECLS + +#endif /* _COMPAT_LOCALE_H_ */ |
