This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: TAB*, NL*, BS* etc in <sys/ioctls.h> in GNU/Hurd and GNU/BSD
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: Roland McGrath <roland at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Wed, 21 May 2008 12:40:22 +0200
- Subject: Re: TAB*, NL*, BS* etc in <sys/ioctls.h> in GNU/Hurd and GNU/BSD
- References: <20070908002646.D2EB44D04D5@magilla.localdomain> <20070908005304.GK3682@interface.famille.thibault.fr> <20070914100048.GD3349@implementation.labri.fr> <20070914100222.GE3349@implementation.labri.fr> <46EA91B4.4090901@redhat.com> <20070914175809.GA4124@interface.famille.thibault.fr> <20080316162448.GF5452@implementation> <20080505214712.GB4790@implementation> <20080505230615.ED59926FA20@magilla.localdomain> <20080505235937.GF4790@implementation>
Hello,
Just an amendment: ONLCR is defined in SUS.
Samuel
2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
* bits/termios.h (ONLCR): Define on __USE_XOPEN too.
Index: bits/termios.h
===================================================================
RCS file: /cvs/glibc/libc/bits/termios.h,v
retrieving revision 1.8
diff -u -p -r1.8 termios.h
--- bits/termios.h 5 May 2008 23:06:01 -0000 1.8
+++ bits/termios.h 21 May 2008 10:35:51 -0000
@@ -135,8 +135,10 @@ struct termios
/* Output modes. */
tcflag_t c_oflag;
#define OPOST (1 << 0) /* Perform output processing. */
-#ifdef __USE_BSD
+#if defined __USE_BSD || defined __USE_XOPEN
# define ONLCR (1 << 1) /* Map NL to CR-NL on output. */
+#endif
+#ifdef __USE_BSD
# define OXTABS TAB3 /* Expand tabs to spaces. */
# define ONOEOT (1 << 3) /* Discard EOT (^D) on output. */
#endif