+Tue Sep 8 21:05:18 1992 Stu Grossman (grossman at cygnus.com)
+
+ * serial.h: Fix prototye for serial_raw().
+ * ser-bsd.c, ser-termios.c: Fix args for serial_open() &
+ serial_write() to match prototypes.
+ * remote-st2000.c (get_reg_name): Make *p be const.
+
Tue Sep 8 17:24:52 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
* remote-nindy.c (nindy_fetch_registers): Make return type void,
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifdef HAVE_TERMIO
+
+#include <termios.h>
+#include <unistd.h>
+
+struct ttystate
+{
+ int flags; /* Flags from fcntl F_GETFL */
+ struct termios termios; /* old tty driver settings */
+};
+
+#else /* not HAVE_TERMIO */
+
+#include <sgtty.h>
+
+struct ttystate {
+ int flags; /* Flags from fcntl F_GETFL */
+ struct sgttyb sgttyb; /* old tty driver settings */
+};
+
+#endif /* not HAVE_TERMIO */
/* Return a sensible default name for a serial device, something which
can be used as an argument to serial_open. */
/* Turn the port into raw mode. */
-void serial_raw PARAMS ((void));
+void serial_raw PARAMS ((int fd, struct ttystate *oldstate));
/* Turn the port into normal mode. */
/* Write some chars to the device, returns 0 for failure. See errno for
details. */
-int serial_write PARAMS ((const char *str , int len));
+int serial_write PARAMS ((const char *str, int len));
/* Close the serial port */
void serial_close PARAMS ((void));
-
-#ifdef HAVE_TERMIO
-
-#include <termios.h>
-#include <unistd.h>
-
-struct ttystate
-{
- int flags; /* Flags from fcntl F_GETFL */
- struct termios termios; /* old tty driver settings */
-};
-
-#else /* not HAVE_TERMIO */
-
-#include <sgtty.h>
-
-struct ttystate {
- int flags; /* Flags from fcntl F_GETFL */
- struct sgttyb sgttyb; /* old tty driver settings */
-};
-
-#endif /* not HAVE_TERMIO */