copyout.cc File Reference
#include "squid.h"
#include "copyout.hh"
#include <sys/stat.h>
#include <cerrno>
#include <cstring>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
Include dependency graph for copyout.cc:

Go to the source code of this file.

Macros

#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)
 

Macro Definition Documentation

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

Definition at line 114 of file copyout.cc.

Referenced by copy_out().

#define MAP_FILE   0

Definition at line 57 of file copyout.cc.

Referenced by copy_out().

Function Documentation

int assert_copydir ( const char *  copydir)

Definition at line 61 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 117 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 106 of file copyout.cc.

Referenced by copy_out().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors