aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-08-04 09:45:40 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-08-04 09:45:40 +0000
commit4e93dbdf47513c4b529252e066679cf95e10de4a (patch)
tree8308db4fb680b2499594a1a8b73cdccbfa17074a /sys
parent4426f4290613596b9efc887d82f229c6575ab35f (diff)
downloadsrc-4e93dbdf47513c4b529252e066679cf95e10de4a.tar.gz
src-4e93dbdf47513c4b529252e066679cf95e10de4a.zip
Relax visibility for some termios symbols.
They are defined by XSI or newer SUS. This is a follow-up to r318780. Reported by: jbeich Obtained from: DragonflyBSD commit e08b3836c962 Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=322050
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/_termios.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/sys/_termios.h b/sys/sys/_termios.h
index e6783cb8e504..4cf0c2a4b884 100644
--- a/sys/sys/_termios.h
+++ b/sys/sys/_termios.h
@@ -91,8 +91,10 @@
#define ICRNL 0x00000100 /* map CR to NL (ala CRMOD) */
#define IXON 0x00000200 /* enable output flow control */
#define IXOFF 0x00000400 /* enable input flow control */
-#if __BSD_VISIBLE
+#if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809
#define IXANY 0x00000800 /* any char will restart after stop */
+#endif
+#if __BSD_VISIBLE
#define IMAXBEL 0x00002000 /* ring bell on input queue full */
#endif
@@ -100,12 +102,16 @@
* Output flags - software output processing
*/
#define OPOST 0x00000001 /* enable following output processing */
-#if __BSD_VISIBLE
+#if __XSI_VISIBLE
#define ONLCR 0x00000002 /* map NL to CR-NL (ala CRMOD) */
+#endif
+#if __BSD_VISIBLE
#define TABDLY 0x00000004 /* tab delay mask */
#define TAB0 0x00000000 /* no tab delay and expansion */
#define TAB3 0x00000004 /* expand tabs to spaces */
#define ONOEOT 0x00000008 /* discard EOT's (^D) on output) */
+#endif
+#if __XSI_VISIBLE
#define OCRNL 0x00000010 /* map CR to NL on output */
#define ONOCR 0x00000020 /* no CR output at column 0 */
#define ONLRET 0x00000040 /* NL performs CR function */