projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
support looking up thread-local objects with dlsym
[musl]
/
src
/
termios
/
tcdrain.c
diff --git
a/src/termios/tcdrain.c
b/src/termios/tcdrain.c
index
8e889b5
..
6e43afb
100644
(file)
--- a/
src/termios/tcdrain.c
+++ b/
src/termios/tcdrain.c
@@
-1,12
+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_END;
- return ret;
+ return syscall_cp(SYS_ioctl, fd, TCSBRK, 1);
}