60#if !defined(WIZARDSTOOLKIT_RETSIGTYPE)
61# define WIZARDSTOOLKIT_RETSIGTYPE void
64# define SIG_DFL ((SignalHandler *) 0)
67# define SIG_ERR ((SignalHandler *) -1)
120#if defined(WIZARDSTOOLKIT_HAVE_SIGACTION) && defined(WIZARDSTOOLKIT_HAVE_SIGEMPTYSET)
133 sigprocmask(SIG_BLOCK,&mask,NULL);
135 action.sa_handler=handler;
137#if defined(SA_INTERRUPT)
138 action.sa_flags|=SA_INTERRUPT;
140#if defined(SA_ONSTACK)
141 action.sa_flags|=SA_ONSTACK;
143 previous_action.sa_handler=
SIG_DFL;
147 sigprocmask(SIG_UNBLOCK,&mask,NULL);
148 return(previous_action.sa_handler);
160#if !defined(WIZARDSTOOLKIT_HAVE__EXIT)
183#if defined(WIZARDSTOOLKIT_HAVE_RAISE)
224 (void) setlocale(LC_ALL,
"");
225 (void) setlocale(LC_NUMERIC,
"C");
230 if (events != (
char *) NULL)
235#if defined(WIZARDSTOOLKIT_WINDOWS_SUPPORT)
236#if defined(_DEBUG) && !defined(__BORLANDC__)
242 debug=_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
243 debug|=_CRTDBG_CHECK_ALWAYS_DF |_CRTDBG_DELAY_FREE_MEM_DF |
244 _CRTDBG_LEAK_CHECK_DF;
247 debug=_CrtSetDbgFlag(debug);
248 _ASSERTE(_CrtCheckMemory());
257 if ((path != (
const char *) NULL) && (*path !=
'\0'))
282#if defined(SIGINT) && !defined(WIZARDSTOOLKIT_WINDOWS_SUPPORT)
WizardExport const char * SetClientPath(const char *path)
WizardExport const char * SetClientName(const char *name)
WizardBooleanType LogWizardEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
WizardExport WizardBooleanType LogComponentGenesis(void)
WizardExport LogEventType SetLogEventMask(const char *events)
WizardExport void LogComponentTerminus(void)
WizardExport WizardBooleanType IsEventLogging(void)
#define GetWizardModule()
WizardExport void * RelinquishWizardMemory(void *memory)
WizardExport WizardBooleanType MimeComponentGenesis(void)
WizardExport void MimeComponentTerminus(void)
static volatile sig_atomic_t signal_number
WizardExport WizardBooleanType RandomComponentGenesis(void)
WizardExport void RandomComponentTerminus(void)
WizardExport WizardBooleanType ResourceComponentGenesis(void)
WizardExport void AsynchronousResourceComponentTerminus(void)
WizardExport void ResourceComponentTerminus(void)
static void InitializeWizardMutex(void)
static void UnlockWizardMutex(void)
static void LockWizardMutex(void)
WizardExport void SemaphoreComponentTerminus(void)
WizardExport WizardBooleanType SemaphoreComponentGenesis(void)
WizardExport char * GetEnvironmentValue(const char *name)
WizardExport size_t CopyWizardString(char *destination, const char *source, const size_t length)
WizardExport WizardBooleanType GetExecutionPath(char *, const size_t)
WizardExport void GetPathComponent(const char *path, PathType type, char *component)
static SignalHandler * RegisterWizardSignalHandler(int signal_number)
static SignalHandler * signal_handlers[SIGMAX]
static void WizardExitHandler(void)
WizardExport void WizardsToolkitGenesis(const char *path)
WIZARDSTOOLKIT_RETSIGTYPE SignalHandler(int)
WizardExport void WizardsToolkitTerminus(void)
static void WizardSignalHandler(int signal_number)
static SignalHandler * SetWizardSignalHandler(int signal_number, SignalHandler *handler)
static volatile WizardBooleanType instantiate_wizardstoolkit
static volatile WizardBooleanType wizard_signal_in_progress
#define WIZARDSTOOLKIT_RETSIGTYPE