[sane-devel] Re: pthreads for MacOSX (instead of child process)

Beat Birkhofer beat.birkhofer@ilw.agrl.ethz.ch
Wed, 5 Feb 2003 19:44:51 +0100


>Assuming that access to device files will "survive" a fork() like with a
>"real" Unix, this sounds like a better way to adapt Sane to MacOS X.
>That's all pure theory though -- I have never worked with MacOS X...

Hi

I don't think it's possible:

Citing the same document (IOKit Fundamentals):

title: 'POSIX Device Files'
"These interfaces enable communication with serial, storage, and 
network devices through device files."

USB (or even scanners) is not mentioned. My /dev:

bpf0
...
bpf3
console
cu.IrDA-IrCOMMch-b
cu.modem
disk0
...
disk1s2
fd
klog
kmem
mem
null
ptyp0
...
ptywf
random
rdisk0
...
rdisk1s2
stderr
stdin
stdout
tty
tty.IrDA-IrCOMMch-b
tty.modem
ttyp0
...
ttywf
urandom
vn0
...
vn3
zero

Regards

Beat H.