Date: Sat, 2 Aug 1997 14:05:16 +0200 (MET DST) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: msmith@atrad.adelaide.edu.au (Michael Smith) Cc: jas@flyingfox.com, msmith@atrad.adelaide.edu.au, hackers@FreeBSD.ORG Subject: Re: device close behaviour - a question Message-ID: <199708021205.OAA08390@labinfo.iet.unipi.it> In-Reply-To: <199708020252.MAA08782@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Aug 2, 97 12:21:59 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > then iterate over the devices, until an open() call does not return > > EBUSY (just like looking for an available pty). Since each "device" > > is open at most once, the device_close() routine gets called on > > every user-level close() call. > > This scheme works well if you are at liberty to enforce the behaviour > of userland programs. Luigi is faced with remaining compatible with > previous versions and also with the Linux interface, which is a fairly however, to be honest, in this case there is no backward compatibility issue since I don't think linux (voxware) allows multiple opens on the sound device. But boy, it's nice to make 1sec echos cat /dev/audio1 | dd obs=8000 > /dev/audio1 Cheers Luigi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708021205.OAA08390>