MagickCore 7.0.10
utility.c File Reference
Include dependency graph for utility.c:

Go to the source code of this file.

Macros

#define X_OK   1
 

Functions

static int IsDirectory (const char *)
 
WizardExport void AppendFileExtension (const char *extension, char *filename)
 
WizardExport unsigned char * Base64Decode (const char *source, size_t *length)
 
WizardExport char * Base64Encode (const unsigned char *blob, const size_t blob_length, size_t *encode_length)
 
WizardExport void ChopPathComponents (char *path, const size_t components)
 
WizardExport void GetPathComponent (const char *path, PathType type, char *component)
 
WizardExport char ** GetPathComponents (const char *path, size_t *number_components)
 
WizardExport WizardBooleanType GetExecutionPath (char *path, const size_t extent)
 
WizardExport WizardBooleanType IsPathAcessible (const char *path)
 
WizardPrivate ssize_t GetWizardPageSize (void)
 
WizardExport WizardBooleanType IsWizardTrue (const char *value)
 
WizardExport const char * ParseWizardTime (const char *timestamp, time_t *target)
 
WizardExport void WizardDelay (const WizardSizeType milliseconds)
 

Variables

static const char Base64 [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
 

Macro Definition Documentation

◆ X_OK

#define X_OK   1

Function Documentation

◆ AppendFileExtension()

WizardExport void AppendFileExtension ( const char *  extension,
char *  filename 
)

◆ Base64Decode()

WizardExport unsigned char * Base64Decode ( const char *  source,
size_t *  length 
)

◆ Base64Encode()

WizardExport char * Base64Encode ( const unsigned char *  blob,
const size_t  blob_length,
size_t *  encode_length 
)

Definition at line 292 of file utility.c.

References AcquireQuantumMemory(), Base64, GetWizardModule, LogWizardEvent(), and TraceEvent.

Referenced by CanonicalXMLContent().

◆ ChopPathComponents()

WizardExport void ChopPathComponents ( char *  path,
const size_t  components 
)

Definition at line 378 of file utility.c.

References GetPathComponent(), and HeadPath.

◆ GetExecutionPath()

WizardExport WizardBooleanType GetExecutionPath ( char *  path,
const size_t  extent 
)

Definition at line 643 of file utility.c.

◆ GetPathComponent()

◆ GetPathComponents()

WizardExport char ** GetPathComponents ( const char *  path,
size_t *  number_components 
)

◆ GetWizardPageSize()

WizardPrivate ssize_t GetWizardPageSize ( void  )

Definition at line 817 of file utility.c.

Referenced by AcquireAlignedMemory().

◆ IsDirectory()

static int IsDirectory ( const char *  path)
static

Definition at line 860 of file utility.c.

References S_ISDIR, stat_utf8(), WizardFalse, and X_OK.

Referenced by GetPathComponent().

◆ IsPathAcessible()

WizardExport WizardBooleanType IsPathAcessible ( const char *  path)

Definition at line 779 of file utility.c.

References S_ISREG, stat_utf8(), WizardFalse, and WizardTrue.

Referenced by GetExecutionPath(), GetPathComponent(), IsGlob(), and LogWizardEventList().

◆ IsWizardTrue()

WizardExport WizardBooleanType IsWizardTrue ( const char *  value)

Definition at line 910 of file utility.c.

References LocaleCompare(), WizardFalse, and WizardTrue.

Referenced by LoadConfigureCache(), and LoadMimeCache().

◆ ParseWizardTime()

WizardExport const char * ParseWizardTime ( const char *  timestamp,
time_t *  target 
)

Definition at line 951 of file utility.c.

References StringToDouble().

◆ WizardDelay()

WizardExport void WizardDelay ( const WizardSizeType  milliseconds)

Definition at line 1042 of file utility.c.

Referenced by AcquireFileLock().

Variable Documentation

◆ Base64

const char Base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
static

Definition at line 59 of file utility.c.

Referenced by Base64Decode(), and Base64Encode().