/* Remote serial interface for local (hardwired) serial ports for Macintosh.
- Copyright 1994 Free Software Foundation, Inc.
+ Copyright 1994, 2000 Free Software Foundation, Inc.
Contributed by Cygnus Support. Written by Stan Shebs.
This file is part of GDB.
int bogus;
};
-static int mac_open PARAMS ((serial_t scb, const char *name));
-static void mac_raw PARAMS ((serial_t scb));
-static int mac_readchar PARAMS ((serial_t scb, int timeout));
-static int mac_setbaudrate PARAMS ((serial_t scb, int rate));
-static int mac_write PARAMS ((serial_t scb, const char *str, int len));
-static void mac_close PARAMS ((serial_t scb));
-static serial_ttystate mac_get_tty_state PARAMS ((serial_t scb));
-static int mac_set_tty_state PARAMS ((serial_t scb, serial_ttystate state));
-static char *aptr PARAMS ((short p));
+static int mac_open (serial_t scb, const char *name);
+static void mac_raw (serial_t scb);
+static int mac_readchar (serial_t scb, int timeout);
+static int mac_setbaudrate (serial_t scb, int rate);
+static int mac_write (serial_t scb, const char *str, int len);
+static void mac_close (serial_t scb);
+static serial_ttystate mac_get_tty_state (serial_t scb);
+static int mac_set_tty_state (serial_t scb, serial_ttystate state);
+static char *aptr (short p);
short input_refnum;
short output_refnum;
char *mac_output_buffer;
static int
-mac_open (scb, name)
- serial_t scb;
- const char *name;
+mac_open (serial_t scb, const char *name)
{
OSErr err;
}
static int
-mac_noop (scb)
- serial_t scb;
+mac_noop (serial_t scb)
{
return 0;
}
static void
-mac_raw (scb)
- serial_t scb;
+mac_raw (serial_t scb)
{
/* Always effectively in raw mode. */
}
dead, or -3 for any other error (see errno in that case). */
static int
-mac_readchar (scb, timeout)
- serial_t scb;
- int timeout;
+mac_readchar (serial_t scb, int timeout)
{
int status, n;
/* time_t */ unsigned long start_time, now;
vector. Someday, they may do something real... */
static serial_ttystate
-mac_get_tty_state (scb)
- serial_t scb;
+mac_get_tty_state (serial_t scb)
{
struct mac_ttystate *state;
}
static int
-mac_set_tty_state (scb, ttystate)
- serial_t scb;
- serial_ttystate ttystate;
+mac_set_tty_state (serial_t scb, serial_ttystate ttystate)
{
return 0;
}
static int
-mac_noflush_set_tty_state (scb, new_ttystate, old_ttystate)
- serial_t scb;
- serial_ttystate new_ttystate;
- serial_ttystate old_ttystate;
+mac_noflush_set_tty_state (serial_t scb, serial_ttystate new_ttystate,
+ serial_ttystate old_ttystate)
{
return 0;
}
static void
mac_print_tty_state (serial_t scb,
serial_ttystate ttystate,
- struct gdb_file *stream)
+ struct ui_file *stream)
{
/* Nothing to print. */
return;
};
static int
-mac_set_baud_rate (scb, rate)
- serial_t scb;
- int rate;
+mac_set_baud_rate (serial_t scb, int rate)
{
int i, bits;
}
static int
-mac_set_stop_bits (scb, num)
- serial_t scb;
- int num;
+mac_set_stop_bits (serial_t scb, int num)
{
return 0;
}
int first_mac_write = 0;
static int
-mac_write (scb, str, len)
- serial_t scb;
- const char *str;
- int len;
+mac_write (serial_t scb, const char *str, int len)
{
OSErr err;
IOParam pb;
};
void
-_initialize_ser_mac ()
+_initialize_ser_mac (void)
{
serial_add_interface (&mac_ops);
}