Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src This file is hopeless outdated & broken and would need some ...



details:   https://anonhg.NetBSD.org/src/rev/7148130eab69
branches:  trunk
changeset: 476385:7148130eab69
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Wed Sep 15 12:35:37 1999 +0000

description:
This file is hopeless outdated & broken and would need some rework to
get it going. Given that we have a decent example in the getopt(3) manpage
and lots of working getopt() examples in our source, this is removed.

diffstat:

 distrib/sets/lists/comp/mi |   3 +--
 share/misc/getopt          |  38 --------------------------------------
 2 files changed, 1 insertions(+), 40 deletions(-)

diffs (59 lines):

diff -r b1654dba41f9 -r 7148130eab69 distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Wed Sep 15 12:31:28 1999 +0000
+++ b/distrib/sets/lists/comp/mi        Wed Sep 15 12:35:37 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.159 1999/09/13 18:45:27 kleink Exp $
+# $NetBSD: mi,v 1.160 1999/09/15 12:35:38 hubertf Exp $
 ./sys
 ./usr/bin/ar
 ./usr/bin/as
@@ -3533,7 +3533,6 @@
 ./usr/share/man/man8/pvctxctl.8
 ./usr/share/man/man8/rtsold.8
 ./usr/share/man/man8/wiconfig.8
-./usr/share/misc/getopt
 ./usr/share/misc/indent.pro
 ./usr/share/misc/menu_sys.def
 ./usr/share/misc/msg_sys.def
diff -r b1654dba41f9 -r 7148130eab69 share/misc/getopt
--- a/share/misc/getopt Wed Sep 15 12:31:28 1999 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-/*
- * Main/getopt(3) fragment.
- *
- *     $NetBSD: getopt,v 1.5 1997/11/01 06:23:38 lukem Exp $
- *     @(#)getopt      5.3 (Berkeley) 3/28/94
- */
-
-#include <sys/types.h>
-
-#include <stdlib.h>
-
-void usage __P((void));
-
-int
-main(argc, argv)
-       int argc;
-       char *argv[];
-{
-       int ch;
-
-       while ((ch = getopt(argc, argv, "")) != -1)
-               switch (ch) {
-               case '':
-                       break;
-               case '?':
-               default:
-                       usage();
-               }
-       argc -= optind;
-       argv += optind;
-}
-
-void
-usage()
-{
-       (void)fprintf(stderr, "usage: program [-abc] [-f file]\n");
-       exit(1);
-}



Home | Main Index | Thread Index | Old Index