Thu Aug 7 13:39:31 1997 Geoffrey Noer <noer@cygnus.com>
[deliverable/binutils-gdb.git] / gdb / ser-go32-para.c
index 60467797c6a23d99eb44a185faaaa50c22562689..ae52452e94e2178626291329cbf8c7489541cad7 100644 (file)
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
+#include "serial.h"
 #include <sys/dos.h>
 
 #if 0
@@ -40,7 +41,7 @@ static void go32_close PARAMS ((serial_t scb));
 static serial_ttystate go32_get_tty_state PARAMS ((serial_t scb));
 static int go32_set_tty_state PARAMS ((serial_t scb, serial_ttystate state));
 static unsigned long getivec PARAMS ((int which));
-static int dos_read PARAMS ((int fd, char *buf, int len, int timeout));
+static int dos_read PARAMS ((int fd, char *buf, int len));
 static int dos_write PARAMS ((int fd, const char *buf, int len));
 
 #if 0
@@ -120,7 +121,7 @@ go32_open (scb, name)
      serial_t scb;
      const char *name;
 {
-  int port;
+  int port, ret;
 
   if (strncasecmp (name, "lpt", 3) != 0)
     {
@@ -136,8 +137,8 @@ go32_open (scb, name)
       return -11;
     }
 
-  return = biosprn (1, 0, port);
-  if (!return)
+  ret = biosprn (1, 0, port);
+  if (!ret)
     return -1;
 
   scb->fd = port;
@@ -229,6 +230,14 @@ go32_setbaudrate (scb, rate)
   return 0;
 }
 
+static int
+go32_setstopbits (scb, num)
+     serial_t scb;
+     int num;
+{
+  return 0;
+}
+
 static void
 go32_close (scb)
      serial_t scb;
@@ -252,6 +261,7 @@ static struct serial_ops go32_ops =
   go32_print_tty_state,
   go32_noflush_set_tty_state,
   go32_setbaudrate,
+  go32_setstopbits,
 };
 
 void
This page took 0.023577 seconds and 4 git commands to generate.