Skip to content

Commit 0cd72c3

Browse files
kinkiesquid-anubis
authored andcommitted
Remove SGI IRIX support (#2404)
SGI IRIX was last released in 2006, and support discontinued in 2013.
1 parent cbbe8d3 commit 0cd72c3

11 files changed

Lines changed: 6 additions & 90 deletions

File tree

compat/Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ libcompatsquid_la_SOURCES = \
6060
os/openbsd.h \
6161
os/os2.h \
6262
os/qnx.h \
63-
os/sgi.h \
6463
os/solaris.h \
6564
os/sunos.h \
6665
osdetect.h \

compat/compat.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
#include "compat/os/openbsd.h"
7575
#include "compat/os/os2.h"
7676
#include "compat/os/qnx.h"
77-
#include "compat/os/sgi.h"
7877
#include "compat/os/solaris.h"
7978
#include "compat/os/sunos.h"
8079

compat/fdsetsize.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
/*
1919
* On some systems, FD_SETSIZE is set to something lower than the
20-
* actual number of files which can be opened. IRIX is one case,
21-
* NetBSD is another. So here we increase FD_SETSIZE to our
22-
* configure-discovered maximum *before* any system includes.
20+
* actual number of files which can be opened. NetBSD is one
21+
* case. So here we increase FD_SETSIZE to our configure-discovered
22+
* maximum *before* any system includes.
2323
*/
2424
#define CHANGE_FD_SETSIZE 1
2525

compat/os/sgi.h

Lines changed: 0 additions & 30 deletions
This file was deleted.

compat/osdetect.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@
4949
#elif defined(__FreeBSD_kernel__) /* GNU/kFreeBSD */
5050
#define _SQUID_KFREEBSD_ 1
5151

52-
#elif defined(__sgi__) || defined(sgi) || defined(__sgi) /* SGI */
53-
#define _SQUID_SGI_ 1
54-
5552
#elif defined(__NetBSD__)
5653
#define _SQUID_NETBSD_ 1
5754

configure.ac

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -292,19 +292,6 @@ AS_IF([test "x$PRESET_CFLAGS" = "x"],[
292292
],
293293
[CFLAGS="$squid_cv_cc_option_wall $CFLAGS"]
294294
)
295-
],[
296-
AS_CASE(["$host"],
297-
[*mips-sgi-irix6.*],[
298-
# suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
299-
CFLAGS="$squid_cv_cc_option_optimize -OPT:Olimit=0:space=OFF \
300-
-woff 1009,1014,1110,1116,1183,1185,1188,1204,1230,1233,1355 \
301-
-Wl,-woff,85,-woff,84,-woff,134 \
302-
-nostdinc -I/usr/include -D_BSD_SIGNALS $CFLAGS"
303-
CXXFLAGS="$squid_cv_cc_option_optimize -OPT:Olimit=0:space=OFF \
304-
-woff 1009,1014,1110,1116,1183,1185,1188,1204,1230,1233,1355 \
305-
-Wl,-woff,85,-woff,84,-woff,134 \
306-
-nostdinc -I/usr/include -D_BSD_SIGNALS $CXXFLAGS"
307-
])
308295
])
309296
])
310297

@@ -2067,14 +2054,6 @@ AS_CASE(["$host"],
20672054
])
20682055
],
20692056

2070-
[*-sgi-irix*],[
2071-
AC_MSG_NOTICE([Removing -lsocket for IRIX...])
2072-
LIBS=`echo $LIBS | sed -e s/-lsocket//`
2073-
AC_MSG_NOTICE([Removing -lnsl for IRIX...])
2074-
LIBS=`echo $LIBS | sed -e s/-lnsl//`
2075-
ac_cv_lib_nsl_main=no
2076-
],
2077-
20782057
[*-ibm-aix*],[
20792058
SQUID_CC_REQUIRE_ARGUMENT([ac_cv_require_rtti],[-rtti],[[
20802059
#include <assert.h>

contrib/Makefile.am

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@ install-solaris2.4 install-solaris2.5:
3838
@echo "set SQUID=0 in /etc/init.d/squid to disable squid at startup"
3939
@echo "edit /etc/init.d/squid to change options"
4040

41-
install-irix6.2:
42-
$(INSTALL_BIN) $(SQUID_RC) /etc/init.d/squid
43-
$(INSTALL_FILE) $(SQUID_OPTIONS) /var/config/squid.options
44-
-$(LN_S) ../init.d/squid /etc/rc2.d/S99squid
45-
-$(LN_S) ../init.d/squid /etc/rc0.d/K01squid
46-
/sbin/chkconfig -f squid on
47-
@echo "use 'chkconfig squid off' to disable squid at startup"
48-
@echo "edit /var/config/squid.options to change options"
49-
5041
install-osf3.2:
5142
$(INSTALL_BIN) $(SQUID_RC) /sbin/init.d/squid
5243
-$(LN_S) ../init.d/squid /sbin/rc2.d/S99squid

scripts/icpserver.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
$whoami = (`uname -a`)[0];
4949
$IP_ADD_MEMBERSHIP=5;
5050
$whoami =~ /SunOS [^\s]+ 5/ && ($IP_MULTICAST_TTL=19);
51-
$whoami =~ /IRIX [^\s]+ 5/ && ($IP_MULTICAST_TTL=23);
5251
$whoami =~ /OSF1/ && ($IP_MULTICAST_TTL=12);
5352
# any more funnies ?
5453

src/time/rfc1123.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Time::ParseRfc1123(const char *str)
179179
t = mktime(tm);
180180
if (t != -1) {
181181
time_t dst = 0;
182-
#if !(defined(_TIMEZONE) || defined(_timezone) || _SQUID_AIX_ || _SQUID_WINDOWS_ || _SQUID_SGI_)
182+
#if !(defined(_TIMEZONE) || defined(_timezone) || _SQUID_AIX_ || _SQUID_WINDOWS_)
183183
extern long timezone;
184184
#endif
185185
/*

src/tools.cc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,7 @@ int
253253

254254
rusage_maxrss(struct rusage *r)
255255
{
256-
#if _SQUID_SGI_ && _ABIAPI
257-
return r->ru_pad[0];
258-
#elif _SQUID_SGI_|| _SQUID_OSF_ || _SQUID_AIX_ || defined(BSD4_4)
259-
256+
#if _SQUID_OSF_ || _SQUID_AIX_ || defined(BSD4_4)
260257
return r->ru_maxrss;
261258
#elif defined(HAVE_GETPAGESIZE) && HAVE_GETPAGESIZE != 0
262259

@@ -274,12 +271,7 @@ int
274271

275272
rusage_pagefaults(struct rusage *r)
276273
{
277-
#if _SQUID_SGI_ && _ABIAPI
278-
return r->ru_pad[5];
279-
#else
280-
281274
return r->ru_majflt;
282-
#endif
283275
}
284276

285277
/// Make the process traceable if possible. Call setTraceability() instead!

0 commit comments

Comments
 (0)