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..
![]() ![]() |
#include <ucommon/secure.h>
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 |
|
static |
Definition at line 31 of file zerofill.cpp.
References ucommon::fsys::erase(), live, ucommon::shell::printf(), and temp.
Referenced by main(), and zerofill().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 133 of file zerofill.cpp.
References ucommon::_TEXT(), althelp, ucommon::shell::bind(), cleanup(), ucommon::shell::errexit(), ucommon::shell::exiting(), ucommon::shell::help(), helpflag, ucommon::secure::init(), ucommon::is(), live, passes, and ucommon::zerofill().
|
static |
Definition at line 82 of file zerofill.cpp.
References ucommon::_TEXT(), buffer, cleanup(), ucommon::fsys::err(), ucommon::shell::errexit(), ucommon::Random::fill(), ucommon::fsys::info(), ucommon::fsys::is_disk(), live, ucommon::fsys::open(), passes, ucommon::shell::printf(), ucommon::fsys::seek(), ucommon::fsys::write(), and ucommon::fsys::WRONLY.
|
static |
Definition at line 40 of file zerofill.cpp.
References ucommon::_TEXT(), buffer, cleanup(), ucommon::fsys::err(), ucommon::shell::errexit(), ucommon::Random::fill(), ucommon::is(), live, ucommon::fsys::open(), passes, ucommon::shell::printf(), ucommon::fsys::seek(), ucommon::fsys::STREAM, temp, and ucommon::fsys::write().
|
static |
Referenced by main().
|
static |
Definition at line 27 of file zerofill.cpp.
Referenced by ucommon::tcpstream::_read(), ucommon::tcpstream::_write(), ucommon::Socket::address::add(), binarydecode(), ucommon::Number::c_str(), ucommon::DateTimeString::c_str(), ucommon::Thread::cache(), ost::XMLParser::clearBuffer(), ucommon::MappedMemory::copy(), ucommon::fsys::copy(), ucommon::mapped_view< T >::copy(), digest(), encode(), encodefile(), ucommon::StringPager::filter(), ucommon::DateTime::format(), ost::Date::get(), ost::Time::get(), ost::DateTime::get(), ost::File::getDirname(), ost::File::getFilename(), ucommon::getline(), ucommon::shell::getline(), ucommon::shell::getpass(), ost::File::getRealpath(), ucommon::fsys::linkinfo(), ucommon::DirPager::load(), ost::Lockfile::lock(), ost::lookup(), main(), ucommon::Number::operator char *(), ucommon::DateTimeString::operator const char *(), ucommon::utf8::pack(), ost::XMLParser::parse(), ost::XMLParser::parseTag(), ost::XMLParser::partial(), ucommon::Date::put(), ucommon::utf8::put(), ucommon::Time::put(), ost::XMLParser::putBuffer(), ucommon::putline(), ost::PersistEngine::read(), ucommon::Socket::replyto(), ost::Process::setGroup(), ost::Process::setUser(), SHA1Transform(), streamdecode(), ucommon::shell::systemf(), ost::UDPTransmit::transmit(), ost::XMLParser::XMLParser(), zerofill(), and ost::XMLParser::~XMLParser().
|
static |
Referenced by main().
|
static |
Definition at line 28 of file zerofill.cpp.
Referenced by cleanup(), main(), and zerofill().
|
static |
Referenced by main(), and zerofill().
|
static |
Definition at line 29 of file zerofill.cpp.
Referenced by ucommon::Cipher::Key::assign(), cleanup(), ost::SysTime::getGMTTime(), ost::SysTime::getLocalTime(), ost::SysTime::getTime(), ost::SysTime::getTimeOfDay(), ucommon::String::operator%(), ost::operator&(), ucommon::Digest::reset(), ucommon::str(), and zerofill().