This now creates code that can be compiled into linuxbios. I have tested building with it but can't try running it just yet. I will test it later today but wanted to put it out for comments and corrections.
The code is still ugly, I need to format it, but wanted to let people see it. It is adopted from a freebsd base. I ripped out getopt as getopt now varies too much: it has options on freebsd that appear not to exist on linux.
ron