NetBSD/lib
christos 2884af9fee From Ingo Schwarze:
el_getc() for the WIDECHAR case, that is, the version in eln.c.
For a UTF-8 locale, it is broken in four ways:

 1. If the character read is outside the ASCII range, the function
    does an undefined cast from wchar_t to char.  Even if wchar_t
    is internally represented as UCS-4, that is wrong and dangerous
    because characters beyond codepoint U+0255 get their high bits
    truncated, meaning that perfectly valid printable Unicode
    characters get mapped to arbitrary bytes, even the ASCII escape
    character for some Unicode characters.  But wchar_t need not
    be implemented in terms of UCS-4, so the outcome of this function
    is undefined for any and all input.

 2. If insufficient space is available for the result, the function
    fails to detect failure and returns garbage rather than -1 as
    specified in the documentation.

 3. The documentation says that errno will be set on failure, but
    that doesn't happen either in the above case.

 4. Even for ASCII characters, the results may be wrong if wchar_t
    is not using UCS-4.
2016-02-14 17:06:24 +00:00
..
csu Undo previous; the lossage is more basic. 2016-01-24 16:47:32 +00:00
i18n_module Revert last, it breaks the tricks xsrc uses. 2012-08-23 21:21:14 +00:00
libarch Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
libbluetooth correct comment in literal section 2016-01-22 08:51:40 +00:00
libbpfjit Add libbpfjit library. 2012-11-11 17:34:06 +00:00
libbsdmalloc These directories don't handle WARNS=5 2012-03-21 10:08:30 +00:00
libbz2 Reorg docs, part 1: 2014-07-05 19:22:41 +00:00
libc Avoid shadowing global. 2016-02-06 19:33:07 +00:00
libc_vfp Possibly build libc_vfp if MACHINE_CPU is aarch64 too. 2015-07-08 01:08:24 +00:00
libcompat PR/50711: David Binderman: Fix memory leak on error 2016-01-26 16:05:18 +00:00
libcrypt fix error messages 2015-06-17 00:15:26 +00:00
libcurses Clear the "forced" flag after updating a line, otherwise we'll always do 2016-01-10 08:11:06 +00:00
libdm The actual header file for these functions is dm.h, not libdm.h. 2016-01-22 22:12:40 +00:00
libedit From Ingo Schwarze: 2016-02-14 17:06:24 +00:00
libexecinfo Fix typo, from FreeBSD. 2015-12-26 10:34:36 +00:00
libform Counting from 0 to n-1 can go wrong badly, if n is unsigned and zero and 2015-12-11 21:22:57 +00:00
libintl back to the defines (fixing a typo -- extra 'g') 2015-06-08 15:04:20 +00:00
libipsec include <netipsec/ipsec.h> rather than <netinet6/ipsec.h> from userland 2012-01-04 16:09:40 +00:00
libisns If a library needs a symbol from another library, pull that library in 2013-09-11 23:04:09 +00:00
libkern Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
libkvm mips needs _KMEMUSER for label_t in pcb.h 2016-01-24 16:07:48 +00:00
liblwres
libm Fix incorrect magic numbers in scaling. From FreeBSD commit 23397, by 2016-01-24 20:34:30 +00:00
libmenu fix unused warnings 2013-10-18 19:53:59 +00:00
libnpf - Change LDADD/DPADD in library dependencies to LIBDPLIBS 2016-01-05 13:07:46 +00:00
libossaudio Add missing defines for 16, 24 and 32 bit NE and OE formats. 2014-09-09 10:45:18 +00:00
libp2k Don't include <rump/rumpvnode_if.h> from rump.h. It's not needed 2016-01-25 11:45:57 +00:00
libpam Adapt to the new API. 2015-04-04 02:51:10 +00:00
libpanel Specify path of a local internal header of libpanel 2015-11-22 04:30:33 +00:00
libpci unsigned -> unsigned int 2016-01-23 07:21:18 +00:00
libperfuse Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
libpmc pmc_evid_, pmc_ctr_t etc are defined in <machine/types.h> but are not exposed 2016-01-23 21:44:55 +00:00
libposix MKCOMPAT fixes for when compat MACHINE_CPU != normal MACHINE_CPU 2014-08-10 23:25:49 +00:00
libppath If a library needs a symbol from another library, pull that library in 2013-09-11 23:04:09 +00:00
libprop These directories default to WARNS?=5 2012-03-21 05:37:42 +00:00
libpthread Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant 2015-08-27 12:30:50 +00:00
libpthread_dbg don't use kernel types. 2016-01-23 14:02:21 +00:00
libpuffs Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
libquota Some NFS servers return RPC_PROGNOTREGISTERED instead of RPC_PROGVERSMISMATCH 2016-01-30 16:31:28 +00:00
libradius
librefuse Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
libresolv src is too big these days to tolerate superfluous apostrophes. It's 2014-10-18 08:33:23 +00:00
librmt Use C89 function definition 2012-03-21 10:10:36 +00:00
librpcsvc remove __P 2013-12-20 21:04:09 +00:00
librt Bump date for previous. 2015-11-19 07:03:13 +00:00
librump This is not needed anymore. 2015-08-21 06:56:35 +00:00
librumpclient Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
librumpdev
librumphijack Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
librumpnet
librumpuser Move librumpuser compile-time options into the librumpuser source 2016-01-25 00:24:23 +00:00
librumpvfs Move rump kernel man pages from various sources to sys/rump 2014-11-09 17:39:37 +00:00
libskey Uses FILE *, needs stdio.h. 2016-01-22 23:25:51 +00:00
libss
libtelnet Avoid enum type mismatch. 2014-04-26 22:10:40 +00:00
libterminfo Always copy the area buffer, even when the length was the same 2015-11-26 01:03:22 +00:00
libukfs Don't include <rump/rumpvnode_if.h> from rump.h. It's not needed 2016-01-25 11:45:57 +00:00
libusbhid Uses __BEGIN_DECLS so needs sys/cdefs.h; also needs stdint.h. 2016-01-22 23:51:23 +00:00
libutil prefer <sys/cpu.h> instead of <machine/cpu.h> 2016-01-25 18:14:04 +00:00
libwrap these are syslog-like 2015-10-14 15:54:21 +00:00
liby Use C89 function definition 2012-03-21 10:10:36 +00:00
libz Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
lua lua: updated from 5.3 work3 to 5.3.0 2015-02-02 14:03:05 +00:00
npf If a library needs a symbol from another library, pull that library in 2013-09-11 23:04:09 +00:00
bumpversion
checkoldver
checkver remove -'s from options 2013-02-17 02:36:21 +00:00
checkvers
Makefile use EXTERNAL_BINUTILS_SUBDIR 2016-01-26 17:47:35 +00:00
Makefile.inc Libraries default to be built with WARNS=5 2012-03-21 05:39:21 +00:00