Source: kcrash.h


Annotated List
Files
Globals
Hierarchy
Index
/*
 * This file is part of the KDE Libraries
 * Copyright (C) 2000 Timo Hummel (timo.hummel@sap.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 */

/*
 * This file is used to catch signals which would normally
 * crash the application (like segmentation fault, floating
 * point exception and such).
 */

#ifndef __KCRASH_H
#define __KCRASH_H

#include <signal.h>
#include <stdio.h>
#include <stdlib.h>

void defaultCrashHandler (int signal);
void setCrashHandler (void (*crashHandler)(int));
void setEmergencySaveFunction (void (*saveFunction)(int));
void resetCrashRecursion (void);


#define KDE_CRASH_DEFAULT  ((__sighandler_t)0x1000)
#define KDE_CRASH_INTERNAL ((__sighandler_t)0x1001)
#define KDE_SAVE_NONE      ((__sighandler_t)0x1002)

struct kcrashargs {
 	char *argname;
 	char *argvalue;
};

#endif


Generated by: dfaure@faure on Sun Mar 26 14:24:15 2000, using kdoc 2.0a35.