tested native on dosemu/djgpp and netbsd 1.6.2