I don't think my change will make a difference, because there
was another copy of TIOCGSID in tty.c already. I don't think
anything is loading combat_43 on my machines...

christos

> On Oct 10, 2020, at 1:43 PM, nia <[email protected]> wrote:
> 
> On Sat, Oct 10, 2020 at 01:29:43PM -0400, Greg Troxel wrote:
>> 
>> [email protected] (Christos Zoulas) writes:
>> 
>>> Aside for the TIOCGSID bug which I am about to fix (it is in tty_43.c
>>> and is used in libc tcgetsid(), all the compat tty ioctls are defined
>>> in /usr/src/sys/sys/ioctl_compat.h... We can empty that file and try
>>> to build the tree :-), but I am guessing things will break. Also a lot
>>> of pkgsrc will break too. It is not 4.3 applications that break it is
>>> applications that still use the 4.3 terminal api's.
>> 
>> If the API is still present in our source tree, then the implementation
>> probably does not belong under COMPAT_43.  As I see it COMPAT_43 is to
>> match an old ABI that one can no longer (on modern NetBSD) compile to.
>> What you are describing sounds like "we have an API still, and we've had
>> it since 4.3", which is not in my view COMPAT.
> 
> It seems that after christos's change only applications that
> #include <sys/ioctl_compat.h> will require tty_43.c

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to