time for 1.5.11?
Igor Pechtchanski
pechtcha@cs.nyu.edu
Wed Jun 9 20:15:00 GMT 2004
On Wed, 9 Jun 2004, Corinna Vinschen wrote:
> On Jun 9 13:01, Christopher Faylor wrote:
> > Anyway, on to the future... Would it make sense to release a 1.5.11?
> > Do you think we've hit all of the fallout from the path reorg/speedup?
>
> Looking through the reports on the Cygwin list, I see that we never
> got a reply if the MapViewOfFileEx problem has been solved. Also,
> what about the report that /dev/dsp isn't working? Igor was going to
> investigate this further. Any news, Igor?
I'm still investigating. So far it looks like /dev/dsp doesn't like to be
dup'd (but then, who does? ;-)). I'm attaching a short test program to
demostrate this, but I'll keep digging...
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
-------------- next part --------------
#include <fcntl.h>
#include <unistd.h>
#define BUFSIZE 1024
#define WORKS "This works\n"
#define NWORKS "This doesn\'t work\n"
int main(int ac, char *av[]) {
char buf[BUFSIZE+1];
int num, src, dst;
write(2, WORKS, sizeof(WORKS)-1);
src = open("/cygdrive/c/WINNT/Media/tada.wav", O_RDONLY);
dst = open("/dev/dsp", 0x601);
while ((num = read(src, buf, BUFSIZE)) > 0)
write(dst, buf, num);
close(dst);
close(src);
write(2, NWORKS, sizeof(NWORKS)-1);
src = open("/cygdrive/c/WINNT/Media/tada.wav", O_RDONLY);
dst = open("/dev/dsp", 0x601);
dup2(dst, 1); dst = 1;
while ((num = read(src, buf, BUFSIZE)) > 0)
write(dst, buf, num);
close(dst);
close(src);
}
More information about the Cygwin-developers
mailing list