diff options
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 |
