I tried :
```
import std.stdio;
import core.sys.posix.ioctl;
import core.stdc.config;
import core.stdc.stdio;

void main() {
        writeln("Set vol to min");
        char *mixerdev=cast(char *)"/dev/mixer";
        char *mode=cast(char *)"rw";
        int mixfd=cast(int)fopen(mixerdev,mode);
        writeln(mixfd);
        c_ulong x=3221507328;
        int left=0;
        ioctl(mixfd,x, &left);
}
```
But I think I did here a mysterious cast of a FILE* handle to int , which is probably rubbish ....

Reply via email to