summaryrefslogtreecommitdiff
path: root/src/termios/tcsendbreak.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/termios/tcsendbreak.c')
-rw-r--r--src/termios/tcsendbreak.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/termios/tcsendbreak.c b/src/termios/tcsendbreak.c
index 7c728aa3..fab5927e 100644
--- a/src/termios/tcsendbreak.c
+++ b/src/termios/tcsendbreak.c
@@ -1,9 +1,9 @@
#include <termios.h>
+#include "_termios.h"
int tcsendbreak(int fildes, int duration)
{
- (void)duration;
- return fildes;
+ return ioctl(fildes, TCSBRKP, duration);
}
/*
POSIX(1)