Print this page
11657 Remove old ctf tools
@@ -43,11 +43,10 @@
#define CTFMERGE_OK 0
#define CTFMERGE_FATAL 1
#define CTFMERGE_USAGE 2
#define CTFMERGE_DEFAULT_NTHREADS 8
-#define CTFMERGE_ALTEXEC "CTFMERGE_ALTEXEC"
static void __attribute__((__noreturn__))
ctfmerge_fatal(const char *fmt, ...)
{
va_list ap;
@@ -310,32 +309,10 @@
"\t-m allow C-based input files to not have CTF\n"
"\t-o file to add CTF data to\n",
g_progname);
}
-static void
-ctfmerge_altexec(char **argv)
-{
- const char *alt;
- char *altexec;
-
- alt = getenv(CTFMERGE_ALTEXEC);
- if (alt == NULL || *alt == '\0')
- return;
-
- altexec = strdup(alt);
- if (altexec == NULL)
- ctfmerge_fatal("failed to allocate memory for altexec\n");
- if (unsetenv(CTFMERGE_ALTEXEC) != 0)
- ctfmerge_fatal("failed to unset %s from environment: %s\n",
- CTFMERGE_ALTEXEC, strerror(errno));
-
- (void) execv(altexec, argv);
- ctfmerge_fatal("failed to execute alternate program %s: %s",
- altexec, strerror(errno));
-}
-
int
main(int argc, char *argv[])
{
int err, i, c, ofd;
uint_t nthreads = CTFMERGE_DEFAULT_NTHREADS;
@@ -347,12 +324,10 @@
long argj;
char *eptr;
g_progname = basename(argv[0]);
- ctfmerge_altexec(argv);
-
/*
* We support a subset of the old CTF merge flags, mostly for
* compatibility.
*/
while ((c = getopt(argc, argv, ":d:fgj:l:L:mo:t")) != -1) {