#include <AtomicFile.H>
Inheritance diagram for AtomicFile:


Public Member Functions | |
| void | open (const char *name, std::ios::openmode mode, int prot=0644) throw () |
| void | close () throw () |
| ~AtomicFile () throw () | |
Static Public Member Functions | |
| static void | cleanup (const char *dirname=".") throw () |
Static Public Attributes | |
| static const char | reserved_char |
Private Attributes | |
| char * | tempname |
| char * | realname |
Definition at line 42 of file AtomicFile.H.
| AtomicFile::~AtomicFile | ( | ) | throw () |
Definition at line 160 of file AtomicFile.C.
References FS::FdStreamBase::close(), realname, and tempname.
Here is the call graph for this function:

| void AtomicFile::open | ( | const char * | name, | |
| std::ios::openmode | mode, | |||
| int | prot = 0644 | |||
| ) | throw () |
Definition at line 58 of file AtomicFile.C.
References FdCache::close(), NEW_PTRFREE_ARRAY, FS::OFdStream::open(), FdCache::open(), AFStaticStuff::suffix, and AFStaticStuff::suffixlen.
Referenced by main(), SMultiPKFile::OpenAtomicWrite(), CacheS::SetMPKsToWeed(), CacheS::SetStableDeleting(), Test(), CacheS::WriteHitFilter(), Weeder::WriteMiscVars(), and Weeder::WriteWeeded().
Here is the call graph for this function:

Here is the caller graph for this function:

| void AtomicFile::close | ( | ) | throw () |
Reimplemented from FS::FdStreamBase.
Definition at line 112 of file AtomicFile.C.
References FS::FdStreamBase::close(), Basics::errno_Text(), FdCache::flush(), realname, and tempname.
Referenced by main().
Here is the call graph for this function:

Here is the caller graph for this function:

| void AtomicFile::cleanup | ( | const char * | dirname = "." |
) | throw () [static] |
Definition at line 177 of file AtomicFile.C.
References NEW_PTRFREE_ARRAY, opendir(), PathnameSep, reserved_char, and AFStaticStuff::suffix.
Referenced by main().
Here is the call graph for this function:

Here is the caller graph for this function:

char* AtomicFile::tempname [private] |
char * AtomicFile::realname [private] |
const char AtomicFile::reserved_char [static] |
Definition at line 56 of file AtomicFile.H.
Referenced by AFStaticStuff::AFStaticStuff(), cleanup(), and Weeder::PruneGraphLog().
1.5.1