Back to index

courier  0.68.2
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends
DeliverDotLock Class Reference

#include <deliverdotlock.h>

Inheritance diagram for DeliverDotLock:
Inheritance graph
[legend]
Collaboration diagram for DeliverDotLock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DeliverDotLock ()
 ~DeliverDotLock ()
void trap_truncate (int f, off_t size)
void remove_trap ()
void truncate ()
void Lock (const char *)
void LockMailbox (const char *)
void Unlock ()
int Open (const char *, int, mode_t=0666)
void Close ()

Static Public Member Functions

static void onexit ()
static void onfork ()

Protected Member Functions

void forked ()
void name (const char *)
void descriptor (int fd_)
void destroying ()
void constructed ()

Protected Attributes

char * filename
int fd
int do_remove

Private Member Functions

void cleanup ()

Private Attributes

int truncate_fd
off_t truncate_size

Friends

class DotLockRefresh

Detailed Description

Definition at line 18 of file deliverdotlock.h.


Constructor & Destructor Documentation


Member Function Documentation

void DeliverDotLock::cleanup ( ) [private, virtual]

Reimplemented from TempFile.

void TempFile::Close ( ) [inherited]
void ExitTrap::constructed ( ) [inline, protected, inherited]

Definition at line 26 of file exittrap.h.

{ callcleanup=1; }
void TempFile::descriptor ( int  fd_) [inline, protected, inherited]

Definition at line 54 of file tempfile.h.

{ fd=fd_; }
void ExitTrap::destroying ( ) [inline, protected, inherited]

Definition at line 25 of file exittrap.h.

{ callcleanup=0; }
void TempFile::forked ( ) [protected, virtual, inherited]

Implements ExitTrap.

void DotLock::Lock ( const char *  ) [inherited]
void DotLock::LockMailbox ( const char *  ) [inherited]
void TempFile::name ( const char *  ) [protected, inherited]
static void ExitTrap::onexit ( ) [static, inherited]
static void ExitTrap::onfork ( ) [static, inherited]
int TempFile::Open ( const char *  ,
int  ,
mode_t  = 0666 
) [inherited]
void DeliverDotLock::remove_trap ( ) [inline]

Definition at line 33 of file deliverdotlock.h.

{ truncate_fd= -1; }
void DeliverDotLock::trap_truncate ( int  f,
off_t  size 
) [inline]

Definition at line 28 of file deliverdotlock.h.

void DotLock::Unlock ( ) [inherited]

Friends And Related Function Documentation

friend class DotLockRefresh [friend, inherited]

Definition at line 32 of file dotlock.h.


Member Data Documentation

int TempFile::do_remove [protected, inherited]

Definition at line 43 of file tempfile.h.

int TempFile::fd [protected, inherited]

Definition at line 41 of file tempfile.h.

char* TempFile::filename [protected, inherited]

Definition at line 40 of file tempfile.h.

Definition at line 22 of file deliverdotlock.h.

Definition at line 23 of file deliverdotlock.h.


The documentation for this class was generated from the following file: