linux code compat (90%)