Path: utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: law@super.org (Jeffrey A Law) Newsgroups: comp.sys.sun Subject: ftruncate on /dev/audio Keywords: No Digest Subjects in Unmoderated Mode Message-ID: <2947@brchh104.bnr.ca> Date: 4 Jun 91 18:40:00 GMT Sender: news@brchh104.bnr.ca Organization: Sunspots, Psuedo-Unmoderated Lines: 18 Approved: sun-spots@rice.edu X-Original-Date: Wed, 08 May 91 11:53:30 -0400 The following code crashes sparcstations running 4.1.1. Anyone know if Sun has fixed this yet? #include 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?