POSIX compliant termios.h?

Alexey Shuvaev shuvaev at physik.uni-wuerzburg.de
Tue Aug 12 14:12:30 UTC 2008


Hello!

I have just tried to unBROKEN cad/brlcad and noticed that FreeBSD
termios.h is missing some POSIX mandatory flags. In this case,
TAB3 output processing flag (expand TABs on output == OXTABS).
Are there any plans to fix it in the base?

Attached is the workaround patch for cad/brlcad. Should I push it
into the ports (via PR, etc...) or it is better to wait a little
for a fix in the base?

Thanks,
Alexey.
-------------- next part --------------
--- src/libtermio/termio.c.orig	2008-03-11 22:19:25.000000000 +0100
+++ src/libtermio/termio.c	2008-08-12 14:35:42.000000000 +0200
@@ -29,13 +29,10 @@
 #  include <sys/file.h>
 #endif
 
-#if HAVE_SYS_IOCTL_COMPAT_H
-#	include <sys/ioctl_compat.h>
-#	define TAB3 (TAB1|TAB2)
-#	if !defined(OCRNL)
-#		define OCRNL   0000010
-#	endif
-#endif
+/*
+ * XXX: Should FreeBSD have POSIX compliant flags (TAB3, for example)?
+ */
+#define	TAB3	OXTABS
 
 
 /*


More information about the freebsd-current mailing list