William Barnett-Lewis <wlewisiii at gmail.com> writes:
register struct exec *workp;
workp->a_magic = mode;
Those structures aren't right & the workp-> pointers all give major
complaints in GCC (dereferencing pointer to incomplete type)
It looks like you lack a full declaration for struct exec. It look
like it should describe the header of an old a.out-style executable,
and it would usually be found in a file called a.out.h or sys/exec.h.
E.g. something like this:
http://www.retro11.de/ouxr/211bsd/usr/man/cat5/a.out.0.html
I have no idea wheter NetBSD 1.6.2 still uses this executable format.
If not, you have some programming to do.