Fix Linux rpc problems with new glibc
This commit is contained in:
committed by
Jon Trulson
parent
16fbb15ecc
commit
07f272122d
@@ -81,7 +81,7 @@ FeatureSet::evaluate(FeatureSet *result_set) const
|
||||
result_set->append(new Feature(next.key()->name(),
|
||||
value));
|
||||
}
|
||||
mcatch_noarg(badEvaluationException)
|
||||
mcatch_noarg(badEvaluationException&)
|
||||
{
|
||||
/* do nothing...we just ignore any that will not evaluate */
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ protected:
|
||||
};
|
||||
|
||||
#ifdef C_API
|
||||
#define g_memory_pool (*g_memory_pool_ptr)
|
||||
#define g_memory_pool *g_memory_pool_ptr
|
||||
extern memory_pool* g_memory_pool_ptr;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -349,12 +349,12 @@ int data_t::slot_num(int k, int rotate, int prime, int M )
|
||||
void* data_t::operator new( size_t x )
|
||||
{
|
||||
//return (void*)data_t_space_pool.alloc(x);
|
||||
return (void*)g_memory_pool.alloc(x);
|
||||
return (void*)(g_memory_pool).alloc(x);
|
||||
}
|
||||
|
||||
void data_t::operator delete( void* ptr )
|
||||
{
|
||||
//data_t_space_pool.free((char*)ptr);
|
||||
g_memory_pool.free((char*)ptr);
|
||||
(g_memory_pool).free((char*)ptr);
|
||||
}
|
||||
|
||||
|
||||
@@ -96,15 +96,15 @@ long_pstring::extract(int left, int right, char* sink)
|
||||
)
|
||||
v_str_index = new chunks_index(storage_ptr, v_str_ptr.loc);
|
||||
|
||||
if ( v_str_index ) {
|
||||
if ( v_str_index ) {
|
||||
|
||||
str_index_record_t* anchor = v_str_index -> chunk_location(left);
|
||||
str_index_record_t* anchor = v_str_index -> chunk_location(left);
|
||||
|
||||
//debug(cerr, left - anchor -> str_offset);
|
||||
storage_ptr ->
|
||||
readString(anchor -> loc, sink,
|
||||
right-left, left - anchor -> str_offset
|
||||
);
|
||||
storage_ptr ->
|
||||
readString(anchor -> loc, sink,
|
||||
right-left, left - anchor -> str_offset
|
||||
);
|
||||
|
||||
} else
|
||||
|
||||
|
||||
@@ -136,7 +136,11 @@ void DtMmdbQuit()
|
||||
|
||||
}
|
||||
|
||||
#if __cplusplus < 201103L
|
||||
void* operator new( size_t sz ) throw(std::bad_alloc)
|
||||
#else
|
||||
void* operator new( size_t sz )
|
||||
#endif
|
||||
{
|
||||
void* p = (void*)malloc(sz);
|
||||
//printf("a::operator new called(). sz= %d, allo=%x\n", sz, p);
|
||||
|
||||
@@ -160,7 +160,7 @@ user_base::checking_status_t user_base::check_mode()
|
||||
|
||||
user_base::checking_status_t user_base::check_lock()
|
||||
{
|
||||
char lock_dir[PATHSIZ];
|
||||
char lock_dir[PATHSIZ+5];
|
||||
int len;
|
||||
|
||||
snprintf(lock_dir, sizeof(lock_dir), "%s/%s", base_path, LOCK_DIR);
|
||||
|
||||
@@ -75,12 +75,12 @@ Boolean fbytes_t_eq(const void* x, const void* y)
|
||||
void* fbytes_t::operator new( size_t x )
|
||||
{
|
||||
//return (void*)heap_cell_space_pool.alloc(x);
|
||||
return (void*)g_memory_pool.alloc(x);
|
||||
return (void*)(g_memory_pool).alloc(x);
|
||||
}
|
||||
|
||||
void fbytes_t::operator delete( void* ptr )
|
||||
{
|
||||
//heap_cell_space_pool.free((char*)ptr);
|
||||
g_memory_pool.free((char*)ptr);
|
||||
(g_memory_pool).free((char*)ptr);
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ buffer& buffer::skip(int i)
|
||||
{
|
||||
if ( i + v_aptr > v_eptr )
|
||||
MESSAGE(cerr, "buffer::skip(): underflow");
|
||||
throw ( CASTBNDEXCEPT boundaryException( long(v_aptr), long(v_eptr), long(i + v_aptr) ));
|
||||
throw ( CASTBNDEXCEPT boundaryException( long(v_aptr), long(v_eptr), long(i + v_aptr) ));
|
||||
|
||||
v_aptr += i;
|
||||
return *this;
|
||||
|
||||
@@ -12,7 +12,7 @@ XCOMM $XConsortium: Imakefile /main/5 1996/06/11 17:45:12 cde-hal $
|
||||
NormalCplusplusObjectRule()
|
||||
|
||||
DEPEND_DEFINES = $(DEPENDDEFINES)
|
||||
INCLUDES = -I.
|
||||
INCLUDES = -I. $(TIRPCINC)
|
||||
|
||||
#ifdef AIXArchitecture
|
||||
LDPOSTLIB=-blibpath:/usr/dt/lib:/X11/lib:/usr/lib/threads:/usr/lib:/lib
|
||||
|
||||
@@ -10,11 +10,13 @@ LIBNAME=Agents
|
||||
NormalCplusplusObjectRule()
|
||||
|
||||
#ifdef DoLicenseManagement
|
||||
INCLUDES=$(CXXDEPENDINCLUDES) $(BROWSER_INCLUDES) $(MMDB_INCLUDES) $(LICENSE_L_INCLUDES)
|
||||
INCLUDES = $(CXXDEPENDINCLUDES) $(BROWSER_INCLUDES) \
|
||||
$(MMDB_INCLUDES) $(LICENSE_L_INCLUDES) $(TIRPCINC)
|
||||
EXTRA_DEFINES=-DLICENSE_MANAGEMENT
|
||||
#else
|
||||
XCOMM Should remove LICENSE_L_INCLUDES from this list in this case
|
||||
INCLUDES=$(CXXDEPENDINCLUDES) $(BROWSER_INCLUDES) $(COMMON_CLASS_INCLUDES)
|
||||
INCLUDES = $(CXXDEPENDINCLUDES) $(BROWSER_INCLUDES) \
|
||||
$(COMMON_CLASS_INCLUDES) $(TIRPCINC)
|
||||
#endif
|
||||
#include "Classlist.mk"
|
||||
|
||||
|
||||
@@ -587,7 +587,7 @@ MessageAgent::get_integer (const char *message, const char* title,
|
||||
{
|
||||
if (f_dialog == NULL)
|
||||
create_ui(parent);
|
||||
if (g_active)
|
||||
if (g_active)
|
||||
return (100);
|
||||
g_active = TRUE;
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ OrderList::add(ListEntry *node, AddCode where, bool mvcursor)
|
||||
else
|
||||
return OLIST_ERROR;
|
||||
|
||||
f_size++;
|
||||
f_size++;
|
||||
|
||||
return OLIST_OK;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,8 @@ SYS_LIBRARIES=-lm -L$(XPROJECTROOT)/lib -L$(MPROJECTROOT)/lib
|
||||
SYS_LIBRARIES=-lm
|
||||
#endif
|
||||
|
||||
INCLUDES = $(CXXDEPENDINCLUDES) -I. $(BROWSER_INCLUDES) $(MMDB_INCLUDES)
|
||||
INCLUDES = $(CXXDEPENDINCLUDES) -I. $(BROWSER_INCLUDES) $(MMDB_INCLUDES) \
|
||||
$(TIRPCINC)
|
||||
|
||||
OLIASNORMALLIBS= \
|
||||
Agents/libAgents.a \
|
||||
|
||||
@@ -23,7 +23,8 @@ LIBNAME=Managers
|
||||
|
||||
NormalCplusplusObjectRule()
|
||||
|
||||
INCLUDES=$(CXXDEPENDINCLUDES) $(BROWSER_INCLUDES) $(COMMON_CLASS_INCLUDES)
|
||||
INCLUDES = $(CXXDEPENDINCLUDES) $(BROWSER_INCLUDES) \
|
||||
$(COMMON_CLASS_INCLUDES) $(TIRPCINC)
|
||||
|
||||
#include "Classlist.mk"
|
||||
|
||||
|
||||
@@ -345,7 +345,7 @@ NodeMgr::load(UAS_Pointer<UAS_Common> &node_ptr)
|
||||
{
|
||||
style_sheet_mgr().initOnlineStyleSheet(node_ptr);
|
||||
}
|
||||
mcatch_noarg (StyleSheetSyntaxError)
|
||||
mcatch_noarg (StyleSheetSyntaxError&)
|
||||
{
|
||||
message_mgr().error_dialog(
|
||||
(char*)UAS_String(CATGETS(Set_Messages, 39, "File a Bug")));
|
||||
|
||||
@@ -209,7 +209,7 @@ PrintMgr::load(UAS_Pointer<UAS_Common> &node_ptr)
|
||||
{
|
||||
style_sheet_mgr().initPrintStyleSheet(node_ptr);
|
||||
}
|
||||
mcatch_noarg (StyleSheetSyntaxError)
|
||||
mcatch_noarg (StyleSheetSyntaxError&)
|
||||
{
|
||||
message_mgr().error_dialog(
|
||||
(char*)UAS_String(CATGETS(Set_Messages, 39,
|
||||
|
||||
@@ -163,7 +163,7 @@ StyleSheetMgr::initOnlineStyleSheet (UAS_Pointer<UAS_Common> &doc) {
|
||||
mtry {
|
||||
styleparse ();
|
||||
}
|
||||
mcatch_noarg (StyleSheetSyntaxError) {
|
||||
mcatch_noarg (StyleSheetSyntaxError&) {
|
||||
fLastSS = 0;
|
||||
delete fCurrent;
|
||||
{ // Don't remove these curlies. For destructors before rethrow
|
||||
@@ -221,7 +221,7 @@ StyleSheetMgr::initPrintStyleSheet (UAS_Pointer<UAS_Common> &doc) {
|
||||
mtry {
|
||||
styleparse ();
|
||||
}
|
||||
mcatch_noarg (StyleSheetSyntaxError) {
|
||||
mcatch_noarg (StyleSheetSyntaxError&) {
|
||||
fLastSS = 0;
|
||||
delete fCurrent;
|
||||
{ // Don't remove these curlies. For destructors before rethrow
|
||||
|
||||
@@ -1,25 +1,3 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
#define Set_CatMgr 1
|
||||
#define Set_DtSR_Parser 2
|
||||
#define Set_SearchMgr 3
|
||||
|
||||
@@ -930,7 +930,7 @@ static int auxcolr(dat_ptr, cmd_ptr, cgm_s)
|
||||
case I_C_M: cgm_s->auxcolr[3] = b_guint(&dat_ptr, cgm_s->cindprec);
|
||||
break;
|
||||
case D_C_M: for (i=0; i<3; ++i)
|
||||
cgm_s->auxcolr[i] = b_gsint(&dat_ptr, cgm_s->colprec);
|
||||
cgm_s->auxcolr[i] = b_gsint(&dat_ptr, cgm_s->colprec);
|
||||
break;
|
||||
}
|
||||
return 1;
|
||||
@@ -2334,10 +2334,10 @@ static int corient(unsigned char *dat_ptr,struct cmd_info_s *cmd_ptr,
|
||||
/* just 4 VDC's to grab */
|
||||
switch (cgm_s->vdctype) {
|
||||
case VDC_INT: for (i=0; i<4; ++i)
|
||||
cgm_s->corient[i].i = b_gsint(&dat_ptr, cgm_s->vdcintprec);
|
||||
cgm_s->corient[i].i = b_gsint(&dat_ptr, cgm_s->vdcintprec);
|
||||
break;
|
||||
case VDC_REAL: for (i=0; i<4; ++i)
|
||||
cgm_s->corient[i].r = b_real(&dat_ptr, &(cgm_s->vdcrprec));
|
||||
case VDC_REAL: for (i=0; i<4; ++i)
|
||||
cgm_s->corient[i].r = b_real(&dat_ptr, &(cgm_s->vdcrprec));
|
||||
break;
|
||||
}
|
||||
return 1;
|
||||
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
|
||||
PosixError(int error_no, const char *msg)
|
||||
{ f_errno = error_no;
|
||||
*((char *) memcpy(f_msg, msg, MAXMSG+1) + MAXMSG+1) = '\0'; };
|
||||
strncpy(f_msg, msg, MAXMSG+1); };
|
||||
|
||||
const char *msg(void) const { return f_msg; };
|
||||
int error_no(void) const { return f_errno; };
|
||||
|
||||
Reference in New Issue
Block a user