MagickCore 7.0.10
|
#include "wizard/studio.h"
#include "wizard/blob.h"
#include "wizard/exception.h"
#include "wizard/exception-private.h"
#include "wizard/file.h"
#include "wizard/memory_.h"
#include "wizard/nt-base.h"
#include "wizard/semaphore.h"
#include "wizard/string_.h"
#include "wizard/utility.h"
#include "wizard/utility-private.h"
Go to the source code of this file.
Data Structures | |
struct | _FileInfo |
WizardExport FileInfo * AcquireFileInfo | ( | const char * | path, |
const char * | relative_path, | ||
const FileMode | mode, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 257 of file file.c.
References AcquireFileLock(), AcquireSemaphoreInfo(), AcquireString(), AcquireWizardMemory(), ConcatenateWizardString(), CopyWizardString(), DestroyFileInfo(), DirectorySeparator, _FileInfo::file, FileError, GetEnvironmentValue(), GetWizardModule, LogWizardEvent(), O_BINARY, open_utf8(), _FileInfo::path, _FileInfo::properties, ReadFileMode, RelinquishWizardMemory(), S_MODE, _FileInfo::semaphore, _FileInfo::signature, ThrowWizardException(), _FileInfo::timestamp, TraceEvent, WizardFalse, WizardPathExtent, WizardSignature, and WriteFileMode.
Referenced by ExportKeyringKey(), GetEntropyFromReservoir(), ImportKeyringKey(), PrintKeyringProperties(), and SaveEntropyToReservoir().
|
static |
Definition at line 127 of file file.c.
References AcquireString(), AppendFileExtension(), DestroyString(), _FileInfo::file, FileError, GetWizardModule, GetWizardThreadId(), LockSemaphoreInfo(), LogWizardEvent(), open_utf8(), _FileInfo::path, ReadFileChunk(), remove_utf8(), S_MODE, _FileInfo::semaphore, _FileInfo::signature, ThrowWizardException(), TraceEvent, UnlockSemaphoreInfo(), WizardDelay(), WizardFalse, WizardSignature, WizardTrue, and WriteFileChunk().
Referenced by AcquireFileInfo().
WizardExport WizardBooleanType DestroyFile | ( | FileInfo * | file_info, |
ExceptionInfo * | exception | ||
) |
Definition at line 389 of file file.c.
References _FileInfo::file, FileError, GetWizardModule, _FileInfo::path, remove_utf8(), ThrowWizardException(), WizardFalse, and WizardTrue.
WizardExport FileInfo * DestroyFileInfo | ( | FileInfo * | file_info, |
ExceptionInfo * | exception | ||
) |
Definition at line 431 of file file.c.
References DestroyString(), _FileInfo::file, FileError, GetWizardModule, LockSemaphoreInfo(), LogWizardEvent(), _FileInfo::path, RelinquishFileLock(), RelinquishSemaphoreInfo(), RelinquishWizardMemory(), _FileInfo::semaphore, _FileInfo::signature, ThrowWizardException(), TraceEvent, UnlockSemaphoreInfo(), and WizardSignature.
Referenced by AcquireFileInfo(), ExportKeyringKey(), GetEntropyFromReservoir(), ImportKeyringKey(), PrintKeyringProperties(), and SaveEntropyToReservoir().
WizardExport int GetFileDescriptor | ( | const FileInfo * | file_info | ) |
Definition at line 475 of file file.c.
References _FileInfo::file, GetWizardModule, LogWizardEvent(), _FileInfo::signature, TraceEvent, and WizardSignature.
Referenced by ImportKeyringKey().
WizardExport const char * GetFilePath | ( | const FileInfo * | file_info | ) |
Definition at line 505 of file file.c.
References GetWizardModule, LogWizardEvent(), _FileInfo::path, _FileInfo::signature, TraceEvent, and WizardSignature.
Referenced by ExportKeyringKey(), GetEntropyFromReservoir(), ImportKeyringKey(), PrintKeyringProperties(), and SaveEntropyToReservoir().
WizardExport const struct stat * GetFileProperties | ( | const FileInfo * | file_info | ) |
Definition at line 535 of file file.c.
References GetWizardModule, LogWizardEvent(), _FileInfo::properties, _FileInfo::signature, TraceEvent, and WizardSignature.
Referenced by PrintKeyringProperties().
|
static |
Definition at line 116 of file file.c.
Referenced by AcquireFileLock(), AcquireSemaphoreInfo(), GenerateEntropicChaos(), and LockSemaphoreInfo().
WizardExport WizardBooleanType ReadFile16Bits | ( | FileInfo * | file_info, |
unsigned short * | value | ||
) |
Definition at line 660 of file file.c.
References ReadFileChunk(), _FileInfo::signature, WizardFalse, and WizardSignature.
Referenced by ExportKeyringKey(), GetEntropyFromReservoir(), and PrintKeyringProperties().
WizardExport WizardBooleanType ReadFile32Bits | ( | FileInfo * | file_info, |
size_t * | value | ||
) |
Definition at line 706 of file file.c.
References ReadFileChunk(), _FileInfo::signature, WizardFalse, and WizardSignature.
Referenced by ExportKeyringKey(), GetEntropyFromReservoir(), and PrintKeyringProperties().
WizardExport WizardBooleanType ReadFile64Bits | ( | FileInfo * | file_info, |
WizardSizeType * | value | ||
) |
Definition at line 754 of file file.c.
References ReadFileChunk(), _FileInfo::signature, WizardFalse, and WizardSignature.
Referenced by ExportKeyringKey(), GetEntropyFromReservoir(), and PrintKeyringProperties().
WizardExport int ReadFileByte | ( | FileInfo * | file_info | ) |
Definition at line 566 of file file.c.
References ReadFileChunk(), _FileInfo::signature, WizardFalse, and WizardSignature.
WizardExport WizardBooleanType ReadFileChunk | ( | FileInfo * | file_info, |
void * | data, | ||
const size_t | length | ||
) |
Definition at line 606 of file file.c.
References _FileInfo::file, GetWizardModule, LogWizardEvent(), Min, _FileInfo::path, _FileInfo::signature, TraceEvent, WizardFalse, WizardMaxBufferExtent, WizardSignature, and WizardTrue.
Referenced by AcquireFileLock(), ExportKeyringKey(), GetEntropyFromReservoir(), PrintKeyringProperties(), ReadFile16Bits(), ReadFile32Bits(), ReadFile64Bits(), and ReadFileByte().
|
static |
Definition at line 805 of file file.c.
References AcquireString(), AppendFileExtension(), DestroyString(), FileError, GetWizardModule, _FileInfo::path, remove_utf8(), ThrowWizardException(), WizardFalse, and WizardTrue.
Referenced by DestroyFileInfo().
WizardExport WizardBooleanType WriteFile16Bits | ( | FileInfo * | file_info, |
const unsigned short | value | ||
) |
Definition at line 904 of file file.c.
References _FileInfo::signature, WizardSignature, and WriteFileChunk().
Referenced by ImportKeyringKey(), and SaveEntropyToReservoir().
WizardExport WizardBooleanType WriteFile32Bits | ( | FileInfo * | file_info, |
const size_t | value | ||
) |
Definition at line 943 of file file.c.
References GetWizardModule, LogWizardEvent(), TraceEvent, and WriteFileChunk().
Referenced by ImportKeyringKey(), and SaveEntropyToReservoir().
WizardExport WizardBooleanType WriteFile64Bits | ( | FileInfo * | file_info, |
const WizardSizeType | value | ||
) |
Definition at line 984 of file file.c.
References GetWizardModule, LogWizardEvent(), TraceEvent, and WriteFileChunk().
Referenced by ImportKeyringKey(), and SaveEntropyToReservoir().
WizardExport WizardBooleanType WriteFileChunk | ( | FileInfo * | file_info, |
const void * | data, | ||
const size_t | length | ||
) |
Definition at line 851 of file file.c.
References _FileInfo::file, GetWizardModule, LogWizardEvent(), _FileInfo::path, _FileInfo::signature, TraceEvent, WizardFalse, WizardSignature, and WizardTrue.
Referenced by AcquireFileLock(), ImportKeyringKey(), SaveEntropyToReservoir(), WriteFile16Bits(), WriteFile32Bits(), and WriteFile64Bits().