mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* fhandler_serial.cc (fhandler_serial::ioctl): Implement TIOCSBRK and TIOCCBRK.
* include/sys/termios.h: Define TIOCSBRK and TIOCCBRK.
This commit is contained in:
parent
d8672e9343
commit
58e9df0f91
@ -1,3 +1,9 @@
|
||||
2004-03-08 Jaakko Hyvatti <jaakko.hyvatti@iki.fi>
|
||||
|
||||
* fhandler_serial.cc (fhandler_serial::ioctl): Implement TIOCSBRK and
|
||||
TIOCCBRK.
|
||||
* include/sys/termios.h: Define TIOCSBRK and TIOCCBRK.
|
||||
|
||||
2004-03-08 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* exceptions.cc (setup_handler): Avoid suspending a thread if it in a
|
||||
|
@ -476,6 +476,20 @@ fhandler_serial::ioctl (unsigned int cmd, void *buffer)
|
||||
res = -1;
|
||||
}
|
||||
break;
|
||||
case TIOCCBRK:
|
||||
if (ClearCommBreak (get_handle ()) == 0)
|
||||
{
|
||||
__seterrno ();
|
||||
res = -1;
|
||||
}
|
||||
break;
|
||||
case TIOCSBRK:
|
||||
if (SetCommBreak (get_handle ()) == 0)
|
||||
{
|
||||
__seterrno ();
|
||||
res = -1;
|
||||
}
|
||||
break;
|
||||
case TIOCINQ:
|
||||
if (ev & CE_FRAME || ev & CE_IOE || ev & CE_OVERRUN || ev & CE_RXOVER
|
||||
|| ev & CE_RXPARITY)
|
||||
|
@ -23,6 +23,8 @@ Other UNIX ioctl requests has been omited because
|
||||
effects of their work one can achive by standard
|
||||
POSIX commands */
|
||||
|
||||
#define TIOCSBRK 0x5427
|
||||
#define TIOCCBRK 0x5428
|
||||
|
||||
#define TIOCM_DTR 0x002
|
||||
#define TIOCM_RTS 0x004
|
||||
|
Loading…
x
Reference in New Issue
Block a user