summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorMatt Whitlock2015-04-26 13:14:50 +0200
committerDenys Vlasenko2015-04-26 13:14:50 +0200
commit93b98ff5726fd620e1f123d04072b956412c1b55 (patch)
treec6870f526fb6cc6bf89d908b148e3d772097059d /libbb
parentcee59053dcf47b4a3ab87f7654c1ed20620def16 (diff)
downloadbusybox-93b98ff5726fd620e1f123d04072b956412c1b55.zip
busybox-93b98ff5726fd620e1f123d04072b956412c1b55.tar.gz
Bionic lacks tcdrain; provide a workaround
Signed-off-by: Matt Whitlock <busybox@mattwhitlock.name> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/missing_syscalls.c5
1 files changed, 5 insertions, 0 deletions
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