projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add fast path for normal mutexes back to pthread_mutex_lock
[oweals/musl.git]
/
src
/
termios
/
tcdrain.c
diff --git
a/src/termios/tcdrain.c
b/src/termios/tcdrain.c
index c51dd401fea4f223b91d251b52acbfff169f1d06..6e43afb7564001143ad096e85cb6ba2a93462262 100644
(file)
--- a/
src/termios/tcdrain.c
+++ b/
src/termios/tcdrain.c
@@
-1,7
+1,9
@@
#include <termios.h>
#include <sys/ioctl.h>
+#include "libc.h"
+#include "syscall.h"
int tcdrain(int fd)
{
- return
ioctl(
fd, TCSBRK, 1);
+ return
syscall_cp(SYS_ioctl,
fd, TCSBRK, 1);
}