🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7857

ftruncate on /dev/audio

#7857
From: Jeffrey A Law
Date: Tue, 04 Jun 1991 18:40
17 lines
778 bytes
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?
Technical Details
Message-ID: <2947@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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