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

◆ BAUTZ

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

Definition at line 114 of file copyout.cc.

◆ MAP_FILE

#define MAP_FILE   0

Definition at line 57 of file copyout.cc.

Function Documentation

◆ assert_copydir()

int assert_copydir ( const char *  copydir)

Definition at line 61 of file copyout.cc.

References copydir, and strerror().

Referenced by parseCommandline().

◆ copy_out()

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, copydir, debug(), linebuffer, MAP_FILE, strerror(), and xlate().

Referenced by action().

◆ xlate()

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