[PATCH] login-utils: IUCLC and OLCUC are Linux extensions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



IUCLC and OLCUC are Linux extensions to termios. The same way it is
already done for XCASE, they can be ignored if not supported.

Signed-off-by: Aurelien Jarno <aurelien@xxxxxxxxxxx>
---
 login-utils/agetty.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/login-utils/agetty.c b/login-utils/agetty.c
index 29ce149..90a64b3 100644
--- a/login-utils/agetty.c
+++ b/login-utils/agetty.c
@@ -1146,11 +1146,15 @@ termio_final(op, tp, cp)
     /* Account for upper case without lower case. */
 
     if (cp->capslock) {
+#ifdef IUCLC
 	tp->c_iflag |= IUCLC;
+#endif
 #ifdef XCASE	
 	tp->c_lflag |= XCASE;
 #endif
+#ifdef OLCUC
 	tp->c_oflag |= OLCUC;
+#endif
     }
     /* Optionally enable hardware flow control */
 
-- 
1.6.2.3


-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@xxxxxxxxxxx                 http://www.aurel32.net
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux