shithub: scc

Download patch

ref: 7c7c96852af4bbdaee9543ae8b6a85cd89ba20ea
parent: 682ca35d5df44aeb05d8b47e96688c06d9aad154
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Jan 8 11:12:22 EST 2019

[ranlib] Add TODO for t flag

--- a/src/cmd/ranlib.c
+++ b/src/cmd/ranlib.c
@@ -19,7 +19,7 @@
 	Name *hash, *next;
 };
 
-static int status;
+static int status, tflag;
 static char *filename, *membname;
 static Name *htab[NR_NAMES], *head;
 static long offset;
@@ -253,7 +253,7 @@
 static void
 usage(void)
 {
-	fputs("usage: ranlib [file...]\n", stderr);
+	fputs("usage: ranlib [-t] [file...]\n", stderr);
 	exit(EXIT_FAILURE);
 }
 
@@ -261,6 +261,9 @@
 main(int argc, char *argv[])
 {
 	ARGBEGIN {
+	case 't':
+		tflag = 1; /* TODO */
+		break;
 	default:
 		usage();
 	} ARGEND