[PATCH 2/2] Bionic lacks tcdrain; provide a workaround

Denys Vlasenko vda.linux at googlemail.com
Sun Apr 26 11:15:20 UTC 2015


Applied, thanks

On Sat, Apr 25, 2015 at 12:48 AM, Matt Whitlock
<busybox at mattwhitlock.name> wrote:
> ---
>  libbb/missing_syscalls.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/libbb/missing_syscalls.c b/libbb/missing_syscalls.c
> index c768f11..1e2507d 100644
> --- a/libbb/missing_syscalls.c
> +++ b/libbb/missing_syscalls.c
> @@ -39,6 +39,11 @@ 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
>
>  #ifndef HAVE_TTYNAME_R
> --
> 2.0.5
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list