optarg/optind moved to unistd.h
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 5 May 1995 06:50:34 +0000 (22:50 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 5 May 1995 06:50:34 +0000 (22:50 -0800)
SCCS-vsn: usr.bin/printenv/printenv.c 8.2
SCCS-vsn: usr.bin/rev/rev.c 8.3
SCCS-vsn: usr.bin/tr/tr.c 8.2
SCCS-vsn: usr.bin/tsort/tsort.c 8.3
SCCS-vsn: usr.bin/uname/uname.c 8.2
SCCS-vsn: usr.bin/uniq/uniq.c 8.3
SCCS-vsn: usr.bin/whereis/whereis.c 8.3
SCCS-vsn: usr.bin/look/look.c 8.2
SCCS-vsn: usr.sbin/kvm_mkdb/kvm_mkdb.c 8.3

usr/src/usr.bin/look/look.c
usr/src/usr.bin/printenv/printenv.c
usr/src/usr.bin/rev/rev.c
usr/src/usr.bin/tr/tr.c
usr/src/usr.bin/tsort/tsort.c
usr/src/usr.bin/uname/uname.c
usr/src/usr.bin/uniq/uniq.c
usr/src/usr.bin/whereis/whereis.c
usr/src/usr.sbin/kvm_mkdb/kvm_mkdb.c

index 9680dcf..1a35c41 100644 (file)
@@ -15,7 +15,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)look.c     8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)look.c     8.2 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -30,13 +30,15 @@ static char sccsid[] = "@(#)look.c  8.1 (Berkeley) %G%";
 #include <sys/mman.h>
 #include <sys/stat.h>
 
 #include <sys/mman.h>
 #include <sys/stat.h>
 
-#include <limits.h>
+#include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <ctype.h>
+#include <unistd.h>
+
 #include "pathnames.h"
 
 /*
 #include "pathnames.h"
 
 /*
index f22eb75..5b357dd 100644 (file)
@@ -12,7 +12,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)printenv.c 8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)printenv.c 8.2 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -20,6 +20,7 @@ static char sccsid[] = "@(#)printenv.c        8.1 (Berkeley) %G%";
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include <unistd.h>
 
 void   usage __P((void));
 
 
 void   usage __P((void));
 
index 8ed3c47..ccb7133 100644 (file)
@@ -12,7 +12,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)rev.c      8.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)rev.c      8.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -22,6 +22,7 @@ static char sccsid[] = "@(#)rev.c     8.2 (Berkeley) %G%";
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 void usage __P((void));
 
 
 void usage __P((void));
 
index 0581ebb..03cffa3 100644 (file)
@@ -12,13 +12,16 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)tr.c       8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)tr.c       8.2 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
+
 #include "extern.h"
 
 static int string1[NCHARS] = {
 #include "extern.h"
 
 static int string1[NCHARS] = {
index 16d2ae2..c59c626 100644 (file)
@@ -15,7 +15,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)tsort.c    8.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)tsort.c    8.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -28,6 +28,7 @@ static char sccsid[] = "@(#)tsort.c   8.2 (Berkeley) %G%";
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 /*
  *  Topological sort.  Input is a list of pairs of strings separated by
 
 /*
  *  Topological sort.  Input is a list of pairs of strings separated by
index c3a1ecc..2758194 100644 (file)
@@ -12,7 +12,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)uname.c    8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)uname.c    8.2 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -21,6 +21,7 @@ static char sccsid[] = "@(#)uname.c   8.1 (Berkeley) %G%";
 #include <err.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <err.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 void usage __P((void));
 
 
 void usage __P((void));
 
index 9a41ee1..6073ef8 100644 (file)
@@ -15,7 +15,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)uniq.c     8.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)uniq.c     8.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <errno.h>
 #endif /* not lint */
 
 #include <errno.h>
@@ -23,6 +23,7 @@ static char sccsid[] = "@(#)uniq.c    8.2 (Berkeley) %G%";
 #include <ctype.h>
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 #define        MAXLINELEN      (8 * 1024)
 
 
 #define        MAXLINELEN      (8 * 1024)
 
index e673c98..767ca93 100644 (file)
@@ -12,7 +12,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)whereis.c  8.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)whereis.c  8.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -24,6 +24,7 @@ static char sccsid[] = "@(#)whereis.c 8.2 (Berkeley) %G%";
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 void usage __P((void));
 
 
 void usage __P((void));
 
index 24b57b3..a14844d 100644 (file)
@@ -12,7 +12,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)kvm_mkdb.c 8.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)kvm_mkdb.c 8.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -26,6 +26,7 @@ static char sccsid[] = "@(#)kvm_mkdb.c        8.2 (Berkeley) %G%";
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 #include "extern.h"
 
 
 #include "extern.h"