Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Apr 1995 10:23:56 -0700 (PDT)
From:      "Andrey A. Chernov" <ache>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        CVS-commiters@freefall.cdrom.com, cvs-sys@freefall.cdrom.com
Subject:   Re: cvs commit: src/sys/i386/isa sio.c
Message-ID:  <199504021723.KAA05339@freefall.cdrom.com>
In-Reply-To: <199504020919.TAA07274@godzilla.zeta.org.au> from "Bruce Evans" at Apr 2, 95 07:19:36 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> >  Modified:    sys/i386/isa sio.c
> >  Log:
> >  Fix error:
> >  old type (stty) ioctls can easily bypass locking bits.
> >  It involves manual conversion from old ioctls to new ones,
> >  large piece of code duplicated from tty_compat.c
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Aarggh.
> 
> There's got to be a better way to do this.  Maybe translate the locking
> bits?
> 
> Bruce
> 

Yes, but not translate locking bits, it cause even larger code.
I plan left common code into tty_compat.c and call it from sio too.
Current implementation is dirty (because of code duplication)
but 100% safe :-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504021723.KAA05339>