Date: Tue, 12 Aug 2008 15:51:42 +0200 From: "Alexey Shuvaev" <shuvaev@physik.uni-wuerzburg.de> To: ed@freebsd.org Cc: freebsd-current@freebsd.org Subject: POSIX compliant termios.h? Message-ID: <20080812135142.GA1033@wep4017.physik.uni-wuerzburg.de>
next in thread | raw e-mail | index | archive | help
--5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-src-libtermio-termio.c" --- 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 /* --5mCyUwZo2JvN/JJP--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080812135142.GA1033>