+static void *saved_termios[3] = {NULL,NULL,NULL};
+
+void*
+__hscore_get_saved_termios(int fd)
+{
+ return (0 <= fd && fd < sizeof(saved_termios) / sizeof(*saved_termios)) ?
+ saved_termios[fd] : NULL;
+}
+
+void
+__hscore_set_saved_termios(int fd, void* ts)
+{
+ if (0 <= fd && fd < sizeof(saved_termios) / sizeof(*saved_termios)) {
+ saved_termios[fd] = ts;
+ }
+}