This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: /dev/dsp - dup and open_count
- From: Christopher Faylor <me at cgf dot cx>
- To: cygwin-developers at cygwin dot com
- Date: Sat, 12 Jun 2004 13:08:44 -0400
- Subject: Re: /dev/dsp - dup and open_count
- References: <01C450AE.29779190.Gerd.Spalink@t-online.de>
- Reply-to: cygwin-developers at cygwin dot com
On Sat, Jun 12, 2004 at 06:50:41PM +0200, Gerd Spalink wrote:
>3. dup is different from a second open. It creates a second instance,
>but it should use the same buffers and wave device handles.
>dup() should thus work for both reading and writing. Maybe,
>a dup_count variable is the way to go forward.
>
>Any comments?
Pierre already suggested that I had implemented an archetype class
which is used by ttys. I don't think we should be reimplementing
another mechanism when we already have one available.
Unfortunately, I got tired and probably didn't make things as
generic as I should have when implementing archetypes but I don't
think we are far from getting these operational.
cgf