diff options
author | ian <ian@FreeBSD.org> | 2015-02-11 22:55:24 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2015-02-11 22:55:24 +0000 |
commit | f8178723e9bb3e51a017187b2a3694e110ad5202 (patch) | |
tree | f1c6cb0a9a16de5c5aae59f0978cc9c2a2d77234 /lib/libstand/stand.h | |
parent | ba124c2ef35f4bf14972d64b724ac66e69bbed26 (diff) | |
download | FreeBSD-src-f8178723e9bb3e51a017187b2a3694e110ad5202.zip FreeBSD-src-f8178723e9bb3e51a017187b2a3694e110ad5202.tar.gz |
MFC r276079, r276087:
Add a divisor parameter to twiddle() so that callers can request that
output only happen on every Nth call.
Add a new loader(8) variable, twiddle_divisor, allowing control over the
output frequency of the "twiddle" IO progress indicator.
Diffstat (limited to 'lib/libstand/stand.h')
-rw-r--r-- | lib/libstand/stand.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libstand/stand.h b/lib/libstand/stand.h index 2808722..ebd248d 100644 --- a/lib/libstand/stand.h +++ b/lib/libstand/stand.h @@ -241,7 +241,8 @@ extern int sprintf(char *buf, const char *cfmt, ...) __printflike(2, 3); extern int snprintf(char *buf, size_t size, const char *cfmt, ...) __printflike(3, 4); extern void vsprintf(char *buf, const char *cfmt, __va_list); -extern void twiddle(void); +extern void twiddle(u_int callerdiv); +extern void twiddle_divisor(u_int globaldiv); extern void ngets(char *, int); #define gets(x) ngets((x), 0) |