> >> ioctl(fd, SETVOLUME, &vol); is more comfortable.
I bet 20h was being facetious and is hugely enjoying this
"discussion".
> > ah, but how about
> > echo volume 50 >/dev/audioctl
> > for understandability?
>
> i would also add:
>
> import -b noisemaker /dev
> echo volume 50 >/dev/audioctl
>
> please ioctl this!
Easy!
kldload noisemaker.ko
noisemakercontrol volume 50
Much more comfortable! And the ioctl is happening inside
the noisemakercontrol program:-)
Someone needs to point out to non-plan9 people that the plan9
way is really dynamic linking + object oriented programming
on steroids. But with a different calling convention and
different limitations. Of course, since it uses utf8 strings
as arguments, some people will want to internationalize them
(how dare you force us to use an english word? We in
foobarland don't say "volume").