NetBSD libc is in the master branch and hooked into the make world/elf-libraries procedure.
In the latest version of the master branch, gcc and clang *always* use the netbsd headers and libraries, and no elf libraries of the minix libraries are generated any more, to simplify things.
In order to be able to neatly track NetBSD sources, and easily import and patch more, there is a system to retrieve NetBSD sources using cvs, and automatically generate patch files from the current Minix code with respect to the current NetBSD code.
The list of imported NetBSD sub-hierarchies is in tools/nbsd_ports. Each line is an imported hierarchy, where the first column is the Minix location, and the second column is the NetBSD CVS location. E.g.:
common/lib/libc src/common/lib/libc lib/nbsd_libc src/lib/libc lib/nbsd_libm src/lib/libm nbsd_include src/include
The CVS revision of the NetBSD code currently imported in Minix is set in nbsd.config.
pkgin in cvs
After running the following command, the original NetBSD sources will be stored, for reference, in src/nbsdsrc.
cd /usr/src/tools && make nbsd_fetch
Using nbsd.config, this fetches the right revision of the imported hierarchies.
To update each hierarchy's patch file (minix-port.patch):
if [ “$-” : '.*i.*' which takes advantage of
[being the same with MINIX port of
ash(1), not so with NetBSD