2006-05-02から1日間の記事一覧

/dev/dspの多重オープン

やはり、Cygwinでは/dev/dspの多重オープンができないようです。 これは次のコードでも確認できます。 #include <cassert> #include <fcntl.h> int main() { assert(::open("/dev/dsp", O_RDONLY) != -1); assert(::open("/dev/dsp", O_WRONLY) != -1); }Cygwinのソースコード</fcntl.h></cassert>…