NetBSD/sys/lib/libkern
maxv ca08b3e761 Make copystr() a MI C function, part of libkern and shared on all
architectures.

Notes:

 - On alpha and ia64 the function is kept but gets renamed locally to avoid
   symbol collision. This is because on these two arches, I am not sure
   whether the ASM callers do not rely on fixed registers, so I prefer to
   keep the ASM body for now.
 - On Vax, only the symbol is removed, because the body is used from other
   functions.
 - On RISC-V, this change fixes a bug: copystr() was just a wrapper around
   strlcpy(), but strlcpy() makes the operation less safe (strlen on the
   source beyond its size).
 - The kASan, kCSan and kMSan wrappers are removed, because now that
   copystr() is in C, the compiler transformations are applied to it,
   without the need for manual wrappers.

Could test on amd64 only, but should be fine.
2020-06-30 16:20:00 +00:00
..
arch Add m68k assembler version of __muldi3(). 2020-05-31 11:43:37 +00:00
__main.c
copystr.c Make copystr() a MI C function, part of libkern and shared on all 2020-06-30 16:20:00 +00:00
crc16.h Revert previous for now: 2020-04-16 23:29:52 +00:00
crc32.c
crc32.h
entpool.c Rewrite entropy subsystem. 2020-04-30 03:28:18 +00:00
entpool.h Rewrite entropy subsystem. 2020-04-30 03:28:18 +00:00
hexdump.c
imax.c
imin.c
intoa.c
kern_assert.c
libkern.h Slightly reorder for clarity, and add header. 2020-04-17 17:24:46 +00:00
lmax.c
lmin.c
Makefile Use the standard build rules. 2018-06-05 00:57:47 +00:00
Makefile.compiler-rt For m68k, do not compile in {,u}divmodsi4 also, that are not used by 2020-04-24 00:22:57 +00:00
Makefile.inc - Determine KERN_AS automatically depending on whether OPT_MODULAR is 2018-09-22 12:24:01 +00:00
Makefile.libkern Make copystr() a MI C function, part of libkern and shared on all 2020-06-30 16:20:00 +00:00
milieu.h s/static inline/static __inline/g for consistency. 2018-04-19 21:50:06 +00:00
pmatch.c
rngtest.c We have popcount; no need to reimplement it. 2018-09-03 18:52:33 +00:00
scanc.c
skpc.c
softfloat-macros.h
softfloat-specialize.h
softfloat.c PR port-alpha/52520: provide float64 -> uint64 conversion and use 2017-12-31 11:43:42 +00:00
softfloat.h PR port-alpha/52520: provide float64 -> uint64 conversion and use 2017-12-31 11:43:42 +00:00
strnvisx.c
uimax.c Rename min.c -> uimin.c, max.c -> uimax.c in libkern. 2018-09-03 16:54:54 +00:00
uimin.c Rename min.c -> uimin.c, max.c -> uimax.c in libkern. 2018-09-03 16:54:54 +00:00
ulmax.c
ulmin.c
xlat_mbr_fstype.c