From 26f35f22f7c3b88171b6e6d17bd3d287c0910c7a Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 29 Sep 2009 00:46:57 +0000 Subject: Logging is more verbose, to include percentage completed for each device. Sending the signal SIGUSR1 now skips the current device (this is useful) MAX_SCAN has been implemented, and defaults to 255 iterations. The line clearing code inside of cleanup() is now a function called clearline(). The short version string is now a define: NETNUKE_VERSION_STRING The long version string will remain how it is for now. --- netnuke.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'netnuke.h') diff --git a/netnuke.h b/netnuke.h index 41517e3..b0a8a85 100644 --- a/netnuke.h +++ b/netnuke.h @@ -7,9 +7,11 @@ void staticPattern() __attribute__((alias("fillRandom"))); uint64_t getSize(const char* media); void echoList(void); void usage(const char* cmd); -void version_short(); +void version_short(void); void version(const char* cmd); +void clearline(void); void cleanup(); +void skip(); #ifndef __FreeBSD__ int humanize_number(char *buf, size_t len, int64_t bytes, const char *suffix, int scale, int flags); @@ -44,6 +46,13 @@ int lwrite(char* format, ...); You should have received a copy of the GNU General Public License\n\ along with this program. If not, see ." +#define NETNUKE_VERSION_STRING "NetNuke v%d.%d-%s\nCopyright (C) 2009 %s <%s>\n\ +This software is licensed under %sv%d\n",\ + NETNUKE_VERSION_MAJOR, NETNUKE_VERSION_MINOR,\ + NETNUKE_VERSION_REVISION, NETNUKE_AUTHOR,\ + NETNUKE_AUTHOR_EMAIL, NETNUKE_LICENSE_TYPE,\ + NETNUKE_LICENSE_VERSION + #define MAX_SCAN 255 /* Output update speed based on writes */ #define RETAINER 0 -- cgit