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) 
|
Go to the documentation of this file. 44 unsigned long count = 0;
52 _TEXT(
"cannot create temporary file"));
55 while(size == 65536 &&
live) {
58 while(pass < (
unsigned)*
passes) {
77 if(fs.
err() != ENOSPC)
79 _TEXT(
"failed before end of space"));
87 unsigned long count = 0;
92 devname,
_TEXT(
"cannot access"));
96 devname,
_TEXT(
"not block device"));
101 devname,
_TEXT(
"cannot modify"));
106 while(size == 65536 &&
live) {
109 while(pass < (
unsigned)*
passes) {
128 if(fs.
err() != ENOSPC)
130 _TEXT(
"failed before end of space"));
133 int main(
int argc,
char **argv)
136 shell args(argc, argv);
144 printf(
"%s\n",
_TEXT(
"Usage: zerofill [options] path..."));
145 printf(
"%s\n\n",
_TEXT(
"Erase and fill unused space with zeros"));
146 printf(
"%s\n",
_TEXT(
"Options:"));
148 printf(
"\n%s\n",
_TEXT(
"Report bugs to dyfet@gnu.org"));
159 while(count < args() &&
live)
static shell::flagopt helpflag('h',"--help", _TEXT("display this list"))
ssize_t write(const void *buffer, size_t count)
static void bind(const char *name)
static size_t fill(uint8_t *memory, size_t size)
static shell::numericopt passes('r', "--random", _TEXT("optional passes with randomized data (0-x)"), "count", 0)
static int erase(const char *path)
static void static void errexit(int exitcode, const char *format=NULL,...) __PRINTF(2
int info(fileinfo_t *buffer)
static void cleanup(void)
static bool is_disk(struct stat *inode)
static uint8_t buffer[65536]
int main(int argc, char **argv)
static void exiting(exitproc_t)
void open(const char *path, access_t access)
static shell::flagopt althelp('?', NULL, NULL)
static size_t printf(const char *format,...) __PRINTF(1
int seek(offset_t offset)
void zerofill(void *addr, size_t size)
const char * _TEXT(const char *s)