Timothy Pearson 13 years ago
commit 06227c5420

@ -62,9 +62,9 @@ add_custom_target(install-apidox
OPTION( WITH_ALL_OPTIONS "Enable all optional support" OFF ) OPTION( WITH_ALL_OPTIONS "Enable all optional support" OFF )
OPTION( KDE_MALLOC "Use own malloc implementation" OFF ) OPTION( TDE_MALLOC "Use own malloc implementation" OFF )
OPTION( KDE_MALLOC_DEBUG "Enable debugging in fast malloc" OFF ) OPTION( TDE_MALLOC_DEBUG "Enable debugging in fast malloc" OFF )
OPTION( KDE_MALLOC_FULL "Make alloc as fast as possible" OFF ) OPTION( TDE_MALLOC_FULL "Make alloc as fast as possible" OFF )
OPTION( WITH_ARTS "Build with aRts" ON ) OPTION( WITH_ARTS "Build with aRts" ON )
OPTION( WITH_ALSA "Enable ALSA support" ON ) OPTION( WITH_ALSA "Enable ALSA support" ON )
@ -97,12 +97,12 @@ set( ENV{PKG_CONFIG_PATH} "${PKG_CONFIG_PATH}:${PKGCONFIG_INSTALL_DIR}:${LIB_INS
### FIXME fast malloc is also available on x86_64 architecture? ### FIXME fast malloc is also available on x86_64 architecture?
if( ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i?86" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" ) if( ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i?86" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" )
set( KDE_MALLOC_X86 1 ) set( TDE_MALLOC_X86 1 )
message( STATUS "Found x86 architecture" ) message( STATUS "Found x86 architecture" )
else( ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i?86" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" ) else( ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i?86" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" )
if( KDE_MALLOC ) if( TDE_MALLOC )
message( FATAL_ERROR "\nKDE fast malloc is available only on x86 architecture" ) message( FATAL_ERROR "\nKDE fast malloc is available only on x86 architecture" )
endif( KDE_MALLOC ) endif( TDE_MALLOC )
endif( ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i?86" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" ) endif( ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i?86" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" )

@ -174,8 +174,8 @@ If you want to have a core dump after your application crashes you need to
do two things: do two things:
1) Disable the TDE crash handler. This can be done either by using the 1) Disable the TDE crash handler. This can be done either by using the
--nocrashhandler command line option or by setting the KDE_DEBUG environment --nocrashhandler command line option or by setting the TDE_DEBUG environment
variable to some value e.g. KDE_DEBUG=true. variable to some value e.g. TDE_DEBUG=true.
2) Enable core dump generation by changing the so called 'ulimits' with the 2) Enable core dump generation by changing the so called 'ulimits' with the
following command: following command:

@ -720,19 +720,19 @@
#define KDE_DISTRIBUTION_TEXT "@KDE_DISTRIBUTION_TEXT@" #define KDE_DISTRIBUTION_TEXT "@KDE_DISTRIBUTION_TEXT@"
/* Use own malloc implementation */ /* Use own malloc implementation */
#cmakedefine KDE_MALLOC 1 #cmakedefine TDE_MALLOC 1
/* Enable debugging in fast malloc */ /* Enable debugging in fast malloc */
#cmakedefine KDE_MALLOC_DEBUG 1 #cmakedefine TDE_MALLOC_DEBUG 1
/* Make alloc as fast as possible */ /* Make alloc as fast as possible */
#cmakedefine KDE_MALLOC_FULL 1 #cmakedefine TDE_MALLOC_FULL 1
/* The libc used is glibc */ /* The libc used is glibc */
#undef KDE_MALLOC_GLIBC #undef TDE_MALLOC_GLIBC
/* The platform is x86 */ /* The platform is x86 */
#cmakedefine KDE_MALLOC_X86 1 #cmakedefine TDE_MALLOC_X86 1
/* Define if we shall use KSSL */ /* Define if we shall use KSSL */
#cmakedefine KSSL_HAVE_SSL 1 #cmakedefine KSSL_HAVE_SSL 1
@ -1093,8 +1093,8 @@ int snprintf(char *str, size_t n, char const *fmt, ...);
#endif #endif
/* KDE bindir */ /* TDE bindir */
#define __KDE_BINDIR "@BIN_INSTALL_DIR@" #define __TDE_BINDIR "@BIN_INSTALL_DIR@"
/* execprefix or NONE if not set, for libloading */ /* execprefix or NONE if not set, for libloading */
#undef __KDE_EXECPREFIX #undef __KDE_EXECPREFIX

@ -144,7 +144,7 @@ void
TRANS(FreeConnInfo) (XtransConnInfo ciptr) TRANS(FreeConnInfo) (XtransConnInfo ciptr)
{ {
PRMSG (3,"FreeConnInfo(%x)\n", ciptr, 0, 0); PRMSG (3,"[Xtrans] FreeConnInfo(%x)\n", ciptr, 0, 0);
if (ciptr->addr) if (ciptr->addr)
xfree (ciptr->addr); xfree (ciptr->addr);
@ -168,7 +168,7 @@ TRANS(SelectTransport) (char *protocol)
char protobuf[PROTOBUFSIZE]; char protobuf[PROTOBUFSIZE];
int i; int i;
PRMSG (3,"SelectTransport(%s)\n", protocol, 0, 0); PRMSG (3,"[Xtrans] SelectTransport(%s)\n", protocol, 0, 0);
/* /*
* Force Protocol to be lowercase as a way of doing * Force Protocol to be lowercase as a way of doing
@ -217,7 +217,7 @@ TRANS(ParseAddress) (char *address, char **protocol, char **host, char **port)
char *_protocol, *_host, *_port; char *_protocol, *_host, *_port;
char hostnamebuf[256]; char hostnamebuf[256];
PRMSG (3,"ParseAddress(%s)\n", address, 0, 0); PRMSG (3,"[Xtrans] ParseAddress(%s)\n", address, 0, 0);
/* Copy the string so it can be changed */ /* Copy the string so it can be changed */
@ -383,12 +383,12 @@ TRANS(Open) (int type, char *address)
XtransConnInfo ciptr = NULL; XtransConnInfo ciptr = NULL;
Xtransport *thistrans; Xtransport *thistrans;
PRMSG (2,"Open(%d,%s)\n", type, address, 0); PRMSG (2,"[Xtrans] Open(%d,%s)\n", type, address, 0);
#if defined(_WIN32) && (defined(TCPCONN) || defined(DNETCONN)) #if defined(_WIN32) && (defined(TCPCONN) || defined(DNETCONN))
if (TRANS(WSAStartup)()) if (TRANS(WSAStartup)())
{ {
PRMSG (1,"Open: WSAStartup failed\n", 0, 0, 0); PRMSG (1,"[Xtrans] Open: WSAStartup failed\n", 0, 0, 0);
return NULL; return NULL;
} }
#endif #endif
@ -397,7 +397,7 @@ TRANS(Open) (int type, char *address)
if (TRANS(ParseAddress) (address, &protocol, &host, &port) == 0) if (TRANS(ParseAddress) (address, &protocol, &host, &port) == 0)
{ {
PRMSG (1,"Open: Unable to Parse address %s\n", address, 0, 0); PRMSG (1,"[Xtrans] Open: Unable to Parse address %s\n", address, 0, 0);
return NULL; return NULL;
} }
@ -405,7 +405,7 @@ TRANS(Open) (int type, char *address)
if ((thistrans = TRANS(SelectTransport) (protocol)) == NULL) if ((thistrans = TRANS(SelectTransport) (protocol)) == NULL)
{ {
PRMSG (1,"Open: Unable to find transport for %s\n", PRMSG (1,"[Xtrans] Open: Unable to find transport for %s\n",
protocol, 0, 0); protocol, 0, 0);
xfree (protocol); xfree (protocol);
@ -439,14 +439,14 @@ TRANS(Open) (int type, char *address)
#endif /* TRANS_SERVER */ #endif /* TRANS_SERVER */
break; break;
default: default:
PRMSG (1,"Open: Unknown Open type %d\n", type, 0, 0); PRMSG (1,"[Xtrans] Open: Unknown Open type %d\n", type, 0, 0);
} }
if (ciptr == NULL) if (ciptr == NULL)
{ {
if (!(thistrans->flags & TRANS_DISABLED)) if (!(thistrans->flags & TRANS_DISABLED))
{ {
PRMSG (1,"Open: transport open failed for %s/%s:%s\n", PRMSG (1,"[Xtrans] Open: transport open failed for %s/%s:%s\n",
protocol, host, port); protocol, host, port);
} }
xfree (protocol); xfree (protocol);
@ -482,7 +482,7 @@ TRANS(Reopen) (int type, int trans_id, int fd, char *port)
char *save_port; char *save_port;
int i; int i;
PRMSG (2,"Reopen(%d,%d,%s)\n", trans_id, fd, port); PRMSG (2,"[Xtrans] Reopen(%d,%d,%s)\n", trans_id, fd, port);
/* Determine the transport type */ /* Determine the transport type */
@ -495,7 +495,7 @@ TRANS(Reopen) (int type, int trans_id, int fd, char *port)
if (thistrans == NULL) if (thistrans == NULL)
{ {
PRMSG (1,"Reopen: Unable to find transport id %d\n", PRMSG (1,"[Xtrans] Reopen: Unable to find transport id %d\n",
trans_id, 0, 0); trans_id, 0, 0);
return NULL; return NULL;
@ -503,7 +503,7 @@ TRANS(Reopen) (int type, int trans_id, int fd, char *port)
if ((save_port = (char *) xalloc (strlen (port) + 1)) == NULL) if ((save_port = (char *) xalloc (strlen (port) + 1)) == NULL)
{ {
PRMSG (1,"Reopen: Unable to malloc port string\n", 0, 0, 0); PRMSG (1,"[Xtrans] Reopen: Unable to malloc port string\n", 0, 0, 0);
return NULL; return NULL;
} }
@ -521,12 +521,12 @@ TRANS(Reopen) (int type, int trans_id, int fd, char *port)
ciptr = thistrans->ReopenCLTSServer(thistrans, fd, port); ciptr = thistrans->ReopenCLTSServer(thistrans, fd, port);
break; break;
default: default:
PRMSG (1,"Reopen: Bad Open type %d\n", type, 0, 0); PRMSG (1,"[Xtrans] Reopen: Bad Open type %d\n", type, 0, 0);
} }
if (ciptr == NULL) if (ciptr == NULL)
{ {
PRMSG (1,"Reopen: transport open failed\n", 0, 0, 0); PRMSG (1,"[Xtrans] Reopen: transport open failed\n", 0, 0, 0);
return NULL; return NULL;
} }
@ -552,7 +552,7 @@ XtransConnInfo
TRANS(OpenCOTSClient) (char *address) TRANS(OpenCOTSClient) (char *address)
{ {
PRMSG (2,"OpenCOTSClient(%s)\n", address, 0, 0); PRMSG (2,"[Xtrans] OpenCOTSClient(%s)\n", address, 0, 0);
return TRANS(Open) (XTRANS_OPEN_COTS_CLIENT, address); return TRANS(Open) (XTRANS_OPEN_COTS_CLIENT, address);
} }
@ -565,7 +565,7 @@ XtransConnInfo
TRANS(OpenCOTSServer) (char *address) TRANS(OpenCOTSServer) (char *address)
{ {
PRMSG (2,"OpenCOTSServer(%s)\n", address, 0, 0); PRMSG (2,"[Xtrans] OpenCOTSServer(%s)\n", address, 0, 0);
return TRANS(Open) (XTRANS_OPEN_COTS_SERVER, address); return TRANS(Open) (XTRANS_OPEN_COTS_SERVER, address);
} }
@ -578,7 +578,7 @@ XtransConnInfo
TRANS(OpenCLTSClient) (char *address) TRANS(OpenCLTSClient) (char *address)
{ {
PRMSG (2,"OpenCLTSClient(%s)\n", address, 0, 0); PRMSG (2,"[Xtrans] OpenCLTSClient(%s)\n", address, 0, 0);
return TRANS(Open) (XTRANS_OPEN_CLTS_CLIENT, address); return TRANS(Open) (XTRANS_OPEN_CLTS_CLIENT, address);
} }
@ -591,7 +591,7 @@ XtransConnInfo
TRANS(OpenCLTSServer) (char *address) TRANS(OpenCLTSServer) (char *address)
{ {
PRMSG (2,"OpenCLTSServer(%s)\n", address, 0, 0); PRMSG (2,"[Xtrans] OpenCLTSServer(%s)\n", address, 0, 0);
return TRANS(Open) (XTRANS_OPEN_CLTS_SERVER, address); return TRANS(Open) (XTRANS_OPEN_CLTS_SERVER, address);
} }
@ -604,7 +604,7 @@ XtransConnInfo
TRANS(ReopenCOTSServer) (int trans_id, int fd, char *port) TRANS(ReopenCOTSServer) (int trans_id, int fd, char *port)
{ {
PRMSG (2,"ReopenCOTSServer(%d, %d, %s)\n", trans_id, fd, port); PRMSG (2,"[Xtrans] ReopenCOTSServer(%d, %d, %s)\n", trans_id, fd, port);
return TRANS(Reopen) (XTRANS_OPEN_COTS_SERVER, trans_id, fd, port); return TRANS(Reopen) (XTRANS_OPEN_COTS_SERVER, trans_id, fd, port);
} }
@ -612,7 +612,7 @@ XtransConnInfo
TRANS(ReopenCLTSServer) (int trans_id, int fd, char *port) TRANS(ReopenCLTSServer) (int trans_id, int fd, char *port)
{ {
PRMSG (2,"ReopenCLTSServer(%d, %d, %s)\n", trans_id, fd, port); PRMSG (2,"[Xtrans] ReopenCLTSServer(%d, %d, %s)\n", trans_id, fd, port);
return TRANS(Reopen) (XTRANS_OPEN_CLTS_SERVER, trans_id, fd, port); return TRANS(Reopen) (XTRANS_OPEN_CLTS_SERVER, trans_id, fd, port);
} }
@ -652,7 +652,7 @@ TRANS(SetOption) (XtransConnInfo ciptr, int option, int arg)
int fd = ciptr->fd; int fd = ciptr->fd;
int ret = 0; int ret = 0;
PRMSG (2,"SetOption(%d,%d,%d)\n", fd, option, arg); PRMSG (2,"[Xtrans] SetOption(%d,%d,%d)\n", fd, option, arg);
/* /*
* For now, all transport type use the same stuff for setting options. * For now, all transport type use the same stuff for setting options.
@ -750,7 +750,7 @@ TRANS(NoListen) (char * protocol)
if ((trans = TRANS(SelectTransport)(protocol)) == NULL) if ((trans = TRANS(SelectTransport)(protocol)) == NULL)
{ {
PRMSG (1,"TRANS(TransNoListen): unable to find transport: %s\n", PRMSG (1,"[Xtrans] TRANS(TransNoListen): unable to find transport: %s\n",
protocol, 0, 0); protocol, 0, 0);
return -1; return -1;
@ -777,7 +777,7 @@ TRANS(Accept) (XtransConnInfo ciptr, int *status)
{ {
XtransConnInfo newciptr; XtransConnInfo newciptr;
PRMSG (2,"Accept(%d)\n", ciptr->fd, 0, 0); PRMSG (2,"[Xtrans] Accept(%d)\n", ciptr->fd, 0, 0);
newciptr = ciptr->transptr->Accept (ciptr, status); newciptr = ciptr->transptr->Accept (ciptr, status);
@ -801,18 +801,18 @@ TRANS(Connect) (XtransConnInfo ciptr, char *address)
char *port; char *port;
int ret; int ret;
PRMSG (2,"Connect(%d,%s)\n", ciptr->fd, address, 0); PRMSG (2,"[Xtrans] Connect(%d,%s)\n", ciptr->fd, address, 0);
if (TRANS(ParseAddress) (address, &protocol, &host, &port) == 0) if (TRANS(ParseAddress) (address, &protocol, &host, &port) == 0)
{ {
PRMSG (1,"Connect: Unable to Parse address %s\n", PRMSG (1,"[Xtrans] Connect: Unable to Parse address %s\n",
address, 0, 0); address, 0, 0);
return -1; return -1;
} }
if (!port || !*port) if (!port || !*port)
{ {
PRMSG (1,"Connect: Missing port specification in %s\n", PRMSG (1,"[Xtrans] Connect: Missing port specification in %s\n",
address, 0, 0); address, 0, 0);
if (protocol) xfree (protocol); if (protocol) xfree (protocol);
if (host) xfree (host); if (host) xfree (host);
@ -879,7 +879,7 @@ TRANS(Close) (XtransConnInfo ciptr)
{ {
int ret; int ret;
PRMSG (2,"Close(%d)\n", ciptr->fd, 0, 0); PRMSG (2,"[Xtrans] Close(%d)\n", ciptr->fd, 0, 0);
ret = ciptr->transptr->Close (ciptr); ret = ciptr->transptr->Close (ciptr);
@ -894,7 +894,7 @@ TRANS(CloseForCloning) (XtransConnInfo ciptr)
{ {
int ret; int ret;
PRMSG (2,"CloseForCloning(%d)\n", ciptr->fd, 0, 0); PRMSG (2,"[Xtrans] CloseForCloning(%d)\n", ciptr->fd, 0, 0);
ret = ciptr->transptr->CloseForCloning (ciptr); ret = ciptr->transptr->CloseForCloning (ciptr);
@ -916,14 +916,14 @@ TRANS(GetMyAddr) (XtransConnInfo ciptr, int *familyp, int *addrlenp,
Xtransaddr **addrp) Xtransaddr **addrp)
{ {
PRMSG (2,"GetMyAddr(%d)\n", ciptr->fd, 0, 0); PRMSG (2,"[Xtrans] GetMyAddr(%d)\n", ciptr->fd, 0, 0);
*familyp = ciptr->family; *familyp = ciptr->family;
*addrlenp = ciptr->addrlen; *addrlenp = ciptr->addrlen;
if ((*addrp = (Xtransaddr *) xalloc (ciptr->addrlen)) == NULL) if ((*addrp = (Xtransaddr *) xalloc (ciptr->addrlen)) == NULL)
{ {
PRMSG (1,"GetMyAddr: malloc failed\n", 0, 0, 0); PRMSG (1,"[Xtrans] GetMyAddr: malloc failed\n", 0, 0, 0);
return -1; return -1;
} }
memcpy(*addrp, ciptr->addr, ciptr->addrlen); memcpy(*addrp, ciptr->addr, ciptr->addrlen);
@ -936,14 +936,14 @@ TRANS(GetPeerAddr) (XtransConnInfo ciptr, int *familyp, int *addrlenp,
Xtransaddr **addrp) Xtransaddr **addrp)
{ {
PRMSG (2,"GetPeerAddr(%d)\n", ciptr->fd, 0, 0); PRMSG (2,"[Xtrans] GetPeerAddr(%d)\n", ciptr->fd, 0, 0);
*familyp = ciptr->family; *familyp = ciptr->family;
*addrlenp = ciptr->peeraddrlen; *addrlenp = ciptr->peeraddrlen;
if ((*addrp = (Xtransaddr *) xalloc (ciptr->peeraddrlen)) == NULL) if ((*addrp = (Xtransaddr *) xalloc (ciptr->peeraddrlen)) == NULL)
{ {
PRMSG (1,"GetPeerAddr: malloc failed\n", 0, 0, 0); PRMSG (1,"[Xtrans] GetPeerAddr: malloc failed\n", 0, 0, 0);
return -1; return -1;
} }
memcpy(*addrp, ciptr->peeraddr, ciptr->peeraddrlen); memcpy(*addrp, ciptr->peeraddr, ciptr->peeraddrlen);
@ -1006,7 +1006,7 @@ TRANS(MakeAllCOTSServerListeners) (char *port, int *partial, int *count_ret,
XtransConnInfo ciptr, temp_ciptrs[NUMTRANS]; XtransConnInfo ciptr, temp_ciptrs[NUMTRANS];
int status, i, j; int status, i, j;
PRMSG (2,"MakeAllCOTSServerListeners(%s,%x)\n", PRMSG (2,"[Xtrans] MakeAllCOTSServerListeners(%s,%x)\n",
port ? port : "NULL", ciptrs_ret, 0); port ? port : "NULL", ciptrs_ret, 0);
*count_ret = 0; *count_ret = 0;
@ -1020,7 +1020,7 @@ TRANS(MakeAllCOTSServerListeners) (char *port, int *partial, int *count_ret,
snprintf(buffer, sizeof(buffer), "%s/:%s", trans->TransName, port ? port : ""); snprintf(buffer, sizeof(buffer), "%s/:%s", trans->TransName, port ? port : "");
PRMSG (5,"MakeAllCOTSServerListeners: opening %s\n", PRMSG (5,"[Xtrans] MakeAllCOTSServerListeners: opening %s\n",
buffer, 0, 0); buffer, 0, 0);
if ((ciptr = TRANS(OpenCOTSServer(buffer))) == NULL) if ((ciptr = TRANS(OpenCOTSServer(buffer))) == NULL)
@ -1029,7 +1029,7 @@ TRANS(MakeAllCOTSServerListeners) (char *port, int *partial, int *count_ret,
continue; continue;
PRMSG (1, PRMSG (1,
"MakeAllCOTSServerListeners: failed to open listener for %s\n", "[Xtrans] MakeAllCOTSServerListeners: failed to open listener for %s\n",
trans->TransName, 0, 0); trans->TransName, 0, 0);
continue; continue;
} }
@ -1045,7 +1045,7 @@ TRANS(MakeAllCOTSServerListeners) (char *port, int *partial, int *count_ret,
*/ */
PRMSG (1, PRMSG (1,
"MakeAllCOTSServerListeners: server already running\n", "[Xtrans] MakeAllCOTSServerListeners: server already running\n",
0, 0, 0); 0, 0, 0);
for (j = 0; j < *count_ret; j++) for (j = 0; j < *count_ret; j++)
@ -1059,7 +1059,7 @@ TRANS(MakeAllCOTSServerListeners) (char *port, int *partial, int *count_ret,
else else
{ {
PRMSG (1, PRMSG (1,
"MakeAllCOTSServerListeners: failed to create listener for %s\n", "[Xtrans] MakeAllCOTSServerListeners: failed to create listener for %s\n",
trans->TransName, 0, 0); trans->TransName, 0, 0);
continue; continue;
@ -1067,7 +1067,7 @@ TRANS(MakeAllCOTSServerListeners) (char *port, int *partial, int *count_ret,
} }
PRMSG (5, PRMSG (5,
"MakeAllCOTSServerListeners: opened listener for %s, %d\n", "[Xtrans] MakeAllCOTSServerListeners: opened listener for %s, %d\n",
trans->TransName, ciptr->fd, 0); trans->TransName, ciptr->fd, 0);
temp_ciptrs[*count_ret] = ciptr; temp_ciptrs[*count_ret] = ciptr;
@ -1077,7 +1077,7 @@ TRANS(MakeAllCOTSServerListeners) (char *port, int *partial, int *count_ret,
*partial = (*count_ret < complete_network_count()); *partial = (*count_ret < complete_network_count());
PRMSG (5, PRMSG (5,
"MakeAllCLTSServerListeners: partial=%d, actual=%d, complete=%d \n", "[Xtrans] MakeAllCLTSServerListeners: partial=%d, actual=%d, complete=%d \n",
*partial, *count_ret, complete_network_count()); *partial, *count_ret, complete_network_count());
if (*count_ret > 0) if (*count_ret > 0)
@ -1108,7 +1108,7 @@ TRANS(MakeAllCLTSServerListeners) (char *port, int *partial, int *count_ret,
XtransConnInfo ciptr, temp_ciptrs[NUMTRANS]; XtransConnInfo ciptr, temp_ciptrs[NUMTRANS];
int status, i, j; int status, i, j;
PRMSG (2,"MakeAllCLTSServerListeners(%s,%x)\n", PRMSG (2,"[Xtrans] MakeAllCLTSServerListeners(%s,%x)\n",
port ? port : "NULL", ciptrs_ret, 0); port ? port : "NULL", ciptrs_ret, 0);
*count_ret = 0; *count_ret = 0;
@ -1122,13 +1122,13 @@ TRANS(MakeAllCLTSServerListeners) (char *port, int *partial, int *count_ret,
snprintf(buffer, sizeof(buffer), "%s/:%s", trans->TransName, port ? port : ""); snprintf(buffer, sizeof(buffer), "%s/:%s", trans->TransName, port ? port : "");
PRMSG (5,"MakeAllCLTSServerListeners: opening %s\n", PRMSG (5,"[Xtrans] MakeAllCLTSServerListeners: opening %s\n",
buffer, 0, 0); buffer, 0, 0);
if ((ciptr = TRANS(OpenCLTSServer (buffer))) == NULL) if ((ciptr = TRANS(OpenCLTSServer (buffer))) == NULL)
{ {
PRMSG (1, PRMSG (1,
"MakeAllCLTSServerListeners: failed to open listener for %s\n", "[Xtrans] MakeAllCLTSServerListeners: failed to open listener for %s\n",
trans->TransName, 0, 0); trans->TransName, 0, 0);
continue; continue;
} }
@ -1144,7 +1144,7 @@ TRANS(MakeAllCLTSServerListeners) (char *port, int *partial, int *count_ret,
*/ */
PRMSG (1, PRMSG (1,
"MakeAllCLTSServerListeners: server already running\n", "[Xtrans] MakeAllCLTSServerListeners: server already running\n",
0, 0, 0); 0, 0, 0);
for (j = 0; j < *count_ret; j++) for (j = 0; j < *count_ret; j++)
@ -1158,7 +1158,7 @@ TRANS(MakeAllCLTSServerListeners) (char *port, int *partial, int *count_ret,
else else
{ {
PRMSG (1, PRMSG (1,
"MakeAllCLTSServerListeners: failed to create listener for %s\n", "[Xtrans] MakeAllCLTSServerListeners: failed to create listener for %s\n",
trans->TransName, 0, 0); trans->TransName, 0, 0);
continue; continue;
@ -1166,7 +1166,7 @@ TRANS(MakeAllCLTSServerListeners) (char *port, int *partial, int *count_ret,
} }
PRMSG (5, PRMSG (5,
"MakeAllCLTSServerListeners: opened listener for %s, %d\n", "[Xtrans] MakeAllCLTSServerListeners: opened listener for %s, %d\n",
trans->TransName, ciptr->fd, 0); trans->TransName, ciptr->fd, 0);
temp_ciptrs[*count_ret] = ciptr; temp_ciptrs[*count_ret] = ciptr;
(*count_ret)++; (*count_ret)++;
@ -1175,7 +1175,7 @@ TRANS(MakeAllCLTSServerListeners) (char *port, int *partial, int *count_ret,
*partial = (*count_ret < complete_network_count()); *partial = (*count_ret < complete_network_count());
PRMSG (5, PRMSG (5,
"MakeAllCLTSServerListeners: partial=%d, actual=%d, complete=%d \n", "[Xtrans] MakeAllCLTSServerListeners: partial=%d, actual=%d, complete=%d \n",
*partial, *count_ret, complete_network_count()); *partial, *count_ret, complete_network_count());
if (*count_ret > 0) if (*count_ret > 0)

@ -279,7 +279,7 @@ TRANS(SocketSelectFamily) (char *family)
{ {
int i; int i;
PRMSG (3,(const char*)"SocketSelectFamily(%s)\n", family, 0, 0); PRMSG (3,(const char*)"[Xtranssock] SocketSelectFamily(%s)\n", family, 0, 0);
for (i = 0; i < (int) NUMSOCKETFAMILIES;i++) for (i = 0; i < (int) NUMSOCKETFAMILIES;i++)
{ {
@ -307,11 +307,11 @@ TRANS(SocketINETGetAddr) (XtransConnInfo ciptr)
int namelen = sizeof sockname; int namelen = sizeof sockname;
#endif #endif
PRMSG (3,"SocketINETGetAddr(%x)\n", ciptr, 0, 0); PRMSG (3,"[Xtranssock] SocketINETGetAddr(%x)\n", ciptr, 0, 0);
if (getsockname (ciptr->fd,(struct sockaddr *) &sockname, &namelen) < 0) if (getsockname (ciptr->fd,(struct sockaddr *) &sockname, &namelen) < 0)
{ {
PRMSG (1,"SocketINETGetAddr: getsockname() failed: %d\n", PRMSG (1,"[Xtranssock] SocketINETGetAddr: getsockname() failed: %d\n",
EGET(),0, 0); EGET(),0, 0);
return -1; return -1;
} }
@ -323,7 +323,7 @@ TRANS(SocketINETGetAddr) (XtransConnInfo ciptr)
if ((ciptr->addr = (char *) xalloc (namelen)) == NULL) if ((ciptr->addr = (char *) xalloc (namelen)) == NULL)
{ {
PRMSG (1, PRMSG (1,
"SocketINETGetAddr: Can't allocate space for the addr\n", "[Xtranssock] SocketINETGetAddr: Can't allocate space for the addr\n",
0, 0, 0); 0, 0, 0);
return -1; return -1;
} }
@ -352,11 +352,11 @@ TRANS(SocketINETGetPeerAddr) (XtransConnInfo ciptr)
int namelen = sizeof sockname; int namelen = sizeof sockname;
#endif #endif
PRMSG (3,"SocketINETGetPeerAddr(%x)\n", ciptr, 0, 0); PRMSG (3,"[Xtranssock] SocketINETGetPeerAddr(%x)\n", ciptr, 0, 0);
if (getpeername (ciptr->fd, (struct sockaddr *) &sockname, &namelen) < 0) if (getpeername (ciptr->fd, (struct sockaddr *) &sockname, &namelen) < 0)
{ {
PRMSG (1,"SocketINETGetPeerAddr: getpeername() failed: %d\n", PRMSG (1,"[Xtranssock] SocketINETGetPeerAddr: getpeername() failed: %d\n",
EGET(), 0, 0); EGET(), 0, 0);
return -1; return -1;
} }
@ -368,7 +368,7 @@ TRANS(SocketINETGetPeerAddr) (XtransConnInfo ciptr)
if ((ciptr->peeraddr = (char *) xalloc (namelen)) == NULL) if ((ciptr->peeraddr = (char *) xalloc (namelen)) == NULL)
{ {
PRMSG (1, PRMSG (1,
"SocketINETGetPeerAddr: Can't allocate space for the addr\n", "[Xtranssock] SocketINETGetPeerAddr: Can't allocate space for the addr\n",
0, 0, 0); 0, 0, 0);
return -1; return -1;
} }
@ -386,19 +386,19 @@ TRANS(SocketOpen) (int i, int type)
{ {
XtransConnInfo ciptr; XtransConnInfo ciptr;
PRMSG (3,"SocketOpen(%d,%d)\n", i, type, 0); PRMSG (3,"[Xtranssock] SocketOpen(%d,%d)\n", i, type, 0);
if ((ciptr = (XtransConnInfo) xcalloc ( if ((ciptr = (XtransConnInfo) xcalloc (
1, sizeof(struct _XtransConnInfo))) == NULL) 1, sizeof(struct _XtransConnInfo))) == NULL)
{ {
PRMSG (1, "SocketOpen: malloc failed\n", 0, 0, 0); PRMSG (1, "[Xtranssock] SocketOpen: malloc failed\n", 0, 0, 0);
return NULL; return NULL;
} }
if ((ciptr->fd = socket(Sockettrans2devtab[i].family, type, if ((ciptr->fd = socket(Sockettrans2devtab[i].family, type,
Sockettrans2devtab[i].protocol)) < 0 Sockettrans2devtab[i].protocol)) < 0
) { ) {
PRMSG (1, "SocketOpen: socket() failed for %s\n", PRMSG (1, "[Xtranssock] SocketOpen: socket() failed for %s\n",
Sockettrans2devtab[i].transname, 0, 0); Sockettrans2devtab[i].transname, 0, 0);
xfree ((char *) ciptr); xfree ((char *) ciptr);
@ -430,12 +430,12 @@ TRANS(SocketReopen) (int i, int type, int fd, char *port)
{ {
XtransConnInfo ciptr; XtransConnInfo ciptr;
PRMSG (3,"SocketReopen(%d,%d,%s)\n", type, fd, port); PRMSG (3,"[Xtranssock] SocketReopen(%d,%d,%s)\n", type, fd, port);
if ((ciptr = (XtransConnInfo) xcalloc ( if ((ciptr = (XtransConnInfo) xcalloc (
1, sizeof(struct _XtransConnInfo))) == NULL) 1, sizeof(struct _XtransConnInfo))) == NULL)
{ {
PRMSG (1, "SocketReopen: malloc failed\n", 0, 0, 0); PRMSG (1, "[Xtranssock] SocketReopen: malloc failed\n", 0, 0, 0);
return NULL; return NULL;
} }
@ -461,7 +461,7 @@ TRANS(SocketOpenCOTSClient) (Xtransport *thistrans, char *protocol,
XtransConnInfo ciptr; XtransConnInfo ciptr;
int i; int i;
PRMSG (2, "SocketOpenCOTSClient(%s,%s,%s)\n", PRMSG (2, "[Xtranssock] SocketOpenCOTSClient(%s,%s,%s)\n",
protocol, host, port); protocol, host, port);
SocketInitOnce(); SocketInitOnce();
@ -469,7 +469,7 @@ TRANS(SocketOpenCOTSClient) (Xtransport *thistrans, char *protocol,
if ((i = TRANS(SocketSelectFamily) (thistrans->TransName)) < 0) if ((i = TRANS(SocketSelectFamily) (thistrans->TransName)) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketOpenCOTSClient: Unable to determine socket type for %s\n", "[Xtranssock] SocketOpenCOTSClient: Unable to determine socket type for %s\n",
thistrans->TransName, 0, 0); thistrans->TransName, 0, 0);
return NULL; return NULL;
} }
@ -477,7 +477,7 @@ TRANS(SocketOpenCOTSClient) (Xtransport *thistrans, char *protocol,
if ((ciptr = TRANS(SocketOpen) ( if ((ciptr = TRANS(SocketOpen) (
i, Sockettrans2devtab[i].devcotsname)) == NULL) i, Sockettrans2devtab[i].devcotsname)) == NULL)
{ {
PRMSG (1,"SocketOpenCOTSClient: Unable to open socket for %s\n", PRMSG (1,"[Xtranssock] SocketOpenCOTSClient: Unable to open socket for %s\n",
thistrans->TransName, 0, 0); thistrans->TransName, 0, 0);
return NULL; return NULL;
} }
@ -502,14 +502,14 @@ TRANS(SocketOpenCOTSServer) (Xtransport *thistrans, char *protocol,
XtransConnInfo ciptr; XtransConnInfo ciptr;
int i; int i;
PRMSG (2,"SocketOpenCOTSServer(%s,%s,%s)\n", protocol, host, port); PRMSG (2,"[Xtranssock] SocketOpenCOTSServer(%s,%s,%s)\n", protocol, host, port);
SocketInitOnce(); SocketInitOnce();
if ((i = TRANS(SocketSelectFamily) (thistrans->TransName)) < 0) if ((i = TRANS(SocketSelectFamily) (thistrans->TransName)) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketOpenCOTSServer: Unable to determine socket type for %s\n", "[Xtranssock] SocketOpenCOTSServer: Unable to determine socket type for %s\n",
thistrans->TransName, 0, 0); thistrans->TransName, 0, 0);
return NULL; return NULL;
} }
@ -517,7 +517,7 @@ TRANS(SocketOpenCOTSServer) (Xtransport *thistrans, char *protocol,
if ((ciptr = TRANS(SocketOpen) ( if ((ciptr = TRANS(SocketOpen) (
i, Sockettrans2devtab[i].devcotsname)) == NULL) i, Sockettrans2devtab[i].devcotsname)) == NULL)
{ {
PRMSG (1,"SocketOpenCOTSServer: Unable to open socket for %s\n", PRMSG (1,"[Xtranssock] SocketOpenCOTSServer: Unable to open socket for %s\n",
thistrans->TransName, 0, 0); thistrans->TransName, 0, 0);
return NULL; return NULL;
} }
@ -560,14 +560,14 @@ TRANS(SocketOpenCLTSClient) (Xtransport *thistrans, char *protocol,
XtransConnInfo ciptr; XtransConnInfo ciptr;
int i; int i;
PRMSG (2,"SocketOpenCLTSClient(%s,%s,%s)\n", protocol, host, port); PRMSG (2,"[Xtranssock] SocketOpenCLTSClient(%s,%s,%s)\n", protocol, host, port);
SocketInitOnce(); SocketInitOnce();
if ((i = TRANS(SocketSelectFamily) (thistrans->TransName)) < 0) if ((i = TRANS(SocketSelectFamily) (thistrans->TransName)) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketOpenCLTSClient: Unable to determine socket type for %s\n", "[Xtranssock] SocketOpenCLTSClient: Unable to determine socket type for %s\n",
thistrans->TransName, 0, 0); thistrans->TransName, 0, 0);
return NULL; return NULL;
} }
@ -575,7 +575,7 @@ TRANS(SocketOpenCLTSClient) (Xtransport *thistrans, char *protocol,
if ((ciptr = TRANS(SocketOpen) ( if ((ciptr = TRANS(SocketOpen) (
i, Sockettrans2devtab[i].devcotsname)) == NULL) i, Sockettrans2devtab[i].devcotsname)) == NULL)
{ {
PRMSG (1,"SocketOpenCLTSClient: Unable to open socket for %s\n", PRMSG (1,"[Xtranssock] SocketOpenCLTSClient: Unable to open socket for %s\n",
thistrans->TransName, 0, 0); thistrans->TransName, 0, 0);
return NULL; return NULL;
} }
@ -600,14 +600,14 @@ TRANS(SocketOpenCLTSServer) (Xtransport *thistrans, char *protocol,
XtransConnInfo ciptr; XtransConnInfo ciptr;
int i; int i;
PRMSG (2,"SocketOpenCLTSServer(%s,%s,%s)\n", protocol, host, port); PRMSG (2,"[Xtranssock] SocketOpenCLTSServer(%s,%s,%s)\n", protocol, host, port);
SocketInitOnce(); SocketInitOnce();
if ((i = TRANS(SocketSelectFamily) (thistrans->TransName)) < 0) if ((i = TRANS(SocketSelectFamily) (thistrans->TransName)) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketOpenCLTSServer: Unable to determine socket type for %s\n", "[Xtranssock] SocketOpenCLTSServer: Unable to determine socket type for %s\n",
thistrans->TransName, 0, 0); thistrans->TransName, 0, 0);
return NULL; return NULL;
} }
@ -615,7 +615,7 @@ TRANS(SocketOpenCLTSServer) (Xtransport *thistrans, char *protocol,
if ((ciptr = TRANS(SocketOpen) ( if ((ciptr = TRANS(SocketOpen) (
i, Sockettrans2devtab[i].devcotsname)) == NULL) i, Sockettrans2devtab[i].devcotsname)) == NULL)
{ {
PRMSG (1,"SocketOpenCLTSServer: Unable to open socket for %s\n", PRMSG (1,"[Xtranssock] SocketOpenCLTSServer: Unable to open socket for %s\n",
thistrans->TransName, 0, 0); thistrans->TransName, 0, 0);
return NULL; return NULL;
} }
@ -640,14 +640,14 @@ TRANS(SocketReopenCOTSServer) (Xtransport *thistrans, int fd, char *port)
int i; int i;
PRMSG (2, PRMSG (2,
"SocketReopenCOTSServer(%d, %s)\n", fd, port, 0); "[Xtranssock] SocketReopenCOTSServer(%d, %s)\n", fd, port, 0);
SocketInitOnce(); SocketInitOnce();
if ((i = TRANS(SocketSelectFamily) (thistrans->TransName)) < 0) if ((i = TRANS(SocketSelectFamily) (thistrans->TransName)) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketReopenCOTSServer: Unable to determine socket type for %s\n", "[Xtranssock] SocketReopenCOTSServer: Unable to determine socket type for %s\n",
thistrans->TransName, 0, 0); thistrans->TransName, 0, 0);
return NULL; return NULL;
} }
@ -656,7 +656,7 @@ TRANS(SocketReopenCOTSServer) (Xtransport *thistrans, int fd, char *port)
i, Sockettrans2devtab[i].devcotsname, fd, port)) == NULL) i, Sockettrans2devtab[i].devcotsname, fd, port)) == NULL)
{ {
PRMSG (1, PRMSG (1,
"SocketReopenCOTSServer: Unable to reopen socket for %s\n", "[Xtranssock] SocketReopenCOTSServer: Unable to reopen socket for %s\n",
thistrans->TransName, 0, 0); thistrans->TransName, 0, 0);
return NULL; return NULL;
} }
@ -676,14 +676,14 @@ TRANS(SocketReopenCLTSServer) (Xtransport *thistrans, int fd, char *port)
int i; int i;
PRMSG (2, PRMSG (2,
"SocketReopenCLTSServer(%d, %s)\n", fd, port, 0); "[Xtranssock] SocketReopenCLTSServer(%d, %s)\n", fd, port, 0);
SocketInitOnce(); SocketInitOnce();
if ((i = TRANS(SocketSelectFamily) (thistrans->TransName)) < 0) if ((i = TRANS(SocketSelectFamily) (thistrans->TransName)) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketReopenCLTSServer: Unable to determine socket type for %s\n", "[Xtranssock] SocketReopenCLTSServer: Unable to determine socket type for %s\n",
thistrans->TransName, 0, 0); thistrans->TransName, 0, 0);
return NULL; return NULL;
} }
@ -692,7 +692,7 @@ TRANS(SocketReopenCLTSServer) (Xtransport *thistrans, int fd, char *port)
i, Sockettrans2devtab[i].devcotsname, fd, port)) == NULL) i, Sockettrans2devtab[i].devcotsname, fd, port)) == NULL)
{ {
PRMSG (1, PRMSG (1,
"SocketReopenCLTSServer: Unable to reopen socket for %s\n", "[Xtranssock] SocketReopenCLTSServer: Unable to reopen socket for %s\n",
thistrans->TransName, 0, 0); thistrans->TransName, 0, 0);
return NULL; return NULL;
} }
@ -711,7 +711,7 @@ static int
TRANS(SocketSetOption) (XtransConnInfo ciptr, int option, int arg) TRANS(SocketSetOption) (XtransConnInfo ciptr, int option, int arg)
{ {
PRMSG (2,"SocketSetOption(%d,%d,%d)\n", ciptr->fd, option, arg); PRMSG (2,"[Xtranssock] SocketSetOption(%d,%d,%d)\n", ciptr->fd, option, arg);
return -1; return -1;
} }
@ -750,7 +750,7 @@ TRANS(SocketCreateListener) (XtransConnInfo ciptr,
int fd = ciptr->fd; int fd = ciptr->fd;
int retry; int retry;
PRMSG (3, "SocketCreateListener(%x,%d)\n", ciptr, fd, 0); PRMSG (3, "[Xtranssock] SocketCreateListener(%x,%d)\n", ciptr, fd, 0);
if (Sockettrans2devtab[ciptr->index].family == AF_INET) if (Sockettrans2devtab[ciptr->index].family == AF_INET)
retry = 20; retry = 20;
@ -763,7 +763,7 @@ TRANS(SocketCreateListener) (XtransConnInfo ciptr,
return TRANS_ADDR_IN_USE; return TRANS_ADDR_IN_USE;
if (retry-- == 0) { if (retry-- == 0) {
PRMSG (1, "SocketCreateListener: failed to bind listener\n", PRMSG (1, "[Xtranssock] SocketCreateListener: failed to bind listener\n",
0, 0, 0); 0, 0, 0);
close (fd); close (fd);
return TRANS_CREATE_LISTENER_FAILED; return TRANS_CREATE_LISTENER_FAILED;
@ -791,7 +791,7 @@ TRANS(SocketCreateListener) (XtransConnInfo ciptr,
if (listen (fd, BACKLOG) < 0) if (listen (fd, BACKLOG) < 0)
{ {
PRMSG (1, "SocketCreateListener: listen() failed\n", 0, 0, 0); PRMSG (1, "[Xtranssock] SocketCreateListener: listen() failed\n", 0, 0, 0);
close (fd); close (fd);
return TRANS_CREATE_LISTENER_FAILED; return TRANS_CREATE_LISTENER_FAILED;
} }
@ -818,7 +818,7 @@ TRANS(SocketINETCreateListener) (XtransConnInfo ciptr, char *port)
char portbuf[PORTBUFSIZE]; char portbuf[PORTBUFSIZE];
#endif #endif
PRMSG (2, "SocketINETCreateListener(%s)\n", port, 0, 0); PRMSG (2, "[Xtranssock] SocketINETCreateListener(%s)\n", port, 0, 0);
#ifdef X11_t #ifdef X11_t
/* /*
@ -848,7 +848,7 @@ TRANS(SocketINETCreateListener) (XtransConnInfo ciptr, char *port)
if ((servp = getservbyname (port,"tcp")) == NULL) if ((servp = getservbyname (port,"tcp")) == NULL)
{ {
PRMSG (1, PRMSG (1,
"SocketINETCreateListener: Unable to get service for %s\n", "[Xtranssock] SocketINETCreateListener: Unable to get service for %s\n",
port, 0, 0); port, 0, 0);
return TRANS_CREATE_LISTENER_FAILED; return TRANS_CREATE_LISTENER_FAILED;
} }
@ -883,7 +883,7 @@ TRANS(SocketINETCreateListener) (XtransConnInfo ciptr, char *port)
(struct sockaddr *) &sockname, namelen)) < 0) (struct sockaddr *) &sockname, namelen)) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketINETCreateListener: ...SocketCreateListener() failed\n", "[Xtranssock] SocketINETCreateListener: ...SocketCreateListener() failed\n",
0, 0, 0); 0, 0, 0);
return status; return status;
} }
@ -891,7 +891,7 @@ TRANS(SocketINETCreateListener) (XtransConnInfo ciptr, char *port)
if (TRANS(SocketINETGetAddr) (ciptr) < 0) if (TRANS(SocketINETGetAddr) (ciptr) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketINETCreateListener: ...SocketINETGetAddr() failed\n", "[Xtranssock] SocketINETCreateListener: ...SocketINETGetAddr() failed\n",
0, 0, 0); 0, 0, 0);
return TRANS_CREATE_LISTENER_FAILED; return TRANS_CREATE_LISTENER_FAILED;
} }
@ -914,7 +914,7 @@ TRANS(SocketUNIXCreateListener) (XtransConnInfo ciptr, char *port)
int status; int status;
unsigned int mode; unsigned int mode;
PRMSG (2, "SocketUNIXCreateListener(%s)\n", PRMSG (2, "[Xtranssock] SocketUNIXCreateListener(%s)\n",
port ? port : "NULL", 0, 0); port ? port : "NULL", 0, 0);
/* Make sure the directory is created */ /* Make sure the directory is created */
@ -928,7 +928,7 @@ TRANS(SocketUNIXCreateListener) (XtransConnInfo ciptr, char *port)
mode = 0777; mode = 0777;
#endif #endif
if (trans_mkdir((char*)UNIX_DIR, mode) == -1) { if (trans_mkdir((char*)UNIX_DIR, mode) == -1) {
PRMSG (1, "SocketUNIXCreateListener: mkdir(%s) failed, errno = %d\n", PRMSG (1, "[Xtranssock] SocketUNIXCreateListener: mkdir(%s) failed, errno = %d\n",
UNIX_DIR, errno, 0); UNIX_DIR, errno, 0);
(void) umask (oldUmask); (void) umask (oldUmask);
return TRANS_CREATE_LISTENER_FAILED; return TRANS_CREATE_LISTENER_FAILED;
@ -939,7 +939,7 @@ TRANS(SocketUNIXCreateListener) (XtransConnInfo ciptr, char *port)
if (port && *port) { if (port && *port) {
if (set_sun_path(port, UNIX_PATH, sockname.sun_path) != 0) { if (set_sun_path(port, UNIX_PATH, sockname.sun_path) != 0) {
PRMSG (1, "SocketUNIXCreateListener: path too long\n", 0, 0, 0); PRMSG (1, "[Xtranssock] SocketUNIXCreateListener: path too long\n", 0, 0, 0);
return TRANS_CREATE_LISTENER_FAILED; return TRANS_CREATE_LISTENER_FAILED;
} }
} else { } else {
@ -958,7 +958,7 @@ TRANS(SocketUNIXCreateListener) (XtransConnInfo ciptr, char *port)
(struct sockaddr *) &sockname, namelen)) < 0) (struct sockaddr *) &sockname, namelen)) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketUNIXCreateListener: ...SocketCreateListener() failed\n", "[Xtranssock] SocketUNIXCreateListener: ...SocketCreateListener() failed\n",
0, 0, 0); 0, 0, 0);
return status; return status;
} }
@ -975,7 +975,7 @@ TRANS(SocketUNIXCreateListener) (XtransConnInfo ciptr, char *port)
if ((ciptr->addr = (char *) xalloc (namelen)) == NULL) if ((ciptr->addr = (char *) xalloc (namelen)) == NULL)
{ {
PRMSG (1, PRMSG (1,
"SocketUNIXCreateListener: Can't allocate space for the addr\n", "[Xtranssock] SocketUNIXCreateListener: Can't allocate space for the addr\n",
0, 0, 0); 0, 0, 0);
return TRANS_CREATE_LISTENER_FAILED; return TRANS_CREATE_LISTENER_FAILED;
} }
@ -1001,7 +1001,7 @@ TRANS(SocketUNIXResetListener) (XtransConnInfo ciptr)
int status = TRANS_RESET_NOOP; int status = TRANS_RESET_NOOP;
unsigned int mode; unsigned int mode;
PRMSG (3, "SocketUNIXResetListener(%x,%d)\n", ciptr, ciptr->fd, 0); PRMSG (3, "[Xtranssock] SocketUNIXResetListener(%x,%d)\n", ciptr, ciptr->fd, 0);
if (stat (unsock->sun_path, &statb) == -1 || if (stat (unsock->sun_path, &statb) == -1 ||
((statb.st_mode & S_IFMT) != ((statb.st_mode & S_IFMT) !=
@ -1020,7 +1020,7 @@ TRANS(SocketUNIXResetListener) (XtransConnInfo ciptr)
mode = 0777; mode = 0777;
#endif #endif
if (trans_mkdir((char*)UNIX_DIR, mode) == -1) { if (trans_mkdir((char*)UNIX_DIR, mode) == -1) {
PRMSG (1, "SocketUNIXResetListener: mkdir(%s) failed, errno = %d\n", PRMSG (1, "[Xtranssock] SocketUNIXResetListener: mkdir(%s) failed, errno = %d\n",
UNIX_DIR, errno, 0); UNIX_DIR, errno, 0);
(void) umask (oldUmask); (void) umask (oldUmask);
return TRANS_RESET_FAILURE; return TRANS_RESET_FAILURE;
@ -1077,12 +1077,12 @@ TRANS(SocketINETAccept) (XtransConnInfo ciptr, int *status)
int namelen = sizeof(sockname); int namelen = sizeof(sockname);
#endif #endif
PRMSG (2, "SocketINETAccept(%p,%d)\n", ciptr, ciptr->fd, 0); PRMSG (2, "[Xtranssock] SocketINETAccept(%p,%d)\n", ciptr, ciptr->fd, 0);
if ((newciptr = (XtransConnInfo) xcalloc ( if ((newciptr = (XtransConnInfo) xcalloc (
1, sizeof(struct _XtransConnInfo))) == NULL) 1, sizeof(struct _XtransConnInfo))) == NULL)
{ {
PRMSG (1, "SocketINETAccept: malloc failed\n", 0, 0, 0); PRMSG (1, "[Xtranssock] SocketINETAccept: malloc failed\n", 0, 0, 0);
*status = TRANS_ACCEPT_BAD_MALLOC; *status = TRANS_ACCEPT_BAD_MALLOC;
return NULL; return NULL;
} }
@ -1090,7 +1090,7 @@ TRANS(SocketINETAccept) (XtransConnInfo ciptr, int *status)
if ((newciptr->fd = accept (ciptr->fd, if ((newciptr->fd = accept (ciptr->fd,
(struct sockaddr *) &sockname, &namelen)) < 0) (struct sockaddr *) &sockname, &namelen)) < 0)
{ {
PRMSG (1, "SocketINETAccept: accept() failed\n", 0, 0, 0); PRMSG (1, "[Xtranssock] SocketINETAccept: accept() failed\n", 0, 0, 0);
xfree (newciptr); xfree (newciptr);
*status = TRANS_ACCEPT_FAILED; *status = TRANS_ACCEPT_FAILED;
return NULL; return NULL;
@ -1116,7 +1116,7 @@ TRANS(SocketINETAccept) (XtransConnInfo ciptr, int *status)
if (TRANS(SocketINETGetAddr) (newciptr) < 0) if (TRANS(SocketINETGetAddr) (newciptr) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketINETAccept: ...SocketINETGetAddr() failed:\n", "[Xtranssock] SocketINETAccept: ...SocketINETGetAddr() failed:\n",
0, 0, 0); 0, 0, 0);
close (newciptr->fd); close (newciptr->fd);
xfree (newciptr); xfree (newciptr);
@ -1127,7 +1127,7 @@ TRANS(SocketINETAccept) (XtransConnInfo ciptr, int *status)
if (TRANS(SocketINETGetPeerAddr) (newciptr) < 0) if (TRANS(SocketINETGetPeerAddr) (newciptr) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketINETAccept: ...SocketINETGetPeerAddr() failed:\n", "[Xtranssock] SocketINETAccept: ...SocketINETGetPeerAddr() failed:\n",
0, 0, 0); 0, 0, 0);
close (newciptr->fd); close (newciptr->fd);
if (newciptr->addr) xfree (newciptr->addr); if (newciptr->addr) xfree (newciptr->addr);
@ -1157,12 +1157,12 @@ TRANS(SocketUNIXAccept) (XtransConnInfo ciptr, int *status)
int namelen = sizeof sockname; int namelen = sizeof sockname;
#endif #endif
PRMSG (2, "SocketUNIXAccept(%p,%d)\n", ciptr, ciptr->fd, 0); PRMSG (2, "[Xtranssock] SocketUNIXAccept(%p,%d)\n", ciptr, ciptr->fd, 0);
if ((newciptr = (XtransConnInfo) xcalloc ( if ((newciptr = (XtransConnInfo) xcalloc (
1, sizeof(struct _XtransConnInfo))) == NULL) 1, sizeof(struct _XtransConnInfo))) == NULL)
{ {
PRMSG (1, "SocketUNIXAccept: malloc() failed\n", 0, 0, 0); PRMSG (1, "[Xtranssock] SocketUNIXAccept: malloc() failed\n", 0, 0, 0);
*status = TRANS_ACCEPT_BAD_MALLOC; *status = TRANS_ACCEPT_BAD_MALLOC;
return NULL; return NULL;
} }
@ -1170,7 +1170,7 @@ TRANS(SocketUNIXAccept) (XtransConnInfo ciptr, int *status)
if ((newciptr->fd = accept (ciptr->fd, if ((newciptr->fd = accept (ciptr->fd,
(struct sockaddr *) &sockname, &namelen)) < 0) (struct sockaddr *) &sockname, &namelen)) < 0)
{ {
PRMSG (1, "SocketUNIXAccept: accept() failed\n", 0, 0, 0); PRMSG (1, "[Xtranssock] SocketUNIXAccept: accept() failed\n", 0, 0, 0);
xfree (newciptr); xfree (newciptr);
*status = TRANS_ACCEPT_FAILED; *status = TRANS_ACCEPT_FAILED;
return NULL; return NULL;
@ -1184,7 +1184,7 @@ TRANS(SocketUNIXAccept) (XtransConnInfo ciptr, int *status)
if ((newciptr->addr = (char *) xalloc (ciptr->addrlen)) == NULL) if ((newciptr->addr = (char *) xalloc (ciptr->addrlen)) == NULL)
{ {
PRMSG (1, PRMSG (1,
"SocketUNIXAccept: Can't allocate space for the addr\n", "[Xtranssock] SocketUNIXAccept: Can't allocate space for the addr\n",
0, 0, 0); 0, 0, 0);
close (newciptr->fd); close (newciptr->fd);
xfree (newciptr); xfree (newciptr);
@ -1199,7 +1199,7 @@ TRANS(SocketUNIXAccept) (XtransConnInfo ciptr, int *status)
if ((newciptr->peeraddr = (char *) xalloc (ciptr->addrlen)) == NULL) if ((newciptr->peeraddr = (char *) xalloc (ciptr->addrlen)) == NULL)
{ {
PRMSG (1, PRMSG (1,
"SocketUNIXAccept: Can't allocate space for the addr\n", "[Xtranssock] SocketUNIXAccept: Can't allocate space for the addr\n",
0, 0, 0); 0, 0, 0);
close (newciptr->fd); close (newciptr->fd);
if (newciptr->addr) xfree (newciptr->addr); if (newciptr->addr) xfree (newciptr->addr);
@ -1247,7 +1247,7 @@ TRANS(SocketINETConnect) (XtransConnInfo ciptr, char *host, char *port)
unsigned long tmpaddr; unsigned long tmpaddr;
char hostnamebuf[256]; /* tmp space */ char hostnamebuf[256]; /* tmp space */
PRMSG (2,"SocketINETConnect(%d,%s,%s)\n", ciptr->fd, host, port); PRMSG (2,"[Xtranssock] SocketINETConnect(%d,%s,%s)\n", ciptr->fd, host, port);
if (!host) if (!host)
{ {
@ -1295,7 +1295,7 @@ TRANS(SocketINETConnect) (XtransConnInfo ciptr, char *host, char *port)
tmpaddr = -1; tmpaddr = -1;
} }
PRMSG (4,"SocketINETConnect: inet_addr(%s) = %x\n", PRMSG (4,"[Xtranssock] SocketINETConnect: inet_addr(%s) = %x\n",
host, tmpaddr, 0); host, tmpaddr, 0);
if (tmpaddr == -1) if (tmpaddr == -1)
@ -1306,14 +1306,14 @@ TRANS(SocketINETConnect) (XtransConnInfo ciptr, char *host, char *port)
if ((hostp = gethostbyname(host,hparams)) == NULL) if ((hostp = gethostbyname(host,hparams)) == NULL)
#endif #endif
{ {
PRMSG (1,"SocketINETConnect: Can't get address for %s\n", PRMSG (1,"[Xtranssock] SocketINETConnect: Can't get address for %s\n",
host, 0, 0); host, 0, 0);
ESET(EINVAL); ESET(EINVAL);
return TRANS_CONNECT_FAILED; return TRANS_CONNECT_FAILED;
} }
if (hostp->h_addrtype != AF_INET) /* is IP host? */ if (hostp->h_addrtype != AF_INET) /* is IP host? */
{ {
PRMSG (1,"SocketINETConnect: not INET host%s\n", PRMSG (1,"[Xtranssock] SocketINETConnect: not INET host%s\n",
host, 0, 0); host, 0, 0);
ESET(EPROTOTYPE); ESET(EPROTOTYPE);
return TRANS_CONNECT_FAILED; return TRANS_CONNECT_FAILED;
@ -1352,7 +1352,7 @@ else
{ {
if ((servp = getservbyname (port,"tcp")) == NULL) if ((servp = getservbyname (port,"tcp")) == NULL)
{ {
PRMSG (1,"SocketINETConnect: can't get service for %s\n", PRMSG (1,"[Xtranssock] SocketINETConnect: can't get service for %s\n",
port, 0, 0); port, 0, 0);
return TRANS_CONNECT_FAILED; return TRANS_CONNECT_FAILED;
} }
@ -1366,7 +1366,7 @@ else
sockname.sin_port = htons (((unsigned short) tmpport)); sockname.sin_port = htons (((unsigned short) tmpport));
} }
PRMSG (4,"SocketINETConnect: sockname.sin_port = %d\n", PRMSG (4,"[Xtranssock] SocketINETConnect: sockname.sin_port = %d\n",
ntohs(sockname.sin_port), 0, 0); ntohs(sockname.sin_port), 0, 0);
/* /*
@ -1398,7 +1398,7 @@ else
return TRANS_IN_PROGRESS; return TRANS_IN_PROGRESS;
else else
{ {
PRMSG (2,"SocketINETConnect: Can't connect: errno = %d\n", PRMSG (2,"[Xtranssock] SocketINETConnect: Can't connect: errno = %d\n",
olderrno,0, 0); olderrno,0, 0);
return TRANS_CONNECT_FAILED; return TRANS_CONNECT_FAILED;
@ -1413,7 +1413,7 @@ else
if (TRANS(SocketINETGetAddr) (ciptr) < 0) if (TRANS(SocketINETGetAddr) (ciptr) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketINETConnect: ...SocketINETGetAddr() failed:\n", "[Xtranssock] SocketINETConnect: ...SocketINETGetAddr() failed:\n",
0, 0, 0); 0, 0, 0);
return TRANS_CONNECT_FAILED; return TRANS_CONNECT_FAILED;
} }
@ -1421,7 +1421,7 @@ else
if (TRANS(SocketINETGetPeerAddr) (ciptr) < 0) if (TRANS(SocketINETGetPeerAddr) (ciptr) < 0)
{ {
PRMSG (1, PRMSG (1,
"SocketINETConnect: ...SocketINETGetPeerAddr() failed:\n", "[Xtranssock] SocketINETConnect: ...SocketINETGetPeerAddr() failed:\n",
0, 0, 0); 0, 0, 0);
return TRANS_CONNECT_FAILED; return TRANS_CONNECT_FAILED;
} }
@ -1540,7 +1540,7 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
#endif #endif
PRMSG (2,"SocketUNIXConnect(%d,%s,%s)\n", ciptr->fd, host, port); PRMSG (2,"[Xtranssock] SocketUNIXConnect(%d,%s,%s)\n", ciptr->fd, host, port);
/* /*
* Make sure 'host' is really local. If not, we return failure. * Make sure 'host' is really local. If not, we return failure.
@ -1553,7 +1553,7 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
if (strcmp (host, "unix") != 0 && !UnixHostReallyLocal (host)) if (strcmp (host, "unix") != 0 && !UnixHostReallyLocal (host))
{ {
PRMSG (1, PRMSG (1,
"SocketUNIXConnect: Cannot connect to non-local host %s\n", "[Xtranssock] SocketUNIXConnect: Cannot connect to non-local host %s\n",
host, 0, 0); host, 0, 0);
return TRANS_CONNECT_FAILED; return TRANS_CONNECT_FAILED;
} }
@ -1565,7 +1565,7 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
if (!port || !*port) if (!port || !*port)
{ {
PRMSG (1,"SocketUNIXConnect: Missing port specification\n", PRMSG (1,"[Xtranssock] SocketUNIXConnect: Missing port specification\n",
0, 0, 0); 0, 0, 0);
return TRANS_CONNECT_FAILED; return TRANS_CONNECT_FAILED;
} }
@ -1577,7 +1577,7 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
sockname.sun_family = AF_UNIX; sockname.sun_family = AF_UNIX;
if (set_sun_path(port, UNIX_PATH, sockname.sun_path) != 0) { if (set_sun_path(port, UNIX_PATH, sockname.sun_path) != 0) {
PRMSG (1, "SocketUNIXConnect: path too long\n", 0, 0, 0); PRMSG (1, "[Xtranssock] SocketUNIXConnect: path too long\n", 0, 0, 0);
return TRANS_CONNECT_FAILED; return TRANS_CONNECT_FAILED;
} }
@ -1592,7 +1592,7 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
*/ */
old_sockname.sun_family = AF_UNIX; old_sockname.sun_family = AF_UNIX;
if (set_sun_path(port, OLD_UNIX_PATH, old_sockname.sun_path) != 0) { if (set_sun_path(port, OLD_UNIX_PATH, old_sockname.sun_path) != 0) {
PRMSG (1, "SocketUNIXConnect: path too long\n", 0, 0, 0); PRMSG (1, "[Xtranssock] SocketUNIXConnect: path too long\n", 0, 0, 0);
return TRANS_CONNECT_FAILED; return TRANS_CONNECT_FAILED;
} }
old_namelen = strlen (old_sockname.sun_path) + old_namelen = strlen (old_sockname.sun_path) +
@ -1642,7 +1642,7 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
return TRANS_IN_PROGRESS; return TRANS_IN_PROGRESS;
else else
{ {
PRMSG (2,"SocketUNIXConnect: Can't connect: errno = %d\n", PRMSG (2,"[Xtranssock] SocketUNIXConnect: Can't connect: errno = %d\n",
EGET(),0, 0); EGET(),0, 0);
return TRANS_CONNECT_FAILED; return TRANS_CONNECT_FAILED;
@ -1659,7 +1659,7 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
(ciptr->peeraddr = (char *) xalloc(namelen)) == NULL) (ciptr->peeraddr = (char *) xalloc(namelen)) == NULL)
{ {
PRMSG (1, PRMSG (1,
"SocketUNIXCreateListener: Can't allocate space for the addr\n", "[Xtranssock] SocketUNIXCreateListener: Can't allocate space for the addr\n",
0, 0, 0); 0, 0, 0);
return TRANS_CONNECT_FAILED; return TRANS_CONNECT_FAILED;
} }
@ -1682,7 +1682,7 @@ static int
TRANS(SocketBytesReadable) (XtransConnInfo ciptr, BytesReadable_t *pend) TRANS(SocketBytesReadable) (XtransConnInfo ciptr, BytesReadable_t *pend)
{ {
PRMSG (2,"SocketBytesReadable(%x,%d,%x)\n", PRMSG (2,"[Xtranssock] SocketBytesReadable(%x,%d,%x)\n",
ciptr, ciptr->fd, pend); ciptr, ciptr->fd, pend);
#if defined(QNX4) #if defined(QNX4)
*pend = 0L; /* FIONREAD only returns a short. Zero out upper bits */ *pend = 0L; /* FIONREAD only returns a short. Zero out upper bits */
@ -1707,7 +1707,7 @@ static int
TRANS(SocketRead) (XtransConnInfo ciptr, char *buf, int size) TRANS(SocketRead) (XtransConnInfo ciptr, char *buf, int size)
{ {
PRMSG (2,"SocketRead(%d,%x,%d)\n", ciptr->fd, buf, size); PRMSG (2,"[Xtranssock] SocketRead(%d,%x,%d)\n", ciptr->fd, buf, size);
#if defined(_WIN32) || defined(__EMX__) #if defined(_WIN32) || defined(__EMX__)
return recv ((SOCKET)ciptr->fd, buf, size, 0); return recv ((SOCKET)ciptr->fd, buf, size, 0);
@ -1721,7 +1721,7 @@ static int
TRANS(SocketWrite) (XtransConnInfo ciptr, char *buf, int size) TRANS(SocketWrite) (XtransConnInfo ciptr, char *buf, int size)
{ {
PRMSG (2,"SocketWrite(%d,%x,%d)\n", ciptr->fd, buf, size); PRMSG (2,"[Xtranssock] SocketWrite(%d,%x,%d)\n", ciptr->fd, buf, size);
#if defined(_WIN32) || defined(__EMX__) #if defined(_WIN32) || defined(__EMX__)
return send ((SOCKET)ciptr->fd, buf, size, 0); return send ((SOCKET)ciptr->fd, buf, size, 0);
@ -1735,7 +1735,7 @@ static int
TRANS(SocketReadv) (XtransConnInfo ciptr, struct iovec *buf, int size) TRANS(SocketReadv) (XtransConnInfo ciptr, struct iovec *buf, int size)
{ {
PRMSG (2,"SocketReadv(%d,%x,%d)\n", ciptr->fd, buf, size); PRMSG (2,"[Xtranssock] SocketReadv(%d,%x,%d)\n", ciptr->fd, buf, size);
return READV (ciptr, buf, size); return READV (ciptr, buf, size);
} }
@ -1745,7 +1745,7 @@ static int
TRANS(SocketWritev) (XtransConnInfo ciptr, struct iovec *buf, int size) TRANS(SocketWritev) (XtransConnInfo ciptr, struct iovec *buf, int size)
{ {
PRMSG (2,"SocketWritev(%d,%x,%d)\n", ciptr->fd, buf, size); PRMSG (2,"[Xtranssock] SocketWritev(%d,%x,%d)\n", ciptr->fd, buf, size);
return WRITEV (ciptr, buf, size); return WRITEV (ciptr, buf, size);
} }
@ -1755,7 +1755,7 @@ static int
TRANS(SocketDisconnect) (XtransConnInfo ciptr) TRANS(SocketDisconnect) (XtransConnInfo ciptr)
{ {
PRMSG (2,"SocketDisconnect(%x,%d)\n", ciptr, ciptr->fd, 0); PRMSG (2,"[Xtranssock] SocketDisconnect(%x,%d)\n", ciptr, ciptr->fd, 0);
return shutdown (ciptr->fd, 2); /* disallow further sends and receives */ return shutdown (ciptr->fd, 2); /* disallow further sends and receives */
} }
@ -1766,7 +1766,7 @@ static int
TRANS(SocketINETClose) (XtransConnInfo ciptr) TRANS(SocketINETClose) (XtransConnInfo ciptr)
{ {
PRMSG (2,"SocketINETClose(%x,%d)\n", ciptr, ciptr->fd, 0); PRMSG (2,"[Xtranssock] SocketINETClose(%x,%d)\n", ciptr, ciptr->fd, 0);
return close (ciptr->fd); return close (ciptr->fd);
} }
@ -1788,7 +1788,7 @@ TRANS(SocketUNIXClose) (XtransConnInfo ciptr)
char path[200]; /* > sizeof sun_path +1 */ char path[200]; /* > sizeof sun_path +1 */
int ret; int ret;
PRMSG (2,"SocketUNIXClose(%x,%d)\n", ciptr, ciptr->fd, 0); PRMSG (2,"[Xtranssock] SocketUNIXClose(%x,%d)\n", ciptr, ciptr->fd, 0);
ret = close(ciptr->fd); ret = close(ciptr->fd);
@ -1815,7 +1815,7 @@ TRANS(SocketUNIXCloseForCloning) (XtransConnInfo ciptr)
int ret; int ret;
PRMSG (2,"SocketUNIXCloseForCloning(%x,%d)\n", PRMSG (2,"[Xtranssock] SocketUNIXCloseForCloning(%x,%d)\n",
ciptr, ciptr->fd, 0); ciptr, ciptr->fd, 0);
ret = close(ciptr->fd); ret = close(ciptr->fd);

@ -192,7 +192,7 @@ bool launchApp(TQString app)
void usage() void usage()
{ {
fprintf( stderr, "Usage: dcopfind [-l] [-a] application [object [function [arg1] [arg2] [arg3] ... ] ] ] \n" ); fprintf( stderr, "[dcopfind] Usage: dcopfind [-l] [-a] application [object [function [arg1] [arg2] [arg3] ... ] ] ] \n" );
exit(0); exit(0);
} }

@ -2528,7 +2528,7 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
static void yy_fatal_error (yyconst char* msg ) static void yy_fatal_error (yyconst char* msg )
{ {
(void) fprintf( stderr, "%s\n", msg ); (void) fprintf( stderr, "[dcopidl-scanner] %s\n", msg );
exit( YY_EXIT_FAILURE ); exit( YY_EXIT_FAILURE );
} }

@ -35,14 +35,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
void usage() void usage()
{ {
fprintf( stderr, "Usage: dcopidl2cpp [ --no-skel | --no-stub ] [--c++-suffix <suffix>] file\n" ); fprintf( stderr, "[dcopidl2cpp] Usage: dcopidl2cpp [ --no-skel | --no-stub ] [--c++-suffix <suffix>] file\n" );
} }
int main( int argc, char** argv ) int main( int argc, char** argv )
{ {
if ( *tqVersion() == '1' ) { if ( *tqVersion() == '1' ) {
fprintf( stderr, "dcopidl2cpp appears to be linked to Qt 1 instead of Qt >= 2 ! Aborting.\n" ); fprintf( stderr, "[dcopidl2cpp] dcopidl2cpp appears to be linked to Qt 1 instead of Qt >= 2 ! Aborting.\n" );
exit(1); exit(1);
} }
if ( argc < 2 ) { if ( argc < 2 ) {

@ -130,7 +130,7 @@ static TQCString readQCString(TQDataStream &ds)
int bytesLeft = device->size()-device->at(); int bytesLeft = device->size()-device->at();
if ((bytesLeft < 0 ) || (len > (uint) bytesLeft)) if ((bytesLeft < 0 ) || (len > (uint) bytesLeft))
{ {
tqWarning("Corrupt data!\n"); tqWarning("[dcopserver] Corrupt data!\n");
printf("bytesLeft: %d, len: %d\n", bytesLeft, len); printf("bytesLeft: %d, len: %d\n", bytesLeft, len);
return result; return result;
} }
@ -149,7 +149,7 @@ static TQByteArray readQByteArray(TQDataStream &ds)
int bytesLeft = device->size()-device->at(); int bytesLeft = device->size()-device->at();
if ((bytesLeft < 0 ) || (len > (uint) bytesLeft)) if ((bytesLeft < 0 ) || (len > (uint) bytesLeft))
{ {
tqWarning("Corrupt data!\n"); tqWarning("[dcopserver] Corrupt data!\n");
return result; return result;
} }
result.resize( (uint)len ); result.resize( (uint)len );
@ -241,7 +241,7 @@ void DCOPIceWriteChar(register IceConn iceConn, unsigned long nbytes, char *ptr)
{ {
DCOPConnection* conn = the_server->findConn( iceConn ); DCOPConnection* conn = the_server->findConn( iceConn );
#ifdef DCOP_DEBUG #ifdef DCOP_DEBUG
tqWarning("DCOPServer: DCOPIceWriteChar() Writing %d bytes [%s]", nbytes, conn ? conn->appId.data() : "<unknown>"); tqWarning("[dcopserver] DCOPIceWriteChar() Writing %d bytes [%s]", nbytes, conn ? conn->appId.data() : "<unknown>");
#endif #endif
if (conn) if (conn)
@ -251,7 +251,7 @@ tqWarning("DCOPServer: DCOPIceWriteChar() Writing %d bytes [%s]", nbytes, conn ?
TQByteArray _data(nbytes); TQByteArray _data(nbytes);
memcpy(_data.data(), ptr, nbytes); memcpy(_data.data(), ptr, nbytes);
#ifdef DCOP_DEBUG #ifdef DCOP_DEBUG
tqWarning("DCOPServer: _IceWrite() outputBlocked. Queuing %d bytes.", _data.size()); tqWarning("[dcopserver] _IceWrite() outputBlocked. Queuing %d bytes.", _data.size());
#endif #endif
conn->outputBuffer.append(_data); conn->outputBuffer.append(_data);
return; return;
@ -273,14 +273,14 @@ static void DCOPIceWrite(IceConn iceConn, const TQByteArray &_data)
{ {
DCOPConnection* conn = the_server->findConn( iceConn ); DCOPConnection* conn = the_server->findConn( iceConn );
#ifdef DCOP_DEBUG #ifdef DCOP_DEBUG
tqWarning("DCOPServer: DCOPIceWrite() Writing %d bytes [%s]", _data.size(), conn ? conn->appId.data() : "<unknown>"); tqWarning("[dcopserver] DCOPIceWrite() Writing %d bytes [%s]", _data.size(), conn ? conn->appId.data() : "<unknown>");
#endif #endif
if (conn) if (conn)
{ {
if (conn->outputBlocked) if (conn->outputBlocked)
{ {
#ifdef DCOP_DEBUG #ifdef DCOP_DEBUG
tqWarning("DCOPServer: DCOPIceWrite() outputBlocked. Queuing %d bytes.", _data.size()); tqWarning("[dcopserver] DCOPIceWrite() outputBlocked. Queuing %d bytes.", _data.size());
#endif #endif
conn->outputBuffer.append(_data); conn->outputBuffer.append(_data);
return; return;
@ -299,7 +299,7 @@ tqWarning("DCOPServer: DCOPIceWrite() outputBlocked. Queuing %d bytes.", _data.s
void DCOPConnection::waitForOutputReady(const TQByteArray &_data, int start) void DCOPConnection::waitForOutputReady(const TQByteArray &_data, int start)
{ {
#ifdef DCOP_DEBUG #ifdef DCOP_DEBUG
tqWarning("DCOPServer: waitForOutputReady fd = %d datasize = %d start = %d", socket(), _data.size(), start); tqWarning("[dcopserver] waitForOutputReady fd = %d datasize = %d start = %d", socket(), _data.size(), start);
#endif #endif
outputBlocked = true; outputBlocked = true;
outputBuffer.append(_data); outputBuffer.append(_data);
@ -317,7 +317,7 @@ tqWarning("DCOPServer: waitForOutputReady fd = %d datasize = %d start = %d", soc
void DCOPServer::slotOutputReady(int socket) void DCOPServer::slotOutputReady(int socket)
{ {
#ifdef DCOP_DEBUG #ifdef DCOP_DEBUG
tqWarning("DCOPServer: slotOutputReady fd = %d", socket); tqWarning("[dcopserver] slotOutputReady fd = %d", socket);
#endif #endif
// Find out connection. // Find out connection.
DCOPConnection *conn = fd_clients.find(socket); DCOPConnection *conn = fd_clients.find(socket);
@ -351,7 +351,7 @@ void DCOPConnection::slotOutputReady()
fcntl(fd, F_SETFL, fd_fl); fcntl(fd, F_SETFL, fd_fl);
#ifdef DCOP_DEBUG #ifdef DCOP_DEBUG
tqWarning("DCOPServer: slotOutputReady() %d bytes written", nwritten); tqWarning("[dcopserver] slotOutputReady() %d bytes written", nwritten);
#endif #endif
if (nwritten < 0) if (nwritten < 0)
@ -370,7 +370,7 @@ tqWarning("DCOPServer: slotOutputReady() %d bytes written", nwritten);
if (outputBuffer.isEmpty()) if (outputBuffer.isEmpty())
{ {
#ifdef DCOP_DEBUG #ifdef DCOP_DEBUG
tqWarning("DCOPServer: slotOutputRead() all data transmitted."); tqWarning("[dcopserver] slotOutputRead() all data transmitted.");
#endif #endif
outputBlocked = false; outputBlocked = false;
outputBufferNotifier->setEnabled(false); outputBufferNotifier->setEnabled(false);
@ -378,7 +378,7 @@ tqWarning("DCOPServer: slotOutputRead() all data transmitted.");
#ifdef DCOP_DEBUG #ifdef DCOP_DEBUG
else else
{ {
tqWarning("DCOPServer: slotOutputRead() more data to send."); tqWarning("[dcopserver] slotOutputRead() more data to send.");
} }
#endif #endif
} }
@ -390,7 +390,7 @@ static void DCOPIceSendData(register IceConn _iceConn,
if (_iceConn->outbufptr > _iceConn->outbuf) if (_iceConn->outbufptr > _iceConn->outbuf)
{ {
#ifdef DCOP_DEBUG #ifdef DCOP_DEBUG
tqWarning("DCOPServer: Flushing data, fd = %d", IceConnectionNumber(_iceConn)); tqWarning("[dcopserver] Flushing data, fd = %d", IceConnectionNumber(_iceConn));
#endif #endif
IceFlush( _iceConn ); IceFlush( _iceConn );
} }
@ -645,7 +645,7 @@ SetAuthentication (int count, IceListenObj *_listenObjs,
if (command.isEmpty()) if (command.isEmpty())
{ {
fprintf( stderr, "dcopserver: 'iceauth' not found in path, aborting.\n" ); fprintf( stderr, "[dcopserver] 'iceauth' not found in path, aborting.\n" );
exit(1); exit(1);
} }
@ -713,7 +713,7 @@ void DCOPServer::processMessage( IceConn iceConn, int opcode,
{ {
DCOPConnection* conn = clients.find( iceConn ); DCOPConnection* conn = clients.find( iceConn );
if ( !conn ) { if ( !conn ) {
tqWarning("DCOPServer::processMessage message from unknown connection. [opcode = %d]", opcode); tqWarning("[dcopserver] DCOPServer::processMessage message from unknown connection. [opcode = %d]", opcode);
return; return;
} }
switch( opcode ) { switch( opcode ) {
@ -733,13 +733,13 @@ void DCOPServer::processMessage( IceConn iceConn, int opcode,
int datalen = ba.size(); int datalen = ba.size();
if ( opcode == DCOPReplyDelayed ) { if ( opcode == DCOPReplyDelayed ) {
if ( !target ) if ( !target )
tqWarning("DCOPServer::DCOPReplyDelayed for unknown connection."); tqWarning("[dcopserver] DCOPServer::DCOPReplyDelayed for unknown connection.");
else if ( !conn ) else if ( !conn )
tqWarning("DCOPServer::DCOPReplyDelayed from unknown connection."); tqWarning("[dcopserver] DCOPServer::DCOPReplyDelayed from unknown connection.");
else if (!conn->waitingForDelayedReply.removeRef( target->iceConn )) else if (!conn->waitingForDelayedReply.removeRef( target->iceConn ))
tqWarning("DCOPServer::DCOPReplyDelayed from/to does not match. (#2)"); tqWarning("[dcopserver] DCOPServer::DCOPReplyDelayed from/to does not match. (#2)");
else if (!target->waitingOnReply.removeRef(iceConn)) else if (!target->waitingOnReply.removeRef(iceConn))
tqWarning("DCOPServer::DCOPReplyDelayed for client who wasn't waiting on one!"); tqWarning("[dcopserver] DCOPServer::DCOPReplyDelayed for client who wasn't waiting on one!");
} }
if ( target ) { if ( target ) {
#ifdef DCOP_DEBUG #ifdef DCOP_DEBUG
@ -747,7 +747,7 @@ if (opcode == DCOPSend)
{ {
TQCString obj = readQCString(ds); TQCString obj = readQCString(ds);
TQCString fun = readQCString(ds); TQCString fun = readQCString(ds);
tqWarning("Sending %d bytes from %s to %s. DCOPSend %s", length, fromApp.data(), toApp.data(), fun.data()); tqWarning("[dcopserver] Sending %d bytes from %s to %s. DCOPSend %s", length, fromApp.data(), toApp.data(), fun.data());
} }
#endif #endif
IceGetHeader( target->iceConn, majorOpcode, opcode, IceGetHeader( target->iceConn, majorOpcode, opcode,
@ -765,7 +765,7 @@ if (opcode == DCOPSend)
TQCString replyType; TQCString replyType;
TQByteArray replyData; TQByteArray replyData;
if ( !receive( toApp, obj, fun, data, replyType, replyData, iceConn ) ) { if ( !receive( toApp, obj, fun, data, replyType, replyData, iceConn ) ) {
tqWarning("%s failure: object '%s' has no function '%s'", toApp.data(), obj.data(), fun.data() ); tqWarning("[dcopserver] %s failure: object '%s' has no function '%s'", toApp.data(), obj.data(), fun.data() );
} }
} else if ( toApp[toApp.length()-1] == '*') { } else if ( toApp[toApp.length()-1] == '*') {
#ifdef DCOP_DEBUG #ifdef DCOP_DEBUG
@ -773,7 +773,7 @@ if (opcode == DCOPSend)
{ {
TQCString obj = readQCString(ds); TQCString obj = readQCString(ds);
TQCString fun = readQCString(ds); TQCString fun = readQCString(ds);
tqWarning("Sending %d bytes from %s to %s. DCOPSend %s", length, fromApp.data(), toApp.data(), fun.data()); tqWarning("[dcopserver] Sending %d bytes from %s to %s. DCOPSend %s", length, fromApp.data(), toApp.data(), fun.data());
} }
#endif #endif
// handle a multicast. // handle a multicast.
@ -815,7 +815,7 @@ if (opcode == DCOPCall)
{ {
TQCString obj = readQCString(ds); TQCString obj = readQCString(ds);
TQCString fun = readQCString(ds); TQCString fun = readQCString(ds);
tqWarning("Sending %d bytes from %s to %s. DCOPCall %s", length, fromApp.data(), toApp.data(), fun.data()); tqWarning("[dcopserver] Sending %d bytes from %s to %s. DCOPCall %s", length, fromApp.data(), toApp.data(), fun.data());
} }
#endif #endif
target->waitingForReply.append( iceConn ); target->waitingForReply.append( iceConn );
@ -839,7 +839,7 @@ if (opcode == DCOPCall)
TQByteArray data = readQByteArray(ds); TQByteArray data = readQByteArray(ds);
b = receive( toApp, obj, fun, data, replyType, replyData, iceConn ); b = receive( toApp, obj, fun, data, replyType, replyData, iceConn );
if ( !b ) if ( !b )
tqWarning("%s failure: object '%s' has no function '%s'", toApp.data(), obj.data(), fun.data() ); tqWarning("[dcopserver] %s failure: object '%s' has no function '%s'", toApp.data(), obj.data(), fun.data() );
} }
if (b) { if (b) {
@ -893,7 +893,7 @@ if (opcode == DCOPCall)
int datalen = ba.size(); int datalen = ba.size();
if ( !connreply ) if ( !connreply )
tqWarning("DCOPServer::DCOPReply for unknown connection."); tqWarning("[dcopserver] DCOPServer::DCOPReply for unknown connection.");
else { else {
conn->waitingForReply.removeRef( connreply->iceConn ); conn->waitingForReply.removeRef( connreply->iceConn );
if ( opcode == DCOPReplyWait ) if ( opcode == DCOPReplyWait )
@ -903,7 +903,7 @@ if (opcode == DCOPCall)
else else
{ // DCOPReply or DCOPReplyFailed { // DCOPReply or DCOPReplyFailed
if (!connreply->waitingOnReply.removeRef(iceConn)) if (!connreply->waitingOnReply.removeRef(iceConn))
tqWarning("DCOPServer::DCOPReply from %s to %s who wasn't waiting on one!", tqWarning("[dcopserver] DCOPReply from %s to %s who wasn't waiting on one!",
fromApp.data(), toApp.data()); fromApp.data(), toApp.data());
} }
IceGetHeader( connreply->iceConn, majorOpcode, opcode, IceGetHeader( connreply->iceConn, majorOpcode, opcode,
@ -917,7 +917,7 @@ if (opcode == DCOPCall)
} }
break; break;
default: default:
tqWarning("DCOPServer::processMessage unknown message"); tqWarning("[dcopserver] DCOPServer::processMessage unknown message");
} }
} }
@ -986,7 +986,7 @@ DCOPServer::DCOPServer(bool _suicide)
DCOPAuthCount, const_cast<char **>(DCOPAuthNames), DCOPAuthCount, const_cast<char **>(DCOPAuthNames),
DCOPClientAuthProcs, 0); DCOPClientAuthProcs, 0);
if (_kde_IceLastMajorOpcode < 1 ) if (_kde_IceLastMajorOpcode < 1 )
tqWarning("DCOPServer Error: incorrect major opcode!"); tqWarning("[dcopserver] DCOPServer Error: incorrect major opcode!");
the_server = this; the_server = this;
if (( majorOpcode = IceRegisterForProtocolReply (const_cast<char *>("DCOP"), if (( majorOpcode = IceRegisterForProtocolReply (const_cast<char *>("DCOP"),
@ -1004,7 +1004,7 @@ DCOPServer::DCOPServer(bool _suicide)
NULL /* IceIOErrorProc */ NULL /* IceIOErrorProc */
)) < 0) )) < 0)
{ {
tqWarning("Could not register DCOP protocol with ICE"); tqWarning("[dcopserver] Could not register DCOP protocol with ICE");
} }
char errormsg[256]; char errormsg[256];
@ -1012,7 +1012,7 @@ DCOPServer::DCOPServer(bool _suicide)
if (!IceListenForConnections (&numTransports, &listenObjs, if (!IceListenForConnections (&numTransports, &listenObjs,
256, errormsg)) 256, errormsg))
{ {
fprintf (stderr, "%s\n", errormsg); fprintf (stderr, "[dcopserver] %s\n", errormsg);
exit (1); exit (1);
} else { } else {
(void) umask(orig_umask); (void) umask(orig_umask);
@ -1020,7 +1020,7 @@ DCOPServer::DCOPServer(bool _suicide)
TQCString fName = DCOPClient::dcopServerFile(); TQCString fName = DCOPClient::dcopServerFile();
FILE *f; FILE *f;
if(!(f = ::fopen(fName.data(), "w+"))) { if(!(f = ::fopen(fName.data(), "w+"))) {
fprintf (stderr, "Can not create file %s: %s\n", fprintf (stderr, "[dcopserver] Can not create file %s: %s\n",
fName.data(), ::strerror(errno)); fName.data(), ::strerror(errno));
exit(1); exit(1);
} }
@ -1119,7 +1119,7 @@ DCOPConnection* DCOPServer::findApp( const TQCString& appId )
*/ */
void DCOPServer::slotCleanDeadConnections() void DCOPServer::slotCleanDeadConnections()
{ {
tqWarning("DCOP Cleaning up dead connections."); tqWarning("[dcopserver] DCOP Cleaning up dead connections.");
while(!deadConnections.isEmpty()) while(!deadConnections.isEmpty())
{ {
IceConn iceConn = deadConnections.take(0); IceConn iceConn = deadConnections.take(0);
@ -1158,9 +1158,9 @@ void DCOPServer::newClient( int /*socket*/ )
IceConn iceConn = IceAcceptConnection( static_cast<const DCOPListener*>(sender())->listenObj, &status); IceConn iceConn = IceAcceptConnection( static_cast<const DCOPListener*>(sender())->listenObj, &status);
if (!iceConn) { if (!iceConn) {
if (status == IceAcceptBadMalloc) if (status == IceAcceptBadMalloc)
tqWarning("Failed to alloc connection object!\n"); tqWarning("[dcopserver] Failed to alloc connection object!\n");
else // IceAcceptFailure else // IceAcceptFailure
tqWarning("Failed to accept ICE connection!\n"); tqWarning("[dcopserver] Failed to accept ICE connection!\n");
return; return;
} }
@ -1173,9 +1173,9 @@ void DCOPServer::newClient( int /*socket*/ )
if (cstatus != IceConnectAccepted) { if (cstatus != IceConnectAccepted) {
if (cstatus == IceConnectIOError) if (cstatus == IceConnectIOError)
tqWarning ("IO error opening ICE Connection!\n"); tqWarning ("[dcopserver] IO error opening ICE Connection!\n");
else else
tqWarning ("ICE Connection rejected!\n"); tqWarning ("[dcopserver] ICE Connection rejected!\n");
deadConnections.removeRef(iceConn); deadConnections.removeRef(iceConn);
(void) IceCloseConnection (iceConn); (void) IceCloseConnection (iceConn);
} }
@ -1206,7 +1206,7 @@ void DCOPServer::removeConnection( void* data )
IceConn iceConn = conn->waitingForReply.take(0); IceConn iceConn = conn->waitingForReply.take(0);
if (iceConn) { if (iceConn) {
DCOPConnection* target = clients.find( iceConn ); DCOPConnection* target = clients.find( iceConn );
tqWarning("DCOP aborting call from '%s' to '%s'", target ? target->appId.data() : "<unknown>" , conn->appId.data() ); tqWarning("[dcopserver] DCOP aborting call from '%s' to '%s'", target ? target->appId.data() : "<unknown>" , conn->appId.data() );
TQByteArray reply; TQByteArray reply;
DCOPMsg *pMsg; DCOPMsg *pMsg;
IceGetHeader( iceConn, majorOpcode, DCOPReplyFailed, IceGetHeader( iceConn, majorOpcode, DCOPReplyFailed,
@ -1217,9 +1217,9 @@ void DCOPServer::removeConnection( void* data )
DCOPIceSendData(iceConn, reply); DCOPIceSendData(iceConn, reply);
_DCOPIceSendEnd(); _DCOPIceSendEnd();
if (!target) if (!target)
tqWarning("DCOP Error: unknown target in waitingForReply"); tqWarning("[dcopserver] Unknown target in waitingForReply");
else if (!target->waitingOnReply.removeRef(conn->iceConn)) else if (!target->waitingOnReply.removeRef(conn->iceConn))
tqWarning("DCOP Error: client in waitingForReply wasn't waiting on reply"); tqWarning("[dcopserver] Client in waitingForReply wasn't waiting on reply");
} }
} }
@ -1228,7 +1228,7 @@ void DCOPServer::removeConnection( void* data )
IceConn iceConn = conn->waitingForDelayedReply.take(0); IceConn iceConn = conn->waitingForDelayedReply.take(0);
if (iceConn) { if (iceConn) {
DCOPConnection* target = clients.find( iceConn ); DCOPConnection* target = clients.find( iceConn );
tqWarning("DCOP aborting (delayed) call from '%s' to '%s'", target ? target->appId.data() : "<unknown>", conn->appId.data() ); tqWarning("[dcopserver] DCOP aborting (delayed) call from '%s' to '%s'", target ? target->appId.data() : "<unknown>", conn->appId.data() );
TQByteArray reply; TQByteArray reply;
DCOPMsg *pMsg; DCOPMsg *pMsg;
IceGetHeader( iceConn, majorOpcode, DCOPReplyFailed, IceGetHeader( iceConn, majorOpcode, DCOPReplyFailed,
@ -1239,9 +1239,9 @@ void DCOPServer::removeConnection( void* data )
DCOPIceSendData( iceConn, reply ); DCOPIceSendData( iceConn, reply );
_DCOPIceSendEnd(); _DCOPIceSendEnd();
if (!target) if (!target)
tqWarning("DCOP Error: unknown target in waitingForDelayedReply"); tqWarning("[dcopserver] Unknown target in waitingForDelayedReply");
else if (!target->waitingOnReply.removeRef(conn->iceConn)) else if (!target->waitingOnReply.removeRef(conn->iceConn))
tqWarning("DCOP Error: client in waitingForDelayedReply wasn't waiting on reply"); tqWarning("[dcopserver] Client in waitingForDelayedReply wasn't waiting on reply");
} }
} }
while (!conn->waitingOnReply.isEmpty()) while (!conn->waitingOnReply.isEmpty())
@ -1251,13 +1251,13 @@ void DCOPServer::removeConnection( void* data )
DCOPConnection* target = clients.find( iceConn ); DCOPConnection* target = clients.find( iceConn );
if (!target) if (!target)
{ {
tqWarning("DCOP Error: still waiting for answer from non-existing client."); tqWarning("[dcopserver] Still waiting for answer from non-existing client.");
continue; continue;
} }
tqWarning("DCOP aborting while waiting for answer from '%s'", target->appId.data()); tqWarning("[dcopserver] DCOP aborting while waiting for answer from '%s'", target->appId.data());
if (!target->waitingForReply.removeRef(conn->iceConn) && if (!target->waitingForReply.removeRef(conn->iceConn) &&
!target->waitingForDelayedReply.removeRef(conn->iceConn)) !target->waitingForDelayedReply.removeRef(conn->iceConn))
tqWarning("DCOP Error: called client has forgotten about caller"); tqWarning("[dcopserver] Called client has forgotten about caller");
} }
} }
@ -1290,7 +1290,7 @@ void DCOPServer::removeConnection( void* data )
void DCOPServer::slotTerminate() void DCOPServer::slotTerminate()
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf( stderr, "DCOPServer : slotTerminate() -> sending terminateKDE signal.\n" ); fprintf( stderr, "[dcopserver] slotTerminate() -> sending terminateKDE signal.\n" );
#endif #endif
TQByteArray data; TQByteArray data;
dcopSignals->emitSignal(0L /* dcopserver */, "terminateKDE()", data, false); dcopSignals->emitSignal(0L /* dcopserver */, "terminateKDE()", data, false);
@ -1302,7 +1302,7 @@ void DCOPServer::slotTerminate()
void DCOPServer::slotSuicide() void DCOPServer::slotSuicide()
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf( stderr, "DCOPServer : slotSuicide() -> exit.\n" ); fprintf( stderr, "[dcopserver] slotSuicide() -> exit.\n" );
#endif #endif
exit(0); exit(0);
} }
@ -1310,7 +1310,7 @@ void DCOPServer::slotSuicide()
void DCOPServer::slotShutdown() void DCOPServer::slotShutdown()
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf( stderr, "DCOPServer : slotShutdown() -> waiting for clients to disconnect.\n" ); fprintf( stderr, "[dcopserver] slotShutdown() -> waiting for clients to disconnect.\n" );
#endif #endif
char c; char c;
#ifndef Q_OS_WIN #ifndef Q_OS_WIN
@ -1332,7 +1332,7 @@ void DCOPServer::slotShutdown()
void DCOPServer::slotExit() void DCOPServer::slotExit()
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf( stderr, "DCOPServer : slotExit() -> exit.\n" ); fprintf( stderr, "[dcopserver] slotExit() -> exit.\n" );
#endif #endif
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
SetEvent(m_evTerminate); SetEvent(m_evTerminate);
@ -1629,10 +1629,10 @@ static bool isRunning(const TQCString &fName, bool printNetworkId = false)
f.close(); f.close();
if (ok && pid && (kill(pid, SIGHUP) == 0)) { if (ok && pid && (kill(pid, SIGHUP) == 0)) {
if (printNetworkId) if (printNetworkId)
tqWarning("%s", contents.left(pos).data()); tqWarning("[dcopserver] %s", contents.left(pos).data());
else else
tqWarning( "---------------------------------\n" tqWarning( "---------------------------------\n"
"It looks like dcopserver is already running. If you are sure\n" "[dcopserver] It looks like dcopserver is already running. If you are sure\n"
"that it is not already running, remove %s\n" "that it is not already running, remove %s\n"
"and start dcopserver again.\n" "and start dcopserver again.\n"
"---------------------------------\n", "---------------------------------\n",
@ -1719,8 +1719,8 @@ extern "C" DCOP_EXPORT int kdemain( int argc, char* argv[] )
if (retcode != 0) if (retcode != 0)
{ {
tqWarning("dcopserver: Could not raise limit on number of open files."); tqWarning("[dcopserver] Could not raise limit on number of open files.");
tqWarning("dcopserver: Current limit = %d", cur_limit); tqWarning("[dcopserver] Current limit = %d", cur_limit);
} }
} }
} }
@ -1743,7 +1743,7 @@ extern "C" DCOP_EXPORT int kdemain( int argc, char* argv[] )
if (client.attach()) if (client.attach())
return 0; return 0;
} }
tqWarning("DCOPServer self-test failed."); tqWarning("[dcopserver] DCOPServer self-test failed.");
system(findDcopserverShutdown()+" --kill"); system(findDcopserverShutdown()+" --kill");
return 1; return 1;
} }

@ -26,7 +26,7 @@ DWORD WINAPI DCOPServer::TerminatorThread(void * pParam)
DCOPServer * server = (DCOPServer*)pParam; DCOPServer * server = (DCOPServer*)pParam;
WaitForSingleObject(server->m_evTerminate,INFINITE); WaitForSingleObject(server->m_evTerminate,INFINITE);
fprintf( stderr, "DCOPServer : terminate event signaled\n" ); fprintf( stderr, "[dcopserver_win] Terminate event signaled\n" );
if(!server->shutdown) { if(!server->shutdown) {
ResetEvent(server->m_evTerminate); ResetEvent(server->m_evTerminate);
@ -36,9 +36,9 @@ DWORD WINAPI DCOPServer::TerminatorThread(void * pParam)
// Need some further event processing to get the timer signals // Need some further event processing to get the timer signals
while(WaitForSingleObject(server->m_evTerminate,100) != WAIT_OBJECT_0) while(WaitForSingleObject(server->m_evTerminate,100) != WAIT_OBJECT_0)
TQApplication::eventLoop()->processEvents(TQEventLoop::ExcludeUserInput|TQEventLoop::ExcludeSocketNotifiers); TQApplication::eventLoop()->processEvents(TQEventLoop::ExcludeUserInput|TQEventLoop::ExcludeSocketNotifiers);
fprintf( stderr, "DCOPServer : terminated event signaled the last time\n" ); fprintf( stderr, "[dcopserver_win] Terminated event signaled the last time\n" );
} }
fprintf( stderr, "DCOPServer : terminate thread teminated\n" ); fprintf( stderr, "[dcopserver_win] Terminate thread teminated\n" );
return 0; return 0;
} }

@ -535,7 +535,7 @@ int main(int argc, char *argv[])
// we're not interested // we're not interested
toplevel->statusBar()->hide(); toplevel->statusBar()->hide();
if (!getenv("KDE_DEBUG")) { if (!getenv("TDE_DEBUG")) {
// set ulimits // set ulimits
rlimit vmem_limit = { 256*1024*1024, RLIM_INFINITY }; // 256Mb Memory should suffice rlimit vmem_limit = { 256*1024*1024, RLIM_INFINITY }; // 256Mb Memory should suffice
setrlimit(RLIMIT_AS, &vmem_limit); setrlimit(RLIMIT_AS, &vmem_limit);

@ -102,7 +102,7 @@ static KService::Ptr locateModule(const TQCString& module)
return 0; return 0;
} }
// avoid finding random non-kde applications // avoid finding random non-TDE applications
if ( module.left( 4 ) != "kde-" && service->library().isEmpty() ) if ( module.left( 4 ) != "kde-" && service->library().isEmpty() )
return locateModule( "kde-" + module ); return locateModule( "kde-" + module );

@ -108,7 +108,7 @@ static TQString sycocaPath()
} }
else else
{ {
TQCString ksycoca_env = getenv("KDESYCOCA"); TQCString ksycoca_env = getenv("TDESYCOCA");
if (ksycoca_env.isEmpty()) if (ksycoca_env.isEmpty())
path = KGlobal::dirs()->saveLocation("cache")+"ksycoca"; path = KGlobal::dirs()->saveLocation("cache")+"ksycoca";
else else
@ -120,7 +120,7 @@ static TQString sycocaPath()
static TQString oldSycocaPath() static TQString oldSycocaPath()
{ {
TQCString ksycoca_env = getenv("KDESYCOCA"); TQCString ksycoca_env = getenv("TDESYCOCA");
if (ksycoca_env.isEmpty()) if (ksycoca_env.isEmpty())
return KGlobal::dirs()->saveLocation("tmp")+"ksycoca"; return KGlobal::dirs()->saveLocation("tmp")+"ksycoca";
@ -476,7 +476,7 @@ bool KBuildSycoca::recreate()
} }
if (database->status() != 0) if (database->status() != 0)
{ {
fprintf(stderr, "kbuildsycoca: ERROR creating database '%s'! %s\n", path.local8Bit().data(),strerror(database->status())); fprintf(stderr, "[kbuildsycoca] ERROR creating database '%s'! %s\n", path.local8Bit().data(),strerror(database->status()));
#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 kbuildsycoca, so-called "kbuildsycocaw". // GUI version of kbuildsycoca, so-called "kbuildsycocaw".
if (!silent) if (!silent)
@ -505,11 +505,11 @@ bool KBuildSycoca::recreate()
m_str = 0L; m_str = 0L;
if (!database->close()) if (!database->close())
{ {
fprintf(stderr, "kbuildsycoca: ERROR writing database '%s'!\n", database->name().local8Bit().data()); fprintf(stderr, "[kbuildsycoca] ERROR writing database '%s'!\n", database->name().local8Bit().data());
fprintf(stderr, "kbuildsycoca: Disk full?\n"); fprintf(stderr, "[kbuildsycoca] Disk full?\n");
#ifdef KBUILDSYCOCA_GUI #ifdef KBUILDSYCOCA_GUI
if (!silent) if (!silent)
KMessageBox::error(0, i18n("Error writing database '%1'.\nCheck that the permissions are correct on the directory and the disk is not full.\n").arg(path.local8Bit().data()), i18n("KBuildSycoca")); KMessageBox::error(0, i18n("[kbuildsycoca] Error writing database '%1'.\nCheck that the permissions are correct on the directory and the disk is not full.\n").arg(path.local8Bit().data()), i18n("KBuildSycoca"));
#endif #endif
return false; return false;
} }
@ -777,14 +777,14 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
TQCString registeredName = dcopClient->registerAs(appName, false); TQCString registeredName = dcopClient->registerAs(appName, false);
if (registeredName.isEmpty()) if (registeredName.isEmpty())
{ {
fprintf(stderr, "Warning: %s is unable to register with DCOP.\n", appName); fprintf(stderr, "[kbuildsycoca] Warning: %s is unable to register with DCOP.\n", appName);
break; break;
} }
else if (registeredName == appName) else if (registeredName == appName)
{ {
break; // Go break; // Go
} }
fprintf(stderr, "Waiting for already running %s to finish.\n", appName); fprintf(stderr, "[kbuildsycoca] Waiting for already running %s to finish.\n", appName);
dcopClient->setNotifications( true ); dcopClient->setNotifications( true );
while (dcopClient->isApplicationRegistered(appName)) while (dcopClient->isApplicationRegistered(appName))
@ -796,7 +796,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
} }
dcopClient->setNotifications( false ); dcopClient->setNotifications( false );
} }
fprintf(stderr, "%s running...\n", appName); fprintf(stderr, "[kbuildsycoca] %s running...\n", appName);
bool checkfiles = bGlobalDatabase || args->isSet("checkfiles"); bool checkfiles = bGlobalDatabase || args->isSet("checkfiles");
@ -870,7 +870,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
g_ctimeDict = 0; g_ctimeDict = 0;
if (incremental) if (incremental)
{ {
tqWarning("Reusing existing ksycoca"); tqWarning("[kbuildsycoca] Reusing existing ksycoca.");
KSycoca *oldSycoca = KSycoca::self(); KSycoca *oldSycoca = KSycoca::self();
KSycocaFactoryList *factories = new KSycocaFactoryList; KSycocaFactoryList *factories = new KSycocaFactoryList;
g_allEntries = new KSycocaEntryListList; g_allEntries = new KSycocaEntryListList;
@ -950,7 +950,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
#ifdef KBUILDSYCOCA_GUI #ifdef KBUILDSYCOCA_GUI
if (!silent) { if (!silent) {
progress.close(); progress.close();
KMessageBox::information(0, i18n("Configuration information reloaded successfully."), capt); KMessageBox::information(0, i18n("[kbuildsycoca] Configuration information reloaded successfully."), capt);
} }
#endif #endif
return 0; return 0;

@ -108,10 +108,10 @@ static void findMenuEntry(KServiceGroup::Ptr parent, const TQString &name, const
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
KLocale::setMainCatalogue("tdelibs"); KLocale::setMainCatalogue("tdelibs");
const char *description = I18N_NOOP("KDE Menu query tool.\n" const char *description = I18N_NOOP("TDE Menu query tool.\n"
"This tool can be used to find in which menu a specific application is shown.\n" "This tool can be used to find in which menu a specific application is shown.\n"
"The --highlight option can be used to visually indicate to the user where\n" "The --highlight option can be used to visually indicate to the user where\n"
"in the KDE menu a specific application is located."); "in the TDE menu a specific application is located.");
KAboutData d(appName, I18N_NOOP("kde-menu"), appVersion, KAboutData d(appName, I18N_NOOP("kde-menu"), appVersion,
description, description,

@ -104,7 +104,7 @@ Kded::Kded(bool checkUpdates, bool new_startup)
{ {
_self = this; _self = this;
TQCString cPath; TQCString cPath;
TQCString ksycoca_env = getenv("KDESYCOCA"); TQCString ksycoca_env = getenv("TDESYCOCA");
if (ksycoca_env.isEmpty()) if (ksycoca_env.isEmpty())
cPath = TQFile::encodeName(KGlobal::dirs()->saveLocation("tmp")+"ksycoca"); cPath = TQFile::encodeName(KGlobal::dirs()->saveLocation("tmp")+"ksycoca");
else else
@ -918,7 +918,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
if (!KUniqueApplication::start()) if (!KUniqueApplication::start())
{ {
fprintf(stderr, "KDE Daemon (kded) already running.\n"); fprintf(stderr, "[kded] KDE Daemon (kded) already running.\n");
exit(0); exit(0);
} }

@ -481,7 +481,7 @@ int main(int argc, char *argv[])
{ {
TQString xvfbPath = KStandardDirs::findExe("Xvfb"); TQString xvfbPath = KStandardDirs::findExe("Xvfb");
if ( xvfbPath.isEmpty() ) { if ( xvfbPath.isEmpty() ) {
fprintf( stderr, "ERROR: We need Xvfb to be installed for reliable results\n" ); fprintf( stderr, "[test_regression] ERROR: We need Xvfb to be installed for reliable results\n" );
exit( 1 ); exit( 1 );
} }
@ -578,7 +578,7 @@ int main(int argc, char *argv[])
// we're not interested // we're not interested
toplevel->statusBar()->hide(); toplevel->statusBar()->hide();
if (!getenv("KDE_DEBUG")) { if (!getenv("TDE_DEBUG")) {
// set ulimits // set ulimits
rlimit vmem_limit = { 256*1024*1024, RLIM_INFINITY }; // 256Mb Memory should suffice rlimit vmem_limit = { 256*1024*1024, RLIM_INFINITY }; // 256Mb Memory should suffice
setrlimit(RLIMIT_AS, &vmem_limit); setrlimit(RLIMIT_AS, &vmem_limit);

@ -238,7 +238,7 @@ static void close_fds()
static void exitWithErrorMsg(const TQString &errorMsg) static void exitWithErrorMsg(const TQString &errorMsg)
{ {
fprintf( stderr, "%s\n", errorMsg.local8Bit().data() ); fprintf( stderr, "[kinit] %s\n", errorMsg.local8Bit().data() );
TQCString utf8ErrorMsg = errorMsg.utf8(); TQCString utf8ErrorMsg = errorMsg.utf8();
d.result = 3; // Error with msg d.result = 3; // Error with msg
write(d.fd[1], &d.result, 1); write(d.fd[1], &d.result, 1);
@ -256,18 +256,18 @@ static void setup_tty( const char* tty )
int fd = open( tty, O_WRONLY ); int fd = open( tty, O_WRONLY );
if( fd < 0 ) if( fd < 0 )
{ {
fprintf(stderr, "tdeinit: couldn't open() %s: %s\n", tty, strerror (errno) ); fprintf(stderr, "[kinit] couldn't open() %s: %s\n", tty, strerror (errno) );
return; return;
} }
if( dup2( fd, STDOUT_FILENO ) < 0 ) if( dup2( fd, STDOUT_FILENO ) < 0 )
{ {
fprintf(stderr, "tdeinit: couldn't dup2() %s: %s\n", tty, strerror (errno) ); fprintf(stderr, "[kinit] couldn't dup2() %s: %s\n", tty, strerror (errno) );
close( fd ); close( fd );
return; return;
} }
if( dup2( fd, STDERR_FILENO ) < 0 ) if( dup2( fd, STDERR_FILENO ) < 0 )
{ {
fprintf(stderr, "tdeinit: couldn't dup2() %s: %s\n", tty, strerror (errno) ); fprintf(stderr, "[kinit] couldn't dup2() %s: %s\n", tty, strerror (errno) );
close( fd ); close( fd );
return; return;
} }
@ -435,7 +435,7 @@ static pid_t launch(int argc, const char *_name, const char *args,
*/ */
if (0 > socketpair(AF_UNIX, SOCK_STREAM, 0, d.launcher)) if (0 > socketpair(AF_UNIX, SOCK_STREAM, 0, d.launcher))
{ {
perror("tdeinit: socketpair() failed!\n"); perror("[kinit] socketpair() failed!\n");
exit(255); exit(255);
} }
launcher = 1; launcher = 1;
@ -470,7 +470,7 @@ static pid_t launch(int argc, const char *_name, const char *args,
if (0 > pipe(d.fd)) if (0 > pipe(d.fd))
{ {
perror("tdeinit: pipe() failed!\n"); perror("[kinit] pipe() failed!\n");
d.result = 3; d.result = 3;
d.errorMsg = i18n("Unable to start new process.\n" d.errorMsg = i18n("Unable to start new process.\n"
"The system may have reached the maximum number of open files possible or the maximum number of open files that you are allowed to use has been reached.").utf8(); "The system may have reached the maximum number of open files possible or the maximum number of open files that you are allowed to use has been reached.").utf8();
@ -492,7 +492,7 @@ static pid_t launch(int argc, const char *_name, const char *args,
d.fork = fork(); d.fork = fork();
switch(d.fork) { switch(d.fork) {
case -1: case -1:
perror("tdeinit: fork() failed!\n"); perror("[kinit] fork() failed!\n");
d.result = 3; d.result = 3;
d.errorMsg = i18n("Unable to create new process.\n" d.errorMsg = i18n("Unable to create new process.\n"
"The system may have reached the maximum number of processes possible or the maximum number of processes that you are allowed to use has been reached.").utf8(); "The system may have reached the maximum number of processes possible or the maximum number of processes that you are allowed to use has been reached.").utf8();
@ -575,11 +575,11 @@ static pid_t launch(int argc, const char *_name, const char *args,
/* set the process name, so that killall works like intended */ /* set the process name, so that killall works like intended */
r = prctl(PR_SET_NAME, (unsigned long) name.data(), 0, 0, 0); r = prctl(PR_SET_NAME, (unsigned long) name.data(), 0, 0, 0);
if ( r == 0 ) if ( r == 0 )
tdeinit_setproctitle( "%s [tdeinit]%s", name.data(), procTitle.data() ? procTitle.data() : "" ); tdeinit_setproctitle( "%s [kinit]%s", name.data(), procTitle.data() ? procTitle.data() : "" );
else else
tdeinit_setproctitle( "tdeinit: %s%s", name.data(), procTitle.data() ? procTitle.data() : "" ); tdeinit_setproctitle( "[kinit] %s%s", name.data(), procTitle.data() ? procTitle.data() : "" );
#else #else
tdeinit_setproctitle( "tdeinit: %s%s", name.data(), procTitle.data() ? procTitle.data() : "" ); tdeinit_setproctitle( "[kinit] %s%s", name.data(), procTitle.data() ? procTitle.data() : "" );
#endif #endif
} }
@ -590,7 +590,7 @@ static pid_t launch(int argc, const char *_name, const char *args,
exitWithErrorMsg(errorMsg); exitWithErrorMsg(errorMsg);
} }
if ( getenv("KDE_IS_PRELINKED") && !execpath.isEmpty() && !launcher) if ( getenv("TDE_IS_PRELINKED") && !execpath.isEmpty() && !launcher)
libpath.truncate(0); libpath.truncate(0);
if ( !libpath.isEmpty() ) if ( !libpath.isEmpty() )
@ -659,9 +659,9 @@ static pid_t launch(int argc, const char *_name, const char *args,
d.func = (int (*)(int, char *[])) d.sym; d.func = (int (*)(int, char *[])) d.sym;
if (d.debug_wait) if (d.debug_wait)
{ {
fprintf(stderr, "tdeinit: Suspending process\n" fprintf(stderr, "[kinit] Suspending process\n"
"tdeinit: 'gdb tdeinit %d' to debug\n" "[kinit] 'gdb tdeinit %d' to debug\n"
"tdeinit: 'kill -SIGCONT %d' to continue\n", "[kinit] 'kill -SIGCONT %d' to continue\n",
getpid(), getpid()); getpid(), getpid());
kill(getpid(), SIGSTOP); kill(getpid(), SIGSTOP);
} }
@ -690,7 +690,7 @@ static pid_t launch(int argc, const char *_name, const char *args,
if (d.result == 2) if (d.result == 2)
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "Could not load library! Trying exec....\n"); fprintf(stderr, "[kinit] %s is executable and not a library. Launching with exec.\n", _name );
#endif #endif
exec = true; exec = true;
continue; continue;
@ -728,11 +728,11 @@ static pid_t launch(int argc, const char *_name, const char *args,
} }
if (d.n == 0) if (d.n == 0)
{ {
perror("tdeinit: Pipe closed unexpectedly"); perror("[kinit] Pipe closed unexpectedly");
d.result = 1; // Error d.result = 1; // Error
break; break;
} }
perror("tdeinit: Error reading from pipe"); perror("[kinit] Error reading from pipe");
d.result = 1; // Error d.result = 1; // Error
break; break;
} }
@ -777,20 +777,20 @@ static void init_signals()
if (pipe(d.deadpipe) != 0) if (pipe(d.deadpipe) != 0)
{ {
perror("tdeinit: Aborting. Can't create pipe: "); perror("[kinit] Aborting. Can't create pipe: ");
exit(255); exit(255);
} }
options = fcntl(d.deadpipe[0], F_GETFL); options = fcntl(d.deadpipe[0], F_GETFL);
if (options == -1) if (options == -1)
{ {
perror("tdeinit: Aborting. Can't make pipe non-blocking: "); perror("[kinit] Aborting. Can't make pipe non-blocking: ");
exit(255); exit(255);
} }
if (fcntl(d.deadpipe[0], F_SETFL, options | O_NONBLOCK) == -1) if (fcntl(d.deadpipe[0], F_SETFL, options | O_NONBLOCK) == -1)
{ {
perror("tdeinit: Aborting. Can't make pipe non-blocking: "); perror("[kinit] Aborting. Can't make pipe non-blocking: ");
exit(255); exit(255);
} }
@ -831,24 +831,24 @@ static void init_tdeinit_socket()
int max_tries = 10; int max_tries = 10;
if (!home_dir || !home_dir[0]) if (!home_dir || !home_dir[0])
{ {
fprintf(stderr, "tdeinit: Aborting. $HOME not set!"); fprintf(stderr, "[kinit] Aborting. $HOME not set!");
exit(255); exit(255);
} }
chdir(home_dir); chdir(home_dir);
{ {
TQCString path = home_dir; TQCString path = home_dir;
TQCString readOnly = getenv("KDE_HOME_READONLY"); TQCString readOnly = getenv("TDE_HOME_READONLY");
if (access(path.data(), R_OK|W_OK)) if (access(path.data(), R_OK|W_OK))
{ {
if (errno == ENOENT) if (errno == ENOENT)
{ {
fprintf(stderr, "tdeinit: Aborting. $HOME directory (%s) does not exist.\n", path.data()); fprintf(stderr, "[kinit] Aborting. $HOME directory (%s) does not exist.\n", path.data());
exit(255); exit(255);
} }
else if (readOnly.isEmpty()) else if (readOnly.isEmpty())
{ {
fprintf(stderr, "tdeinit: Aborting. No write access to $HOME directory (%s).\n", path.data()); fprintf(stderr, "[kinit] Aborting. No write access to $HOME directory (%s).\n", path.data());
exit(255); exit(255);
} }
} }
@ -860,7 +860,7 @@ static void init_tdeinit_socket()
} }
if (access(path.data(), R_OK|W_OK) && (errno != ENOENT)) if (access(path.data(), R_OK|W_OK) && (errno != ENOENT))
{ {
fprintf(stderr, "tdeinit: Aborting. No write access to '%s'.\n", path.data()); fprintf(stderr, "[kinit] Aborting. No write access to '%s'.\n", path.data());
exit(255); exit(255);
} }
} }
@ -874,7 +874,7 @@ static void init_tdeinit_socket()
int s; int s;
struct sockaddr_un server; struct sockaddr_un server;
// fprintf(stderr, "tdeinit: Warning, socket_file already exists!\n"); // fprintf(stderr, "[kinit] Warning, socket_file already exists!\n");
/* /*
* create the socket stream * create the socket stream
*/ */
@ -890,7 +890,7 @@ static void init_tdeinit_socket()
if(connect(s, (struct sockaddr *)&server, socklen) == 0) if(connect(s, (struct sockaddr *)&server, socklen) == 0)
{ {
fprintf(stderr, "tdeinit: Shutting down running client.\n"); fprintf(stderr, "[kinit] Shutting down running client.\n");
klauncher_header request_header; klauncher_header request_header;
request_header.cmd = LAUNCHER_TERMINATE_TDEINIT; request_header.cmd = LAUNCHER_TERMINATE_TDEINIT;
request_header.arg_length = 0; request_header.arg_length = 0;
@ -908,21 +908,21 @@ static void init_tdeinit_socket()
d.wrapper = socket(PF_UNIX, SOCK_STREAM, 0); d.wrapper = socket(PF_UNIX, SOCK_STREAM, 0);
if (d.wrapper < 0) if (d.wrapper < 0)
{ {
perror("tdeinit: Aborting. socket() failed: "); perror("[kinit] Aborting. socket() failed: ");
exit(255); exit(255);
} }
options = fcntl(d.wrapper, F_GETFL); options = fcntl(d.wrapper, F_GETFL);
if (options == -1) if (options == -1)
{ {
perror("tdeinit: Aborting. Can't make socket non-blocking: "); perror("[kinit] Aborting. Can't make socket non-blocking: ");
close(d.wrapper); close(d.wrapper);
exit(255); exit(255);
} }
if (fcntl(d.wrapper, F_SETFL, options | O_NONBLOCK) == -1) if (fcntl(d.wrapper, F_SETFL, options | O_NONBLOCK) == -1)
{ {
perror("tdeinit: Aborting. Can't make socket non-blocking: "); perror("[kinit] Aborting. Can't make socket non-blocking: ");
close(d.wrapper); close(d.wrapper);
exit(255); exit(255);
} }
@ -936,7 +936,7 @@ static void init_tdeinit_socket()
if(bind(d.wrapper, (struct sockaddr *)&sa, socklen) != 0) if(bind(d.wrapper, (struct sockaddr *)&sa, socklen) != 0)
{ {
if (max_tries == 0) { if (max_tries == 0) {
perror("tdeinit: Aborting. bind() failed: "); perror("[kinit] Aborting. bind() failed: ");
fprintf(stderr, "Could not bind to socket '%s'\n", sock_file); fprintf(stderr, "Could not bind to socket '%s'\n", sock_file);
close(d.wrapper); close(d.wrapper);
exit(255); exit(255);
@ -949,7 +949,7 @@ static void init_tdeinit_socket()
/** set permissions **/ /** set permissions **/
if (chmod(sock_file, 0600) != 0) if (chmod(sock_file, 0600) != 0)
{ {
perror("tdeinit: Aborting. Can't set permissions on socket: "); perror("[kinit] Aborting. Can't set permissions on socket: ");
fprintf(stderr, "Wrong permissions of socket '%s'\n", sock_file); fprintf(stderr, "Wrong permissions of socket '%s'\n", sock_file);
unlink(sock_file); unlink(sock_file);
close(d.wrapper); close(d.wrapper);
@ -958,7 +958,7 @@ static void init_tdeinit_socket()
if(listen(d.wrapper, SOMAXCONN) < 0) if(listen(d.wrapper, SOMAXCONN) < 0)
{ {
perror("tdeinit: Aborting. listen() failed: "); perror("[kinit] Aborting. listen() failed: ");
unlink(sock_file); unlink(sock_file);
close(d.wrapper); close(d.wrapper);
exit(255); exit(255);
@ -968,14 +968,14 @@ static void init_tdeinit_socket()
d.wrapper_old = socket(PF_UNIX, SOCK_STREAM, 0); d.wrapper_old = socket(PF_UNIX, SOCK_STREAM, 0);
if (d.wrapper_old < 0) if (d.wrapper_old < 0)
{ {
// perror("tdeinit: Aborting. socket() failed: "); // perror("[kinit] Aborting. socket() failed: ");
return; return;
} }
options = fcntl(d.wrapper_old, F_GETFL); options = fcntl(d.wrapper_old, F_GETFL);
if (options == -1) if (options == -1)
{ {
// perror("tdeinit: Aborting. Can't make socket non-blocking: "); // perror("[kinit] Aborting. Can't make socket non-blocking: ");
close(d.wrapper_old); close(d.wrapper_old);
d.wrapper_old = 0; d.wrapper_old = 0;
return; return;
@ -983,7 +983,7 @@ static void init_tdeinit_socket()
if (fcntl(d.wrapper_old, F_SETFL, options | O_NONBLOCK) == -1) if (fcntl(d.wrapper_old, F_SETFL, options | O_NONBLOCK) == -1)
{ {
// perror("tdeinit: Aborting. Can't make socket non-blocking: "); // perror("[kinit] Aborting. Can't make socket non-blocking: ");
close(d.wrapper_old); close(d.wrapper_old);
d.wrapper_old = 0; d.wrapper_old = 0;
return; return;
@ -999,7 +999,7 @@ static void init_tdeinit_socket()
if(bind(d.wrapper_old, (struct sockaddr *)&sa_old, socklen) != 0) if(bind(d.wrapper_old, (struct sockaddr *)&sa_old, socklen) != 0)
{ {
if (max_tries == 0) { if (max_tries == 0) {
// perror("tdeinit: Aborting. bind() failed: "); // perror("[kinit] Aborting. bind() failed: ");
fprintf(stderr, "Could not bind to socket '%s'\n", sock_file_old); fprintf(stderr, "Could not bind to socket '%s'\n", sock_file_old);
close(d.wrapper_old); close(d.wrapper_old);
d.wrapper_old = 0; d.wrapper_old = 0;
@ -1022,7 +1022,7 @@ static void init_tdeinit_socket()
if(listen(d.wrapper_old, SOMAXCONN) < 0) if(listen(d.wrapper_old, SOMAXCONN) < 0)
{ {
// perror("tdeinit: Aborting. listen() failed: "); // perror("[kinit] Aborting. listen() failed: ");
unlink(sock_file_old); unlink(sock_file_old);
close(d.wrapper_old); close(d.wrapper_old);
d.wrapper_old = 0; d.wrapper_old = 0;
@ -1069,14 +1069,14 @@ static void launcher_died()
if (!d.launcher_ok) if (!d.launcher_ok)
{ {
/* This is bad. */ /* This is bad. */
fprintf(stderr, "tdeinit: Communication error with launcher. Exiting!\n"); fprintf(stderr, "[kinit] Communication error with launcher. Exiting!\n");
::exit(255); ::exit(255);
return; return;
} }
// KLauncher died... restart // KLauncher died... restart
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "tdeinit: KLauncher died unexpectedly.\n"); fprintf(stderr, "[kinit] KLauncher died unexpectedly.\n");
#endif #endif
// Make sure it's really dead. // Make sure it's really dead.
if (d.launcher_pid) if (d.launcher_pid)
@ -1092,7 +1092,7 @@ static void launcher_died()
pid_t pid = launch( 1, "klauncher", 0 ); pid_t pid = launch( 1, "klauncher", 0 );
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "tdeinit: Relaunching KLauncher, pid = %ld result = %d\n", (long) pid, d.result); fprintf(stderr, "[kinit] Relaunching KLauncher, pid = %ld result = %d\n", (long) pid, d.result);
#endif #endif
} }
@ -1156,7 +1156,7 @@ static void handle_launcher_request(int sock = -1)
const char *startup_id_str = "0"; const char *startup_id_str = "0";
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "tdeinit: Got %s '%s' from %s.\n", fprintf(stderr, "[kinit] Got %s '%s' from %s.\n",
(request_header.cmd == LAUNCHER_EXEC ? "EXEC" : (request_header.cmd == LAUNCHER_EXEC ? "EXEC" :
(request_header.cmd == LAUNCHER_EXT_EXEC ? "EXT_EXEC" : (request_header.cmd == LAUNCHER_EXT_EXEC ? "EXT_EXEC" :
(request_header.cmd == LAUNCHER_EXEC_NEW ? "EXEC_NEW" : (request_header.cmd == LAUNCHER_EXEC_NEW ? "EXEC_NEW" :
@ -1218,7 +1218,7 @@ static void handle_launcher_request(int sock = -1)
if ((arg_n - request_data) != request_header.arg_length) if ((arg_n - request_data) != request_header.arg_length)
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "tdeinit: EXEC request has invalid format.\n"); fprintf(stderr, "[kinit] EXEC request has invalid format.\n");
#endif #endif
free(request_data); free(request_data);
d.debug_wait = false; d.debug_wait = false;
@ -1227,7 +1227,7 @@ static void handle_launcher_request(int sock = -1)
// support for the old a bit broken way of setting DISPLAY for multihead // support for the old a bit broken way of setting DISPLAY for multihead
TQCString olddisplay = getenv(DISPLAY); TQCString olddisplay = getenv(DISPLAY);
TQCString kdedisplay = getenv("KDE_DISPLAY"); TQCString kdedisplay = getenv("TDE_DISPLAY");
bool reset_display = (! olddisplay.isEmpty() && bool reset_display = (! olddisplay.isEmpty() &&
! kdedisplay.isEmpty() && ! kdedisplay.isEmpty() &&
olddisplay != kdedisplay); olddisplay != kdedisplay);
@ -1240,7 +1240,7 @@ static void handle_launcher_request(int sock = -1)
tty, avoid_loops, startup_id_str ); tty, avoid_loops, startup_id_str );
if (reset_display) { if (reset_display) {
unsetenv("KDE_DISPLAY"); unsetenv("TDE_DISPLAY");
setenv(DISPLAY, olddisplay, true); setenv(DISPLAY, olddisplay, true);
} }
@ -1273,16 +1273,16 @@ static void handle_launcher_request(int sock = -1)
#ifndef NDEBUG #ifndef NDEBUG
if (launcher) if (launcher)
fprintf(stderr, "tdeinit: Got SETENV '%s=%s' from klauncher.\n", env_name, env_value); fprintf(stderr, "[kinit] Got SETENV '%s=%s' from klauncher.\n", env_name, env_value);
else else
fprintf(stderr, "tdeinit: Got SETENV '%s=%s' from socket.\n", env_name, env_value); fprintf(stderr, "[kinit] Got SETENV '%s=%s' from socket.\n", env_name, env_value);
#endif #endif
if ( request_header.arg_length != if ( request_header.arg_length !=
(int) (strlen(env_name) + strlen(env_value) + 2)) (int) (strlen(env_name) + strlen(env_value) + 2))
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "tdeinit: SETENV request has invalid format.\n"); fprintf(stderr, "[kinit] SETENV request has invalid format.\n");
#endif #endif
free(request_data); free(request_data);
return; return;
@ -1292,7 +1292,7 @@ static void handle_launcher_request(int sock = -1)
else if (request_header.cmd == LAUNCHER_TERMINATE_KDE) else if (request_header.cmd == LAUNCHER_TERMINATE_KDE)
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr,"tdeinit: terminate KDE.\n"); fprintf(stderr,"[kinit] Terminating Trinity.\n");
#endif #endif
#ifdef Q_WS_X11 #ifdef Q_WS_X11
tdeinit_xio_errhandler( 0L ); tdeinit_xio_errhandler( 0L );
@ -1301,7 +1301,7 @@ static void handle_launcher_request(int sock = -1)
else if (request_header.cmd == LAUNCHER_TERMINATE_TDEINIT) else if (request_header.cmd == LAUNCHER_TERMINATE_TDEINIT)
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr,"tdeinit: Killing tdeinit/klauncher.\n"); fprintf(stderr,"[kinit] Killing tdeinit/klauncher.\n");
#endif #endif
if (d.launcher_pid) if (d.launcher_pid)
kill(d.launcher_pid, SIGTERM); kill(d.launcher_pid, SIGTERM);
@ -1311,7 +1311,7 @@ static void handle_launcher_request(int sock = -1)
else if (request_header.cmd == LAUNCHER_DEBUG_WAIT) else if (request_header.cmd == LAUNCHER_DEBUG_WAIT)
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr,"tdeinit: Debug wait activated.\n"); fprintf(stderr,"[kinit] Debug wait activated.\n");
#endif #endif
d.debug_wait = true; d.debug_wait = true;
} }
@ -1351,7 +1351,7 @@ static void handle_requests(pid_t waitForPid)
if (exit_pid > 0) if (exit_pid > 0)
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "tdeinit: PID %ld terminated.\n", (long) exit_pid); fprintf(stderr, "[kinit] PID %ld terminated.\n", (long) exit_pid);
#endif #endif
if (waitForPid && (exit_pid == waitForPid)) if (waitForPid && (exit_pid == waitForPid))
return; return;
@ -1513,7 +1513,7 @@ static void tdeinit_library_path()
TQCString display = getenv(DISPLAY); TQCString display = getenv(DISPLAY);
if (display.isEmpty()) if (display.isEmpty())
{ {
fprintf(stderr, "tdeinit: Aborting. $"DISPLAY" is not set.\n"); fprintf(stderr, "[kinit] Aborting. $"DISPLAY" is not set.\n");
exit(255); exit(255);
} }
int i; int i;
@ -1523,7 +1523,7 @@ static void tdeinit_library_path()
TQCString socketName = TQFile::encodeName(locateLocal("socket", TQString("tdeinit-%1").arg(TQString(display)), s_instance)); TQCString socketName = TQFile::encodeName(locateLocal("socket", TQString("tdeinit-%1").arg(TQString(display)), s_instance));
if (socketName.length() >= MAX_SOCK_FILE) if (socketName.length() >= MAX_SOCK_FILE)
{ {
fprintf(stderr, "tdeinit: Aborting. Socket name will be too long:\n"); fprintf(stderr, "[kinit] Aborting. Socket name will be too long:\n");
fprintf(stderr, " '%s'\n", socketName.data()); fprintf(stderr, " '%s'\n", socketName.data());
exit(255); exit(255);
} }
@ -1533,7 +1533,7 @@ static void tdeinit_library_path()
socketName = TQFile::encodeName(locateLocal("socket", TQString("tdeinit_%1").arg(TQString(display)), s_instance)); socketName = TQFile::encodeName(locateLocal("socket", TQString("tdeinit_%1").arg(TQString(display)), s_instance));
if (socketName.length() >= MAX_SOCK_FILE) if (socketName.length() >= MAX_SOCK_FILE)
{ {
fprintf(stderr, "tdeinit: Aborting. Socket name will be too long:\n"); fprintf(stderr, "[kinit] Aborting. Socket name will be too long:\n");
fprintf(stderr, " '%s'\n", socketName.data()); fprintf(stderr, " '%s'\n", socketName.data());
exit(255); exit(255);
} }
@ -1545,7 +1545,7 @@ int tdeinit_xio_errhandler( Display *disp )
// disp is 0L when KDE shuts down. We don't want those warnings then. // disp is 0L when KDE shuts down. We don't want those warnings then.
if ( disp ) if ( disp )
tqWarning( "tdeinit: Fatal IO error: client killed" ); tqWarning( "[kinit] Fatal IO error: client killed" );
if (sock_file[0]) if (sock_file[0])
{ {
@ -1567,7 +1567,7 @@ int tdeinit_xio_errhandler( Display *disp )
} }
if ( disp ) if ( disp )
tqWarning( "tdeinit: sending SIGHUP to children." ); tqWarning( "[kinit] sending SIGHUP to children." );
/* this should remove all children we started */ /* this should remove all children we started */
signal(SIGHUP, SIG_IGN); signal(SIGHUP, SIG_IGN);
@ -1576,14 +1576,14 @@ int tdeinit_xio_errhandler( Display *disp )
sleep(2); sleep(2);
if ( disp ) if ( disp )
tqWarning( "tdeinit: sending SIGTERM to children." ); tqWarning( "[kinit] sending SIGTERM to children." );
/* and if they don't listen to us, this should work */ /* and if they don't listen to us, this should work */
signal(SIGTERM, SIG_IGN); signal(SIGTERM, SIG_IGN);
kill(0, SIGTERM); kill(0, SIGTERM);
if ( disp ) if ( disp )
tqWarning( "tdeinit: Exit." ); tqWarning( "[kinit] Exit." );
exit( 0 ); exit( 0 );
return 0; return 0;
@ -1596,7 +1596,7 @@ int tdeinit_x_errhandler( Display *dpy, XErrorEvent *err )
char errstr[256]; char errstr[256];
// tdeinit almost doesn't use X, and therefore there shouldn't be any X error // tdeinit almost doesn't use X, and therefore there shouldn't be any X error
XGetErrorText( dpy, err->error_code, errstr, 256 ); XGetErrorText( dpy, err->error_code, errstr, 256 );
fprintf(stderr, "tdeinit: KDE detected X Error: %s %d\n" fprintf(stderr, "[kinit] TDE detected X Error: %s %d\n"
" Major opcode: %d\n" " Major opcode: %d\n"
" Minor opcode: %d\n" " Minor opcode: %d\n"
" Resource id: 0x%lx\n", " Resource id: 0x%lx\n",
@ -1629,15 +1629,15 @@ static int initXconnection()
BlackPixelOfScreen(DefaultScreenOfDisplay(X11display)), BlackPixelOfScreen(DefaultScreenOfDisplay(X11display)),
BlackPixelOfScreen(DefaultScreenOfDisplay(X11display)) ); BlackPixelOfScreen(DefaultScreenOfDisplay(X11display)) );
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "tdeinit: opened connection to %s\n", DisplayString(X11display)); fprintf(stderr, "[kinit] opened connection to %s\n", DisplayString(X11display));
#endif #endif
int fd = XConnectionNumber( X11display ); int fd = XConnectionNumber( X11display );
int on = 1; int on = 1;
(void) setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, (char *) &on, (int) sizeof(on)); (void) setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, (char *) &on, (int) sizeof(on));
return fd; return fd;
} else } else
fprintf(stderr, "tdeinit: Can't connect to the X Server.\n" \ fprintf(stderr, "[kinit] Can't connect to the X Server.\n" \
"tdeinit: Might not terminate at end of session.\n"); "[kinit] Might not terminate at end of session.\n");
return -1; return -1;
} }
@ -1794,17 +1794,17 @@ int main(int argc, char **argv, char **envp)
else else
pid = launch( 2, "dcopserver", "--nosid" ); pid = launch( 2, "dcopserver", "--nosid" );
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "tdeinit: Launched DCOPServer, pid = %ld result = %d\n", (long) pid, d.result); fprintf(stderr, "[kinit] Launched DCOPServer, pid = %ld result = %d\n", (long) pid, d.result);
#endif #endif
WaitPid(pid); WaitPid(pid);
if (!WIFEXITED(d.exit_status) || (WEXITSTATUS(d.exit_status) != 0)) if (!WIFEXITED(d.exit_status) || (WEXITSTATUS(d.exit_status) != 0))
{ {
fprintf(stderr, "tdeinit: DCOPServer could not be started, aborting.\n"); fprintf(stderr, "[kinit] DCOPServer could not be started, aborting.\n");
exit(1); exit(1);
} }
} }
#ifndef __CYGWIN__ #ifndef __CYGWIN__
if (!d.suicide && !getenv("KDE_IS_PRELINKED")) if (!d.suicide && !getenv("TDE_IS_PRELINKED"))
{ {
TQString konq = locate("lib", "libkonq.la", s_instance); TQString konq = locate("lib", "libkonq.la", s_instance);
if (!konq.isEmpty()) if (!konq.isEmpty())
@ -1818,7 +1818,7 @@ int main(int argc, char **argv, char **envp)
else else
pid = launch( 1, "klauncher", 0 ); pid = launch( 1, "klauncher", 0 );
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "tdeinit: Launched KLauncher, pid = %ld result = %d\n", (long) pid, d.result); fprintf(stderr, "[kinit] Launched KLauncher, pid = %ld result = %d\n", (long) pid, d.result);
#endif #endif
handle_requests(pid); // Wait for klauncher to be ready handle_requests(pid); // Wait for klauncher to be ready
} }
@ -1856,7 +1856,7 @@ int main(int argc, char **argv, char **envp)
else else
pid = launch( 1, "kded", 0 ); pid = launch( 1, "kded", 0 );
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "tdeinit: Launched KDED, pid = %ld result = %d\n", (long) pid, d.result); fprintf(stderr, "[kinit] Launched KDED, pid = %ld result = %d\n", (long) pid, d.result);
#endif #endif
handle_requests(pid); handle_requests(pid);
} }
@ -1867,7 +1867,7 @@ int main(int argc, char **argv, char **envp)
{ {
pid = launch( 1, safe_argv[i]+1, 0); pid = launch( 1, safe_argv[i]+1, 0);
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "tdeinit: Launched '%s', pid = %ld result = %d\n", safe_argv[i]+1, (long) pid, d.result); fprintf(stderr, "[kinit] Launched '%s', pid = %ld result = %d\n", safe_argv[i]+1, (long) pid, d.result);
#endif #endif
handle_requests(pid); handle_requests(pid);
} }
@ -1883,7 +1883,7 @@ int main(int argc, char **argv, char **envp)
{ {
pid = launch( 1, safe_argv[i], 0 ); pid = launch( 1, safe_argv[i], 0 );
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "tdeinit: Launched '%s', pid = %ld result = %d\n", safe_argv[i], (long) pid, d.result); fprintf(stderr, "[kinit] Launched '%s', pid = %ld result = %d\n", safe_argv[i], (long) pid, d.result);
#endif #endif
} }
} }

@ -207,15 +207,15 @@ KLauncher::KLauncher(int _tdeinitSocket, bool new_startup)
lastRequest = 0; lastRequest = 0;
bProcessingQueue = false; bProcessingQueue = false;
mSlaveDebug = getenv("KDE_SLAVE_DEBUG_WAIT"); mSlaveDebug = getenv("TDE_SLAVE_DEBUG_WAIT");
if (!mSlaveDebug.isEmpty()) if (!mSlaveDebug.isEmpty())
{ {
tqWarning("Klauncher running in slave-debug mode for slaves of protocol '%s'", mSlaveDebug.data()); tqWarning("Klauncher running in slave-debug mode for slaves of protocol '%s'", mSlaveDebug.data());
} }
mSlaveValgrind = getenv("KDE_SLAVE_VALGRIND"); mSlaveValgrind = getenv("TDE_SLAVE_VALGRIND");
if (!mSlaveValgrind.isEmpty()) if (!mSlaveValgrind.isEmpty())
{ {
mSlaveValgrindSkin = getenv("KDE_SLAVE_VALGRIND_SKIN"); mSlaveValgrindSkin = getenv("TDE_SLAVE_VALGRIND_SKIN");
tqWarning("Klauncher running slaves through valgrind for slaves of protocol '%s'", mSlaveValgrind.data()); tqWarning("Klauncher running slaves through valgrind for slaves of protocol '%s'", mSlaveValgrind.data());
} }
klauncher_header request_header; klauncher_header request_header;

@ -40,7 +40,7 @@ static void sig_handler(int sig_num)
// No recursion // No recursion
signal( SIGHUP, SIG_IGN); signal( SIGHUP, SIG_IGN);
signal( SIGTERM, SIG_IGN); signal( SIGTERM, SIG_IGN);
fprintf(stderr, "klauncher: Exiting on signal %d\n", sig_num); fprintf(stderr, "[klauncher] Exiting on signal %d\n", sig_num);
KLauncher::destruct(255); KLauncher::destruct(255);
} }
@ -55,8 +55,8 @@ extern "C" KDE_EXPORT int kdemain( int argc, char**argv )
// Started via tdeinit. // Started via tdeinit.
if (fcntl(LAUNCHER_FD, F_GETFD) == -1) if (fcntl(LAUNCHER_FD, F_GETFD) == -1)
{ {
fprintf(stderr, "%s", i18n("klauncher: This program is not supposed to be started manually.\n" fprintf(stderr, "%s", i18n("[klauncher] This program is not supposed to be started manually.\n"
"klauncher: It is started automatically by tdeinit.\n").local8Bit().data()); "[klauncher] It is started automatically by tdeinit.\n").local8Bit().data());
return 1; return 1;
} }
@ -82,7 +82,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char**argv )
TQCString dcopName = KApplication::dcopClient()->registerAs(name, false); TQCString dcopName = KApplication::dcopClient()->registerAs(name, false);
if (dcopName.isEmpty()) if (dcopName.isEmpty())
{ {
kdWarning() << "DCOP communication problem!" << endl; kdWarning() << "[klauncher] DCOP communication problem!" << endl;
return 1; return 1;
} }
if (dcopName == cname) if (dcopName == cname)
@ -90,12 +90,12 @@ extern "C" KDE_EXPORT int kdemain( int argc, char**argv )
if (--maxTry == 0) if (--maxTry == 0)
{ {
kdWarning() << "Another instance of klauncher is already running!" << endl; kdWarning() << "[klauncher] Another instance of klauncher is already running!" << endl;
return 1; return 1;
} }
// Wait a bit... // Wait a bit...
kdWarning() << "Waiting for already running klauncher to exit." << endl; kdWarning() << "[klauncher] Waiting for already running klauncher to exit." << endl;
sleep(1); sleep(1);
// Try again... // Try again...

@ -51,20 +51,20 @@ int check_tmp_dir(const char *tmp_dir)
result = mkdir(tmp_dir, 0700); result = mkdir(tmp_dir, 0700);
if (result == -1) if (result == -1)
{ {
fprintf(stderr, "Error: Can not create directory \"%s\".\n", tmp_dir); fprintf(stderr, "[lnusertemp] Error: Can not create directory \"%s\".\n", tmp_dir);
return 1; return 1;
} }
result = stat(tmp_dir, &stat_buf); result = stat(tmp_dir, &stat_buf);
} }
if ((result == -1) || (!S_ISDIR(stat_buf.st_mode))) if ((result == -1) || (!S_ISDIR(stat_buf.st_mode)))
{ {
fprintf(stderr, "Error: \"%s\" is not a directory.\n", tmp_dir); fprintf(stderr, "[lnusertemp] Error: \"%s\" is not a directory.\n", tmp_dir);
return 1; return 1;
} }
if (stat_buf.st_uid != getuid()) if (stat_buf.st_uid != getuid())
{ {
fprintf(stderr, "Error: \"%s\" is owned by uid %d instead of uid %d.\n", tmp_dir, stat_buf.st_uid, getuid()); fprintf(stderr, "[lnusertemp] Error: \"%s\" is owned by uid %d instead of uid %d.\n", tmp_dir, stat_buf.st_uid, getuid());
return 1; return 1;
} }
return 0; return 0;
@ -81,10 +81,10 @@ int create_link(const char *file, const char *tmp_dir)
result = symlink(tmp_dir, file); result = symlink(tmp_dir, file);
if (result == -1) if (result == -1)
{ {
fprintf(stderr, "Error: Can not create link from \"%s\" to \"%s\"\n", file, tmp_dir); fprintf(stderr, "[lnusertemp] Error: Can not create link from \"%s\" to \"%s\"\n", file, tmp_dir);
return 1; return 1;
} }
/*printf("Created link from \"%s\" to \"%s\"\n", file, tmp_dir);*/ /*printf("[lnusertemp] Created link from \"%s\" to \"%s\"\n", file, tmp_dir);*/
return 0; return 0;
} }
@ -109,7 +109,7 @@ int build_link(const char *tmp_prefix, const char *kde_prefix, int kdehostname)
pw_ent = getpwuid(uid); pw_ent = getpwuid(uid);
if (!pw_ent) if (!pw_ent)
{ {
fprintf(stderr, "Error: Can not find password entry for uid %d.\n", getuid()); fprintf(stderr, "[lnusertemp] Error: Can not find password entry for uid %d.\n", getuid());
return 1; return 1;
} }
@ -130,12 +130,12 @@ int build_link(const char *tmp_prefix, const char *kde_prefix, int kdehostname)
} }
if (!home_dir || !home_dir[0]) if (!home_dir || !home_dir[0])
{ {
fprintf(stderr, "Aborting. $HOME not set!\n"); fprintf(stderr, "[lnusertemp] Aborting. $HOME not set!\n");
return 1; return 1;
} }
if (strlen(home_dir) > (PATH_MAX-100)) if (strlen(home_dir) > (PATH_MAX-100))
{ {
fprintf(stderr, "Aborting. Home directory path too long!\n"); fprintf(stderr, "[lnusertemp] Aborting. Home directory path too long!\n");
return 1; return 1;
} }
kde_home++; kde_home++;
@ -155,7 +155,7 @@ int build_link(const char *tmp_prefix, const char *kde_prefix, int kdehostname)
} }
if (result == -1) if (result == -1)
{ {
perror("mkdir failed: "); perror("[lnusertemp] mkdir failed: ");
return 1; return 1;
} }
@ -172,7 +172,7 @@ int build_link(const char *tmp_prefix, const char *kde_prefix, int kdehostname)
{ {
if (gethostname(kde_tmp_dir+strlen(kde_tmp_dir), PATH_MAX - strlen(kde_tmp_dir) - 1) != 0) if (gethostname(kde_tmp_dir+strlen(kde_tmp_dir), PATH_MAX - strlen(kde_tmp_dir) - 1) != 0)
{ {
perror("Could not determine hostname: "); perror("[lnusertemp] Could not determine hostname: ");
return 1; return 1;
} }
} }
@ -182,12 +182,12 @@ int build_link(const char *tmp_prefix, const char *kde_prefix, int kdehostname)
if ((result == 0) && (S_ISDIR(stat_buf.st_mode))) if ((result == 0) && (S_ISDIR(stat_buf.st_mode)))
{ {
/* $TDEHOME/tmp is a normal directory. Do nothing. */ /* $TDEHOME/tmp is a normal directory. Do nothing. */
/*printf("Directory \"%s\" already exists.\n", kde_tmp_dir);*/ /*printf("[lnusertemp] Directory \"%s\" already exists.\n", kde_tmp_dir);*/
return 0; return 0;
} }
if ((result == -1) && (errno == ENOENT)) if ((result == -1) && (errno == ENOENT))
{ {
/*printf("Creating link %s.\n", kde_tmp_dir);*/ /*printf("[lnusertemp] Creating link %s.\n", kde_tmp_dir);*/
result = create_link(kde_tmp_dir, user_tmp_dir); result = create_link(kde_tmp_dir, user_tmp_dir);
if (result == 0) return 0; /* Success */ if (result == 0) return 0; /* Success */
unlink(kde_tmp_dir); unlink(kde_tmp_dir);
@ -197,23 +197,23 @@ int build_link(const char *tmp_prefix, const char *kde_prefix, int kdehostname)
} }
if ((result == -1) || (!S_ISLNK(stat_buf.st_mode))) if ((result == -1) || (!S_ISLNK(stat_buf.st_mode)))
{ {
fprintf(stderr, "Error: \"%s\" is not a link or a directory.\n", kde_tmp_dir); fprintf(stderr, "[lnusertemp] Error: \"%s\" is not a link or a directory.\n", kde_tmp_dir);
return 1; return 1;
} }
/* kde_tmp_dir is a link. Check whether it points to a valid directory. */ /* kde_tmp_dir is a link. Check whether it points to a valid directory. */
result = readlink(kde_tmp_dir, tmp_buf, PATH_MAX); result = readlink(kde_tmp_dir, tmp_buf, PATH_MAX);
if (result == -1) if (result == -1)
{ {
fprintf(stderr, "Error: \"%s\" could not be read.\n", kde_tmp_dir); fprintf(stderr, "[lnusertemp] Error: \"%s\" could not be read.\n", kde_tmp_dir);
return 1; return 1;
} }
tmp_buf[result] = '\0'; tmp_buf[result] = '\0';
/*printf("Link points to \"%s\"\n", tmp_buf);*/ /*printf("[lnusertemp] Link \"%s\" points to \"%s\"\n", kde_tmp_dir, tmp_buf);*/
if (strncmp(tmp_buf, user_tmp_dir, strlen(user_tmp_dir)) != 0) if (strncmp(tmp_buf, user_tmp_dir, strlen(user_tmp_dir)) != 0)
{ {
fprintf(stderr, "Error: \"%s\" points to \"%s\" instead of \"%s\".\n", kde_tmp_dir, tmp_buf, user_tmp_dir); fprintf(stderr, "[lnusertemp] Error: \"%s\" points to \"%s\" instead of \"%s\".\n", kde_tmp_dir, tmp_buf, user_tmp_dir);
unlink(kde_tmp_dir); unlink(kde_tmp_dir);
/*printf("Creating link %s.\n", kde_tmp_dir);*/ /*printf("[lnusertemp] Creating link %s.\n", kde_tmp_dir);*/
result = create_link(kde_tmp_dir, user_tmp_dir); result = create_link(kde_tmp_dir, user_tmp_dir);
if (result == 0) return 0; /* Success */ if (result == 0) return 0; /* Success */
unlink(kde_tmp_dir); unlink(kde_tmp_dir);
@ -241,13 +241,17 @@ int main(int argc, char **argv)
(strcmp(argv[1], "socket")!=0) && (strcmp(argv[1], "socket")!=0) &&
(strcmp(argv[1], "cache")!=0))) (strcmp(argv[1], "cache")!=0)))
{ {
fprintf(stderr, "Usage: lnusertemp tmp|socket|cache\n"); fprintf(stderr, "[lnusertemp] Usage: lnusertemp tmp|socket|cache\n");
return 1; return 1;
} }
tmp = getenv("TDETMP"); tmp = getenv("TDETMP");
if (!tmp || !tmp[0]) if (!tmp || !tmp[0])
tmp = getenv("TMPDIR"); tmp = getenv("TMPDIR");
if (!tmp || !tmp[0])
tmp = getenv("TEMP");
if (!tmp || !tmp[0])
tmp = getenv("TMP");
if (!tmp || !tmp[0]) if (!tmp || !tmp[0])
tmp = "/tmp"; tmp = "/tmp";

@ -146,12 +146,12 @@ static int openSocket()
{ {
if (!home_dir || !home_dir[0]) if (!home_dir || !home_dir[0])
{ {
fprintf(stderr, "[trinity kinit] Warning: $HOME not set!\n"); fprintf(stderr, "[kinit wrapper] 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, "[trinity kinit] Warning: Home directory path too long!\n"); fprintf(stderr, "[kinit wrapper] Warning: Home directory path too long!\n");
return -1; return -1;
} }
kde_home++; kde_home++;
@ -168,7 +168,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("[trinity kinit] Warning: Could not determine hostname: "); perror("[kinit wrapper] Warning: Could not determine hostname: ");
return -1; return -1;
} }
sock_file[sizeof(sock_file)-1] = '\0'; sock_file[sizeof(sock_file)-1] = '\0';
@ -177,13 +177,13 @@ static int openSocket()
display = getDisplay(); display = getDisplay();
if (display == NULL) if (display == NULL)
{ {
fprintf(stderr, "[trinity kinit] Error: Could not determine display.\n"); fprintf(stderr, "[kinit wrapper] 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, "[trinity kinit] Warning: Socket name will be too long.\n"); fprintf(stderr, "[kinit wrapper] Warning: Socket name will be too long.\n");
free (display); free (display);
return -1; return -1;
} }
@ -193,7 +193,7 @@ static int openSocket()
if (strlen(sock_file) >= sizeof(server.sun_path)) if (strlen(sock_file) >= sizeof(server.sun_path))
{ {
fprintf(stderr, "[trinity kinit] Warning: Path of socketfile exceeds UNIX_PATH_MAX.\n"); fprintf(stderr, "[kinit wrapper] Warning: Path of socket file exceeds UNIX_PATH_MAX.\n");
return -1; return -1;
} }
@ -203,7 +203,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("[trinity kinit] Warning: socket() failed: "); perror("[kinit wrapper] Warning: socket creation failed: ");
return -1; return -1;
} }
@ -212,7 +212,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("[trinity kinit] Warning: connect() failed: "); perror("[kinit wrapper] Warning: socket connection failed: ");
close(s); close(s);
return -1; return -1;
} }
@ -340,14 +340,14 @@ int main(int argc, char **argv)
{ {
if( argc > 1) if( argc > 1)
{ {
fprintf(stderr, "[trinity kinit] Usage: %s\n\n", start); fprintf(stderr, "[kinit wrapper] Usage: %s\n\n", start);
fprintf(stderr, "[trinity kinit] Shuts down tdeinit master process and terminates all processes spawned from it.\n"); fprintf(stderr, "[kinit wrapper] Shuts down tdeinit master process and terminates all processes spawned from it.\n");
exit( 255 ); exit( 255 );
} }
sock = openSocket(); sock = openSocket();
if( sock < 0 ) if( sock < 0 )
{ {
fprintf( stderr, "[trinity kinit] Error: Can't contact tdeinit!\n" ); fprintf( stderr, "[kinit wrapper] Error: Can't contact tdeinit!\n" );
exit( 255 ); exit( 255 );
} }
header.cmd = LAUNCHER_TERMINATE_KDE; header.cmd = LAUNCHER_TERMINATE_KDE;
@ -363,7 +363,7 @@ int main(int argc, char **argv)
argc--; argc--;
if (argc < 1) if (argc < 1)
{ {
fprintf(stderr, "[trinity kinit] Usage: %s <application> [<args>]\n", start); fprintf(stderr, "[kinit wrapper] Usage: %s <application> [<args>]\n", start);
exit(255); /* usage should be documented somewhere ... */ exit(255); /* usage should be documented somewhere ... */
} }
start = argv[0]; start = argv[0];
@ -373,7 +373,7 @@ int main(int argc, char **argv)
if( sock < 0 ) /* couldn't contact tdeinit, start argv[ 0 ] directly */ if( sock < 0 ) /* couldn't contact tdeinit, start argv[ 0 ] directly */
{ {
execvp( argv[ 0 ], argv ); execvp( argv[ 0 ], argv );
fprintf( stderr, "[trinity kinit] Error: Can't run %s !\n", argv[ 0 ] ); fprintf( stderr, "[kinit wrapper] Error: Can't run %s !\n", argv[ 0 ] );
exit( 255 ); exit( 255 );
} }
@ -449,7 +449,7 @@ int main(int argc, char **argv)
buffer = (char *) malloc(size); buffer = (char *) malloc(size);
if (buffer == NULL) if (buffer == NULL)
{ {
fprintf(stderr, "[trinity kinit] Error: malloc() failed."); fprintf(stderr, "[kinit wrapper] Error: malloc() failed.");
exit(255); exit(255);
} }
p = buffer; p = buffer;
@ -506,7 +506,7 @@ int main(int argc, char **argv)
if( p - buffer != size ) /* should fail only if you change this source and do */ if( p - buffer != size ) /* should fail only if you change this source and do */
/* a stupid mistake, it should be assert() actually */ /* a stupid mistake, it should be assert() actually */
{ {
fprintf(stderr, "[trinity kinit] Oops. Invalid format.\n"); fprintf(stderr, "[kinit wrapper] Oops. Invalid format.\n");
exit(255); exit(255);
} }
@ -515,7 +515,7 @@ int main(int argc, char **argv)
if (read_socket(sock, (char *) &header, sizeof(header))==-1) if (read_socket(sock, (char *) &header, sizeof(header))==-1)
{ {
fprintf(stderr, "[trinity kinit] Communication error.\n"); fprintf(stderr, "[kinit wrapper] Communication error.\n");
exit(255); exit(255);
} }
@ -525,7 +525,7 @@ int main(int argc, char **argv)
buffer = (char *) malloc(header.arg_length); buffer = (char *) malloc(header.arg_length);
if (buffer == NULL) if (buffer == NULL)
{ {
fprintf(stderr, "[trinity kinit] Error: malloc() failed\n"); fprintf(stderr, "[kinit wrapper] Error: malloc() failed\n");
exit(255); exit(255);
} }
read_socket(sock, buffer, header.arg_length); read_socket(sock, buffer, header.arg_length);
@ -535,12 +535,12 @@ int main(int argc, char **argv)
} }
else if (header.cmd == LAUNCHER_ERROR) else if (header.cmd == LAUNCHER_ERROR)
{ {
fprintf(stderr, "[trinity kinit] Could not launch '%s'.\n", start); fprintf(stderr, "[kinit wrapper] Could not launch '%s'.\n", start);
exit(255); exit(255);
} }
else else
{ {
fprintf(stderr, "[trinity kinit] Unexpected response (response = %ld).\n", header.cmd); fprintf(stderr, "[kinit wrapper] Unexpected response (response = %ld).\n", header.cmd);
exit(255); exit(255);
} }
exit(0); exit(0);

@ -1584,7 +1584,7 @@ static void yy_fatal_error( msg )
char msg[]; char msg[];
#endif #endif
{ {
(void) fprintf( stderr, "%s\n", msg ); (void) fprintf( stderr, "[lex] %s\n", msg );
exit( YY_EXIT_FAILURE ); exit( YY_EXIT_FAILURE );
} }

@ -390,8 +390,8 @@ Slave* Slave::createSlave( const TQString &protocol, const KURL& url, int& error
// for the slave to connect to the application. // for the slave to connect to the application.
// In such case we start the slave via KProcess. // In such case we start the slave via KProcess.
// It's possible to force this by setting the env. variable // It's possible to force this by setting the env. variable
// KDE_FORK_SLAVES, Clearcase seems to require this. // TDE_FORK_SLAVES, Clearcase seems to require this.
static bool bForkSlaves = !TQCString(getenv("KDE_FORK_SLAVES")).isEmpty(); static bool bForkSlaves = !TQCString(getenv("TDE_FORK_SLAVES")).isEmpty();
if (bForkSlaves || !client->isAttached() || client->isAttachedToForeignServer()) if (bForkSlaves || !client->isAttached() || client->isAttachedToForeignServer())
{ {

@ -168,7 +168,7 @@ SlaveBase::SlaveBase( const TQCString &protocol,
{ {
s_protocol = protocol.data(); s_protocol = protocol.data();
#ifdef Q_OS_UNIX #ifdef Q_OS_UNIX
if (!getenv("KDE_DEBUG")) if (!getenv("TDE_DEBUG"))
{ {
KCrash::setCrashHandler( sigsegv_handler ); KCrash::setCrashHandler( sigsegv_handler );
signal(SIGILL,&sigsegv_handler); signal(SIGILL,&sigsegv_handler);

@ -156,7 +156,7 @@ int main(int argc, char **argv)
// Ensure that user configuration doesn't change the results of those tests // Ensure that user configuration doesn't change the results of those tests
// TDEHOME needs to be writable though, for a ksycoca database // TDEHOME needs to be writable though, for a ksycoca database
setenv( "TDEHOME", TQFile::encodeName( TQDir::homeDirPath() + "/.kde-kurifiltertest" ), true ); setenv( "TDEHOME", TQFile::encodeName( TQDir::homeDirPath() + "/.kde-kurifiltertest" ), true );
setenv( "KDE_FORK_SLAVES", "yes", true ); // simpler, for the final cleanup setenv( "TDE_FORK_SLAVES", "yes", true ); // simpler, for the final cleanup
KAboutData aboutData(appName, programName, version, description); KAboutData aboutData(appName, programName, version, description);
KCmdLineArgs::init(argc, argv, &aboutData); KCmdLineArgs::init(argc, argv, &aboutData);

@ -438,7 +438,7 @@ ArrayPrototypeImp::ArrayPrototypeImp(ExecState */*exec*/,
Value ArrayPrototypeImp::get(ExecState *exec, const Identifier &propertyName) const Value ArrayPrototypeImp::get(ExecState *exec, const Identifier &propertyName) const
{ {
//fprintf( stderr, "ArrayPrototypeImp::get(%s)\n", propertyName.ascii() ); //fprintf( stderr, "[kjs-array_object] ArrayPrototypeImp::get(%s)\n", propertyName.ascii() );
return lookupGetFunction<ArrayProtoFuncImp, ArrayInstanceImp>( exec, propertyName, &arrayTable, this ); return lookupGetFunction<ArrayProtoFuncImp, ArrayInstanceImp>( exec, propertyName, &arrayTable, this );
} }

@ -163,7 +163,7 @@ bool Collector::collect()
if (InterpreterImp::s_hook) { if (InterpreterImp::s_hook) {
InterpreterImp *scr = InterpreterImp::s_hook; InterpreterImp *scr = InterpreterImp::s_hook;
do { do {
//fprintf( stderr, "Collector marking interpreter %p\n",(void*)scr); //fprintf( stderr, "[kjs-collector] Collector marking interpreter %p\n",(void*)scr);
scr->mark(); scr->mark();
scr = scr->next; scr = scr->next;
} while (scr != InterpreterImp::s_hook); } while (scr != InterpreterImp::s_hook);
@ -221,7 +221,7 @@ bool Collector::collect()
if (!(imp->_flags & ValueImp::VI_DESTRUCTED)) { if (!(imp->_flags & ValueImp::VI_DESTRUCTED)) {
if (!imp->refcount && imp->_flags == (ValueImp::VI_GCALLOWED | ValueImp::VI_CREATED)) { if (!imp->refcount && imp->_flags == (ValueImp::VI_GCALLOWED | ValueImp::VI_CREATED)) {
//fprintf( stderr, "Collector::deleting ValueImp %p (%s)\n", (void*)imp, typeid(*imp).name()); //fprintf( stderr, "[kjs-collector] Collector::deleting ValueImp %p (%s)\n", (void*)imp, typeid(*imp).name());
// emulate destructing part of 'operator delete()' // emulate destructing part of 'operator delete()'
imp->~ValueImp(); imp->~ValueImp();
curBlock->usedCells--; curBlock->usedCells--;

@ -503,16 +503,16 @@ FunctionBodyNode *Parser::parse(const UChar *code, unsigned int length, SourceCo
if (errMsg) if (errMsg)
*errMsg = "Parse error at line " + UString::from(eline); *errMsg = "Parse error at line " + UString::from(eline);
#ifdef KJS_VERBOSE #ifdef KJS_VERBOSE
fprintf( stderr, "%s\n", UString(code,length).ascii() ); fprintf( stderr, "[kjs-internal] %s\n", UString(code,length).ascii() );
#endif #endif
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "KJS: JavaScript parse error at line %d.\n", eline); fprintf( stderr, "[kjs-internal] KJS: JavaScript parse error at line %d.\n", eline);
#endif #endif
delete prog; delete prog;
return 0; return 0;
} }
#ifdef KJS_VERBOSE #ifdef KJS_VERBOSE
fprintf( stderr, "%s\n", prog->toCode().ascii() ); fprintf( stderr, "[kjs-internal] %s\n", prog->toCode().ascii() );
#endif #endif
return prog; return prog;
@ -524,7 +524,7 @@ InterpreterImp* InterpreterImp::s_hook = 0L;
void InterpreterImp::globalInit() void InterpreterImp::globalInit()
{ {
//fprintf( stderr, "InterpreterImp::globalInit()\n" ); //fprintf( stderr, "[kjs-internal] InterpreterImp::globalInit()\n" );
UndefinedImp::staticUndefined = new UndefinedImp(); UndefinedImp::staticUndefined = new UndefinedImp();
UndefinedImp::staticUndefined->ref(); UndefinedImp::staticUndefined->ref();
NullImp::staticNull = new NullImp(); NullImp::staticNull = new NullImp();
@ -539,7 +539,7 @@ void InterpreterImp::globalInit()
void InterpreterImp::globalClear() void InterpreterImp::globalClear()
{ {
//fprintf( stderr, "InterpreterImp::globalClear()\n" ); //fprintf( stderr, "[kjs-internal] InterpreterImp::globalClear()\n" );
UndefinedImp::staticUndefined->deref(); UndefinedImp::staticUndefined->deref();
UndefinedImp::staticUndefined->setGcAllowed(); UndefinedImp::staticUndefined->setGcAllowed();
UndefinedImp::staticUndefined = 0L; UndefinedImp::staticUndefined = 0L;
@ -783,7 +783,7 @@ void InterpreterImp::mark()
BooleanImp::staticTrue->mark(); BooleanImp::staticTrue->mark();
if (BooleanImp::staticFalse && !BooleanImp::staticFalse->marked()) if (BooleanImp::staticFalse && !BooleanImp::staticFalse->marked())
BooleanImp::staticFalse->mark(); BooleanImp::staticFalse->mark();
//fprintf( stderr, "InterpreterImp::mark this=%p global.imp()=%p\n", this, global.imp() ); //fprintf( stderr, "[kjs-internal] InterpreterImp::mark this=%p global.imp()=%p\n", this, global.imp() );
if (global.imp()) if (global.imp())
global.imp()->mark(); global.imp()->mark();
if (m_interpreter) if (m_interpreter)

@ -122,7 +122,7 @@ Value MathObjectImp::getValueProperty(ExecState *, int token) const
d = sqrt(2.0); d = sqrt(2.0);
break; break;
default: default:
fprintf( stderr, "Internal error in MathObjectImp: unhandled token %d\n", token ); fprintf( stderr, "[math_object] Internal error in MathObjectImp: unhandled token %d\n", token );
break; break;
} }

@ -154,10 +154,10 @@ void Node::finalCheck()
fprintf(stderr, "Node::finalCheck(): list 0\n"); fprintf(stderr, "Node::finalCheck(): list 0\n");
return; return;
} }
fprintf( stderr, "Node::finalCheck(): list count : %d\n", (int)s_nodes->size() ); fprintf( stderr, "[nodes] Node::finalCheck(): list count : %d\n", (int)s_nodes->size() );
std::list<Node *>::iterator it = s_nodes->begin(); std::list<Node *>::iterator it = s_nodes->begin();
for ( uint i = 0; it != s_nodes->end() ; ++it, ++i ) for ( uint i = 0; it != s_nodes->end() ; ++it, ++i )
fprintf( stderr, "[%d] Still having node %p (%s) (refcount %d)\n", i, (void*)*it, typeid( **it ).name(), (*it)->refcount ); fprintf( stderr, "[nodes] [%d] Still having node %p (%s) (refcount %d)\n", i, (void*)*it, typeid( **it ).name(), (*it)->refcount );
delete s_nodes; delete s_nodes;
s_nodes = 0L; s_nodes = 0L;
} }

@ -210,7 +210,7 @@ void ObjectImp::put(ExecState *exec, const Identifier &propertyName,
// and let it override the canPut() check. // and let it override the canPut() check.
if ((attr == None || attr == DontDelete) && !canPut(exec,propertyName)) { if ((attr == None || attr == DontDelete) && !canPut(exec,propertyName)) {
#ifdef KJS_VERBOSE #ifdef KJS_VERBOSE
fprintf( stderr, "WARNING: canPut %s said NO\n", propertyName.ascii() ); fprintf( stderr, "[kjs-object] WARNING: canPut %s said NO\n", propertyName.ascii() );
#endif #endif
return; return;
} }

@ -42,7 +42,7 @@ KCMKResources::KCMKResources( TQWidget *parent, const char *name, const TQString
setButtons( Help | Apply ); setButtons( Help | Apply );
KAboutData *about = KAboutData *about =
new KAboutData( I18N_NOOP( "kcmkresources" ), new KAboutData( I18N_NOOP( "kcmkresources" ),
I18N_NOOP( "KDE Resources configuration module" ), I18N_NOOP( "TDE Resources configuration module" ),
0, 0, KAboutData::License_GPL, 0, 0, KAboutData::License_GPL,
I18N_NOOP( "(c) 2003 Tobias Koenig" ) ); I18N_NOOP( "(c) 2003 Tobias Koenig" ) );

@ -9,146 +9,146 @@ X-KDE-Library=kresources
X-KDE-FactoryName=kresources X-KDE-FactoryName=kresources
X-KDE-HasReadOnlyMode=false X-KDE-HasReadOnlyMode=false
Name=KDE Resources Name=TDE Resources
Name[af]=KDE Hulpbronne Name[af]=TDE Hulpbronne
Name[be]=Рэсурсы KDE Name[be]=Рэсурсы TDE
Name[bg]=Системни ресурси Name[bg]=Системни ресурси
Name[bn]=কে.ডি.ই রিসোর্সসমূহ Name[bn]=কে.ডি.ই রিসোর্সসমূহ
Name[br]=Danvezioù KDE Name[br]=Danvezioù TDE
Name[bs]=KDE resursi Name[bs]=TDE resursi
Name[ca]=Recursos KDE Name[ca]=Recursos TDE
Name[cs]=Zdroje KDE Name[cs]=Zdroje TDE
Name[csb]=Dostónczi KDE Name[csb]=Dostónczi TDE
Name[da]=KDE Ressourcer Name[da]=TDE Ressourcer
Name[de]=KDE-Ressourcen Name[de]=TDE-Ressourcen
Name[el]=Πόροι του KDE Name[el]=Πόροι του TDE
Name[eo]=KDEa risurcoj Name[eo]=TDEa risurcoj
Name[es]=Recursos de KDE Name[es]=Recursos de TDE
Name[et]=KDE ressursid Name[et]=TDE ressursid
Name[eu]=KDEren baliabideak Name[eu]=TDEren baliabideak
Name[fa]=منابع KDE Name[fa]=منابع TDE
Name[fi]=KDE:n resurssiasetukset Name[fi]=TDE:n resurssiasetukset
Name[fr]=Ressources de KDE Name[fr]=Ressources de TDE
Name[fy]=KDE Helpboarnen Name[fy]=TDE Helpboarnen
Name[ga]=Acmhainní KDE Name[ga]=Acmhainní TDE
Name[gl]=Recursos de KDE Name[gl]=Recursos de TDE
Name[he]=משאבים של KDE Name[he]=משאבים של TDE
Name[hr]=KDE resursi Name[hr]=TDE resursi
Name[hu]=KDE-erőforrások Name[hu]=TDE-erőforrások
Name[id]=Sumber Daya KDE Name[id]=Sumber Daya TDE
Name[is]=KDE auðlindir Name[is]=TDE auðlindir
Name[it]=Risorse di KDE Name[it]=Risorse di TDE
Name[ja]=KDE リソース Name[ja]=TDE リソース
Name[ka]=KDE რესურსები Name[ka]=TDE რესურსები
Name[kk]=KDE ресурстары Name[kk]=TDE ресурстары
Name[km]=ធនធាន KDE Name[km]=ធនធាន TDE
Name[lb]=KDE-Ressourcen Name[lb]=TDE-Ressourcen
Name[lt]=KDE resursai Name[lt]=TDE resursai
Name[lv]=KDE resursi Name[lv]=TDE resursi
Name[mk]=Ресурси на KDE Name[mk]=Ресурси на TDE
Name[ms]=Sumber KDE Name[ms]=Sumber TDE
Name[nb]=KDE-ressurser Name[nb]=TDE-ressurser
Name[nds]=KDE-Ressourcen Name[nds]=TDE-Ressourcen
Name[ne]=KDE संसाधन Name[ne]=TDE संसाधन
Name[nl]=KDE-gegevensbronnen Name[nl]=TDE-gegevensbronnen
Name[nn]=KDE-ressursar Name[nn]=TDE-ressursar
Name[pa]=KDE ਸਰੋਤ Name[pa]=TDE ਸਰੋਤ
Name[pl]=Źródła danych KDE Name[pl]=Źródła danych TDE
Name[pt]=Recursos do KDE Name[pt]=Recursos do TDE
Name[pt_BR]=Fontes de Dados do KDE Name[pt_BR]=Fontes de Dados do TDE
Name[ro]=Resurse KDE Name[ro]=Resurse TDE
Name[ru]=Ресурсы KDE Name[ru]=Ресурсы TDE
Name[rw]=Ibikorana KDE Name[rw]=Ibikorana TDE
Name[se]=KDE-resurssat Name[se]=TDE-resurssat
Name[sk]=Zdroje KDE Name[sk]=Zdroje TDE
Name[sl]=Viri KDE Name[sl]=Viri TDE
Name[sr]=KDE-ови ресурси Name[sr]=TDE-ови ресурси
Name[sr@Latn]=KDE-ovi resursi Name[sr@Latn]=TDE-ovi resursi
Name[sv]=KDE-resurser Name[sv]=TDE-resurser
Name[ta]=KDE மூலங்கள் Name[ta]=TDE மூலங்கள்
Name[te]=కెడిఈ వనరులు Name[te]=కెడిఈ వనరులు
Name[tg]=Манбаъи KDE Name[tg]=Манбаъи TDE
Name[th]=ทรัพยากร KDE Name[th]=ทรัพยากร TDE
Name[tr]=KDE Kaynakları Name[tr]=TDE Kaynakları
Name[tt]=KDE Resursları Name[tt]=TDE Resursları
Name[uk]=Ресурси KDE Name[uk]=Ресурси TDE
Name[uz]=KDE imkoniyatlari Name[uz]=TDE imkoniyatlari
Name[uz@cyrillic]=KDE имкониятлари Name[uz@cyrillic]=TDE имкониятлари
Name[vi]=Tài nguyên KDE Name[vi]=Tài nguyên TDE
Name[zh_CN]=KDE 资源 Name[zh_CN]=TDE 资源
Name[zh_HK]=KDE 資源 Name[zh_HK]=TDE 資源
Name[zh_TW]=KDE 資源組態 Name[zh_TW]=TDE 資源組態
Comment=Configure KDE Resources Comment=Configure TDE Resources
Comment[af]=Stel KDE Hulpbronne op Comment[af]=Stel TDE Hulpbronne op
Comment[be]=Настаўленне рэсурсаў KDE Comment[be]=Настаўленне рэсурсаў TDE
Comment[bg]=Настройване на системните ресурси Comment[bg]=Настройване на системните ресурси
Comment[bn]=কে.ডি.ই. রিসোর্সসমূহ কনফিগার করো Comment[bn]=কে.ডি.ই. রিসোর্সসমূহ কনফিগার করো
Comment[br]=Kefluniañ danvezioù KDE Comment[br]=Kefluniañ danvezioù TDE
Comment[bs]=Podesite KDE resurse Comment[bs]=Podesite TDE resurse
Comment[ca]=Configura els recursos KDE Comment[ca]=Configura els recursos TDE
Comment[cs]=Nastavení zdrojů KDE Comment[cs]=Nastavení zdrojů TDE
Comment[csb]=Kònfigùracëjô dostónków KDE Comment[csb]=Kònfigùracëjô dostónków TDE
Comment[da]=Indstil KDE's ressourcer Comment[da]=Indstil TDE's ressourcer
Comment[de]=KDE-Ressourcen einrichten Comment[de]=TDE-Ressourcen einrichten
Comment[el]=Ρύθμιση πόρων του KDE Comment[el]=Ρύθμιση πόρων του TDE
Comment[eo]=Agordu KDEajn risurcojn Comment[eo]=Agordu TDEajn risurcojn
Comment[es]=Configurar recursos de KDE Comment[es]=Configurar recursos de TDE
Comment[et]=KDE ressurside seadistamine Comment[et]=TDE ressurside seadistamine
Comment[eu]=Konfiguratu KDEren baliabideak Comment[eu]=Konfiguratu TDEren baliabideak
Comment[fa]=پیکربندی منابع KDE Comment[fa]=پیکربندی منابع TDE
Comment[fi]=Muokkaa KDE:n resursseja Comment[fi]=Muokkaa TDE:n resursseja
Comment[fr]=Configure les ressources de KDE Comment[fr]=Configure les ressources de TDE
Comment[fy]=KDE helpboarne Ynstelle Comment[fy]=TDE helpboarne Ynstelle
Comment[ga]=Cumraigh Acmhainní KDE Comment[ga]=Cumraigh Acmhainní TDE
Comment[gl]=Configurar os recursos de KDE Comment[gl]=Configurar os recursos de TDE
Comment[he]=תצורת משאבים של KDE Comment[he]=תצורת משאבים של TDE
Comment[hi]=केडीई रीसोर्सेज़ कॉन्फ़िगर करें Comment[hi]=केडीई रीसोर्सेज़ कॉन्फ़िगर करें
Comment[hr]=Konfiguriranje KDE resursa Comment[hr]=Konfiguriranje TDE resursa
Comment[hu]=A KDE-s erőforrások beállítása Comment[hu]=A TDE-s erőforrások beállítása
Comment[id]=Konfigurasikan Sumber Daya KDE Comment[id]=Konfigurasikan Sumber Daya TDE
Comment[is]=Stilla KDE auðlindir Comment[is]=Stilla TDE auðlindir
Comment[it]=Configura le risorse di KDE Comment[it]=Configura le risorse di TDE
Comment[ja]=KDE リソースの設定 Comment[ja]=TDE リソースの設定
Comment[ka]=KDE რესურსების გამართვა Comment[ka]=TDE რესურსების გამართვა
Comment[kk]=KDE ресурстарды баптау Comment[kk]=TDE ресурстарды баптау
Comment[km]=កំណត់​រចនាសម្ព័ន្ធ​ធនធាន KDE Comment[km]=កំណត់​រចនាសម្ព័ន្ធ​ធនធាន TDE
Comment[lb]=KDE-Ressourcen astellen Comment[lb]=TDE-Ressourcen astellen
Comment[lt]=Konfigūruoti KDE resursus Comment[lt]=Konfigūruoti TDE resursus
Comment[lv]=Konfigurē KDE resursus Comment[lv]=Konfigurē TDE resursus
Comment[mk]=Ги конфигурира KDE ресурсите Comment[mk]=Ги конфигурира TDE ресурсите
Comment[ms]=Selaraskan Sumber KDE Comment[ms]=Selaraskan Sumber TDE
Comment[nb]=Sett opp KDE-ressurser Comment[nb]=Sett opp TDE-ressurser
Comment[nds]=KDE-Ressourcen instellen Comment[nds]=TDE-Ressourcen instellen
Comment[ne]=KDE संसाधन कन्फिगर गर्नुहोस् Comment[ne]=TDE संसाधन कन्फिगर गर्नुहोस्
Comment[nl]=KDE-gegevensbronnen instellen Comment[nl]=TDE-gegevensbronnen instellen
Comment[nn]=Set opp KDE-ressursar Comment[nn]=Set opp TDE-ressursar
Comment[pa]=KDE ਸਰੋਤਾਂ ਦੀ ਸੰਰਚਨਾ Comment[pa]=TDE ਸਰੋਤਾਂ ਦੀ ਸੰਰਚਨਾ
Comment[pl]=Konfiguracja źródeł danych KDE Comment[pl]=Konfiguracja źródeł danych TDE
Comment[pt]=Configurar Recursos do KDE Comment[pt]=Configurar Recursos do TDE
Comment[pt_BR]=Configura as Fontes de Dados do KDE Comment[pt_BR]=Configura as Fontes de Dados do TDE
Comment[ro]=Configurează resursele KDE Comment[ro]=Configurează resursele TDE
Comment[ru]=Настройка ресурсов KDE Comment[ru]=Настройка ресурсов TDE
Comment[rw]=Kuboneza Ibikoraba bya KDE Comment[rw]=Kuboneza Ibikoraba bya TDE
Comment[se]=Heivet KDE-resurssaid Comment[se]=Heivet TDE-resurssaid
Comment[sk]=Nastavenie zdrojov KDE Comment[sk]=Nastavenie zdrojov TDE
Comment[sl]=Nastavi vire KDE Comment[sl]=Nastavi vire TDE
Comment[sr]=Подешавање KDE-ових ресурса Comment[sr]=Подешавање TDE-ових ресурса
Comment[sr@Latn]=Podešavanje KDE-ovih resursa Comment[sr@Latn]=Podešavanje TDE-ovih resursa
Comment[sv]=Anpassa KDE-resurser Comment[sv]=Anpassa TDE-resurser
Comment[ta]=KDE மூலங்களை கட்டமை Comment[ta]=TDE மூலங்களை கட்டமை
Comment[te]=కెడిఈ వనరులను కూర్చుమూ Comment[te]=కెడిఈ వనరులను కూర్చుమూ
Comment[tg]=Танзими манбаъи истифодашуда тавассути китоби адрес Comment[tg]=Танзими манбаъи истифодашуда тавассути китоби адрес
Comment[th]=ปรับแต่งทรัพยากรของ KDE Comment[th]=ปรับแต่งทรัพยากรของ TDE
Comment[tr]=KDE Kaynaklarını Yapılandır Comment[tr]=TDE Kaynaklarını Yapılandır
Comment[tt]=KDE Resursların Caylaw Comment[tt]=TDE Resursların Caylaw
Comment[uk]=Налаштування ресурсів KDE Comment[uk]=Налаштування ресурсів TDE
Comment[uz]=KDE manbalarini moslash Comment[uz]=TDE manbalarini moslash
Comment[uz@cyrillic]=KDE манбаларини мослаш Comment[uz@cyrillic]=TDE манбаларини мослаш
Comment[vi]=Cấu hình các tài nguyên KDE. Comment[vi]=Cấu hình các tài nguyên TDE.
Comment[zh_CN]=配置 KDE 资源 Comment[zh_CN]=配置 TDE 资源
Comment[zh_HK]=設定 KDE 使用的資源 Comment[zh_HK]=設定 TDE 使用的資源
Comment[zh_TW]=在此設定 KDE 的資源 Comment[zh_TW]=在此設定 TDE 的資源
Keywords=resources,konnector resource,contact resource,calendar resource,notes resource,imap Keywords=resources,konnector resource,contact resource,calendar resource,notes resource,imap
Keywords[af]=hulpbronne,konnector hulpbron,kontak hulpbron,kalender hulpbron, notas hulpbron, imap Keywords[af]=hulpbronne,konnector hulpbron,kontak hulpbron,kalender hulpbron, notas hulpbron, imap

@ -134,7 +134,7 @@ Implementation details :
------------------------ ------------------------
The ASN info data is sent using X ClientMessages as text ( see below ), The ASN info data is sent using X ClientMessages as text ( see below ),
this is mainly in hope also non-KDE people will start using it, and this is mainly in hope also non-TDE people will start using it, and
they wouldn't be very happy with DCOP. they wouldn't be very happy with DCOP.
Before starting an application, and environment variable called Before starting an application, and environment variable called
KDE_STARTUP_ENV is added to it's environment, and it's set to unique KDE_STARTUP_ENV is added to it's environment, and it's set to unique
@ -271,7 +271,7 @@ Entries :
Well, I guess that's all. The KDE2.2 release will show if the users like it Well, I guess that's all. The KDE2.2 release will show if the users like it
or not ( it's quite good IMHO, even though there are probably some minor or not ( it's quite good IMHO, even though there are probably some minor
details to fix or improve ). The only big thing remaining is to make also details to fix or improve ). The only big thing remaining is to make also
non-KDE people agree on using something like this. My first attempt non-TDE people agree on using something like this. My first attempt
https://listman.redhat.com/pipermail/xdg-list/2001-May/000083.html https://listman.redhat.com/pipermail/xdg-list/2001-May/000083.html
didn't get much attention, but now that there's a working implementation, didn't get much attention, but now that there's a working implementation,
I hope it will get better, when I try again sometime in the future. I hope it will get better, when I try again sometime in the future.

@ -7,7 +7,7 @@ if test "$exec_prefix" = "NONE"; then
else else
bindir_str="\"$exec_prefix/bin\"" bindir_str="\"$exec_prefix/bin\""
fi fi
AC_DEFINE_UNQUOTED(__KDE_BINDIR, $bindir_str, [KDE bindir]) AC_DEFINE_UNQUOTED(__TDE_BINDIR, $bindir_str, [TDE bindir])
dnl tests for openpty support dnl tests for openpty support
AC_MSG_CHECKING(whether we can use openpty) AC_MSG_CHECKING(whether we can use openpty)

@ -1,90 +1,90 @@
[!Global!] [!Global!]
IconName=kmenu IconName=kmenu
Comment=KDE System Notifications Comment=System Notifications
Comment[af]=KDE Stelsel Inkennistelling Comment[af]=Stelsel Inkennistelling
Comment[ar]=تنبيهات كيدي Comment[ar]=تنبيهات كيدي
Comment[az]=KDE Sistem Bildirişləri Comment[az]=Sistem BildiriÅŸlÉ™ri
Comment[be]=Сістэмныя нагадванні KDE Comment[be]=СÑÑ<EFBFBD>ÑÑ<EFBFBD>мнÑÑ<EFBFBD> нагадванні
Comment[bg]=Системни съобщения Comment[bg]=Системни съобщения
Comment[bn]=কে.ডি.ই সিস্টেম বার্তাবলী Comment[bn]=কে.ডি.ই সিস্টেম বার্তাবলী
Comment[br]=Kemennoù ar reizhiad KDE Comment[br]=Kemennoù ar reizhiad
Comment[bs]=KDE Sistemska obavještenja Comment[bs]=Sistemska obavjeÅ¡tenja
Comment[ca]=Notificacions del sistema KDE Comment[ca]=Notificacions del sistema
Comment[cs]=Systémová hlášení prostředí KDE Comment[cs]=Systémová hlášení prostÅ™edí
Comment[csb]=Systemòwé òdkôzanié w KDE Comment[csb]=Systemòwé òdkôzanié w
Comment[cy]=Hysbysiadau Cysawd KDE Comment[cy]=Hysbysiadau Cysawd
Comment[da]=KDE-systembekendtgørelser Comment[da]=systembekendtgørelser
Comment[de]=KDE-Systemnachrichten Comment[de]=Systemnachrichten
Comment[el]=Ειδοποιήσεις συστήματος του KDE Comment[el]=Ειδοποιήσεις συστήματος του
Comment[eo]=KDE-Sistematentigoj Comment[eo]=Sistematentigoj
Comment[es]=Notificaciones del sistema de KDE Comment[es]=Notificaciones del sistema de
Comment[et]=KDE süsteemi märguanded Comment[et]=süsteemi märguanded
Comment[eu]=KDEren sistemako jakinarazpenak Comment[eu]=ren sistemako jakinarazpenak
Comment[fa]=اخطارهای سیستم KDE Comment[fa]=اخطارهای سیستم
Comment[fi]=KDE:n järjestelmähuomautukset Comment[fi]=järjestelmähuomautukset
Comment[fr]=Notifications du système KDE Comment[fr]=Notifications du système
Comment[fy]=KDE Systeemberjochten Comment[fy]=Systeemberjochten
Comment[ga]=Fógairt Chórais KDE Comment[ga]=Fógairt Chórais
Comment[gl]=Notificacións do Sistema de KDE Comment[gl]=Notificacións do Sistema de
Comment[he]=הודעות מערכת של KDE Comment[he]=הודעות מערכת של
Comment[hi]=केडीई तंत्र सूचना Comment[hi]=केडीई तंत्र सूचना
Comment[hr]=KDE sistemske obavijesti Comment[hr]=sistemske obavijesti
Comment[hsb]=KDE systemowe powěsće Comment[hsb]=systemowe powÄsće
Comment[hu]=KDE rendszerüzenetek Comment[hu]=rendszerüzenetek
Comment[id]=Sistem Pemberitahuan KDE Comment[id]=Sistem Pemberitahuan
Comment[is]=Tilkynningar KDE kerfisins Comment[is]=Tilkynningar kerfisins
Comment[it]=Avvisi di sistema di KDE Comment[it]=Avvisi di sistema di
Comment[ja]=KDE システム通知 Comment[ja]=システム通知
Comment[ka]=KDE სისტემური შეტყობინებები Comment[ka]=სისტემური შეტყáƒ<C3A1>áƒáƒ˜áƒœáƒ”áƒáƒ”áƒáƒ˜
Comment[kk]=KDE жүйе құлақтандырулар Comment[kk]=жүйе құлақтандырулар
Comment[km]=ការ​ជូន​ដំណឹង​អំពី​ប្រព័ន្ធ​របស់ KDE Comment[km]=ការâ€áž‡áž¼áž“â€ážŠáŸ†ážŽáž¹áž„â€áž¢áŸ†ážáž¸â€áž”áŸážšážáŸ<EFBFBD>áž“áŸážâ€ážšáž”សáŸ
Comment[ko]=KDE 시스템 알림 Comment[ko]=시스템 알림
Comment[lb]=KDE-System-Norichten Comment[lb]=System-Norichten
Comment[lt]=KDE Sistemos Pranešimai Comment[lt]=Sistemos PraneÅ¡imai
Comment[lv]=KDE Sistēmas Paziņojumi Comment[lv]=SistÄ“mas Paziņojumi
Comment[mk]=KDE системски известувања Comment[mk]=Ñ<EFBFBD>иÑ<EFBFBD>ÑемÑ<EFBFBD>ки извеÑ<C2B5>Ñувања
Comment[mn]=KDE-Системийн сонордуулга Comment[mn]=СиÑ<EFBFBD>Ñемийн Ñ<>онордуулга
Comment[ms]= Sistem Pemberitahuan KDE Comment[ms]= Sistem Pemberitahuan
Comment[mt]=Notifiki tas-sistema KDE Comment[mt]=Notifiki tas-sistema
Comment[nb]=KDE Systemvarsler Comment[nb]=Systemvarsler
Comment[nds]=KDE-Systeemnarichten Comment[nds]=Systeemnarichten
Comment[ne]=KDE प्रणाली सूचना Comment[ne]=पà¥<EFBFBD>रणाली सूचना
Comment[nl]=KDE Systeemnotificaties Comment[nl]=Systeemnotificaties
Comment[nn]=KDE Systempåminningar Comment[nn]=SystempÃ¥minningar
Comment[nso]=Ditsebiso tsa System ya KDE Comment[nso]=Ditsebiso tsa System ya
Comment[oc]=Notificacions dèu sistemo KDE Comment[oc]=Notificacions dèu sistemo
Comment[pa]=KDE ਸਿਸਟਮ ਟਿੱਪਣੀਆਂ Comment[pa]=ਸਿਸਟਮ ਟਿੱਪਣੀਆਂ
Comment[pl]=Powiadamianie systemowe w KDE Comment[pl]=Powiadamianie systemowe w
Comment[pt]=Mensagens do sistema Comment[pt]=Mensagens do sistema
Comment[pt_BR]=Notificações de sistema do KDE Comment[pt_BR]=Notificações de sistema do
Comment[ro]=Sistem de notificare KDE Comment[ro]=Sistem de notificare
Comment[ru]=Системные сообщения KDE Comment[ru]=СиÑ<EFBFBD>ÑемнÑе Ñ<>ообщениÑ<C2B8>
Comment[rw]=Amamenyekanisha ya Sisitemu KDE Comment[rw]=Amamenyekanisha ya Sisitemu
Comment[se]=KDE vuogádatdieđáhusat Comment[se]=vuogádatdieÄáhusat
Comment[sk]=KDE Systémové správy Comment[sk]=Systémové správy
Comment[sl]=Sistemska obvestila KDE Comment[sl]=Sistemska obvestila
Comment[sq]=Njoftim nga Sistemi KDE Comment[sq]=Njoftim nga Sistemi
Comment[sr]=KDE-ова системска обавештења Comment[sr]=ова Ñ<>иÑ<C2B8>ÑемÑ<C2BC>ка обавештења
Comment[sr@Latn]=KDE-ova sistemska obaveštenja Comment[sr@Latn]=ova sistemska obaveÅ¡tenja
Comment[ss]=Tatiso temshini we KDE Comment[ss]=Tatiso temshini we
Comment[sv]=KDE:s systemunderrättelser Comment[sv]=systemunderrättelser
Comment[ta]=கேடிஇ கணினி அறிவிப்புகள் Comment[ta]=கேடிஇ கணினி அறிவிப்புகள்
Comment[te]=కెడిఈ వ్యవస్థ ప్రకటనలు Comment[te]=కెడిఈ వ్యవస్థ ప్రకటనలు
Comment[tg]=Хабарҳои системавии KDE Comment[tg]=Хабарҳои Ñ<>иÑ<C2B8>Ñемавии
Comment[th]=การแจ้งเตือนของระบบ KDE Comment[th]=à¸<EFBFBD>ารà¹<EFBFBD>จ้งเตือนà¸à¸­à¸‡à¸£à¸°à¸šà¸š
Comment[tr]=KDE Sistem Bildirimleri Comment[tr]=Sistem Bildirimleri
Comment[tt]=KDE'nıñ Sistem Beldermäläre Comment[tt]=nıñ Sistem Beldermäläre
Comment[uk]=Системні повідомлення KDE Comment[uk]=СиÑ<EFBFBD>ÑÐµÐ¼Ð½Ñ Ð¿Ð¾Ð²ÑдомленнÑ<C2BD>
Comment[uz]=KDE tizimning xabarnomalari Comment[uz]=tizimning xabarnomalari
Comment[uz@cyrillic]=KDE тизимнинг хабарномалари Comment[uz@cyrillic]=тизимнинг хабарномалари
Comment[ven]=U divhadza maitele a KDE Comment[ven]=U divhadza maitele a
Comment[vi]=Thông báo hệ thống KDE Comment[vi]=Thông báo hệ thá»ng
Comment[wa]=Notifiaedjes sistinme di KDE Comment[wa]=Notifiaedjes sistinme di
Comment[xh]=Izaziso Zendlela ye KDE Comment[xh]=Izaziso Zendlela ye
Comment[zh_CN]=KDE 系统通知 Comment[zh_CN]=系统通知
Comment[zh_HK]=KDE 系統通知 Comment[zh_HK]=系統通知
Comment[zh_TW]=KDE 系統通知 Comment[zh_TW]=系統通知
Comment[zu]=Izaziso Zesistimu ye-KDE Comment[zu]=Izaziso Zesistimu ye
[Trash: emptied] [Trash: emptied]
Name=Trash: emptied Name=Trash: emptied
@ -352,7 +352,7 @@ Comment[lb]=D'Enn vun der Lëscht mat den Iwwerteneestëmmungen ass erreecht gin
Comment[lt]=Pasiektas atitikmenų sąrašo galas Comment[lt]=Pasiektas atitikmenų sąrašo galas
Comment[lv]=Sasniegtas atbilstību saraksta beigas Comment[lv]=Sasniegtas atbilstību saraksta beigas
Comment[mk]=Достигнат е крајот на листата на совпаѓања Comment[mk]=Достигнат е крајот на листата на совпаѓања
Comment[ms]=Sampai ke akhiran senarai padanan Comment[ms]=Sampai ke akhiran senarai padanan
Comment[nb]=Har kommet til slutten av lista over treff Comment[nb]=Har kommet til slutten av lista over treff
Comment[nds]=Dat is dat Enn vun de List mit Övereenstimmen Comment[nds]=Dat is dat Enn vun de List mit Övereenstimmen
Comment[ne]=मिल्दो सूचीको अन्त्यमा पुगिएको छ Comment[ne]=मिल्दो सूचीको अन्त्यमा पुगिएको छ
@ -1232,7 +1232,7 @@ Name[ja]=警告
Name[ka]=გაფრთხილება Name[ka]=გაფრთხილება
Name[kk]=Ескерту Name[kk]=Ескерту
Name[km]=ព្រមាន Name[km]=ព្រមាន
Name[ko]=경고 Name[ko]=ê²½ê³
Name[lb]=Warnung Name[lb]=Warnung
Name[lt]=Dėmesio Name[lt]=Dėmesio
Name[lv]=Brīdinājums Name[lv]=Brīdinājums
@ -1330,7 +1330,7 @@ Comment[pt]=Ocorreu um erro grave no programa que pode causar problemas
Comment[pt_BR]=Houve um erro no programa que pode ter causado problemas Comment[pt_BR]=Houve um erro no programa que pode ter causado problemas
Comment[ro]=A apărut o eroare în program care ar putea cauza probleme Comment[ro]=A apărut o eroare în program care ar putea cauza probleme
Comment[ru]=Ошибка в программе, которая может вызвать проблемы Comment[ru]=Ошибка в программе, которая может вызвать проблемы
Comment[rw]=Habaye ikosa muri porogaramu rishobora gutera ibibazo Comment[rw]=Habaye ikosa muri porogaramu rishobora gutera ibibazo
Comment[se]=Prográmmas lei meattáhus mii sáhttá dagahit váttisvuođaid Comment[se]=Prográmmas lei meattáhus mii sáhttá dagahit váttisvuođaid
Comment[sk]=V programe sa vyskytla chyba, ktorá môže spôsobiť problémy Comment[sk]=V programe sa vyskytla chyba, ktorá môže spôsobiť problémy
Comment[sl]=V programu je nastala napaka, ki lahko povzroči težave Comment[sl]=V programu je nastala napaka, ki lahko povzroči težave
@ -1478,7 +1478,7 @@ Comment[lb]=E ganz schlëmme Feeler ass opgetrueden, deen op Mannst zum Ophale v
Comment[lt]=Įvyko labai rimta klaida, privertusi programą bent jau baigti darbą. Comment[lt]=Įvyko labai rimta klaida, privertusi programą bent jau baigti darbą.
Comment[lv]=Gadījusies ļoti nopietna kļūda, kas kā minumums izraisa iziešanu no programmas Comment[lv]=Gadījusies ļoti nopietna kļūda, kas kā minumums izraisa iziešanu no programmas
Comment[mk]=Се случи сериозна грешка, што во најмала рака предизвика програмот да се исклучи Comment[mk]=Се случи сериозна грешка, што во најмала рака предизвика програмот да се исклучи
Comment[mn]=Дор хаяж программыг таслан гарах ноцтой алдаа гарлаа. Comment[mn]=Дор хаÑ<C2B0>ж программыг ÑаÑ<C2B0>лан гарах ноцтой алдаа гарлаа.
Comment[ms]=Ada ralat sangat serius di dalam program yang menyebabkan program keluar Comment[ms]=Ada ralat sangat serius di dalam program yang menyebabkan program keluar
Comment[nb]=Det oppsto en alvorlig feil som til slutt førte til at programmet avsluttet Comment[nb]=Det oppsto en alvorlig feil som til slutt førte til at programmet avsluttet
Comment[nds]=Dor is en Malöör passeert, dat tominnst to't Enn vun't Programm föhrt hett Comment[nds]=Dor is en Malöör passeert, dat tominnst to't Enn vun't Programm föhrt hett

@ -920,7 +920,7 @@ void KApplication::init(bool GUIenabled)
// * We use kdialog to warn the user, so we better not generate warnings from // * We use kdialog to warn the user, so we better not generate warnings from
// kdialog itself. // kdialog itself.
// * Don't warn if we run with a read-only $HOME // * Don't warn if we run with a read-only $HOME
TQCString readOnly = getenv("KDE_HOME_READONLY"); TQCString readOnly = getenv("TDE_HOME_READONLY");
if (readOnly.isEmpty() && (tqstrcmp(name(), "kdialog") != 0)) if (readOnly.isEmpty() && (tqstrcmp(name(), "kdialog") != 0))
{ {
KConfigGroupSaver saver(config, "KDE Action Restrictions"); KConfigGroupSaver saver(config, "KDE Action Restrictions");
@ -1642,7 +1642,7 @@ void KApplication::parseCommandLine( )
} }
} }
bool nocrashhandler = (getenv("KDE_DEBUG") != NULL); bool nocrashhandler = (getenv("TDE_DEBUG") != NULL);
if (!nocrashhandler && args->isSet("crashhandler")) if (!nocrashhandler && args->isSet("crashhandler"))
{ {
// set default crash handler / set emergency save function to nothing // set default crash handler / set emergency save function to nothing

@ -148,10 +148,10 @@ KCrash::defaultCrashHandler (int sig)
if (appName) if (appName)
{ {
#ifndef NDEBUG #ifndef NDEBUG
fprintf(stderr, "KCrash: crashing... crashRecursionCounter = %d\n", crashRecursionCounter); fprintf(stderr, "[kcrash] KCrash: crashing... crashRecursionCounter = %d\n", crashRecursionCounter);
fprintf(stderr, "KCrash: Application Name = %s path = %s pid = %d\n", appName ? appName : "<unknown>" , appPath ? appPath : "<unknown>", getpid()); fprintf(stderr, "[kcrash] KCrash: Application Name = %s path = %s pid = %d\n", appName ? appName : "<unknown>" , appPath ? appPath : "<unknown>", getpid());
#else #else
fprintf(stderr, "KCrash: Application '%s' crashing...\n", appName ? appName : "<unknown>"); fprintf(stderr, "[kcrash] KCrash: 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 @@ KCrash::defaultCrashHandler (int sig)
} }
else { else {
fprintf(stderr, "Unknown appname\n"); fprintf(stderr, "[kcrash] Unknown appname\n");
} }
} }
if (crashRecursionCounter < 4) if (crashRecursionCounter < 4)
{ {
fprintf(stderr, "Unable to start Dr. Konqi\n"); fprintf(stderr, "[kcrash] Unable to start Dr. Konqi\n");
} }
#endif //Q_OS_UNIX #endif //Q_OS_UNIX
@ -277,7 +277,7 @@ void KCrash::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, "BUFSIZE in KCrash not big enough!\n" ); fprintf( stderr, "[kcrash] BUFSIZE in KCrash not big enough!\n" );
startDirectly( argv, argc ); startDirectly( argv, argc );
return; return;
} }
@ -320,7 +320,7 @@ void KCrash::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 KCrash::startDirectly( const char* argv[], int ) void KCrash::startDirectly( const char* argv[], int )
{ {
fprintf( stderr, "KCrash cannot reach tdeinit, launching directly.\n" ); fprintf( stderr, "[kcrash] KCrash cannot reach tdeinit, launching directly.\n" );
pid_t pid = fork(); pid_t pid = fork();
if (pid <= 0) if (pid <= 0)
{ {
@ -451,12 +451,12 @@ static int openSocket()
{ {
if (!home_dir || !home_dir[0]) if (!home_dir || !home_dir[0])
{ {
fprintf(stderr, "Warning: $HOME not set!\n"); fprintf(stderr, "[kcrash] 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, "Warning: Home directory path too long!\n"); fprintf(stderr, "[kcrash] Warning: Home directory path too long!\n");
return -1; return -1;
} }
kde_home++; kde_home++;
@ -473,7 +473,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("Warning: Could not determine hostname: "); perror("[kcrash] Warning: Could not determine hostname: ");
return -1; return -1;
} }
sock_file[sizeof(sock_file)-1] = '\0'; sock_file[sizeof(sock_file)-1] = '\0';
@ -482,13 +482,13 @@ static int openSocket()
display = getDisplay(); display = getDisplay();
if (display == NULL) if (display == NULL)
{ {
fprintf(stderr, "Error: Could not determine display.\n"); fprintf(stderr, "[kcrash] 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, "Warning: Socket name will be too long.\n"); fprintf(stderr, "[kcrash] Warning: Socket name will be too long.\n");
free(display); free(display);
return -1; return -1;
} }
@ -498,7 +498,7 @@ static int openSocket()
if (strlen(sock_file) >= sizeof(server.sun_path)) if (strlen(sock_file) >= sizeof(server.sun_path))
{ {
fprintf(stderr, "Warning: Path of socketfile exceeds UNIX_PATH_MAX.\n"); fprintf(stderr, "[kcrash] Warning: Path of socketfile exceeds UNIX_PATH_MAX.\n");
return -1; return -1;
} }
@ -508,7 +508,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("Warning: socket() failed: "); perror("[kcrash] Warning: socket creation failed: ");
return -1; return -1;
} }
@ -517,7 +517,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("Warning: connect() failed: "); perror("[kcrash] Warning: socket connection failed: ");
close(s); close(s);
return -1; return -1;
} }

@ -147,7 +147,7 @@ static bool process_flags(int flags, int& socktype, int& familyMask, int& outfla
(flags & KExtendedSocket::canonName ? KResolver::CanonName : 0) | (flags & KExtendedSocket::canonName ? KResolver::CanonName : 0) |
(flags & KExtendedSocket::noResolve ? KResolver::NoResolve : 0); (flags & KExtendedSocket::noResolve ? KResolver::NoResolve : 0);
if (getenv("KDE_NO_IPV6")) if (getenv("TDE_NO_IPV6"))
familyMask &= ~KResolver::IPv6Family; familyMask &= ~KResolver::IPv6Family;
return true; return true;

@ -205,7 +205,7 @@ KConfig *KInstance::config() const
} }
// Check if we are excempt from kiosk restrictions // Check if we are excempt from kiosk restrictions
if (kde_kiosk_admin && !kde_kiosk_exception && !TQCString(getenv("KDE_KIOSK_NO_RESTRICTIONS")).isEmpty()) if (kde_kiosk_admin && !kde_kiosk_exception && !TQCString(getenv("TDE_KIOSK_NO_RESTRICTIONS")).isEmpty())
{ {
kde_kiosk_exception = true; kde_kiosk_exception = true;
d->sharedConfig = 0; d->sharedConfig = 0;

@ -306,9 +306,9 @@ KLibLoader::KLibLoader( TQObject* parent, const char* name )
d = new KLibLoaderPrivate; d = new KLibLoaderPrivate;
lt_dlinit(); lt_dlinit();
d->unload_mode = KLibLoaderPrivate::UNKNOWN; d->unload_mode = KLibLoaderPrivate::UNKNOWN;
if (getenv("KDE_NOUNLOAD") != 0) if (getenv("TDE_NOUNLOAD") != 0)
d->unload_mode = KLibLoaderPrivate::DONT_UNLOAD; d->unload_mode = KLibLoaderPrivate::DONT_UNLOAD;
else if (getenv("KDE_DOUNLOAD") != 0) else if (getenv("TDE_DOUNLOAD") != 0)
d->unload_mode = KLibLoaderPrivate::UNLOAD; d->unload_mode = KLibLoaderPrivate::UNLOAD;
d->loaded_stack.setAutoDelete( true ); d->loaded_stack.setAutoDelete( true );
} }
@ -525,7 +525,7 @@ void KLibLoader::close_pending(KLibWrapPrivate *wrap)
bool deleted_one = false; bool deleted_one = false;
while ((wrap = d->loaded_stack.first())) { while ((wrap = d->loaded_stack.first())) {
/* Let's first see, if we want to try to unload this lib. /* Let's first see, if we want to try to unload this lib.
If the env. var KDE_DOUNLOAD is set, we try to unload every lib. If the env. var TDE_DOUNLOAD is set, we try to unload every lib.
If not, we look at the lib itself, and unload it only, if it exports If not, we look at the lib itself, and unload it only, if it exports
the symbol __kde_do_unload. */ the symbol __kde_do_unload. */
if (d->unload_mode != KLibLoaderPrivate::UNLOAD if (d->unload_mode != KLibLoaderPrivate::UNLOAD

@ -156,7 +156,7 @@ void KLocale::initLanguageList(KConfig * config, bool useEnv)
TQStringList languageList; TQStringList languageList;
if ( useEnv ) if ( useEnv )
languageList += TQStringList::split languageList += TQStringList::split
(':', TQFile::decodeName( ::getenv("KDE_LANG") )); (':', TQFile::decodeName( ::getenv("TDE_LANG") ));
languageList += config->readListEntry("Language", ':'); languageList += config->readListEntry("Language", ':');
@ -2074,7 +2074,7 @@ void KLocale::initFileNameEncoding(KConfig *)
{ {
// If the following environment variable is set, assume all filenames // If the following environment variable is set, assume all filenames
// are in UTF-8 regardless of the current C locale. // are in UTF-8 regardless of the current C locale.
d->utf8FileEncoding = getenv("KDE_UTF8_FILENAMES") != 0; d->utf8FileEncoding = getenv("TDE_UTF8_FILENAMES") != 0;
if (d->utf8FileEncoding) if (d->utf8FileEncoding)
{ {
TQFile::setEncodingFunction(KLocale::encodeFileNameUTF8); TQFile::setEncodingFunction(KLocale::encodeFileNameUTF8);

@ -130,7 +130,7 @@ public:
* The constructor looks for an entry Locale/Language in the * The constructor looks for an entry Locale/Language in the
* configuration file. * configuration file.
* If no config file is specified, it will also look for languages * If no config file is specified, it will also look for languages
* using the environment variables (KDE_LANG, LC_MESSAGES, LC_ALL, LANG), * using the environment variables (TDE_LANG, LC_MESSAGES, LC_ALL, LANG),
* as well as the global configuration file. If KLocale is not able to use * as well as the global configuration file. If KLocale is not able to use
* any of the specified languages, the default language (en_US) will be * any of the specified languages, the default language (en_US) will be
* used. * used.

@ -1274,7 +1274,7 @@ TQString KStandardDirs::kfsstnd_defaultbindir()
#ifdef Q_WS_WIN #ifdef Q_WS_WIN
s->defaultbindir = kfsstnd_defaultprefix() + TQString::fromLatin1("/bin"); s->defaultbindir = kfsstnd_defaultprefix() + TQString::fromLatin1("/bin");
#else //UNIX #else //UNIX
s->defaultbindir = __KDE_BINDIR; s->defaultbindir = __TDE_BINDIR;
if (s->defaultbindir.isEmpty()) if (s->defaultbindir.isEmpty())
s->defaultbindir = kfsstnd_defaultprefix() + TQString::fromLatin1("/bin"); s->defaultbindir = kfsstnd_defaultprefix() + TQString::fromLatin1("/bin");
#endif #endif
@ -1568,7 +1568,7 @@ bool KStandardDirs::addCustomized(KConfig *config)
bool readProfiles = true; bool readProfiles = true;
if (kde_kiosk_admin && !TQCString(getenv("KDE_KIOSK_NO_PROFILES")).isEmpty()) if (kde_kiosk_admin && !TQCString(getenv("TDE_KIOSK_NO_PROFILES")).isEmpty())
readProfiles = false; readProfiles = false;
TQString userMapFile = config->readEntry("userProfileMapFile"); TQString userMapFile = config->readEntry("userProfileMapFile");
@ -1630,7 +1630,7 @@ bool KStandardDirs::addCustomized(KConfig *config)
} }
// Process KIOSK restrictions. // Process KIOSK restrictions.
if (!kde_kiosk_admin || TQCString(getenv("KDE_KIOSK_NO_RESTRICTIONS")).isEmpty()) if (!kde_kiosk_admin || TQCString(getenv("TDE_KIOSK_NO_RESTRICTIONS")).isEmpty())
{ {
config->setGroup("KDE Resource Restrictions"); config->setGroup("KDE Resource Restrictions");
TQMap<TQString, TQString> entries = config->entryMap("KDE Resource Restrictions"); TQMap<TQString, TQString> entries = config->entryMap("KDE Resource Restrictions");

@ -112,7 +112,7 @@ bool KSycoca::openDatabase( bool openDummyIfNotFound )
m_str = 0; m_str = 0;
m_barray = 0; m_barray = 0;
TQString path; TQString path;
TQCString ksycoca_env = getenv("KDESYCOCA"); TQCString ksycoca_env = getenv("TDESYCOCA");
if (ksycoca_env.isEmpty()) if (ksycoca_env.isEmpty())
path = KGlobal::dirs()->saveLocation("cache") + "ksycoca"; path = KGlobal::dirs()->saveLocation("cache") + "ksycoca";
else else

@ -233,7 +233,7 @@ KTempFile::sync()
if (mFd >= 0) if (mFd >= 0)
{ {
if( qstrcmp( getenv( "KDE_EXTRA_FSYNC" ), "1" ) == 0 ) if( qstrcmp( getenv( "TDE_EXTRA_FSYNC" ), "1" ) == 0 )
{ {
result = FDATASYNC(mFd); result = FDATASYNC(mFd);
if (result) if (result)

@ -7,7 +7,7 @@ FreeBSD's libc.
There's a new configure switch, --enable-fast-malloc. By default it's turned off, disabling There's a new configure switch, --enable-fast-malloc. By default it's turned off, disabling
the system libc one and using this one. Using --enable-fast-malloc=full enables this the system libc one and using this one. Using --enable-fast-malloc=full enables this
malloc unconditionally, aiming for the maximum performance. By using only --enable-fast-malloc, malloc unconditionally, aiming for the maximum performance. By using only --enable-fast-malloc,
it's possible to select both malloc implementations at runtime. When $KDE_MALLOC is set to 0, it's possible to select both malloc implementations at runtime. When $TDE_MALLOC is set to 0,
the system libc malloc is used, otherwise this malloc is used. the system libc malloc is used, otherwise this malloc is used.
For now, the requirements are : For now, the requirements are :
@ -31,11 +31,11 @@ changes (against malloc-2.7.0):
#define USE_MEMCPY 0 #define USE_MEMCPY 0
#define MMAP_CLEARS 1 #define MMAP_CLEARS 1
made all functions INLINE made all functions INLINE
added #ifdef KDE_MALLOC_DEBUG -> #define DEBUG added #ifdef TDE_MALLOC_DEBUG -> #define DEBUG
reordered all functions in order to avoid 'warning: `XYZ' declared inline after being called' reordered all functions in order to avoid 'warning: `XYZ' declared inline after being called'
especially moved the public_* ones at the end of the file especially moved the public_* ones at the end of the file
commented out #including malloc.h commented out #including malloc.h
added #include <config.h> at the top and enclosed whole file in #ifdef KDE_MALLOC added #include <config.h> at the top and enclosed whole file in #ifdef TDE_MALLOC
taken posix_memalign() from glibc taken posix_memalign() from glibc
removed public icalloc(),icomalloc(),mtrim(),musable() (they don't exist everywhere anyway) removed public icalloc(),icomalloc(),mtrim(),musable() (they don't exist everywhere anyway)
enclosed the pthreads part by #if 0 and replaced it with spinlock from glibc CVS (in x86.h) enclosed the pthreads part by #if 0 and replaced it with spinlock from glibc CVS (in x86.h)
@ -45,7 +45,7 @@ static mutex_t spinlock = MUTEX_INITIALIZER;
#define MALLOC_PREACTION lock( &spinlock ) #define MALLOC_PREACTION lock( &spinlock )
#define MALLOC_POSTACTION unlock( &spinlock ) #define MALLOC_POSTACTION unlock( &spinlock )
---------- ----------
public functions call either functions in this malloc or in libc, depending on $KDE_MALLOC public functions call either functions in this malloc or in libc, depending on $TDE_MALLOC
the kde_malloc_is_used hack the kde_malloc_is_used hack

@ -1,4 +1,4 @@
dnl --enable-fast-malloc - depends on $KDE_MALLOC dnl --enable-fast-malloc - depends on $TDE_MALLOC
dnl --disable-fast-malloc - disabled dnl --disable-fast-malloc - disabled
dnl --enable-fast-malloc=full - enabled always dnl --enable-fast-malloc=full - enabled always
dnl dnl
@ -38,7 +38,7 @@ if test "$kde_fast_malloc" != "no"; then
dnl platforms for which there's a spinlock implementation dnl platforms for which there's a spinlock implementation
case $target_cpu in case $target_cpu in
i?86) i?86)
AC_DEFINE(KDE_MALLOC_X86, 1, [The platform is x86]) AC_DEFINE(TDE_MALLOC_X86, 1, [The platform is x86])
;; ;;
*) *)
if test "$kde_fast_malloc" = "notgiven"; then if test "$kde_fast_malloc" = "notgiven"; then
@ -63,7 +63,7 @@ dnl warn on untested platforms
fi fi
if test "$kde_fast_malloc" = "yes" -o "$kde_fast_malloc" = "notgiven" -o "$kde_fast_malloc" = "debug"; then if test "$kde_fast_malloc" = "yes" -o "$kde_fast_malloc" = "notgiven" -o "$kde_fast_malloc" = "debug"; then
dnl $KDE_MALLOC needs glibc (__libc_malloc etc.) dnl $TDE_MALLOC needs glibc (__libc_malloc etc.)
AC_CACHE_CHECK([if the libc is glibc],kde_cv_libc_glibc, AC_CACHE_CHECK([if the libc is glibc],kde_cv_libc_glibc,
[AC_TRY_COMPILE( [AC_TRY_COMPILE(
[#include<stdlib.h>], [#include<stdlib.h>],
@ -76,7 +76,7 @@ dnl $KDE_MALLOC needs glibc (__libc_malloc etc.)
[kde_cv_libc_glibc=no]) [kde_cv_libc_glibc=no])
]) ])
if test "$kde_cv_libc_glibc" = "yes"; then if test "$kde_cv_libc_glibc" = "yes"; then
AC_DEFINE(KDE_MALLOC_GLIBC, 1, [The libc used is glibc]) AC_DEFINE(TDE_MALLOC_GLIBC, 1, [The libc used is glibc])
else else
if test "$kde_fast_malloc" = "notgiven"; then if test "$kde_fast_malloc" = "notgiven"; then
kde_fast_malloc=notgiven_full kde_fast_malloc=notgiven_full
@ -116,15 +116,15 @@ else
fi fi
if test "$kde_fast_malloc" != "no"; then if test "$kde_fast_malloc" != "no"; then
AC_DEFINE(KDE_MALLOC, 1, [Use own malloc implementation]) AC_DEFINE(TDE_MALLOC, 1, [Use own malloc implementation])
fi fi
if test "$kde_fast_malloc" = "debug" -o "$kde_fast_malloc" = "debug_full"; then if test "$kde_fast_malloc" = "debug" -o "$kde_fast_malloc" = "debug_full"; then
AC_DEFINE(KDE_MALLOC_DEBUG, 1, [Enable debugging in fast malloc]) AC_DEFINE(TDE_MALLOC_DEBUG, 1, [Enable debugging in fast malloc])
fi fi
if test "$kde_fast_malloc" = "full" -o "$kde_fast_malloc" = "debug_full"; then if test "$kde_fast_malloc" = "full" -o "$kde_fast_malloc" = "debug_full"; then
AC_DEFINE(KDE_MALLOC_FULL, 1, [Make alloc as fast as possible]) AC_DEFINE(TDE_MALLOC_FULL, 1, [Make alloc as fast as possible])
fi fi
dnl -finline-limit=<large num> is needed for gcc3 in order to inline large functions dnl -finline-limit=<large num> is needed for gcc3 in order to inline large functions

@ -7,9 +7,9 @@
*/ */
int kde_malloc_is_used = 0; int kde_malloc_is_used = 0;
#ifdef KDE_MALLOC #ifdef TDE_MALLOC
#ifdef KDE_MALLOC_DEBUG #ifdef TDE_MALLOC_DEBUG
#define DEBUG #define DEBUG
#endif #endif
@ -1559,7 +1559,7 @@ static pthread_mutex_t mALLOC_MUTEx = PTHREAD_MUTEX_INITIALIZER;
#else #else
#ifdef KDE_MALLOC_X86 #ifdef TDE_MALLOC_X86
#include "x86.h" #include "x86.h"
#else #else
#error Unknown spinlock implementation #error Unknown spinlock implementation
@ -5475,9 +5475,9 @@ History:
#ifdef USE_PUBLIC_MALLOC_WRAPPERS #ifdef USE_PUBLIC_MALLOC_WRAPPERS
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
#ifdef KDE_MALLOC_GLIBC #ifdef TDE_MALLOC_GLIBC
#include "glibc.h" #include "glibc.h"
#else #else
/* cannot use dlsym(RTLD_NEXT,...) here, it calls malloc()*/ /* cannot use dlsym(RTLD_NEXT,...) here, it calls malloc()*/
@ -5491,7 +5491,7 @@ extern char* getenv(const char*);
static int malloc_type = 0; static int malloc_type = 0;
static void init_malloc_type(void) static void init_malloc_type(void)
{ {
const char* const env = getenv( "KDE_MALLOC" ); const char* const env = getenv( "TDE_MALLOC" );
if( env == NULL ) if( env == NULL )
malloc_type = 1; malloc_type = 1;
else if( env[ 0 ] == '0' || env[ 0 ] == 'n' || env[ 0 ] == 'N' ) else if( env[ 0 ] == '0' || env[ 0 ] == 'n' || env[ 0 ] == 'N' )
@ -5503,7 +5503,7 @@ static void init_malloc_type(void)
#endif #endif
Void_t* public_mALLOc(size_t bytes) { Void_t* public_mALLOc(size_t bytes) {
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
if( malloc_type == 1 ) if( malloc_type == 1 )
{ {
#endif #endif
@ -5515,7 +5515,7 @@ Void_t* public_mALLOc(size_t bytes) {
if (MALLOC_POSTACTION != 0) { if (MALLOC_POSTACTION != 0) {
} }
return m; return m;
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
} }
if( malloc_type == 2 ) if( malloc_type == 2 )
return libc_malloc( bytes ); return libc_malloc( bytes );
@ -5525,7 +5525,7 @@ Void_t* public_mALLOc(size_t bytes) {
} }
void public_fREe(Void_t* m) { void public_fREe(Void_t* m) {
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
if( malloc_type == 1 ) if( malloc_type == 1 )
{ {
#endif #endif
@ -5535,7 +5535,7 @@ void public_fREe(Void_t* m) {
fREe(m); fREe(m);
if (MALLOC_POSTACTION != 0) { if (MALLOC_POSTACTION != 0) {
} }
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
return; return;
} }
if( malloc_type == 2 ) if( malloc_type == 2 )
@ -5549,7 +5549,7 @@ void public_fREe(Void_t* m) {
} }
Void_t* public_rEALLOc(Void_t* m, size_t bytes) { Void_t* public_rEALLOc(Void_t* m, size_t bytes) {
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
if( malloc_type == 1 ) if( malloc_type == 1 )
{ {
#endif #endif
@ -5560,7 +5560,7 @@ Void_t* public_rEALLOc(Void_t* m, size_t bytes) {
if (MALLOC_POSTACTION != 0) { if (MALLOC_POSTACTION != 0) {
} }
return m; return m;
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
} }
if( malloc_type == 2 ) if( malloc_type == 2 )
return libc_realloc( m, bytes ); return libc_realloc( m, bytes );
@ -5570,7 +5570,7 @@ Void_t* public_rEALLOc(Void_t* m, size_t bytes) {
} }
Void_t* public_mEMALIGn(size_t alignment, size_t bytes) { Void_t* public_mEMALIGn(size_t alignment, size_t bytes) {
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
if( malloc_type == 1 ) if( malloc_type == 1 )
{ {
#endif #endif
@ -5582,7 +5582,7 @@ Void_t* public_mEMALIGn(size_t alignment, size_t bytes) {
if (MALLOC_POSTACTION != 0) { if (MALLOC_POSTACTION != 0) {
} }
return m; return m;
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
} }
if( malloc_type == 2 ) if( malloc_type == 2 )
return libc_memalign( alignment, bytes ); return libc_memalign( alignment, bytes );
@ -5592,7 +5592,7 @@ Void_t* public_mEMALIGn(size_t alignment, size_t bytes) {
} }
Void_t* public_vALLOc(size_t bytes) { Void_t* public_vALLOc(size_t bytes) {
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
if( malloc_type == 1 ) if( malloc_type == 1 )
{ {
#endif #endif
@ -5604,7 +5604,7 @@ Void_t* public_vALLOc(size_t bytes) {
if (MALLOC_POSTACTION != 0) { if (MALLOC_POSTACTION != 0) {
} }
return m; return m;
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
} }
if( malloc_type == 2 ) if( malloc_type == 2 )
return libc_valloc( bytes ); return libc_valloc( bytes );
@ -5614,7 +5614,7 @@ Void_t* public_vALLOc(size_t bytes) {
} }
Void_t* public_pVALLOc(size_t bytes) { Void_t* public_pVALLOc(size_t bytes) {
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
if( malloc_type == 1 ) if( malloc_type == 1 )
{ {
#endif #endif
@ -5626,7 +5626,7 @@ Void_t* public_pVALLOc(size_t bytes) {
if (MALLOC_POSTACTION != 0) { if (MALLOC_POSTACTION != 0) {
} }
return m; return m;
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
} }
if( malloc_type == 2 ) if( malloc_type == 2 )
return libc_pvalloc( bytes ); return libc_pvalloc( bytes );
@ -5636,7 +5636,7 @@ Void_t* public_pVALLOc(size_t bytes) {
} }
Void_t* public_cALLOc(size_t n, size_t elem_size) { Void_t* public_cALLOc(size_t n, size_t elem_size) {
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
if( malloc_type == 1 ) if( malloc_type == 1 )
{ {
#endif #endif
@ -5648,7 +5648,7 @@ Void_t* public_cALLOc(size_t n, size_t elem_size) {
if (MALLOC_POSTACTION != 0) { if (MALLOC_POSTACTION != 0) {
} }
return m; return m;
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
} }
if( malloc_type == 2 ) if( malloc_type == 2 )
return libc_calloc( n, elem_size ); return libc_calloc( n, elem_size );
@ -5658,7 +5658,7 @@ Void_t* public_cALLOc(size_t n, size_t elem_size) {
} }
void public_cFREe(Void_t* m) { void public_cFREe(Void_t* m) {
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
if( malloc_type == 1 ) if( malloc_type == 1 )
{ {
#endif #endif
@ -5668,7 +5668,7 @@ void public_cFREe(Void_t* m) {
cFREe(m); cFREe(m);
if (MALLOC_POSTACTION != 0) { if (MALLOC_POSTACTION != 0) {
} }
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
return; return;
} }
if( malloc_type == 2 ) if( malloc_type == 2 )
@ -5682,7 +5682,7 @@ void public_cFREe(Void_t* m) {
} }
struct mallinfo public_mALLINFo() { struct mallinfo public_mALLINFo() {
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
if( malloc_type == 1 ) if( malloc_type == 1 )
{ {
#endif #endif
@ -5695,7 +5695,7 @@ struct mallinfo public_mALLINFo() {
if (MALLOC_POSTACTION != 0) { if (MALLOC_POSTACTION != 0) {
} }
return m; return m;
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
} }
if( malloc_type == 2 ) if( malloc_type == 2 )
return libc_mallinfo(); return libc_mallinfo();
@ -5705,7 +5705,7 @@ struct mallinfo public_mALLINFo() {
} }
int public_mALLOPt(int p, int v) { int public_mALLOPt(int p, int v) {
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
if( malloc_type == 1 ) if( malloc_type == 1 )
{ {
#endif #endif
@ -5717,7 +5717,7 @@ int public_mALLOPt(int p, int v) {
if (MALLOC_POSTACTION != 0) { if (MALLOC_POSTACTION != 0) {
} }
return result; return result;
#ifndef KDE_MALLOC_FULL #ifndef TDE_MALLOC_FULL
} }
if( malloc_type == 2 ) if( malloc_type == 2 )
return libc_mallopt( p, v ); return libc_mallopt( p, v );

@ -188,7 +188,7 @@ static int check_ipv6_stack()
# ifndef AF_INET6 # ifndef AF_INET6
return 2; // how can we check? return 2; // how can we check?
# else # else
if (getenv("KDE_NO_IPV6")) if (getenv("TDE_NO_IPV6"))
return 2; return 2;
int fd = ::socket(AF_INET6, SOCK_STREAM, 0); int fd = ::socket(AF_INET6, SOCK_STREAM, 0);
if (fd == -1) if (fd == -1)

@ -629,7 +629,7 @@ NETRootInfo::NETRootInfo(Display *display, Window supportWindow, const char *wmN
p->desktop_layout_columns = p->desktop_layout_rows = 0; p->desktop_layout_columns = p->desktop_layout_rows = 0;
setDefaultProperties(); setDefaultProperties();
if( properties_size > PROPERTIES_SIZE ) { if( properties_size > PROPERTIES_SIZE ) {
fprintf( stderr, "NETRootInfo::NETRootInfo(): properties array too large\n"); fprintf( stderr, "[netwm] NETRootInfo::NETRootInfo(): properties array too large\n");
properties_size = PROPERTIES_SIZE; properties_size = PROPERTIES_SIZE;
} }
for( int i = 0; i < properties_size; ++i ) for( int i = 0; i < properties_size; ++i )
@ -730,7 +730,7 @@ NETRootInfo::NETRootInfo(Display *display, const unsigned long properties[], int
p->desktop_layout_columns = p->desktop_layout_rows = 0; p->desktop_layout_columns = p->desktop_layout_rows = 0;
setDefaultProperties(); setDefaultProperties();
if( properties_size > 2 ) { if( properties_size > 2 ) {
fprintf( stderr, "NETWinInfo::NETWinInfo(): properties array too large\n"); fprintf( stderr, "[netwm] NETWinInfo::NETWinInfo(): properties array too large\n");
properties_size = 2; properties_size = 2;
} }
for( int i = 0; i < properties_size; ++i ) for( int i = 0; i < properties_size; ++i )

@ -940,7 +940,7 @@ static TQString ToUnicode(const TQString& label);
static TQStringList *KResolver_initIdnDomains() static TQStringList *KResolver_initIdnDomains()
{ {
const char *kde_use_idn = getenv("KDE_USE_IDN"); const char *kde_use_idn = getenv("TDE_USE_IDN");
if (!kde_use_idn) if (!kde_use_idn)
kde_use_idn = "ac:at:br:cat:ch:cl:cn:de:dk:fi:gr:hu:info:io:is:jp:kr:li:lt:museum:org:no:se:sh:th:tm:tw:vn"; kde_use_idn = "ac:at:br:cat:ch:cl:cn:de:dk:fi:gr:hu:info:io:is:jp:kr:li:lt:museum:org:no:se:sh:th:tm:tw:vn";
return new TQStringList(TQStringList::split(':', TQString::fromLatin1(kde_use_idn).lower())); return new TQStringList(TQStringList::split(':', TQString::fromLatin1(kde_use_idn).lower()));

@ -63,7 +63,7 @@ static bool hasIPv6()
#ifndef AF_INET6 #ifndef AF_INET6
return false; return false;
#else #else
if (getenv("KDE_NO_IPV6") != 0L) if (getenv("TDE_NO_IPV6") != 0L)
return false; return false;
int fd = ::socket(AF_INET6, SOCK_STREAM, 0); int fd = ::socket(AF_INET6, SOCK_STREAM, 0);

@ -245,7 +245,7 @@ namespace KNetwork
void initSrvWorker() KDE_NO_EXPORT; void initSrvWorker() KDE_NO_EXPORT;
void initSrvWorker() void initSrvWorker()
{ {
if (getenv("KDE_NO_SRV") != NULL) if (getenv("TDE_NO_SRV") != NULL)
return; return;
KResolverWorkerFactoryBase::registerNewWorker(new KResolverWorkerFactory<KSrvResolverWorker>); KResolverWorkerFactoryBase::registerNewWorker(new KResolverWorkerFactory<KSrvResolverWorker>);

@ -32,17 +32,17 @@ int main( int argc, char **argv )
aConfig.writeEntry( "akey1", "avalue1" ); aConfig.writeEntry( "akey1", "avalue1" );
aConfig.writeEntry( "akey2", "avalue2" ); aConfig.writeEntry( "akey2", "avalue2" );
fprintf( stderr, "entries written, sleeping for 10 seconds\n" ); fprintf( stderr, "[ksimpleconfigtest] entries written, sleeping for 10 seconds\n" );
aConfig.sync(); aConfig.sync();
sleep( 10 ); sleep( 10 );
aConfig.setGroup( "Test group" ); aConfig.setGroup( "Test group" );
aConfig.deleteEntry( "key2", false ); aConfig.deleteEntry( "key2", false );
fprintf( stderr, "Deleted on entry from Test group, sleeping\n" ); fprintf( stderr, "[ksimpleconfigtest] Deleted on entry from Test group, sleeping\n" );
aConfig.sync(); aConfig.sync();
sleep( 10 ); sleep( 10 );
aConfig.deleteGroup( "Another Test group", true ); aConfig.deleteGroup( "Another Test group", true );
fprintf( stderr, "Deleted Another Test group\n" ); fprintf( stderr, "[ksimpleconfigtest] Deleted Another Test group\n" );
} }

@ -95,7 +95,7 @@ KMCupsManager::~KMCupsManager()
TQString KMCupsManager::driverDbCreationProgram() TQString KMCupsManager::driverDbCreationProgram()
{ {
return TQString(__KDE_BINDIR).append(TQString::fromLatin1("/make_driver_db_cups")); return TQString(__TDE_BINDIR).append(TQString::fromLatin1("/make_driver_db_cups"));
} }
TQString KMCupsManager::driverDirectory() TQString KMCupsManager::driverDirectory()

@ -1591,7 +1591,7 @@ static void yy_fatal_error( msg )
char msg[]; char msg[];
#endif #endif
{ {
(void) fprintf( stderr, "%s\n", msg ); (void) fprintf( stderr, "[fooscanner] %s\n", msg );
exit( YY_EXIT_FAILURE ); exit( YY_EXIT_FAILURE );
} }

@ -161,7 +161,7 @@ void KMVirtualManager::setAsDefault(KMPrinter *p, const TQString& name, TQWidget
i18n( "<qt>You are about to set a pseudo-printer as your personal default. " i18n( "<qt>You are about to set a pseudo-printer as your personal default. "
"This setting is specific to KDE and will not be available outside KDE " "This setting is specific to KDE and will not be available outside KDE "
"applications. Note that this will only make your personal default printer " "applications. Note that this will only make your personal default printer "
"as undefined for non-KDE applications and should not prevent you from " "as undefined for non-TDE applications and should not prevent you from "
"printing normally. Do you really want to set <b>%1</b> as your personal default?</qt>" ).arg( instname ), "printing normally. Do you really want to set <b>%1</b> as your personal default?</qt>" ).arg( instname ),
TQString::null, i18n("Set as Default"), "setSpecialAsDefault" ) == KMessageBox::No ) TQString::null, i18n("Set as Default"), "setSpecialAsDefault" ) == KMessageBox::No )
return; return;

@ -55,7 +55,7 @@ KPCopiesPage::KPCopiesPage(KPrinter *prt, TQWidget *parent, const char *name)
TQString whatsThisCurrentPagesLabel = i18n( " <qt><b>Current Page:</b> Select <em>\"Current\"</em> if you want " TQString whatsThisCurrentPagesLabel = i18n( " <qt><b>Current Page:</b> Select <em>\"Current\"</em> if you want "
" to print the page currently visible in your KDE application.</p>" " to print the page currently visible in your KDE application.</p>"
" <p><b>Note:</b> this field is disabled if you print from" " <p><b>Note:</b> this field is disabled if you print from"
" non-KDE applications like Mozilla or OpenOffice.org, since here KDEPrint has no" " non-TDE applications like Mozilla or OpenOffice.org, since here KDEPrint has no"
" means to determine which document page you are currently viewing.</p></qt>" ); " means to determine which document page you are currently viewing.</p></qt>" );
TQString whatsThisPageRangeLabel = i18n( " <qt><b>Page Range:</b> Choose a \"Page Range\" to select a subset of the" TQString whatsThisPageRangeLabel = i18n( " <qt><b>Page Range:</b> Choose a \"Page Range\" to select a subset of the"
" complete document pages" " complete document pages"

@ -243,7 +243,7 @@ KPrintDialog::KPrintDialog(TQWidget *parent, const char *name)
" <p><b>Note:</b> The preview feature (and therefore this checkbox) " " <p><b>Note:</b> The preview feature (and therefore this checkbox) "
" is only visible for printjobs created from inside KDE applications. " " is only visible for printjobs created from inside KDE applications. "
" If you start kprinter from the commandline, or if you use kprinter " " If you start kprinter from the commandline, or if you use kprinter "
" as a print command for non-KDE applications (like Acrobat Reader, " " as a print command for non-TDE applications (like Acrobat Reader, "
" Firefox or OpenOffice), print preview is not available here. " " Firefox or OpenOffice), print preview is not available here. "
" </qt>" ); " </qt>" );

@ -131,7 +131,7 @@ MarginWidget::MarginWidget(TQWidget *parent, const char* name, bool allowMetricU
" <b>Note:</b> The margin setting does not work if you load such files directly into " " <b>Note:</b> The margin setting does not work if you load such files directly into "
" kprinter, which have their print margins hardcoded internally, like as most " " kprinter, which have their print margins hardcoded internally, like as most "
" PDF or PostScript files. It works for all ASCII text files however. It also may not " " PDF or PostScript files. It works for all ASCII text files however. It also may not "
" work with non-KDE applications which fail to " " work with non-TDE applications which fail to "
" fully utilize the KDEPrint framework, such as OpenOffice.org. </p> " " fully utilize the KDEPrint framework, such as OpenOffice.org. </p> "
" </qt>" ); " </qt>" );

@ -1790,7 +1790,7 @@ static void yy_fatal_error( msg )
char msg[]; char msg[];
#endif #endif
{ {
(void) fprintf( stderr, "%s\n", msg ); (void) fprintf( stderr, "[ppdscanner] %s\n", msg );
exit( YY_EXIT_FAILURE ); exit( YY_EXIT_FAILURE );
} }

@ -125,11 +125,11 @@ int StubProcess::ConverseStub(int check)
if (!path.isEmpty()) if (!path.isEmpty())
path = "/usr/local/sbin:/usr/sbin:/sbin:" + path; path = "/usr/local/sbin:/usr/sbin:/sbin:" + path;
else else
if (strcmp(__KDE_BINDIR, "/usr/bin") == 0) { if (strcmp(__TDE_BINDIR, "/usr/bin") == 0) {
path = "/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin"; path = "/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin";
} }
else { else {
path = "/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:" __KDE_BINDIR ":/usr/bin:/bin"; path = "/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:" __TDE_BINDIR ":/usr/bin:/bin";
} }
writeLine(path); writeLine(path);
} else if (line == "user") { } else if (line == "user") {

@ -112,7 +112,7 @@ int SuProcess::exec(const char *password, int check)
if (superUserCommand == "su") { if (superUserCommand == "su") {
args += "-c"; args += "-c";
} }
args += TQCString(__KDE_BINDIR) + "/tdesu_stub"; args += TQCString(__TDE_BINDIR) + "/tdesu_stub";
#ifndef Q_OS_DARWIN #ifndef Q_OS_DARWIN
args += "-"; args += "-";
#endif #endif

@ -100,7 +100,7 @@ public:
* embedded applications that do not support the XEMBED protocol. * embedded applications that do not support the XEMBED protocol.
* The default is XEMBED. * The default is XEMBED.
* *
* Non KDE applications should be embedded with protocol XPLAIN. * Non TDE applications should be embedded with protocol XPLAIN.
* This does not happen automatically yet. * This does not happen automatically yet.
* You must call setProtocol() explicitly. * You must call setProtocol() explicitly.
*/ */

@ -82,8 +82,8 @@ int kde_start
# ifndef TDEDIR # ifndef TDEDIR
# define TDEDIR TQString(KDEWIN32_DIR) # define TDEDIR TQString(KDEWIN32_DIR)
# endif # endif
# ifndef __KDE_BINDIR # ifndef __TDE_BINDIR
# define __KDE_BINDIR TQString(KDEWIN32_DIR "/bin") # define __TDE_BINDIR TQString(KDEWIN32_DIR "/bin")
# endif # endif
#endif #endif
*/ */

Loading…
Cancel
Save