From fba7058c3f974e87b24f77b91a6fdea65cf82547 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Fri, 26 Jan 2018 22:35:29 +0000 Subject: [PATCH] local-no_unsupported_ioctls These ioctls are not actually supported (and will probably not be in the close future), and are not available on Linux either, so don't expose them to application at the risk of them complaining that they don't work (e.g. xterm using TIOCLSET). Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name local-no_unsupported_ioctls.diff --- sysdeps/mach/hurd/bits/ioctls.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sysdeps/mach/hurd/bits/ioctls.h b/sysdeps/mach/hurd/bits/ioctls.h index 0110b307a..65d248779 100644 --- a/sysdeps/mach/hurd/bits/ioctls.h +++ b/sysdeps/mach/hurd/bits/ioctls.h @@ -272,11 +272,13 @@ enum __ioctl_datum { IOC_8, IOC_16, IOC_32, IOC_64 }; #define FIOSETOWN _IOW('f', 124, int) /* set owner */ #define FIOGETOWN _IOR('f', 123, int) /* get owner */ +#if 0 /* socket i/o controls */ #define SIOCSHIWAT _IOW('s', 0, int) /* set high watermark */ #define SIOCGHIWAT _IOR('s', 1, int) /* get high watermark */ #define SIOCSLOWAT _IOW('s', 2, int) /* set low watermark */ #define SIOCGLOWAT _IOR('s', 3, int) /* get low watermark */ +#endif #define SIOCATMARK _IOR('s', 7, int) /* at oob mark? */ #define SIOCSPGRP _IOW('s', 8, int) /* set process group */ #define SIOCGPGRP _IOR('s', 9, int) /* get process group */ @@ -336,7 +338,9 @@ enum __ioctl_datum { IOC_8, IOC_16, IOC_32, IOC_64 }; # define OTIOCGETD _IOR('t', 0, int) /* get line discipline */ # define OTIOCSETD _IOW('t', 1, int) /* set line discipline */ #endif +#if 0 #define TIOCHPCL _IO('t', 2) /* hang up on last close */ +#endif #define TIOCGETP _IOR('t', 8,struct sgttyb)/* get parameters -- gtty */ #define TIOCSETP _IOW('t', 9,struct sgttyb)/* set parameters -- stty */ #define TIOCSETN _IOW('t',10,struct sgttyb)/* as above, but no flushtty*/ @@ -389,10 +393,12 @@ enum __ioctl_datum { IOC_8, IOC_16, IOC_32, IOC_64 }; #define PENDIN 0x20000000 /* tp->t_rawq needs reread */ #define DECCTQ 0x40000000 /* only ^Q starts after ^S */ #define NOFLSH 0x80000000 /* no output flush on signal */ +#if 0 #define TIOCLBIS _IOW('t', 127, int) /* bis local mode bits */ #define TIOCLBIC _IOW('t', 126, int) /* bic local mode bits */ #define TIOCLSET _IOW('t', 125, int) /* set entire local mode word */ #define TIOCLGET _IOR('t', 124, int) /* get local modes */ +#endif #define LCRTBS (CRTBS>>16) #define LPRTERA (PRTERA>>16) #define LCRTERA (CRTERA>>16) @@ -408,12 +414,14 @@ enum __ioctl_datum { IOC_8, IOC_16, IOC_32, IOC_64 }; #define LPENDIN (PENDIN>>16) #define LDECCTQ (DECCTQ>>16) #define LNOFLSH (NOFLSH>>16) +#if 0 #define TIOCSLTC _IOW('t',117,struct ltchars)/* set local special chars*/ #define TIOCGLTC _IOR('t',116,struct ltchars)/* get local special chars*/ #define OTIOCCONS _IO('t', 98) /* for hp300 -- sans int arg */ #define OTTYDISC 0 #define NETLDISC 1 #define NTTYDISC 2 +#endif /* From 4.4 . */ #ifdef USE_OLD_TTY -- 2.30.2