Rename kcrash.{h,cpp} to tdecrash.{h.cpp}

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/330/head
Michele Calgaro 6 months ago
parent 0b1121b707
commit 745951c5ee
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -9,7 +9,7 @@ v1.0:
<language name="GDB Backtrace" section="Other" <language name="GDB Backtrace" section="Other"
version="1.0-1" kateversion="2.4" version="1.0-1" kateversion="2.4"
extensions="*.kcrash;*.crash;*.bt" extensions="*.tdecrash;*.kcrash;*.crash;*.bt"
mimetype="" mimetype=""
author="Milian Wolff (mail@milianw.de)" license="LGPL"> author="Milian Wolff (mail@milianw.de)" license="LGPL">

@ -23,7 +23,7 @@
#include "kdedmodule.h" #include "kdedmodule.h"
#include <kresourcelist.h> #include <kresourcelist.h>
#include <kcrash.h> #include <tdecrash.h>
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>

@ -50,7 +50,7 @@
#include <tdelocale.h> #include <tdelocale.h>
#include <tdeaboutdata.h> #include <tdeaboutdata.h>
#include <tdecmdlineargs.h> #include <tdecmdlineargs.h>
#include <kcrash.h> #include <tdecrash.h>
#ifdef KBUILDSYCOCA_GUI // KBUILDSYCOCA_GUI is used on win32 to build #ifdef KBUILDSYCOCA_GUI // KBUILDSYCOCA_GUI is used on win32 to build
// GUI version of tdebuildsycoca, so-called "tdebuildsycocaw". // GUI version of tdebuildsycoca, so-called "tdebuildsycocaw".

@ -29,7 +29,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <tdecmdlineargs.h> #include <tdecmdlineargs.h>
#include <tdeapplication.h> #include <tdeapplication.h>
#include <kcrash.h> #include <tdecrash.h>
#include "tdescreensaver.h" #include "tdescreensaver.h"
#include "tdescreensaver_vroot.h" #include "tdescreensaver_vroot.h"

@ -21,7 +21,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <tdeapplication.h> #include <tdeapplication.h>
#include <kcrash.h> #include <tdecrash.h>
#include <kdebug.h> #include <kdebug.h>
#include <tdelocale.h> #include <tdelocale.h>
#include <tderesources/manager.h> #include <tderesources/manager.h>

@ -59,7 +59,7 @@ install( FILES
kglobalaccel.h tdestdaccel.h tdeshortcutlist.h kcatalogue.h kglobalaccel.h tdestdaccel.h tdeshortcutlist.h kcatalogue.h
kregexp.h kcompletion.h kstringhandler.h kstddirs.h kregexp.h kcompletion.h kstringhandler.h kstddirs.h
kstandarddirs.h tdeglobal.h tdeglobalsettings.h ksharedptr.h kstandarddirs.h tdeglobal.h tdeglobalsettings.h ksharedptr.h
kallocator.h kvmallocator.h kcrash.h krfcdate.h kinstance.h kallocator.h kvmallocator.h tdecrash.h krfcdate.h kinstance.h
kpalette.h kipc.h klibloader.h tdetempfile.h ksavefile.h kpalette.h kipc.h klibloader.h tdetempfile.h ksavefile.h
krandomsequence.h knotifyclient.h kiconeffect.h kaudioplayer.h krandomsequence.h knotifyclient.h kiconeffect.h kaudioplayer.h
kdcoppropertyproxy.h netwm.h tdeaccelmanager.h netwm_def.h kdcoppropertyproxy.h netwm.h tdeaccelmanager.h netwm_def.h
@ -114,7 +114,7 @@ set( ${target}_SRCS
kckey.cpp tdeshortcut.cpp kkeynative_x11.cpp kkeyserver_x11.cpp kckey.cpp tdeshortcut.cpp kkeynative_x11.cpp kkeyserver_x11.cpp
tdeaccelaction.cpp tdeshortcutmenu.cpp tdeaccelbase.cpp tdeaccel.cpp tdeaccelaction.cpp tdeshortcutmenu.cpp tdeaccelbase.cpp tdeaccel.cpp
kglobalaccel_x11.cpp kglobalaccel.cpp tdestdaccel.cpp tdeshortcutlist.cpp kglobalaccel_x11.cpp kglobalaccel.cpp tdestdaccel.cpp tdeshortcutlist.cpp
kcrash.cpp kurl.cpp kregexp.cpp tdeglobal.cpp tdeglobalsettings.cpp tdecrash.cpp kurl.cpp kregexp.cpp tdeglobal.cpp tdeglobalsettings.cpp
kallocator.cpp kvmallocator.cpp kmimesourcefactory.cpp kallocator.cpp kvmallocator.cpp kmimesourcefactory.cpp
kinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp tdetempfile.cpp kinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp tdetempfile.cpp
tdeuniqueapplication.cpp tdeaccelmanager.cpp ksavefile.cpp tdeuniqueapplication.cpp tdeaccelmanager.cpp ksavefile.cpp

@ -23,7 +23,7 @@ kcompletionbase.cpp
tdeconfig.cpp Waldo Bastian <bastian@kde.org> tdeconfig.cpp Waldo Bastian <bastian@kde.org>
tdeconfigbackend.cpp Waldo Bastian <bastian@kde.org> tdeconfigbackend.cpp Waldo Bastian <bastian@kde.org>
tdeconfigbase.cpp Waldo Bastian <bastian@kde.org> tdeconfigbase.cpp Waldo Bastian <bastian@kde.org>
kcrash.cpp Waldo Bastian <bastian@kde.org> tdecrash.cpp Waldo Bastian <bastian@kde.org>
kdcoppropertyproxy.cpp kdcoppropertyproxy.cpp
kdebug.cpp Stephan Kulow <coolo@kde.org> kdebug.cpp Stephan Kulow <coolo@kde.org>
kdesktopfile.cpp kdesktopfile.cpp

@ -46,7 +46,7 @@ include_HEADERS = tdeconfig.h tdeconfigskeleton.h \
kglobalaccel.h tdestdaccel.h tdeshortcutlist.h kcatalogue.h \ kglobalaccel.h tdestdaccel.h tdeshortcutlist.h kcatalogue.h \
kregexp.h kcompletion.h kstringhandler.h \ kregexp.h kcompletion.h kstringhandler.h \
kstddirs.h kstandarddirs.h tdeglobal.h tdeglobalsettings.h ksharedptr.h \ kstddirs.h kstandarddirs.h tdeglobal.h tdeglobalsettings.h ksharedptr.h \
kallocator.h kvmallocator.h kcrash.h krfcdate.h \ kallocator.h kvmallocator.h tdecrash.h krfcdate.h \
kinstance.h kpalette.h kipc.h klibloader.h tdetempfile.h ksavefile.h \ kinstance.h kpalette.h kipc.h klibloader.h tdetempfile.h ksavefile.h \
krandomsequence.h knotifyclient.h kiconeffect.h \ krandomsequence.h knotifyclient.h kiconeffect.h \
kaudioplayer.h kdcoppropertyproxy.h netwm.h tdeaccelmanager.h \ kaudioplayer.h kdcoppropertyproxy.h netwm.h tdeaccelmanager.h \
@ -98,7 +98,7 @@ libtdecore_la_SOURCES = libintl.cpp tdeapplication.cpp \
kckey.cpp tdeshortcut.cpp kkeynative_x11.cpp kkeyserver_x11.cpp \ kckey.cpp tdeshortcut.cpp kkeynative_x11.cpp kkeyserver_x11.cpp \
tdeaccelaction.cpp tdeshortcutmenu.cpp tdeaccelbase.cpp tdeaccel.cpp \ tdeaccelaction.cpp tdeshortcutmenu.cpp tdeaccelbase.cpp tdeaccel.cpp \
kglobalaccel_x11.cpp kglobalaccel.cpp tdestdaccel.cpp tdeshortcutlist.cpp \ kglobalaccel_x11.cpp kglobalaccel.cpp tdestdaccel.cpp tdeshortcutlist.cpp \
kcrash.cpp kurl.cpp kregexp.cpp tdeglobal.cpp tdeglobalsettings.cpp \ tdecrash.cpp kurl.cpp kregexp.cpp tdeglobal.cpp tdeglobalsettings.cpp \
kallocator.cpp kvmallocator.cpp kmimesourcefactory.cpp \ kallocator.cpp kvmallocator.cpp kmimesourcefactory.cpp \
kinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp tdetempfile.cpp \ kinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp tdetempfile.cpp \
tdeuniqueapplication.cpp tdeaccelmanager.cpp \ tdeuniqueapplication.cpp tdeaccelmanager.cpp \

@ -80,7 +80,7 @@
#include <tdecmdlineargs.h> #include <tdecmdlineargs.h>
#include <tdeaboutdata.h> #include <tdeaboutdata.h>
#include <tdeglobalsettings.h> #include <tdeglobalsettings.h>
#include <kcrash.h> #include <tdecrash.h>
#include <kdatastream.h> #include <kdatastream.h>
#include <klibloader.h> #include <klibloader.h>
#include <kmimesourcefactory.h> #include <kmimesourcefactory.h>

@ -1,5 +1,5 @@
/* /*
* This file is part of the KDE Libraries * This file is part of the TDE Libraries
* Copyright (C) 2000 Timo Hummel <timo.hummel@sap.com> * Copyright (C) 2000 Timo Hummel <timo.hummel@sap.com>
* Tom Braun <braunt@fh-konstanz.de> * Tom Braun <braunt@fh-konstanz.de>
* *
@ -33,7 +33,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <time.h> #include <time.h>
#include "kcrash.h" #include "tdecrash.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
@ -148,10 +148,10 @@ TDECrash::defaultCrashHandler (int sig)
if (appName) if (appName)
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "[kcrash] TDECrash: crashing... crashRecursionCounter = %d\n", crashRecursionCounter); fprintf(stderr, "[tdecrash] TDECrash: crashing... crashRecursionCounter = %d\n", crashRecursionCounter);
fprintf(stderr, "[kcrash] TDECrash: Application Name = %s path = %s pid = %d\n", appName ? appName : "<unknown>" , appPath ? appPath : "<unknown>", getpid()); fprintf(stderr, "[tdecrash] TDECrash: Application Name = %s path = %s pid = %d\n", appName ? appName : "<unknown>" , appPath ? appPath : "<unknown>", getpid());
#else #else
fprintf(stderr, "[kcrash] TDECrash: Application '%s' crashing...\n", appName ? appName : "<unknown>"); fprintf(stderr, "[tdecrash] TDECrash: Application '%s' crashing...\n", appName ? appName : "<unknown>");
#endif #endif
const char * argv[24]; // don't forget to update this const char * argv[24]; // don't forget to update this
@ -231,13 +231,13 @@ TDECrash::defaultCrashHandler (int sig)
} }
else { else {
fprintf(stderr, "[kcrash] Unknown appname\n"); fprintf(stderr, "[tdecrash] Unknown appname\n");
} }
} }
if (crashRecursionCounter < 4) if (crashRecursionCounter < 4)
{ {
fprintf(stderr, "[kcrash] Unable to start Dr. Konqi\n"); fprintf(stderr, "[tdecrash] Unable to start Dr. Konqi\n");
} }
#endif //Q_OS_UNIX #endif //Q_OS_UNIX
@ -277,7 +277,7 @@ void TDECrash::startDrKonqi( const char* argv[], int argc )
int len = strlen( argv[ i ] ) + 1; // include terminating \0 int len = strlen( argv[ i ] ) + 1; // include terminating \0
if( pos + len > BUFSIZE ) if( pos + len > BUFSIZE )
{ {
fprintf( stderr, "[kcrash] BUFSIZE in TDECrash not big enough!\n" ); fprintf( stderr, "[tdecrash] BUFSIZE in TDECrash not big enough!\n" );
startDirectly( argv, argc ); startDirectly( argv, argc );
return; return;
} }
@ -317,7 +317,7 @@ void TDECrash::startDrKonqi( const char* argv[], int argc )
// If we can't reach tdeinit we can still at least try to fork() // If we can't reach tdeinit we can still at least try to fork()
void TDECrash::startDirectly( const char* argv[], int ) void TDECrash::startDirectly( const char* argv[], int )
{ {
fprintf( stderr, "[kcrash] TDECrash cannot reach tdeinit, launching directly.\n" ); fprintf( stderr, "[tdecrash] TDECrash cannot reach tdeinit, launching directly.\n" );
pid_t pid = fork(); pid_t pid = fork();
if (pid <= 0) if (pid <= 0)
{ {
@ -448,12 +448,12 @@ static int openSocket()
{ {
if (!home_dir || !home_dir[0]) if (!home_dir || !home_dir[0])
{ {
fprintf(stderr, "[kcrash] Warning: $HOME not set!\n"); fprintf(stderr, "[tdecrash] Warning: $HOME not set!\n");
return -1; return -1;
} }
if (strlen(home_dir) > (MAX_SOCK_FILE-100)) if (strlen(home_dir) > (MAX_SOCK_FILE-100))
{ {
fprintf(stderr, "[kcrash] Warning: Home directory path too long!\n"); fprintf(stderr, "[tdecrash] Warning: Home directory path too long!\n");
return -1; return -1;
} }
kde_home++; kde_home++;
@ -470,7 +470,7 @@ static int openSocket()
strncat(sock_file, getenv("XAUTHLOCALHOSTNAME"), MAX_SOCK_FILE - strlen(sock_file) - 1); strncat(sock_file, getenv("XAUTHLOCALHOSTNAME"), MAX_SOCK_FILE - strlen(sock_file) - 1);
else if (gethostname(sock_file+strlen(sock_file), MAX_SOCK_FILE - strlen(sock_file) - 1) != 0) else if (gethostname(sock_file+strlen(sock_file), MAX_SOCK_FILE - strlen(sock_file) - 1) != 0)
{ {
perror("[kcrash] Warning: Could not determine hostname: "); perror("[tdecrash] Warning: Could not determine hostname: ");
return -1; return -1;
} }
sock_file[sizeof(sock_file)-1] = '\0'; sock_file[sizeof(sock_file)-1] = '\0';
@ -479,13 +479,13 @@ static int openSocket()
display = getDisplay(); display = getDisplay();
if (display == NULL) if (display == NULL)
{ {
fprintf(stderr, "[kcrash] Error: Could not determine display.\n"); fprintf(stderr, "[tdecrash] Error: Could not determine display.\n");
return -1; return -1;
} }
if (strlen(sock_file)+strlen(display)+strlen("/tdeinit_")+2 > MAX_SOCK_FILE) if (strlen(sock_file)+strlen(display)+strlen("/tdeinit_")+2 > MAX_SOCK_FILE)
{ {
fprintf(stderr, "[kcrash] Warning: Socket name will be too long.\n"); fprintf(stderr, "[tdecrash] Warning: Socket name will be too long.\n");
free(display); free(display);
return -1; return -1;
} }
@ -495,7 +495,7 @@ static int openSocket()
if (strlen(sock_file) >= sizeof(server.sun_path)) if (strlen(sock_file) >= sizeof(server.sun_path))
{ {
fprintf(stderr, "[kcrash] Warning: Path of socketfile exceeds UNIX_PATH_MAX.\n"); fprintf(stderr, "[tdecrash] Warning: Path of socketfile exceeds UNIX_PATH_MAX.\n");
return -1; return -1;
} }
@ -505,7 +505,7 @@ static int openSocket()
s = socket(PF_UNIX, SOCK_STREAM, 0); s = socket(PF_UNIX, SOCK_STREAM, 0);
if (s < 0) if (s < 0)
{ {
perror("[kcrash] Warning: socket creation failed: "); perror("[tdecrash] Warning: socket creation failed: ");
return -1; return -1;
} }
@ -514,7 +514,7 @@ static int openSocket()
socklen = sizeof(server); socklen = sizeof(server);
if(connect(s, (struct sockaddr *)&server, socklen) == -1) if(connect(s, (struct sockaddr *)&server, socklen) == -1)
{ {
perror("[kcrash] Warning: socket connection failed: "); perror("[tdecrash] Warning: socket connection failed: ");
close(s); close(s);
return -1; return -1;
} }

@ -1,5 +1,5 @@
/* /*
* This file is part of the KDE Libraries * This file is part of the TDE Libraries
* Copyright (C) 2000 Timo Hummel <timo.hummel@sap.com> * Copyright (C) 2000 Timo Hummel <timo.hummel@sap.com>
* Tom Braun <braunt@fh-konstanz.de> * Tom Braun <braunt@fh-konstanz.de>
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -19,8 +19,8 @@
* *
*/ */
#ifndef __KCRASH_H #ifndef __TDECRASH_H
#define __KCRASH_H #define __TDECRASH_H
#include <tqstring.h> #include <tqstring.h>
#include "tdelibs_export.h" #include "tdelibs_export.h"
@ -98,7 +98,7 @@ class TDECORE_EXPORT TDECrash
* @param path the application path. * @param path the application path.
*/ */
static void setApplicationPath (TQString path) { appPath = tqstrdup(path.local8Bit().data()); } static void setApplicationPath (TQString path) { appPath = tqstrdup(path.local8Bit().data()); }
/* KDE 4: Make it const TQString & */ /* Future: Make it const TQString & */
/** /**
* Sets the application name @p name which should be passed to * Sets the application name @p name which should be passed to
@ -106,7 +106,7 @@ class TDECORE_EXPORT TDECrash
* @param name the name of the application, as shown in Dr. Konqi * @param name the name of the application, as shown in Dr. Konqi
*/ */
static void setApplicationName (TQString name) { appName = tqstrdup(name.local8Bit().data()); } static void setApplicationName (TQString name) { appName = tqstrdup(name.local8Bit().data()); }
/* KDE 4: Make it const TQString & */ /* Future: Make it const TQString & */
protected: protected:
/** /**

@ -25,7 +25,7 @@
#include "tdeapplication.h" #include "tdeapplication.h"
#include "tdelauncher.h" #include "tdelauncher.h"
#include "tdecmdlineargs.h" #include "tdecmdlineargs.h"
#include "kcrash.h" #include "tdecrash.h"
#include "kdebug.h" #include "kdebug.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

@ -46,7 +46,7 @@
#include <tdeapplication.h> #include <tdeapplication.h>
#include <ksock.h> #include <ksock.h>
#include <kcrash.h> #include <tdecrash.h>
#include <tdesu/client.h> #include <tdesu/client.h>
#include <tdelocale.h> #include <tdelocale.h>
#include <ksocks.h> #include <ksocks.h>

@ -23,7 +23,7 @@ kpixmapprovider.cpp \
kpalette.cpp \ kpalette.cpp \
tdeprocess.cpp \ tdeprocess.cpp \
tdeprocio.cpp \ tdeprocio.cpp \
kcrash.cpp \ tdecrash.cpp \
kallocator.cpp \ kallocator.cpp \
knotifyclient.cpp \ knotifyclient.cpp \
kcompletionbase.cpp \ kcompletionbase.cpp \

Loading…
Cancel
Save