7 |
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
8 |
*/ |
*/ |
9 |
|
|
10 |
#include "busybox.h" |
#include "libbb.h" |
|
#include <stdio.h> |
|
|
#include <stdlib.h> |
|
|
#include <unistd.h> |
|
|
#include <time.h> |
|
11 |
|
|
12 |
#define PIPE_PROGRESS_SIZE 4096 |
#define PIPE_PROGRESS_SIZE 4096 |
13 |
|
|
14 |
/* Read a block of data from stdin, write it to stdout. |
/* Read a block of data from stdin, write it to stdout. |
15 |
* Activity is indicated by a '.' to stderr |
* Activity is indicated by a '.' to stderr |
16 |
*/ |
*/ |
17 |
int pipe_progress_main(int argc, char **argv) |
int pipe_progress_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
18 |
|
int pipe_progress_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
19 |
{ |
{ |
20 |
RESERVE_CONFIG_BUFFER(buf, PIPE_PROGRESS_SIZE); |
RESERVE_CONFIG_BUFFER(buf, PIPE_PROGRESS_SIZE); |
21 |
time_t t = time(NULL); |
time_t t = time(NULL); |