Subject: standards/3434: OCRNL not defined in termios.h
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
List: netbsd-bugs
Date: 04/01/1997 15:21:19
>Number:         3434
>Category:       standards
>Synopsis:       OCRNL not defined in termios.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr  1 12:35:01 1997
>Last-Modified:
>Originator:     Michael Richardson
>Organization:
Sandelman Software Works
>Release:        NetBSD-current April 1, 1997
>Environment:
System: NetBSD amaterasu 1.2B NetBSD 1.2B (AMATERASU) #12: Sun Nov 24 01:42:02 EST 1996 mcr@amaterasu:/w/netbsd/src/sys/arch/sun3/compile/AMATERASU sun3
Architecture: sun3

>Description:
	some utilities assume that OCRNL option is available in termios.h
	I don't know if this is POSIX or not, this this patch makes 
	compiling them just work.
>How-To-Repeat:
	compile GNU texinfo 3.9
>Fix:
*** /usr/include/termios.h      Wed Apr 10 07:38:17 1996
--- /w/netbsd/src/sys/sys/termios.h     Tue Apr  1 15:16:14 1997
***************
*** 112,117 ****
--- 112,118 ----
  #define ONLCR         0x00000002      /* map NL to CR-NL (ala CRMOD) */
  #define OXTABS                0x00000004      /* expand tabs to spaces */
  #define ONOEOT                0x00000008      /* discard EOT's (^D) on output) */
+ #define OCRNL           0x00000000      /* not available */
  #endif  /*_POSIX_SOURCE */
 
>Audit-Trail:
>Unformatted: