Add an assembly version of strcpy/strncpy/strlcpy.
(they all use a common source with defines to determine which to build).
KNF a comment.
Correct a comment
Use NULL not 0 for pointer assignment.
Replace alloca(256) with an array.
The code ended up using alloca() from libc - which 'just can't work' (tm).
It is also pointless!
Explicitly include sys/ioctl.h
Explicitly include sys/resource.h
pstat is a kmem groveller, set -D_KMEMUSER in CPPFLAGS
Remove check for GLOB_NOCHECK - the behaviour has been changed again, so it
will return a modified pattern.
we define HAS_ISBLANK in the Makefile
Really expand the name, not the definition, as the comment says.
Rename strlen_armv6.S to strlen.S since this is no longer armv6 dependent.
Deal with _LIBC (aliases, etc).
Add missing #endif.
# There is some very dubious code to locate the values of
# tcb.rcv_adv, tcb.snd_nxt and tcb.rcv_nxt for a socket.
so add: CPPFLAGS+=     -D_KMEMUSER
I've NFI why this code has userspace stuff playing with 'struct proc *'
  nor why it uses &p0 as a magic constant (rather than NULL).
Re-instate the definition of p0, but enable the 'fake' definition
  of 'struct proc' if the relevant part of sys/proc.h seems to have
  been #if'ed away.
Should fix the build.
Don't define __BIT/__BITS if __ASSEMBLER__ is defined.
(since they use C syntax they won't work anyways).
Test the netbsd and mtree flavors.
fix mtree sets
There is some very dubious code to locate the values of
tcb.rcv_adv, tcb.snd_nxt and tcb.rcv_nxt for a socket.
so set CPPFLAGS+=      -D_KMEMUSER
amd64's machine/reg now includes fpu.h (to define 'struct fxsave64)
so no need to include signal.h here - which shouldn't result in
the definitions in fpu.h being included anyway.