chiark / gitweb /
Revert "fishdescriptor: Utility for RTLD_NOW"
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 6 Oct 2017 18:05:15 +0000 (19:05 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 6 Oct 2017 18:05:15 +0000 (19:05 +0100)
This reverts commit 22677ae542431ce09a8de83fecc3a22163a8d490.

fishdescriptor/Makefile
fishdescriptor/fishdescriptor.c [deleted file]

index 5b63931..e6b493a 100644 (file)
@@ -9,7 +9,7 @@ MINOR=0
 LIBCANON=       libfishdescriptor-donate.so.$(MAJOR)
 LIBTARGET=      $(LIBCANON).$(MINOR)
 
-all:   $(LIBTARGET) fishdescriptor
+all:   $(LIBTARGET)
 
 $(LIBTARGET):  donate.o
        $(CC) -shared -Wl,-soname -Wl,$(LIBCANON) -o $@ $< $(LIBS)
diff --git a/fishdescriptor/fishdescriptor.c b/fishdescriptor/fishdescriptor.c
deleted file mode 100644 (file)
index b86831f..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- *
- * utility
- *
- */
-
-#define _GNU_SOURCE
-
-#include <unistd.h>
-#include <getopt.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <dlfcn.h>
-
-static const struct option longopts[] = {
-  { "print-rtld-now", 0, 0, '\1' },
-  { }
-};
-
-static void printusage(FILE *f) {
-  fputs("usage: fishdescriptor --print-rtld-now\n",f);
-}
-
-int main(int argc, char **argv) {
-  int o;
-
-  while ((o = getopt_long(argc, argv, "", longopts, 0)) != -1) {
-    switch (o) {
-    case '\1' /* --print-rtld-now */:
-      printf("%d\n", RTLD_NOW);
-      exit (0);
-    default:
-      fputs("bad usage: unknown option\n",stderr);
-      printusage(stderr);
-      exit(-1);
-    }
-  }
-
-  fputs("bad usage: XXX\n",stderr);
-  printusage(stderr);
-  exit(-1);
-}