This is the source for libcap-1.0.tar.gz

http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2/libcap-1.0.tar.gz
diff --git a/progs/old/getcap.c b/progs/old/getcap.c
new file mode 100644
index 0000000..67d904b
--- /dev/null
+++ b/progs/old/getcap.c
@@ -0,0 +1,64 @@
+/*
+ * $Id: getcap.c,v 1.3 1997/05/04 05:34:32 morgan Exp $
+ *
+ * Copyright (c) 1997 Andrew G. Morgan  <morgan@parc.power.net>
+ *
+ * This displays the capabilities of a given file.
+ */
+
+#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/capability.h>
+
+static void usage(void)
+{
+    fprintf(stderr,
+	    "usage: getcap <filename> [<filename> ...]\n"
+	    "\n"
+	    "\tdisplays the capabilities on the queried file(s).\n"
+	);
+    exit(1);
+}
+
+int main(int argc, char **argv)
+{
+    char *result=NULL;
+
+    if (argc < 2) {
+	usage();
+    }
+
+    for ( ++argv; --argc > 0; ++argv ) {
+	ssize_t length;
+	cap_t cap_d;
+
+	cap_d = cap_get_file(argv[0]);
+
+	if (cap_d == NULL) {
+	    fprintf(stderr,
+		    "Failed to get capabilities for file `%s'\n"
+		    " (%s)\n", argv[0], strerror(errno));
+	    continue;
+	}
+
+	result = cap_to_text(cap_d, &length);
+
+	fprintf(stderr, "Capabilities for `%s':\n%s\n", *argv, result);
+    }
+
+    return 0;
+}
+
+/*
+ * $Log: getcap.c,v $
+ * Revision 1.3  1997/05/04 05:34:32  morgan
+ * non void main
+ *
+ * Revision 1.2  1997/04/28 01:01:20  morgan
+ * update to allow more than one argument file
+ *
+ * Revision 1.1  1997/04/21 04:34:04  morgan
+ * Initial revision
+ *
+ */