Chromium Code Reviews

Unified Diff: fusl/src/termios/tcdrain.c

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « fusl/src/termios/cfsetospeed.c ('k') | fusl/src/termios/tcflow.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/termios/tcdrain.c
diff --git a/fusl/src/termios/tcdrain.c b/fusl/src/termios/tcdrain.c
new file mode 100644
index 0000000000000000000000000000000000000000..6e43afb7564001143ad096e85cb6ba2a93462262
--- /dev/null
+++ b/fusl/src/termios/tcdrain.c
@@ -0,0 +1,9 @@
+#include <termios.h>
+#include <sys/ioctl.h>
+#include "libc.h"
+#include "syscall.h"
+
+int tcdrain(int fd)
+{
+ return syscall_cp(SYS_ioctl, fd, TCSBRK, 1);
+}
« no previous file with comments | « fusl/src/termios/cfsetospeed.c ('k') | fusl/src/termios/tcflow.c » ('j') | no next file with comments »

Powered by Google App Engine