/[hurd]/hurd/term/devio.c
ViewVC logotype

Diff of /hurd/term/devio.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.30 by marcus, Sun Feb 10 17:57:49 2002 UTC revision 1.31 by roland, Tue May 28 23:56:44 2002 UTC
# Line 511  device_open_reply (mach_port_t replyport Line 511  device_open_reply (mach_port_t replyport
511                     mach_port_t device)                     mach_port_t device)
512  {  {
513    struct tty_status ttystat;    struct tty_status ttystat;
514    int count = TTY_STATUS_COUNT;    size_t count = TTY_STATUS_COUNT;
515    error_t err = 0;    error_t err = 0;
516    
517    if (replyport != phys_reply)    if (replyport != phys_reply)
# Line 593  devio_set_bits (struct termios *state) Line 593  devio_set_bits (struct termios *state)
593    if (!(state->c_cflag & CIGNORE) && phys_device != MACH_PORT_NULL)    if (!(state->c_cflag & CIGNORE) && phys_device != MACH_PORT_NULL)
594      {      {
595        struct tty_status ttystat;        struct tty_status ttystat;
596        int cnt = TTY_STATUS_COUNT;        size_t cnt = TTY_STATUS_COUNT;
597    
598        /* Find the current state. */        /* Find the current state. */
599        device_get_status (phys_device, TTY_STATUS, (dev_status_t) &ttystat, &cnt);        device_get_status (phys_device, TTY_STATUS, (dev_status_t) &ttystat, &cnt);
# Line 650  static error_t Line 650  static error_t
650  devio_mdmctl (int how, int bits)  devio_mdmctl (int how, int bits)
651  {  {
652    int oldbits, newbits;    int oldbits, newbits;
653    int cnt;    size_t cnt;
654    if ((how == MDMCTL_BIS) || (how == MDMCTL_BIC))    if ((how == MDMCTL_BIS) || (how == MDMCTL_BIC))
655      {      {
656        cnt = TTY_MODEM_COUNT;        cnt = TTY_MODEM_COUNT;
# Line 676  devio_mdmctl (int how, int bits) Line 676  devio_mdmctl (int how, int bits)
676  static error_t  static error_t
677  devio_mdmstate (int *state)  devio_mdmstate (int *state)
678  {  {
679    int bits, cnt;    int bits;
680      size_t cnt = TTY_MODEM_COUNT;
   cnt = TTY_MODEM_COUNT;  
681    device_get_status (phys_device, TTY_MODEM, (dev_status_t) &bits, &cnt);    device_get_status (phys_device, TTY_MODEM, (dev_status_t) &bits, &cnt);
682    if (cnt == TTY_MODEM_COUNT)    if (cnt == TTY_MODEM_COUNT)
683      *state = bits;      *state = bits;

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26