Remove Unixware and openserver support

This commit is contained in:
chase
2018-05-19 19:50:35 -05:00
committed by Jon Trulson
parent beea573d17
commit 07900bd93b
375 changed files with 725 additions and 9112 deletions

View File

@@ -58,9 +58,7 @@ clean::
$(RM) .make.*
#endif
#if defined(USLArchitecture)
EXTRA_DEFINES = -D_POSIX_SOURCE=1
#elif defined(AlphaArchitecture)
#if defined(AlphaArchitecture)
EXTRA_DEFINES = -D_XOPEN_SOURCE=1 -D_OSF_SOURCE=1
/* default storage(40000) is not enough to process ./src/libABil/bil_parse.y */
YACCFLAGS = -N100000

View File

@@ -179,7 +179,6 @@ AB_MAKEFILES = \
Makefile.hpux \
Makefile.sunos \
Makefile.osf1 \
Makefile.unixware \
Makefile.linux \
Makefile.freebsd \
Makefile.netbsd \

View File

@@ -101,7 +101,6 @@ static int write_os_params(
static int write_aix_stuff(File makeFile, AbmfLibs libs);
static int write_hpux_stuff(File makeFile, AbmfLibs libs);
static int write_sunos_params(File makeFile, AbmfLibs libs);
static int write_unixware_params(File makeFile, AbmfLibs libs);
static int write_osf1_stuff(File makeFile, AbmfLibs libs);
static int write_lnx_params(File makeFile, AbmfLibs libs);
static int write_fbsd_params(File makeFile, AbmfLibs libs);
@@ -111,7 +110,6 @@ static int write_obsd_params(File makeFile, AbmfLibs libs);
static int determine_aix_libs(AbmfLibs libs, ABObj project);
static int determine_hpux_libs(AbmfLibs libs, ABObj project);
static int determine_sunos_libs(AbmfLibs libs, ABObj project);
static int determine_unixware_libs(AbmfLibs libs, ABObj project);
static int determine_osf1_libs(AbmfLibs libs, ABObj project);
static int determine_lnx_libs(AbmfLibs libs, ABObj project);
static int determine_fbsd_libs(AbmfLibs libs, ABObj project);
@@ -212,12 +210,7 @@ determine_libs(AbmfLibs libs, ABObj project, AB_OS_TYPE osType)
lib_add(libs, LibDtHelp, ABMF_LIB_PREPEND, ABMF_LIB_REJECT_DUP);
lib_add(libs, LibDtTerm, ABMF_LIB_PREPEND, ABMF_LIB_REJECT_DUP);
}
#if defined(USL)
if (1) /* Workaround because tooltalk not being used when needed */
#else
if (obj_get_tooltalk_level(project) != AB_TOOLTALK_NONE)
#endif
lib_add(libs, LibTt, ABMF_LIB_APPEND, ABMF_LIB_REJECT_DUP);
switch(osType)
@@ -236,9 +229,6 @@ determine_libs(AbmfLibs libs, ABObj project, AB_OS_TYPE osType)
case AB_OS_OSF1:
return_value = determine_osf1_libs(libs, project);
break;
case AB_OS_UNIXWARE:
return_value = determine_unixware_libs(libs, project);
break;
case AB_OS_LNX:
return_value = determine_lnx_libs(libs, project);
break;
@@ -286,12 +276,6 @@ determine_osf1_libs(AbmfLibs libs, ABObj project)
return 0;
}
static int
determine_unixware_libs(AbmfLibs libs, ABObj project)
{
return 0;
}
static int
determine_lnx_libs(AbmfLibs libs, ABObj project)
{
@@ -511,10 +495,6 @@ write_os_params(
return_value = write_sunos_params(makeFile, libs);
break;
case AB_OS_UNIXWARE:
return_value = write_unixware_params(makeFile, libs);
break;
case AB_OS_OSF1:
return_value = write_osf1_stuff(makeFile, libs);
break;
@@ -721,47 +701,6 @@ write_osf1_stuff(File makeFile, AbmfLibs libs)
return 0;
}
static int
write_unixware_params(File makeFile, AbmfLibs libs)
{
STRING osName = util_os_type_to_string(AB_OS_UNIXWARE);
abio_printf(makeFile,
"\n"
"###########################################################################\n"
"# These are the %s-dependent configuration parameters that must be\n"
"# set in order for any application to build.\n"
"###########################################################################\n",
osName);
abio_puts(makeFile, "\n");
abio_puts(makeFile,
" RM = rm -f\n"
" INCLUDES = -I/usr/dt/include -I/X11/include\n"
"\n"
" STD_DEFINES = \n"
" ANSI_DEFINES = \n"
"\n"
" CDEBUGFLAGS = -O\n"
" SYS_LIBRARIES = -lnsl -lsocket -lm -ldl -lgen -lresolv -lw\n"
" CDE_LIBPATH = /usr/dt/lib\n"
" CDE_LDFLAGS = -L$(CDE_LIBPATH)\n"
" ALLX_LIBPATH = /X11/lib\n"
" ALLX_LDFLAGS = -L$(ALLX_LIBPATH)\n");
write_local_libraries(makeFile, libs, AB_OS_UNIXWARE);
abio_puts(makeFile,
" CFLAGS = $(CDEBUGFLAGS) -D_POSIX_SOURCE=1 $(INCLUDES) $(STD_DEFINES)"
" $(ANSI_DEFINES)\n"
" LDLIBS = $(SYS_LIBRARIES)\n"
" LDOPTIONS = $(CDE_LDFLAGS) $(ALLX_LDFLAGS)\n"
"\n"
);
return 0;
}
static int
write_lnx_params(File makeFile, AbmfLibs libs)
{
@@ -1280,7 +1219,7 @@ write_targets(
"scour:\n"
" $(RM) $(CLEAN_FILES) $(TARGETS.h.merged) $(TARGETS.c.merged) \\\n"
" Makefile Makefile.aix Makefile.hpux Makefile.sunos \\\n"
" Makefile.osf1 Makefile.unixware Makefile.linux \\\n"
" Makefile.osf1 Makefile.linux \\\n"
" Makefile.freebsd Makefile.netbsd Makefile.openbsd\n"
);

View File

@@ -459,15 +459,8 @@ obj_alloc_unique_name_for_child(
{
maxlen = 8192;
}
#if defined (USL)
/*
* The USL specific changes were added ifdef due to time constraints
* They should be removed in the next release
*/
maxlen = util_min(8191,maxlen); /* don't overrun buf */
#else
maxlen = util_min(8192,maxlen); /* don't overrun buf */
#endif
/*
* Alloc space and copy-in the unique name
@@ -494,11 +487,7 @@ obj_alloc_unique_name_istr_for_child(
{
maxlen = 8192;
}
#if defined (USL)
maxlen = util_min(8191,maxlen);
#else
maxlen = util_min(8192,maxlen);
#endif
unique_name = istr_create(
obj_get_unique_name_for_child(obj, istr_string(name), maxlen-1, nameBuf));

View File

@@ -250,7 +250,6 @@ util_get_os_type(void)
int aixIndex = -1;
int hpIndex = -1;
int sunIndex = -1;
int unixwareIndex = -1;
int osf1Index = -1;
int lnxIndex = -1;
int fbsdIndex = -1;
@@ -269,7 +268,6 @@ util_get_os_type(void)
aixIndex = util_strcasestr(sysInfo.sysname, "aix");
hpIndex = util_strcasestr(sysInfo.sysname, "hp");
sunIndex = util_strcasestr(sysInfo.sysname, "sun");
unixwareIndex = util_strcasestr(sysInfo.sysname, "UNIX_SV");
osf1Index = util_strcasestr(sysInfo.sysname, "osf1");
lnxIndex = util_strcasestr(sysInfo.sysname, "linux");
fbsdIndex = util_strcasestr(sysInfo.sysname, "freebsd");
@@ -279,59 +277,53 @@ util_get_os_type(void)
if (aixIndex < 0) aixIndex = INT_MAX;
if (hpIndex < 0) hpIndex = INT_MAX;
if (sunIndex < 0) sunIndex = INT_MAX;
if (unixwareIndex < 0) unixwareIndex = INT_MAX;
if (osf1Index < 0) osf1Index = INT_MAX;
if (lnxIndex < 0) lnxIndex = INT_MAX;
if (fbsdIndex < 0) fbsdIndex = INT_MAX;
if (nbsdIndex < 0) nbsdIndex = INT_MAX;
if (obsdIndex < 0) obsdIndex = INT_MAX;
#define IS_MATCH(a,b,c,d,e,f,g,h,i) \
#define IS_MATCH(a,b,c,d,e,f,g,h) \
(((a) < (b)) && ((a) < (c)) && ((a) < (d)) && ((a) < (e)) && ((a) < (f)) && \
((a) < (g)) && ((a) < (h)) && ((a) < (i)))
((a) < (g)) && ((a) < (h)))
if (IS_MATCH(aixIndex, hpIndex, sunIndex, osf1Index, unixwareIndex,
if (IS_MATCH(aixIndex, hpIndex, sunIndex, osf1Index,
lnxIndex, fbsdIndex, nbsdIndex, obsdIndex))
{
return AB_OS_AIX;
}
if (IS_MATCH(hpIndex, aixIndex, sunIndex, osf1Index, unixwareIndex,
if (IS_MATCH(hpIndex, aixIndex, sunIndex, osf1Index,
lnxIndex, fbsdIndex, nbsdIndex, obsdIndex))
{
return AB_OS_HPUX;
}
if (IS_MATCH(sunIndex, aixIndex, hpIndex, osf1Index, unixwareIndex,
if (IS_MATCH(sunIndex, aixIndex, hpIndex, osf1Index,
lnxIndex, fbsdIndex, nbsdIndex, obsdIndex))
{
return AB_OS_SUNOS;
}
if (IS_MATCH(osf1Index, aixIndex, hpIndex, sunIndex, unixwareIndex,
if (IS_MATCH(osf1Index, aixIndex, hpIndex, sunIndex,
lnxIndex, fbsdIndex, nbsdIndex, obsdIndex))
{
return AB_OS_OSF1;
}
if (IS_MATCH(unixwareIndex, aixIndex, hpIndex, sunIndex, osf1Index,
lnxIndex, fbsdIndex, nbsdIndex, obsdIndex))
{
return AB_OS_UNIXWARE;
}
if (IS_MATCH(lnxIndex, aixIndex, hpIndex, sunIndex, osf1Index,
unixwareIndex, fbsdIndex, nbsdIndex, obsdIndex))
fbsdIndex, nbsdIndex, obsdIndex))
{
return AB_OS_LNX;
}
if (IS_MATCH(fbsdIndex, aixIndex, hpIndex, sunIndex, osf1Index,
unixwareIndex, lnxIndex, nbsdIndex, obsdIndex))
lnxIndex, nbsdIndex, obsdIndex))
{
return AB_OS_FBSD;
}
if (IS_MATCH(nbsdIndex, aixIndex, hpIndex, sunIndex, osf1Index,
unixwareIndex, lnxIndex, fbsdIndex, obsdIndex))
lnxIndex, fbsdIndex, obsdIndex))
{
return AB_OS_NBSD;
}
if (IS_MATCH(obsdIndex, aixIndex, hpIndex, sunIndex, osf1Index,
unixwareIndex, lnxIndex, fbsdIndex, nbsdIndex))
lnxIndex, fbsdIndex, nbsdIndex))
{
return AB_OS_OBSD;
}

View File

@@ -82,7 +82,6 @@ typedef enum
AB_OS_AIX,
AB_OS_SUNOS,
AB_OS_OSF1,
AB_OS_UNIXWARE,
AB_OS_LNX,
AB_OS_FBSD,
AB_OS_NBSD,

View File

@@ -854,7 +854,6 @@ util_os_type_to_ident(AB_OS_TYPE osType)
case AB_OS_AIX: typeString = "aix"; break;
case AB_OS_HPUX: typeString = "hpux"; break;
case AB_OS_SUNOS: typeString = "sunos"; break;
case AB_OS_UNIXWARE: typeString = "unixware"; break;
case AB_OS_OSF1: typeString = "osf1"; break;
case AB_OS_LNX: typeString = "linux"; break;
case AB_OS_FBSD: typeString = "freebsd"; break;
@@ -879,7 +878,6 @@ util_os_type_to_string(AB_OS_TYPE osType)
case AB_OS_AIX: nameString = "AIX"; break;
case AB_OS_HPUX: nameString = "HP-UX"; break;
case AB_OS_SUNOS: nameString = "SunOS"; break;
case AB_OS_UNIXWARE: nameString = "UnixWare"; break;
case AB_OS_OSF1: nameString = "OSF/1"; break;
case AB_OS_LNX: nameString = "Linux"; break;
case AB_OS_FBSD: nameString = "FreeBSD"; break;