A while back I was porting an sshd implementation that was developed on
NetBSD to FreeBSD, and discovered that some definitions are missing in our
termios.h.  I looked at the SUSv2 standard, and it appears to me that this
is a bug in FreeBSD.  Can someone who is more knowledgeable in this area
please take a look at the following patch and tell me if it is correct?

Thanks,
Jason

Index: sys/sys/termios.h
===================================================================
RCS file: /home/ncvs/src/sys/sys/termios.h,v
retrieving revision 1.14
diff -u -r1.14 termios.h
--- sys/sys/termios.h   2000/11/28 20:03:23     1.14
+++ sys/sys/termios.h   2000/12/05 02:28:16
@@ -112,6 +112,9 @@
 #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          0x00000010      /* map CR to NL on output */
+#define ONOCR          0x00000020      /* no CR output at column 0 */
+#define ONLRET         0x00000040      /* NL performs CR function */
 #endif  /*_POSIX_SOURCE */
 
 /*


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to