jigdo API

torture.cc File Reference

#include <config.h>
#include <iostream>
#include <fstream>
#include <memory>
#include <string>
#include <vector>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <unistd-jigdo.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <bstream.hh>
#include <jigdoconfig.hh>
#include <log.hh>
#include <md5sum.hh>
#include <mimestream.hh>
#include <mkimage.hh>
#include <mktemplate.hh>
#include <recursedir.hh>
#include <scan.hh>
#include <string.hh>
#include <limits.h>
#include <sys/mman.h>

Defines

#define SSIZE_MAX   (UINT_MAX)
#define CHEAT_MR_NICE   0
#define TORTURE_DIR   "ironmaiden" DIRSEPS

Functions

void cheatMrNice ()
void update (MD5Sum &md, uint32 x)
void mkfiles (uint32 nr)
void mkimage (uint32 nr)
int main (int argc, char *argv[])

Variables

string cacheFile
const size_t MAX_MEM = 8*1024*1024
const size_t MAX_IMAGE = 16*1024*1024
vector< File > files
uint32 lastFilesNr = 1
vector< Match > imageMatches

Define Documentation

#define CHEAT_MR_NICE   0

#define SSIZE_MAX   (UINT_MAX)

#define TORTURE_DIR   "ironmaiden" DIRSEPS

Referenced by main(), mkfiles(), and mkimage().


Function Documentation

void @75::cheatMrNice (  )  [inline, static]

Referenced by main(), mkfiles(), and mkimage().

void @75::mkfiles ( uint32  nr  )  [static]

References append(), buf, cheatMrNice(), data, o, size, TORTURE_DIR, and writeBytes().

Referenced by main().

void @75::mkimage ( uint32  nr  )  [static]

References cheatMrNice(), data, debug, info, size, TORTURE_DIR, writeBytes(), and x.

Referenced by main().

void @75::update ( MD5Sum md,
uint32  x 
) [static]

References MD5Sum::update().


Variable Documentation

size_t bitsInRes

Referenced by Rand::get(), and Rand::Rand().

string cacheFile

byte* data

vector<File> files [static]

struct { ... } hashData

Referenced by Rand::Rand().

vector<Match> imageMatches [static]

uint32 lastFilesNr = 1 [static]

vector<Match> matches

Referenced by MkTemplate::MkTemplate().

const size_t MAX_IMAGE = 16*1024*1024 [static]

const size_t MAX_MEM = 8*1024*1024 [static]

bool msg

The default debugging logger uses the unit name "general".

If possible, you should define a static, per-compilation-unit logger with a more descriptive name and use that instead.

Referenced by ap(), as(), Job::MakeImageDl::childFailed(), cmdOptions(), compare(), curlCallback(), expect(), expectEnum(), JigdoDesc::listMissing(), main(), JigdoDesc::makeImage(), memData(), Rand::Rand(), Job::MakeImageDl::run(), test(), testBetween(), testCase(), testCase2(), testFork(), testImageInfo(), testLoop(), testMinimal(), testNoMD5(), testSimple(), and testUriJoin().

size_t nr

Referenced by main().

MD5 r

int* refCount

byte* rend

Referenced by Rand::get(), and Rand::Rand().

uint32 res

Referenced by Rand::get(), and Rand::Rand().

byte* rptr

Referenced by Rand::get(), and Rand::Rand().

uint32 serial


Generated on Tue Sep 23 14:27:42 2008 for jigdo by  doxygen 1.5.6