tools/purge/copyout.cc File Reference

#include "config.h"
#include "copyout.hh"
#include <sys/stat.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <sys/mman.h>
Include dependency graph for copyout.cc:

Go to the source code of this file.

Defines

#define MAP_FILE   0
#define BAUTZ(x)   delete[] filename; close(input); close(out); return (x)

Functions

int assert_copydir (const char *copydir)
unsigned xlate (char ch)
bool copy_out (size_t filesize, size_t metasize, unsigned debug, const char *fn, const char *url, const char *copydir, bool copyHdr)

Define Documentation

#define BAUTZ (   x  )     delete[] filename; close(input); close(out); return (x)

Definition at line 116 of file copyout.cc.

Referenced by copy_out().

#define MAP_FILE   0

Definition at line 59 of file copyout.cc.

Referenced by copy_out().


Function Documentation

int assert_copydir ( const char *  copydir  ) 

Definition at line 63 of file copyout.cc.

References strerror().

Referenced by parseCommandline().

bool copy_out ( size_t  filesize,
size_t  metasize,
unsigned  debug,
const char *  fn,
const char *  url,
const char *  copydir,
bool  copyHdr 
)

Definition at line 119 of file copyout.cc.

References assert, BAUTZ, buffersize, linebuffer, MAP_FILE, strerror(), and xlate().

Referenced by action().

unsigned xlate ( char  ch  )  [inline]

Definition at line 108 of file copyout.cc.

Referenced by copy_out().

Search

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors