NetBSD/include
tnozaki 52ed7b035f Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
2009-01-02 00:20:18 +00:00
..
arpa sync with bind-9-5-0 2008-06-21 20:12:49 +00:00
heimdal Don't define __RCSID() here, since sys/cdefs.h does it later. Avoids 2008-08-29 00:39:30 +00:00
protocols Make restore work for Linux dump volumes by ignoring extended attribute 2008-12-26 19:26:04 +00:00
rpc Centralize the TCP_NODELAY handling as discussed in tech-net. 2006-06-22 19:35:34 +00:00
rpcsvc kill another definition of bool. 2007-10-06 16:17:34 +00:00
ssp Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
a.out.h Modify the licences of code written by Theo De Raadt from a 4-clause 2003-12-10 12:06:25 +00:00
aio.h Adjust and thus unify my license. 2008-05-26 17:45:51 +00:00
ar.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
assert.h include <sys/null.h> because _DIAGASSERT(foo == NULL) is too common and some 2008-11-02 14:27:44 +00:00
atomic.h /usr/include/atomic.h, for Solaris source compat. 2008-05-28 12:28:12 +00:00
bitstring.h remove obsolete "register" declarations 2005-02-06 04:38:18 +00:00
bm.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
complex.h Add C99 complex support, for double and float. 2007-08-20 16:01:28 +00:00
cpio.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ctype.h u_intN_t -> uintN_t 2005-12-26 19:01:47 +00:00
db.h Convert db from UCB types to POSIX types. Prefer uint8_t for u_char as 2008-08-26 21:18:38 +00:00
dirent.h Add fdopendir(), from Solaris/Linux. 2008-12-05 13:08:53 +00:00
disktab.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
dlfcn.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
err.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
errno.h Add a comment noting that the definition of __errno is now replicated in 2008-03-03 06:57:48 +00:00
fmtmsg.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
fnmatch.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
fstab.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
fts.h Use "unsigned foo" instead of "u_foo". 2008-03-07 10:38:31 +00:00
ftw.h Add Todd Miller's ftw(3) and nftw(3) file-tree walking functionality, 2005-12-30 23:07:31 +00:00
getopt.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
glob.h PR/39534: Henning Petersen: Typo = instead of / to close comment. 2008-09-13 17:05:07 +00:00
grp.h kill _NETBSD_TOOLS. 2007-10-19 15:58:52 +00:00
hesiod.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
iconv.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
ieeefp.h PR/32108: Greg Oster: fpgetmask() linking failure with g++ on macppc 2005-11-18 20:02:59 +00:00
ifaddrs.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
inttypes.h Add C99 imaxabs and imaxdiv protoypes and imaxdiv_t typedef. 2008-08-04 21:19:45 +00:00
iso646.h
kvm.h Add kvm_dump_header and implement kvm_dump_wrtheader on top of it. 2007-11-08 20:48:04 +00:00
langinfo.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
libgen.h remove the const again - per core. 2008-05-10 22:37:42 +00:00
limits.h Make _POSIX_TZNAME_MAX=6 per SUSv3, from Andy Shevchenko 2008-08-27 08:53:55 +00:00
link_aout.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
link_elf.h Fix comment indentation after __P was deleted. 2006-01-11 22:50:35 +00:00
link.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
locale.h Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format. 2009-01-02 00:20:18 +00:00
login_cap.h don't set obsolete flags in SETALL. From Anon Ymous 2007-10-07 01:23:17 +00:00
lwp.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
Makefile /usr/include/atomic.h, for Solaris source compat. 2008-05-28 12:28:12 +00:00
malloc.h
math.h make name const. 2008-04-25 21:20:57 +00:00
md2.h u_intN_t -> uintN_t 2005-12-26 19:01:47 +00:00
memory.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
mntopts.h Merge the simonb-wapbl branch. From the original branch commit: 2008-07-31 05:38:04 +00:00
monetary.h add missing attributes to the remaining calls, even the ones that gcc has 2008-09-21 16:59:46 +00:00
mpool.h Convert db from UCB types to POSIX types. Prefer uint8_t for u_char as 2008-08-26 21:18:38 +00:00
mqueue.h Adjust and thus unify my license. 2008-05-26 17:45:51 +00:00
ndbm.h compat code reorg 2005-09-13 01:44:32 +00:00
netconfig.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
netdb.h sync with bind-9-5-0 2008-06-21 20:12:49 +00:00
netgroup.h Move .db files for services and netgroup to /var/db per gimpy's request. 2007-05-10 17:45:50 +00:00
nl_types.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
nlist.h Change __aconst to const so I can compile systat and vmstat with WARNS=3 2005-02-26 21:16:35 +00:00
nsswitch.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
paths.h Support RESCUEDIR for _PATH_VI. 2008-09-28 06:38:02 +00:00
pwd.h kill _NETBSD_TOOLS. 2007-10-19 15:58:52 +00:00
randomid.h u_intN_t -> uintN_t 2005-12-26 19:01:47 +00:00
ranlib.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
re_comp.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
regex.h compat code reorg 2005-09-13 01:44:32 +00:00
regexp.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
res_update.h sync with bind-9-5-0 2008-06-21 20:12:49 +00:00
resolv.h restore correct symbol protection and add a comment so that I don't 2008-06-21 20:24:40 +00:00
rmt.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
sa.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
sched.h Add sched_getaffinity_np() and sched_setaffinity_np() wrappers, mainly 2008-10-31 00:29:19 +00:00
search.h The source array of lsearch() shouldn't be "const". 2005-07-06 15:47:15 +00:00
semaphore.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
setjmp.h change some __attribute__s to __keywords 2007-12-24 17:26:09 +00:00
sgtty.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
signal.h Add a comment noting that the definition of __errno is now replicated in 2008-03-03 06:57:48 +00:00
stab.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
stdbool.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
stddef.h Use __GNUC_PREREQ__() for the GCC 4 test, too. 2006-08-21 16:58:29 +00:00
stdio.h add missing attributes to the remaining calls, even the ones that gcc has 2008-09-21 16:59:46 +00:00
stdlib.h Use __builtin_alloc() with pcc. 2008-06-21 00:58:00 +00:00
string.h kill _NETBSD_TOOLS. 2007-10-19 15:58:52 +00:00
stringlist.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
strings.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
struct.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
sysexits.h Add a comment asking to update sysexits(3) when adding more entries. 2005-09-30 20:56:19 +00:00
tar.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
tgmath.h Add the C99 header <tgmath.h> (Type-generic math.h) 2008-09-28 14:57:41 +00:00
time.h add missing attributes to the remaining calls, even the ones that gcc has 2008-09-21 16:59:46 +00:00
ttyent.h Add setttyentpath(), functionally equivalent to setttyent() but takes an 2006-04-17 23:29:21 +00:00
tzfile.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
ucontext.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ulimit.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
unistd.h SUS says that pthread_atfork() must also be in unistd.h 2008-06-25 11:45:38 +00:00
util.h humanize_number was the only function in <util.h> that is not in libutil. 2007-12-14 16:36:19 +00:00
utime.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
utmp.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
utmpx.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
uuid.h constify uuid(3) 2008-04-23 07:52:32 +00:00
varargs.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
vis.h compat code reorg 2005-09-13 01:44:32 +00:00
wchar.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
wctype.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
wordexp.h everyone else assumes that defining "_XOPEN_SOURCE" means XPG4.2, 2008-04-01 19:23:28 +00:00