www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / userapps / opensource / sshd / termcodes.c
index 8f89536..d59505c 100755 (executable)
@@ -25,7 +25,7 @@
 #include "includes.h"
 #include "termcodes.h"
 
-const struct TermCode termcodes[] = {
+const struct TermCode termcodes[MAX_TERMCODE+1] = {
 
                {0, 0}, /* TTY_OP_END */
                {VINTR, TERMCODE_CONTROLCHAR}, /* control character codes */
@@ -43,8 +43,16 @@ const struct TermCode termcodes[] = {
 #else
                {0, 0},
 #endif
+#ifdef VREPRINT
                {VREPRINT, TERMCODE_CONTROLCHAR},
+#else
+               {0, 0},
+#endif
+#ifdef AIX
+               {CERASE, TERMCODE_CONTROLCHAR},
+#else
                {VWERASE, TERMCODE_CONTROLCHAR},
+#endif
                {VLNEXT, TERMCODE_CONTROLCHAR},
 #ifdef VFLUSH
                {VFLUSH, TERMCODE_CONTROLCHAR},
@@ -61,7 +69,13 @@ const struct TermCode termcodes[] = {
 #else
                {0, 0},
 #endif
+#ifdef AIX
+               {CKILL, TERMCODE_CONTROLCHAR},
+#elif defined(VDISCARD)
                {VDISCARD, TERMCODE_CONTROLCHAR},
+#else
+               {0, 0},
+#endif
                {0, 0}, /* 19 */
                {0, 0},
                {0, 0},
@@ -88,8 +102,8 @@ const struct TermCode termcodes[] = {
                {IXON, TERMCODE_INPUT},
                {IXANY, TERMCODE_INPUT},
                {IXOFF, TERMCODE_INPUT},
-#ifdef IMAXBELL
-               {IMAXBELL, TERMCODE_INPUT},
+#ifdef IMAXBEL
+               {IMAXBEL, TERMCODE_INPUT},
 #else
                {0, 0},
 #endif
@@ -117,7 +131,11 @@ const struct TermCode termcodes[] = {
                {IEXTEN, TERMCODE_LOCAL},
                {ECHOCTL, TERMCODE_LOCAL},
                {ECHOKE, TERMCODE_LOCAL},
+#ifdef PENDIN
                {PENDIN, TERMCODE_LOCAL},
+#else
+               {0, 0},
+#endif
                {0, 0}, /* 63 */
                {0, 0},
                {0, 0},
@@ -164,6 +182,6 @@ const struct TermCode termcodes[] = {
                {CS7, TERMCODE_CONTROL},
                {CS8, TERMCODE_CONTROL},
                {PARENB, TERMCODE_CONTROL},
-               {PARODD, TERMCODE_CONTROL},
+               {PARODD, TERMCODE_CONTROL}
                /* 94 */
 };