ftruncate on /dev/audio

Jeffrey A Law law at super.org
Wed Jun 5 04:40:00 AEST 1991


The following code crashes sparcstations running 4.1.1.  Anyone
know if Sun has fixed this yet?

#include <fcntl.h>
main()

{
int fd;

fd = open ("/dev/audio", O_RDWR);
ftruncate(fd, 8192);
}

Jeff

PS. You can get the same results by rcping from a remote host into
a local /dev/audio.  Cute huh?




More information about the Comp.sys.sun mailing list