Changed terminal io defines

This commit is contained in:
Michiel Broek 2004-11-30 19:50:39 +00:00
parent b04eb35add
commit 7d64e500af

View File

@ -303,20 +303,20 @@ int cookedport(void)
void sendbrk(void) void sendbrk(void)
{ {
Syslog('t', "Send break"); Syslog('t', "Send break");
if (isatty(0)) { if (isatty(0)) {
#ifdef USE_TERMIOS #ifdef USE_TERMIOS
tcsendbreak(fd,0); tcsendbreak(0, 0);
#endif #endif
#ifdef USE_TERMIO #ifdef USE_TERMIO
ioctl(fd, TCSBRK, 0); ioctl(0, TCSBRK, 0);
#endif #endif
#ifdef USE_SGTTY #ifdef USE_SGTTY
#ifdef TIOCSBRK #ifdef TIOCSBRK
sleep(1); sleep(1);
ioctl(fd, TIOCSBRK, 0); ioctl(0, TIOCSBRK, 0);
sleep(1); sleep(1);
ioctl(fd, TIOCCBRK, 0); ioctl(0, TIOCCBRK, 0);
#endif #endif
#endif #endif
} }