summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-11-13 19:50:31 +0000
committerwiz <wiz@pkgsrc.org>2005-11-13 19:50:31 +0000
commite61b7d0cf94c3d389b22946b8300d9adc52038e8 (patch)
tree835f2c72f149590c8b2f05d81cf4af11b68aca45 /pkgtools/pkg_install
parent0fc46316926d49b77d64bea7b67b78d7d613271f (diff)
downloadpkgsrc-e61b7d0cf94c3d389b22946b8300d9adc52038e8.tar.gz
Remove obsolete file.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/files/lib/exec.c76
1 files changed, 0 insertions, 76 deletions
diff --git a/pkgtools/pkg_install/files/lib/exec.c b/pkgtools/pkg_install/files/lib/exec.c
deleted file mode 100644
index 5f0a47752c8..00000000000
--- a/pkgtools/pkg_install/files/lib/exec.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/* $NetBSD: exec.c,v 1.5 2003/09/23 13:22:40 grant Exp $ */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-#include <nbcompat.h>
-#if HAVE_SYS_CDEFS_H
-#include <sys/cdefs.h>
-#endif
-#ifndef lint
-#if 0
-static const char *rcsid = "from FreeBSD Id: exec.c,v 1.6 1997/10/08 07:47:50 charnier Exp";
-#else
-__RCSID("$NetBSD: exec.c,v 1.5 2003/09/23 13:22:40 grant Exp $");
-#endif
-#endif
-
-/*
- * FreeBSD install - a package for the installation and maintainance
- * of non-core utilities.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * Jordan K. Hubbard
- * 18 July 1993
- *
- * Miscellaneous system routines.
- *
- */
-
-#if HAVE_ERR_H
-#include <err.h>
-#endif
-#include "lib.h"
-
-/*
- * Unusual system() substitute. Accepts format string and args,
- * builds and executes command. Returns exit code.
- */
-int
-vsystem(const char *fmt,...)
-{
- va_list args;
- char *cmd;
- size_t maxargs;
- int ret;
-
- maxargs = (size_t) sysconf(_SC_ARG_MAX);
- maxargs -= 32; /* some slop for the sh -c */
- if ((cmd = (char *) malloc(maxargs)) == (char *) NULL) {
- warnx("vsystem can't alloc arg space");
- return 1;
- }
-
- va_start(args, fmt);
- if (vsnprintf(cmd, maxargs, fmt, args) >= maxargs) {
- warnx("vsystem args are too long");
- va_end(args);
- free(cmd);
- return 1;
- }
-#ifdef VSYSTEM_DEBUG
- printf("vsystem(\"%s\")\n", cmd);
-#endif
- ret = system(cmd);
- va_end(args);
- free(cmd);
- return ret;
-}