util: Remove packages.h
authorSimon Wilkinson <sxw@your-file-system.com>
Wed, 16 Mar 2011 17:16:31 +0000 (17:16 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 17 Mar 2011 20:08:24 +0000 (13:08 -0700)
packages.h is unused within our tree, and contains nothing of any
use to out of tree callers (it attempts to define bases for error
codes, which has been superceded by our use of comerr)

So, remove it.

Change-Id: I22f2d3fba6ff960f00757c69f6beb5e7f25f9bba
Reviewed-on: http://gerrit.openafs.org/4248
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>

src/util/Makefile.in
src/util/packages.h [deleted file]

index 3136004..3c53311 100644 (file)
@@ -59,7 +59,6 @@ includes = \
        ${TOP_INCDIR}/afs/ktime.h \
        ${TOP_INCDIR}/afs/fileutil.h \
        ${TOP_INCDIR}/afs/netutils.h \
-       ${TOP_INCDIR}/afs/packages.h \
        ${TOP_INCDIR}/afs/afsutil.h \
        ${TOP_INCDIR}/afs/afsutil_prototypes.h \
        ${TOP_INCDIR}/afs/pthread_glock.h \
@@ -111,9 +110,6 @@ ${TOP_INCDIR}/afs/fileutil.h: ${srcdir}/fileutil.h
 ${TOP_INCDIR}/afs/netutils.h: ${srcdir}/netutils.h
        ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/packages.h: ${srcdir}/packages.h
-       ${INSTALL_DATA} $? $@
-
 ${TOP_INCDIR}/afs/afsutil.h: ${srcdir}/afsutil.h
        ${INSTALL_DATA} $? $@
 
@@ -300,7 +296,6 @@ install: dirpath.h util.a util_pic.a sys
        ${INSTALL_DATA} ${srcdir}/ktime.h ${DESTDIR}${includedir}/afs/ktime.h
        ${INSTALL_DATA} ${srcdir}/fileutil.h ${DESTDIR}${includedir}/afs/fileutil.h
        ${INSTALL_DATA} ${srcdir}/netutils.h ${DESTDIR}${includedir}/afs/netutils.h
-       ${INSTALL_DATA} ${srcdir}/packages.h ${DESTDIR}${includedir}/afs/packages.h
        ${INSTALL_DATA} ${srcdir}/afsutil.h ${DESTDIR}${includedir}/afs/afsutil.h
        ${INSTALL_DATA} ${srcdir}/afsutil_prototypes.h ${DESTDIR}${includedir}/afs/afsutil_prototypes.h
        ${INSTALL_DATA} ${srcdir}/pthread_glock.h ${DESTDIR}${includedir}/afs/pthread_glock.h
@@ -330,7 +325,6 @@ dest: dirpath.h util.a util_pic.a sys
        ${INSTALL_DATA} ${srcdir}/ktime.h ${DEST}/include/afs/ktime.h
        ${INSTALL_DATA} ${srcdir}/fileutil.h ${DEST}/include/afs/fileutil.h
        ${INSTALL_DATA} ${srcdir}/netutils.h ${DEST}/include/afs/netutils.h
-       ${INSTALL_DATA} ${srcdir}/packages.h ${DEST}/include/afs/packages.h
        ${INSTALL_DATA} ${srcdir}/afsutil.h ${DEST}/include/afs/afsutil.h
        ${INSTALL_DATA} ${srcdir}/afsutil_prototypes.h ${DEST}/include/afs/afsutil_prototypes.h
        ${INSTALL_DATA} ${srcdir}/pthread_glock.h ${DEST}/include/afs/pthread_glock.h
diff --git a/src/util/packages.h b/src/util/packages.h
deleted file mode 100644 (file)
index 5a739cf..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License.  For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-/* This include file defines the error code base for each of the packages in
-   AFS.  This is an informal system so people should feel free to add their own
-   packages if they don't appear here. */
-
-/* The convention is that each package is assigned a small integer.  This
-   package number is shifted into the high 16 bits to for the error number base
-   for that package.  As an added convention we add 1000 to this base to allow
-   the space of the kernel errno numbers to "show" through.  These code will be
-   the same in all packages and most packages will probably not use them. */
-
-/* Each package is assumed to have a short two or three (or four or five)
-   letter mnemonic which will be used to name external variables, procedures
-   and constants.  This prefix will be used to name the constant that defines
-   the minimum error code for each package.  Each package should define its own
-   constant defining the maximum error code using the same conventions (eg
-   KAMAXERROR). */
-
-#ifndef ERROROFFSET
-
-#define ERROROFFSET 1000
-
-#define KAMINERROR    ((  1 <<16)+ERROROFFSET) /* kerberos authentication server */
-#define PRMINERROR    ((  2 <<16)+ERROROFFSET) /* AFS protection server */
-#define VLMINERROR    ((  3 <<16)+ERROROFFSET) /* Volume Location database */
-#define VSMINERROR    ((  4 <<16)+ERROROFFSET) /* Volume Services */
-#define RXMINERROR    ((  5 <<16)+ERROROFFSET) /* Rx RPC facility */
-#define RXGENMINERROR ((  6 <<16)+ERROROFFSET) /* RxGen */
-#define LWPMINERROR   ((  7 <<16)+ERROROFFSET) /* Light Weight Process package */
-#define RXKADMINERROR ((  8 <<16)+ERROROFFSET) /* Kerberos security module for Rx */
-#define CMDMINERROR   ((  9 <<16)+ERROROFFSET) /* Command line parser utilities */
-#define UMINERROR     (( 10 <<16)+ERROROFFSET) /* Ubik replicated database */
-#define VICEMINERROR  (( 11 <<16)+ERROROFFSET) /* Vast Integrated Computing Environment */
-#define BOSMINERROR   (( 12 <<16)+ERROROFFSET) /* Bozo Operations System */
-#define ESMINERROR    (( 13 <<16)+ERROROFFSET) /* Error and Statistics logger */
-
-#endif