i don't think that filemon(4) is done properly or at the right layers. it should hook directly into the vfs layer itself, not hijack system calls. it certainly still doesn't work properly for netbds32 binaries or any other binaries. your changes are helpful, but it's still very very broken.
I agree that it probably needs to be completely re-written if it were to be generally useable. But, given that the only real use-case we have for it so far is make(1) (and even then, only in "meta-mode"), I think that the re-write effort far out-weighs the benefits. Besides, I don't know enough about the vfs layer to get it right! :) +------------------+--------------------------+-------------------------+ | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com | | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org | +------------------+--------------------------+-------------------------+