DEST="${SRCDIR_PARENT}/${AFS_SYSNAME}/dest"
fi
+HELPER_SPLINT="${TOP_SRCDIR}/helper-splint.sh"
+HELPER_SPLINTCFG="${TOP_SRCDIR}/splint.cfg"
+AC_SUBST(HELPER_SPLINT)
+AC_SUBST(HELPER_SPLINTCFG)
+
])
src/volser/Makefile \
src/wsadmin.src/Makefile \
src/xstat/Makefile \
+src/helper-splint.sh \
)
--- /dev/null
+#! /bin/sh
+
+# Invoke "splint" with common options.
+#
+# This uses a common splint.cfg file. It will also look for a
+# splint.cfg file in the current directory, using that instead, or a
+# splint-append.cfg file, using that in addition to the common
+# configuration.
+
+
+TOP_SRCDIR=@TOP_SRCDIR@
+HELPER_SPLINTCFG=@HELPER_SPLINTCFG@
+
+cfargs="-f ${HELPER_SPLINTCFG}"
+#
+if [ -r splint-append.cfg ]; then
+ echo "Appending contents of splint-append.cfg to common splint options."
+ cfargs="$cfargs -f splint-append.cfg"
+elif [ -r splint.cfg ]; then
+ echo "Overriding common splint options with splint.cfg"
+ cfargs="-f splint.cfg"
+else
+ echo "No splint-append.cfg or splint.cfg, so using only common options."
+fi
+#
+# Now run splint.
+exec splint $cfargs -bad-flag "$@"
--- /dev/null
+# We only attempt weak checking.
+-weak
+#
+# We are not using namespaces the way splint wants, so don't check.
+-name-checks
+#
+# Standard Unix library.
++unix-lib
+#
+# On RedHat Linux 9, /usr/include/asm/types.h uses __signed__ keyword.
+-D__signed__=signed
+#
+# Stop complaining that sizes of array parameters are ignored.
+-fixed-formal-array
+#
+# Flags to control checking integer usage.
++match-any-integral
srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
+HELPER_SPLINT=@HELPER_SPLINT@
+
objects = assert.o base64.o casestrcpy.o ktime.o volparse.o hostparse.o \
hputil.o kreltime.o isathing.o get_krbrlm.o uuid.o serverLog.o \
${DEST}/lib/afs/libafsutil.a \
${DEST}/bin/sys
-splint:
- splint $(CFLAGS) \
+check-splint:
+ sh $(HELPER_SPLINT) $(CFLAGS) \
assert.c base64.c casestrcpy.c ktime.c volparse.c hostparse.c \
hputil.c kreltime.c isathing.c get_krbrlm.c uuid.c serverLog.c \
dirpath.c fileutil.c netutils.c flipbase64.c \
srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
+HELPER_SPLINT=@HELPER_SPLINT@
CFLAGS=${DBG} ${OPTMZ} -I${TOP_OBJDIR}/src/config -I. -I${TOP_INCDIR} \
dest: ${DEST}/root.server/usr/afs/bin/fileserver ${DEST}/include/afs/fs_stats.h
-splint::
- splint $(CFLAGS) \
+check-splint::
+ sh $(HELPER_SPLINT) $(CFLAGS) \
viced.c \
afsfileprocs.c \
host.c \
srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
+HELPER_SPLINT=@HELPER_SPLINT@
+
LIBS=${TOP_LIBDIR}/libcmd.a vlib.a ${TOP_LIBDIR}/util.a \
${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/libdir.a \
${DEST}/include/afs/ihandle.h \
${DEST}/include/afs/namei_ops.h
-splint::
- splint $(CFLAGS) \
+check-splint::
+ sh $(HELPER_SPLINT) $(CFLAGS) \
vnode.c volume.c vutil.c partition.c fssync.c purge.c \
clone.c nuke.c devname.c listinodes.c common.c ihandle.c \
namei_ops.c \
srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
+HELPER_SPLINT=@HELPER_SPLINT@
+
VINCLS=${TOP_INCDIR}/afs/partition.h ${TOP_INCDIR}/afs/volume.h \
${TOP_INCDIR}/afs/vlserver.h vol.h dump.h volser.h lockdata.h
${DEST}/lib/afs/libvolser.a
-splint::
- splint $(CFLAGS) \
+check-splint::
+ sh $(HELPER_SPLINT) $(CFLAGS) \
vos.c restorevol.c \
vsprocs.c vsutils.c lockprocs.c volerr.c \
volmain.c volprocs.c physio.c common.c voltrans.c \