utility.c File Reference

#include "magick/studio.h"
#include "magick/property.h"
#include "magick/blob.h"
#include "magick/color.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/geometry.h"
#include "magick/list.h"
#include "magick/log.h"
#include "magick/memory_.h"
#include "magick/option.h"
#include "magick/policy.h"
#include "magick/resource_.h"
#include "magick/semaphore.h"
#include "magick/signature-private.h"
#include "magick/statistic.h"
#include "magick/string_.h"
#include "magick/token.h"
#include "magick/utility.h"
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)
MagickExport void ChopPathComponents (char *path, const unsigned long components)
MagickExport void ExpandFilename (char *path)
MagickExport MagickBooleanType ExpandFilenames (int *number_arguments, char ***arguments)
MagickExport MagickBooleanType GetExecutionPath (char *path, const size_t extent)
MagickExport long GetMagickPageSize (void)
MagickExport MagickBooleanType GetPathAttributes (const char *path, void *attributes)
MagickExport void GetPathComponent (const char *path, PathType type, char *component)
MagickExport char ** GetPathComponents (const char *path, unsigned long *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)
MagickExport char ** ListFiles (const char *directory, const char *pattern, unsigned long *number_entries)
MagickExport unsigned long MultilineCensus (const char *label)
MagickExport FILE * OpenMagickStream (const char *path, const char *mode)
MagickExport int SystemCommand (const MagickBooleanType verbose, const char *command, ExceptionInfo *exception)

Variables

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

Function Documentation

MagickExport MagickBooleanType AcquireUniqueFilename ( char *  path  ) 
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 
)

Definition at line 466 of file utility.c.

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

Referenced by CanonicalXMLContent().

MagickExport void ChopPathComponents ( char *  path,
const unsigned long  components 
)

Definition at line 549 of file utility.c.

References GetPathComponent(), and HeadPath.

Referenced by GetConfigureBlob(), GetConfigurePaths(), and XFileBrowserWidget().

MagickExport void ExpandFilename ( char *  path  ) 
MagickExport MagickBooleanType ExpandFilenames ( int *  number_arguments,
char ***  arguments 
)
static int FileCompare ( const void *  x,
const void *  y 
) [static]

Definition at line 1607 of file utility.c.

References LocaleCompare().

Referenced by ListFiles().

MagickExport MagickBooleanType GetExecutionPath ( char *  path,
const size_t  extent 
)
MagickExport long GetMagickPageSize ( void   ) 

Definition at line 1023 of file utility.c.

References sysconf.

Referenced by PersistPixelCache(), and ResourceComponentGenesis().

MagickExport MagickBooleanType GetPathAttributes ( const char *  path,
void *  attributes 
)
MagickExport void GetPathComponent ( const char *  path,
PathType  type,
char *  component 
)
MagickExport char** GetPathComponents ( const char *  path,
unsigned long *  number_components 
)
MagickExport MagickBooleanType IsMagickTrue ( const char *  value  ) 
MagickExport MagickBooleanType IsPathAccessible ( const char *  path  ) 
static int IsPathDirectory ( const char *  path  )  [static]

Definition at line 1509 of file utility.c.

References GetPathAttributes(), MagickFalse, S_ISDIR, and stat.

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

MagickExport char** ListFiles ( const char *  directory,
const char *  pattern,
unsigned long *  number_entries 
)
static size_t MagickMin ( const size_t  x,
const size_t  y 
) [inline, static]

Definition at line 142 of file utility.c.

Referenced by AcquireUniqueSymbolicLink().

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

Definition at line 1622 of file utility.c.

References readdir.

Referenced by ListFiles().

MagickExport unsigned long MultilineCensus ( const char *  label  ) 

Definition at line 1758 of file utility.c.

Referenced by MontageImageList().

MagickExport FILE* OpenMagickStream ( const char *  path,
const char *  mode 
)

Definition at line 1799 of file utility.c.

References RelinquishMagickMemory().

Referenced by LogMagickEventList(), and OpenBlob().

MagickExport int SystemCommand ( const MagickBooleanType  verbose,
const char *  command,
ExceptionInfo exception 
)

Variable Documentation

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

Definition at line 69 of file utility.c.

Referenced by Base64Decode(), and Base64Encode().


Generated on 19 Nov 2009 for MagickCore by  doxygen 1.6.1