change ldso path file logic to replace rather than add to search path
[oweals/musl.git] / src / termios / tcdrain.c
index 9ff1ecd5629537346c720e444a2f6ab2c37284e1..6e43afb7564001143ad096e85cb6ba2a93462262 100644 (file)
@@ -1,13 +1,9 @@
 #include <termios.h>
 #include <sys/ioctl.h>
 #include "libc.h"
+#include "syscall.h"
 
 int tcdrain(int fd)
 {
-       int ret;
-       CANCELPT_BEGIN;
-       ret = ioctl(fd, TCSBRK, 1);
-       CANCELPT_TRY;
-       CANCELPT_END;
-       return ret;
+       return syscall_cp(SYS_ioctl, fd, TCSBRK, 1);
 }