[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [PATCH 4/5] Bionic lacks tcdrain; provide a workaround
From:       Matt Whitlock <busybox () mattwhitlock ! name>
Date:       2015-04-24 8:12:21
Message-ID: 1429863142-23199-4-git-send-email-busybox () mattwhitlock ! name
[Download RAW message or body]

---
 libbb/missing_syscalls.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libbb/missing_syscalls.c b/libbb/missing_syscalls.c
index dd430e3..e3c1e92 100644
--- a/libbb/missing_syscalls.c
+++ b/libbb/missing_syscalls.c
@@ -39,4 +39,9 @@ int pivot_root(const char *new_root, const char *put_old)
 {
 	return syscall(__NR_pivot_root, new_root, put_old);
 }
+
+int tcdrain(int fd)
+{
+	return ioctl(fd, TCSBRK, 1);
+}
 #endif
-- 
2.0.5

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic