X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ftermios%2Ftcdrain.c;h=c0e542b3e5fbb1814d402ef941a1f545a15a17fd;hb=95a540e176b3ebd57d6033fd23cf9fec8a5ddbe8;hp=c51dd401fea4f223b91d251b52acbfff169f1d06;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/termios/tcdrain.c b/src/termios/tcdrain.c index c51dd401..c0e542b3 100644 --- a/src/termios/tcdrain.c +++ b/src/termios/tcdrain.c @@ -1,7 +1,8 @@ #include #include +#include "syscall.h" int tcdrain(int fd) { - return ioctl(fd, TCSBRK, 1); + return syscall_cp(SYS_ioctl, fd, TCSBRK, 1); }