Subject: Outb problem
To: None <current-users@netbsd.org>
From: Alexander Nazarenko <sasha@deimos.ldc.net>
List: current-users
Date: 09/26/2000 18:10:04
I have little programm for working with io :
#include <machine/types.h>
#include <machine/pio.h>
...

 if (dummy=fopen("/dev/io", "r")) {
                 outb(port_addr, byte);
    fclose(dummy);
  }

...

But when it runs(37a 1 - for working with lpt port)  i have "bus error
(core dumped)" 
When i run gdb on core file i see that it fails on outb function.
Any ideas? On freebsd it works good.