Fixed to use copyout(9) for output structs.