]> git.saurik.com Git - apple/network_cmds.git/blobdiff - netstat.tproj/main.c
network_cmds-176.tar.gz
[apple/network_cmds.git] / netstat.tproj / main.c
index b6144dee775c297fe7c00b7b80e5f49cbbe8baaf..9eea7a37f1f84c67bd22ab2e8265dedda7bbc002 100644 (file)
@@ -3,21 +3,22 @@
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
- * "Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
- * Reserved.  This file contains Original Code and/or Modifications of
- * Original Code as defined in and that are subject to the Apple Public
- * Source License Version 1.0 (the 'License').  You may not use this file
- * except in compliance with the License.  Please obtain a copy of the
- * License at http://www.apple.com/publicsource and read it before using
- * this file.
+ * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
+ * 
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this
+ * file.
  * 
  * The Original Code and all software distributed under the License are
  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
- * License for the specific language governing rights and limitations
- * under the License."
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
  * 
  * @APPLE_LICENSE_HEADER_END@
  */
@@ -65,7 +66,7 @@ char const copyright[] =
 static char sccsid[] = "@(#)main.c     8.4 (Berkeley) 3/1/94";
 #endif
 static const char rcsid[] =
-       "$Id: main.c,v 1.4 2002/03/05 20:35:14 lindak Exp $";
+       "$Id: main.c,v 1.5 2003/07/08 22:49:49 lindak Exp $";
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -100,7 +101,7 @@ static const char rcsid[] =
  * this stuff is worth it, you can buy me a beer in return.   Poul-Henning Kamp
  * ----------------------------------------------------------------------------
  *
- * $Id: main.c,v 1.4 2002/03/05 20:35:14 lindak Exp $
+ * $Id: main.c,v 1.5 2003/07/08 22:49:49 lindak Exp $
  *
  */
 
@@ -347,6 +348,9 @@ static void printproto (struct protox *, char *);
 static void usage (void);
 static struct protox *name2protox (char *);
 static struct protox *knownname (char *);
+#ifdef SRVCACHE
+extern void _serv_cache_close();
+#endif
 
 static kvm_t *kvmd;
 static char *nlistf = NULL, *memf = NULL;
@@ -630,6 +634,9 @@ main(argc, argv)
 #endif
        if ((af == AF_UNIX || af == AF_UNSPEC) && !Lflag && !sflag)
                unixpr();
+#ifdef SRVCACHE
+       _serv_cache_close();
+#endif
        exit(0);
 }