FcAtomicCreate
3
FcAtomicCreate
create an FcAtomic object
#include <fontconfig/fontconfig.h>
FcAtomic * FcAtomicCreate
const FcChar8 *file
Description
Creates a data structure containing data needed to control access to file.
Writing is done to a separate file. Once that file is complete, the original
configuration file is atomically replaced so that reading process always see
a consistent and complete file without the need to lock for reading.
Version
Fontconfig version &version;
FcAtomicLock
3
FcAtomicLock
lock a file
#include <fontconfig/fontconfig.h>
FcBool FcAtomicLock
FcAtomic *atomic
Description
Attempts to lock the file referenced by atomic.
Returns FcFalse if the file is already locked, else returns FcTrue and
leaves the file locked.
Version
Fontconfig version &version;
FcAtomicNewFile
3
FcAtomicNewFile
return new temporary file name
#include <fontconfig/fontconfig.h>
FcChar8 * FcAtomicNewFile
FcAtomic *atomic
Description
Returns the filename for writing a new version of the file referenced
by atomic.
Version
Fontconfig version &version;
FcAtomicOrigFile
3
FcAtomicOrigFile
return original file name
#include <fontconfig/fontconfig.h>
FcChar8 * FcAtomicOrigFile
FcAtomic *atomic
Description
Returns the file referenced by atomic.
Version
Fontconfig version &version;
FcAtomicReplaceOrig
3
FcAtomicReplaceOrig
replace original with new
#include <fontconfig/fontconfig.h>
FcBool FcAtomicReplaceOrig
FcAtomic *atomic
Description
Replaces the original file referenced by atomic with
the new file. Returns FcFalse if the file cannot be replaced due to
permission issues in the filesystem. Otherwise returns FcTrue.
Version
Fontconfig version &version;
FcAtomicDeleteNew
3
FcAtomicDeleteNew
delete new file
#include <fontconfig/fontconfig.h>
void FcAtomicDeleteNew
FcAtomic *atomic
Description
Deletes the new file. Used in error recovery to back out changes.
Version
Fontconfig version &version;
FcAtomicUnlock
3
FcAtomicUnlock
unlock a file
#include <fontconfig/fontconfig.h>
void FcAtomicUnlock
FcAtomic *atomic
Description
Unlocks the file.
Version
Fontconfig version &version;
FcAtomicDestroy
3
FcAtomicDestroy
destroy an FcAtomic object
#include <fontconfig/fontconfig.h>
void FcAtomicDestroy
FcAtomic *atomic
Description
Destroys atomic.
Version
Fontconfig version &version;