diff options
author | Matt Whitlock <busybox@mattwhitlock.name> | 2015-04-26 13:14:50 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-04-26 13:14:50 +0200 |
commit | 93b98ff5726fd620e1f123d04072b956412c1b55 (patch) | |
tree | c6870f526fb6cc6bf89d908b148e3d772097059d /libbb/missing_syscalls.c | |
parent | cee59053dcf47b4a3ab87f7654c1ed20620def16 (diff) | |
download | busybox-w32-93b98ff5726fd620e1f123d04072b956412c1b55.tar.gz busybox-w32-93b98ff5726fd620e1f123d04072b956412c1b55.tar.bz2 busybox-w32-93b98ff5726fd620e1f123d04072b956412c1b55.zip |
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/missing_syscalls.c')
-rw-r--r-- | libbb/missing_syscalls.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/missing_syscalls.c b/libbb/missing_syscalls.c index dd430e3e2..e3c1e924b 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) | |||
39 | { | 39 | { |
40 | return syscall(__NR_pivot_root, new_root, put_old); | 40 | return syscall(__NR_pivot_root, new_root, put_old); |
41 | } | 41 | } |
42 | |||
43 | int tcdrain(int fd) | ||
44 | { | ||
45 | return ioctl(fd, TCSBRK, 1); | ||
46 | } | ||
42 | #endif | 47 | #endif |