Skip to content

Commit 569372b

Browse files
committed
Retire most of IRIX support.
In parsenfsfh.c keep IRIX-specific code that is not specific to *compiling* on IRIX. Do not touch AC_LBL_LIBRARY_NET yet.
1 parent 1bec29a commit 569372b

File tree

4 files changed

+3
-70
lines changed

4 files changed

+3
-70
lines changed

CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,14 +1299,6 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "HP-UX")
12991299
#
13001300
set(MAN_FILE_FORMATS 4)
13011301
set(MAN_MISC_INFO 5)
1302-
elseif(CMAKE_SYSTEM_NAME STREQUAL "IRIX" OR CMAKE_SYSTEM_NAME STREQUAL "IRIX64")
1303-
#
1304-
# Use IRIX conventions for man pages; they're the same as the
1305-
# System V conventions, except that they use section 8 for
1306-
# administrative commands and daemons.
1307-
#
1308-
set(MAN_FILE_FORMATS 4)
1309-
set(MAN_MISC_INFO 5)
13101302
elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_SYSTEM_VERSION MATCHES "5[.][0-9.]*")
13111303
#
13121304
# SunOS 5.x.

aclocal.m4

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -115,39 +115,6 @@ AC_DEFUN(AC_LBL_C_INIT,
115115
ac_lbl_cc_dont_try_gcc_dashW=yes
116116
;;
117117
118-
irix*)
119-
#
120-
# MIPS C, which is what we presume we're using, doesn't
121-
# necessarily exit with a non-zero exit status if we
122-
# hand it an invalid -W flag, can't be forced to do
123-
# so, and doesn't handle GCC-style -W flags, so we
124-
# don't want to try using GCC-style -W flags.
125-
#
126-
ac_lbl_cc_dont_try_gcc_dashW=yes
127-
#
128-
# It also, apparently, defaults to "char" being
129-
# unsigned, unlike most other C implementations;
130-
# I suppose we could say "signed char" whenever
131-
# we want to guarantee a signed "char", but let's
132-
# just force signed chars.
133-
#
134-
# -xansi is normally the default, but the
135-
# configure script was setting it; perhaps -cckr
136-
# was the default in the Old Days. (Then again,
137-
# that would probably be for backwards compatibility
138-
# in the days when ANSI C was Shiny and New, i.e.
139-
# 1989 and the early '90's, so maybe we can just
140-
# drop support for those compilers.)
141-
#
142-
# -g is equivalent to -g2, which turns off
143-
# optimization; we choose -g3, which generates
144-
# debugging information but doesn't turn off
145-
# optimization (even if the optimization would
146-
# cause inaccuracies in debugging).
147-
#
148-
$1="$$1 -xansi -signed -g3"
149-
;;
150-
151118
solaris*)
152119
#
153120
# Assumed to be Sun C, which requires -errwarn to force
@@ -249,9 +216,9 @@ AC_DEFUN(AC_LBL_CHECK_DEPENDENCY_GENERATION_OPT,
249216
#
250217
case "$host_os" in
251218
252-
irix*|darwin*)
219+
darwin*)
253220
#
254-
# MIPS C for IRIX and Clang use -M.
221+
# Clang uses -M.
255222
#
256223
ac_lbl_dependency_flag="-M"
257224
;;
@@ -802,14 +769,6 @@ AC_DEFUN(AC_LBL_DEVEL,
802769
AC_LBL_CHECK_COMPILER_OPT($1, -Wwrite-strings)
803770
fi
804771
AC_LBL_CHECK_DEPENDENCY_GENERATION_OPT()
805-
#
806-
# We used to set -n32 for IRIX 6 when not using GCC (presumed
807-
# to mean that we're using MIPS C or MIPSpro C); it specified
808-
# the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
809-
# not sure why that would be something to do *only* with a
810-
# .devel file; why should the ABI for which we produce code
811-
# depend on .devel?
812-
#
813772
AC_MSG_CHECKING([whether to use an os-proto.h header])
814773
os=`echo $host_os | sed -e 's/\([[0-9]][[0-9]]*\)[[^0-9]].*$/\1/'`
815774
name="lbl/os-$os.h"

configure.ac

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -724,16 +724,6 @@ hpux*)
724724
MAN_MISC_INFO=5
725725
;;
726726

727-
irix*)
728-
V_GROUP=sys
729-
730-
#
731-
# Use System V conventions for man pages.
732-
#
733-
MAN_FILE_FORMATS=4
734-
MAN_MISC_INFO=5
735-
;;
736-
737727
solaris*)
738728
V_GROUP=sys
739729

parsenfsfh.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,6 @@ Parse_fh(netdissect_options *ndo, const unsigned char *fh, u_int len,
103103
else {
104104
if (ourself) {
105105
/* File handle generated on this host, no need for guessing */
106-
#if defined(IRIX40)
107-
fhtype = FHT_IRIX4;
108-
#endif
109-
#if defined(IRIX50)
110-
fhtype = FHT_IRIX5;
111-
#endif
112-
#if defined(IRIX51)
113-
fhtype = FHT_IRIX5;
114-
#endif
115106
#if defined(SUNOS4)
116107
fhtype = FHT_SUNOS4;
117108
#endif
@@ -267,6 +258,7 @@ Parse_fh(netdissect_options *ndo, const unsigned char *fh, u_int len,
267258
break;
268259

269260
case FHT_IRIX5:
261+
/* FIXME: None of the heuristics above return this. */
270262
fsidp->Fsid_dev.Minor = GET_BE_U_2(fhp + 2);
271263
fsidp->Fsid_dev.Major = GET_BE_U_2(fhp);
272264
fsidp->fsid_code = GET_BE_U_4(fhp + 4);

0 commit comments

Comments
 (0)