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

Go to the source code of this file.

Functions

static int IsPathDirectory (const char *)
MagickExport MagickBooleanType AcquireUniqueFilename (char *path)
static size_t MagickMin (const size_t x, const size_t y)
MagickExport MagickBooleanType AcquireUniqueSymbolicLink (const char *source, char *destination)
MagickExport void AppendImageFormat (const char *format, char *filename)
MagickExport unsigned char * Base64Decode (const char *source, size_t *length)
MagickExport char * Base64Encode (const unsigned char *blob, const size_t blob_length, size_t *encode_length)
MagickPrivate void ChopPathComponents (char *path, const size_t components)
MagickPrivate void ExpandFilename (char *path)
MagickExport MagickBooleanType ExpandFilenames (int *number_arguments, char ***arguments)
MagickPrivate MagickBooleanType GetExecutionPath (char *path, const size_t extent)
MagickPrivate ssize_t GetMagickPageSize (void)
MagickExport MagickBooleanType GetPathAttributes (const char *path, void *attributes)
MagickExport void GetPathComponent (const char *path, PathType type, char *component)
MagickPrivate char ** GetPathComponents (const char *path, size_t *number_components)
MagickExport MagickBooleanType IsPathAccessible (const char *path)
MagickExport MagickBooleanType IsMagickTrue (const char *value)
static int FileCompare (const void *x, const void *y)
static int MagickReadDirectory (DIR *directory, struct dirent *entry, struct dirent **result)
MagickPrivate char ** ListFiles (const char *directory, const char *pattern, size_t *number_entries)
MagickPrivate void MagickDelay (const MagickSizeType milliseconds)
MagickExport size_t MultilineCensus (const char *label)
MagickExport int SystemCommand (const MagickBooleanType asynchronous, const MagickBooleanType verbose, const char *command, ExceptionInfo *exception)

Variables

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

Function Documentation

MagickExport MagickBooleanType AcquireUniqueFilename ( char *  path)
MagickExport void AppendImageFormat ( const char *  format,
char *  filename 
)
MagickExport unsigned char* Base64Decode ( const char *  source,
size_t *  length 
)
MagickExport char* Base64Encode ( const unsigned char *  blob,
const size_t  blob_length,
size_t *  encode_length 
)

Definition at line 489 of file utility.c.

References LogMagickEvent(), TraceEvent, GetMagickModule, AcquireQuantumMemory(), and Base64.

Referenced by CanonicalXMLContent().

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

Definition at line 572 of file utility.c.

References GetPathComponent(), and HeadPath.

MagickPrivate void ExpandFilename ( char *  path)
static int FileCompare ( const void *  x,
const void *  y 
) [static]

Definition at line 1531 of file utility.c.

References LocaleCompare().

Referenced by ListFiles().

MagickPrivate MagickBooleanType GetExecutionPath ( char *  path,
const size_t  extent 
)
MagickPrivate ssize_t GetMagickPageSize ( void  )

Definition at line 1067 of file utility.c.

Referenced by PersistPixelCache(), and ResourceComponentGenesis().

MagickExport MagickBooleanType GetPathAttributes ( const char *  path,
void *  attributes 
)
MagickPrivate char** GetPathComponents ( const char *  path,
size_t *  number_components 
)
static int IsPathDirectory ( const char *  path) [static]

Definition at line 1433 of file utility.c.

References MagickFalse, GetPathAttributes(), and S_ISDIR.

Referenced by ExpandFilenames(), GetPathComponent(), and ListFiles().

MagickPrivate void MagickDelay ( const MagickSizeType  milliseconds)

Definition at line 1680 of file utility.c.

References lib.

Referenced by GetImagePixelCache().

static size_t MagickMin ( const size_t  x,
const size_t  y 
) [inline, static]

Definition at line 150 of file utility.c.

Referenced by AcquireUniqueSymbolicLink().

static int MagickReadDirectory ( DIR directory,
struct dirent entry,
struct dirent **  result 
) [inline, static]

Definition at line 1546 of file utility.c.

References readdir().

Referenced by ListFiles().

MagickExport size_t MultilineCensus ( const char *  label)

Definition at line 1746 of file utility.c.

Referenced by MontageImageList().


Variable Documentation

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

Definition at line 77 of file utility.c.

Referenced by Base64Decode(), and Base64Encode().