Powered by Pair ImageMagick logo
Image Magick
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

ImageMagick-6.1.1/magick/nt_base.h File Reference

#include "magick/delegate.h"
#include <windows.h>
#include <winuser.h>
#include <wingdi.h>
#include <io.h>
#include <process.h>
#include <errno.h>

Include dependency graph for nt_base.h:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  dirent
struct  _DIR
struct  _NTMEMORYSTATUSEX

Defines

#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN
#define PROT_READ   0x01
#define PROT_WRITE   0x02
#define MAP_SHARED   0x01
#define MAP_PRIVATE   0x02
#define MAP_ANONYMOUS   0x20
#define F_OK   0
#define R_OK   4
#define W_OK   2
#define RW_OK   6
#define _SC_PAGESIZE   1
#define _SC_PHYS_PAGES   2
#define chsize(file, length)   _chsize(file,length)
#define access(path, mode)   _access(path,mode)
#define pclose   _pclose
#define popen   _popen
#define strcasecmp   strcmpi
#define strncasecmp   strnicmp
#define tempnam   _tempnam
#define vsnprintf   _vsnprintf
#define SAFE_GLOBAL

Typedefs

typedef _DIR DIR
typedef _NTMEMORYSTATUSEX NTMEMORYSTATUSEX
typedef UINT(CALLBACK * LPFNDLLFUNC1 )(DWORD, UINT)
typedef UINT(CALLBACK * LPFNDLLFUNC2 )(NTMEMORYSTATUSEX *)
typedef long ssize_t

Functions

MagickExport char * NTGetLastError (void)
MagickExport const GhostscriptVectorsNTGhostscriptDLLVectors (void)
MagickExport const char * lt_dlerror (void)
MagickExport DIRopendir (char *)
MagickExport double NTElapsedTime (void)
MagickExport double NTUserTime (void)
MagickExport int Exit (int)
MagickExport int IsWindows95 ()
MagickExport int lt_dlclose (void *)
MagickExport int lt_dlexit (void)
MagickExport int lt_dlinit (void)
MagickExport int lt_dlsetsearchpath (const char *)
MagickExport int msync (void *, size_t, int)
MagickExport int munmap (void *, size_t)
MagickExport int NTGhostscriptDLL (char *path, int path_length)
MagickExport int NTGhostscriptEXE (char *path, int path_length)
MagickExport int NTGhostscriptFonts (char *path, int path_length)
MagickExport int NTGhostscriptLoadDLL (void)
MagickExport int NTGhostscriptUnLoadDLL (void)
MagickExport int NTSystemComman (const char *)
MagickExport long sysconf (int)
MagickExport long telldir (DIR *)
MagickExport MagickBooleanType NTGetExecutionPath (char *)
MagickExport MagickBooleanType NTGetModulePath (const char *, char *)
MagickExport MagickBooleanType NTReportException (const char *, const MagickBooleanType)
MagickExport struct direntreaddir (DIR *)
MagickExport unsigned char * NTResourceToBlob (const char *)
MagickExport void closedir (DIR *)
MagickExport void * lt_dlopen (const char *)
MagickExport void ** lt_dlsym (void *, const char *)
MagickExport void *** mmap (char *, size_t, int, int, int, MagickOffsetType)
MagickExport void *** NTErrorHandler (const ExceptionType, const char *, const char *)
MagickExport void *** NTWarningHandler (const ExceptionType, const char *, const char *)
MagickExport void *** seekdir (DIR *, long)


Define Documentation

#define _SC_PAGESIZE   1
 

Definition at line 34 of file nt_base.h.

Referenced by InitializeMagickResources(), and PersistCache().

#define _SC_PHYS_PAGES   2
 

Definition at line 35 of file nt_base.h.

Referenced by InitializeMagickResources().

#define access path,
mode   )     _access(path,mode)
 

Definition at line 46 of file nt_base.h.

Referenced by find_handle_callback(), IsAccessible(), and IsDirectory().

#define chsize file,
length   )     _chsize(file,length)
 

Definition at line 41 of file nt_base.h.

#define F_OK   0
 

Definition at line 30 of file nt_base.h.

Referenced by IsAccessible().

#define MAP_ANONYMOUS   0x20
 

Definition at line 29 of file nt_base.h.

Referenced by MapBlob().

#define MAP_PRIVATE   0x02
 

Definition at line 28 of file nt_base.h.

Referenced by MapBlob().

#define MAP_SHARED   0x01
 

Definition at line 27 of file nt_base.h.

Referenced by MapBlob().

#define pclose   _pclose
 

Definition at line 49 of file nt_base.h.

Referenced by CloseBlob().

#define popen   _popen
 

Definition at line 52 of file nt_base.h.

Referenced by OpenBlob().

#define PROT_READ   0x01
 

Definition at line 25 of file nt_base.h.

Referenced by MapBlob().

#define PROT_WRITE   0x02
 

Definition at line 26 of file nt_base.h.

Referenced by MapBlob().

#define R_OK   4
 

Definition at line 31 of file nt_base.h.

Referenced by find_handle_callback().

#define RW_OK   6
 

Definition at line 33 of file nt_base.h.

#define SAFE_GLOBAL
 

Definition at line 70 of file nt_base.h.

#define strcasecmp   strcmpi
 

Definition at line 55 of file nt_base.h.

Referenced by LocaleCompare().

#define strncasecmp   strnicmp
 

Definition at line 58 of file nt_base.h.

Referenced by LocaleNCompare().

#define tempnam   _tempnam
 

Definition at line 61 of file nt_base.h.

#define VC_EXTRALEAN
 

Definition at line 14 of file nt_base.h.

#define vsnprintf   _vsnprintf
 

Definition at line 64 of file nt_base.h.

Referenced by FormatMagickString(), FormatString(), LogMagickEvent(), MvgAutoWrapPrintf(), MvgPrintf(), and ThrowMagickException().

#define W_OK   2
 

Definition at line 32 of file nt_base.h.

#define WIN32_LEAN_AND_MEAN
 

Definition at line 13 of file nt_base.h.


Typedef Documentation

typedef struct _DIR DIR
 

typedef UINT(CALLBACK * LPFNDLLFUNC1)(DWORD, UINT)
 

Definition at line 126 of file nt_base.h.

typedef UINT(CALLBACK * LPFNDLLFUNC2)(NTMEMORYSTATUSEX *)
 

Definition at line 129 of file nt_base.h.

typedef struct _NTMEMORYSTATUSEX NTMEMORYSTATUSEX
 

typedef long ssize_t
 

Definition at line 134 of file nt_base.h.

Referenced by BlobToFile(), DecodeImage(), ExtendCache(), FileToBlob(), FileToString(), Generate8BIMAttribute(), ImageToFile(), InitializeRandomReservoir(), IsGIF(), IsTXT(), load_tile(), load_tile_rle(), LoadMagicList(), OpenBlob(), PCXWritePixels(), ReadAVIImage(), ReadAVSImage(), ReadBlob(), ReadBlobByte(), ReadBlobLSBLong(), ReadBlobLSBShort(), ReadBlobMSBLong(), ReadBlobMSBShort(), ReadBMPImage(), ReadCacheRegion(), ReadCINImage(), ReadCMYKImage(), ReadDCMImage(), ReadDPXImage(), ReadFITSImage(), ReadGIFImage(), ReadGRAYImage(), ReadInlineBlob(), ReadMETAImage(), ReadMTVImage(), ReadOneLayer(), ReadPALMImage(), ReadPCXImage(), ReadPDFImage(), ReadPNMImage(), ReadPSDImage(), ReadPSImage(), ReadPWPImage(), ReadRAWImage(), ReadRGBImage(), ReadRLEImage(), ReadSFWImage(), ReadSGIImage(), ReadSUNImage(), ReadTGAImage(), ReadTXTImage(), ReadVICARImage(), ReadVIFFImage(), ReadXCFImage(), ReadXPMImage(), ReadYCBCRImage(), ReadYUVImage(), SetImageInfo(), SGIDecode(), WriteBlob(), WriteBlobByte(), WriteBlobLSBLong(), WriteBlobLSBShort(), WriteBlobMSBLong(), WriteBlobMSBShort(), WriteBlobString(), WriteCacheRegion(), WriteInlineBlob(), WriteMPEGParameterFiles(), WritePSImage(), WriteSGIImage(), WriteTGAImage(), WriteXBMImage(), and XS().


Function Documentation

MagickExport void closedir DIR  ) 
 

Referenced by list_files_by_dir(), and ListFiles().

MagickExport int Exit int   ) 
 

MagickExport int IsWindows95  ) 
 

MagickExport int lt_dlclose void *   ) 
 

MagickExport const char* lt_dlerror void   ) 
 

Definition at line 3927 of file ltdl.c.

References LT_DLMUTEX_GETERROR, LT_DLMUTEX_SETERROR, LT_DLSTRERROR, and UNKNOWN.

03928 { 03929 const char *error; 03930 03931 LT_DLMUTEX_GETERROR (error); 03932 LT_DLMUTEX_SETERROR (0); 03933 03934 return error ? error : LT_DLSTRERROR (UNKNOWN); 03935 }

MagickExport int lt_dlexit void   ) 
 

Definition at line 2284 of file ltdl.c.

References lt_dlloader::dlloader_data, lt_dlloader::dlloader_exit, handles, lt_dlhandle_struct::info, initialized, loaders, lt_dlclose(), LT_DLIS_RESIDENT, LT_DLMEM_REASSIGN, LT_DLMUTEX_LOCK, LT_DLMUTEX_SETERROR, LT_DLMUTEX_UNLOCK, LT_DLSTRERROR, lt_user_data, lt_dlloader::next, lt_dlhandle_struct::next, lt_dlinfo::ref_count, and SHUTDOWN.

02285 { 02286 /* shut down libltdl */ 02287 lt_dlloader *loader; 02288 int errors = 0; 02289 02290 LT_DLMUTEX_LOCK (); 02291 loader = loaders; 02292 02293 if (!initialized) 02294 { 02295 LT_DLMUTEX_SETERROR (LT_DLSTRERROR (SHUTDOWN)); 02296 ++errors; 02297 goto done; 02298 } 02299 02300 /* shut down only at last call. */ 02301 if (--initialized == 0) 02302 { 02303 int level; 02304 02305 while (handles && LT_DLIS_RESIDENT (handles)) 02306 { 02307 handles = handles->next; 02308 } 02309 02310 /* close all modules */ 02311 for (level = 1; handles; ++level) 02312 { 02313 lt_dlhandle cur = handles; 02314 int saw_nonresident = 0; 02315 02316 while (cur) 02317 { 02318 lt_dlhandle tmp = cur; 02319 cur = cur->next; 02320 if (!LT_DLIS_RESIDENT (tmp)) 02321 saw_nonresident = 1; 02322 if (!LT_DLIS_RESIDENT (tmp) && tmp->info.ref_count <= level) 02323 { 02324 if (lt_dlclose (tmp)) 02325 { 02326 ++errors; 02327 } 02328 } 02329 } 02330 /* done if only resident modules are left */ 02331 if (!saw_nonresident) 02332 break; 02333 } 02334 02335 /* close all loaders */ 02336 while (loader) 02337 { 02338 lt_dlloader *next = loader->next; 02339 lt_user_data data = loader->dlloader_data; 02340 if (loader->dlloader_exit && loader->dlloader_exit (data)) 02341 { 02342 ++errors; 02343 } 02344 02345 LT_DLMEM_REASSIGN (loader, next); 02346 } 02347 loaders = 0; 02348 } 02349 02350 done: 02351 LT_DLMUTEX_UNLOCK (); 02352 return errors; 02353 }

Here is the call graph for this function:

MagickExport int lt_dlinit void   ) 
 

Definition at line 2198 of file ltdl.c.

References lt_user_dlloader::dlloader_data, DLOPEN_NOT_SUPPORTED, handles, INIT_LOADER, initialized, lt_dlloader_add(), lt_dlloader_next(), LT_DLMUTEX_LOCK, LT_DLMUTEX_SETERROR, LT_DLMUTEX_UNLOCK, LT_DLSTRERROR, presym, presym_init(), and user_search_path.

02199 { 02200 int errors = 0; 02201 02202 LT_DLMUTEX_LOCK (); 02203 02204 /* Initialize only at first call. */ 02205 if (++initialized == 1) 02206 { 02207 handles = 0; 02208 user_search_path = 0; /* empty search path */ 02209 02210 #if HAVE_LIBDL 02211 errors += lt_dlloader_add (lt_dlloader_next (0), &sys_dl, "dlopen"); 02212 #endif 02213 #if HAVE_SHL_LOAD 02214 errors += lt_dlloader_add (lt_dlloader_next (0), &sys_shl, "dlopen"); 02215 #endif 02216 #ifdef __WINDOWS__ 02217 errors += lt_dlloader_add (lt_dlloader_next (0), &sys_wll, "dlopen"); 02218 #endif 02219 #ifdef __BEOS__ 02220 errors += lt_dlloader_add (lt_dlloader_next (0), &sys_bedl, "dlopen"); 02221 #endif 02222 #if HAVE_DLD 02223 errors += lt_dlloader_add (lt_dlloader_next (0), &sys_dld, "dld"); 02224 #endif 02225 #if HAVE_DYLD 02226 errors += lt_dlloader_add (lt_dlloader_next (0), &sys_dyld, "dyld"); 02227 errors += sys_dyld_init(); 02228 #endif 02229 errors += lt_dlloader_add (lt_dlloader_next (0), &presym, "dlpreload"); 02230 02231 if (presym_init (presym.dlloader_data)) 02232 { 02233 LT_DLMUTEX_SETERROR (LT_DLSTRERROR (INIT_LOADER)); 02234 ++errors; 02235 } 02236 else if (errors != 0) 02237 { 02238 LT_DLMUTEX_SETERROR (LT_DLSTRERROR (DLOPEN_NOT_SUPPORTED)); 02239 ++errors; 02240 } 02241 } 02242 02243 LT_DLMUTEX_UNLOCK (); 02244 02245 return errors; 02246 }

Here is the call graph for this function:

MagickExport void * lt_dlopen const char *   ) 
 

MagickExport int lt_dlsetsearchpath const char *   ) 
 

MagickExport void * * lt_dlsym void *  ,
const char * 
 

MagickExport void * * * mmap char *  ,
size_t  ,
int  ,
int  ,
int  ,
MagickOffsetType 
 

Referenced by MapBlob().

MagickExport int msync void *  ,
size_t  ,
int 
 

Referenced by SyncBlob().

MagickExport int munmap void *  ,
size_t 
 

Referenced by UnmapBlob().

MagickExport double NTElapsedTime void   ) 
 

Referenced by ElapsedTime(), and InitializeRandomReservoir().

MagickExport void * * * NTErrorHandler const  ExceptionType,
const char *  ,
const char * 
 

MagickExport MagickBooleanType NTGetExecutionPath char *   ) 
 

Referenced by GetExecutionPath().

MagickExport char* NTGetLastError void   ) 
 

MagickExport MagickBooleanType NTGetModulePath const char *  ,
char * 
 

Referenced by GetConfigurePaths().

MagickExport int NTGhostscriptDLL char *  path,
int  path_length
 

MagickExport const GhostscriptVectors* NTGhostscriptDLLVectors void   ) 
 

Referenced by InvokePostscriptDelegate().

MagickExport int NTGhostscriptEXE char *  path,
int  path_length
 

Referenced by LoadDelegateList().

MagickExport int NTGhostscriptFonts char *  path,
int  path_length
 

Referenced by LoadTypeList().

MagickExport int NTGhostscriptLoadDLL void   ) 
 

MagickExport int NTGhostscriptUnLoadDLL void   ) 
 

Referenced by DestroyMagick(), and InvokePostscriptDelegate().

MagickExport MagickBooleanType NTReportException const char *  ,
const  MagickBooleanType
 

MagickExport unsigned char* NTResourceToBlob const char *   ) 
 

Referenced by GetConfigureBlob(), GetConfigureOptions(), and GetLocaleOptions().

MagickExport int NTSystemComman const char *   ) 
 

Referenced by SystemCommand().

MagickExport double NTUserTime void   ) 
 

Referenced by InitializeRandomReservoir(), and UserTime().

MagickExport void * * * NTWarningHandler const  ExceptionType,
const char *  ,
const char * 
 

MagickExport DIR* opendir char *   ) 
 

MagickExport struct dirent* readdir DIR  ) 
 

MagickExport void * * * seekdir DIR ,
long 
 

MagickExport long sysconf int   ) 
 

Referenced by InitializeMagickResources(), and PersistCache().

MagickExport long telldir DIR  ) 
 


Generated on Mon Oct 25 13:43:52 2004 for ImageMagick by doxygen 1.3.7
ImageMagick Copyright © 2004, ImageMagick Studio LLC