ucommon  7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
  Fossies Dox: ucommon-7.0.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

zerofill.cpp File Reference
#include <ucommon/secure.h>
Include dependency graph for zerofill.cpp:

Go to the source code of this file.

Functions

static void cleanup (void)
 
static void zerofill (void)
 
static void zerofill (const char *devname)
 
int main (int argc, char **argv)
 

Variables

static shell::flagopt helpflag ('h',"--help", _TEXT("display this list"))
 
static shell::flagopt althelp ('?', NULL, NULL)
 
static shell::numericopt passes ('r', "--random", _TEXT("optional passes with randomized data (0-x)"), "count", 0)
 
static uint8_t buffer [65536]
 
static bool live = false
 
static bool temp = false
 

Function Documentation

◆ cleanup()

static void cleanup ( void  )
static

Definition at line 31 of file zerofill.cpp.

References ucommon::fsys::erase(), live, ucommon::shell::printf(), and temp.

Referenced by main(), and zerofill().

◆ main()

◆ zerofill() [1/2]

◆ zerofill() [2/2]

Variable Documentation

◆ althelp

shell::flagopt althelp('?', NULL, NULL)
static

Referenced by main().

◆ buffer

◆ helpflag

shell::flagopt helpflag( 'h',"--help", _TEXT("display this list"))
static

Referenced by main().

◆ live

bool live = false
static

Definition at line 28 of file zerofill.cpp.

Referenced by cleanup(), main(), and zerofill().

◆ passes

shell::numericopt passes( 'r', "--random", _TEXT("optional passes with randomized data (0-x)"), "count", 0)
static

Referenced by main(), and zerofill().

◆ temp