summaryrefslogtreecommitdiffhomepage
path: root/miscutils
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-11-11 03:00:12 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-11-11 03:00:12 +0000
commit8f0722a53b9a88c0b4e60b79e4362d0f31c32c54 (patch)
tree2efbea745d3ef22e375df3e60ba4c8f14c04f1c4 /miscutils
parentc11986d89eba564945b226660031e624bf897561 (diff)
Move readlink, mktemp, run-parts and which to a new debianutils dir.
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/Makefile.in2
-rw-r--r--miscutils/config.in2
-rw-r--r--miscutils/mktemp.c40
-rw-r--r--miscutils/readlink.c46
4 files changed, 0 insertions, 90 deletions
diff --git a/miscutils/Makefile.in b/miscutils/Makefile.in
index 72292b69d..535e65467 100644
--- a/miscutils/Makefile.in
+++ b/miscutils/Makefile.in
@@ -30,9 +30,7 @@ MISCUTILS-$(CONFIG_CRONTAB) += crontab.o
MISCUTILS-$(CONFIG_DC) += dc.o
MISCUTILS-$(CONFIG_DUTMP) += dutmp.o
MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o
-MISCUTILS-$(CONFIG_MKTEMP) += mktemp.o
MISCUTILS-$(CONFIG_MT) += mt.o
-MISCUTILS-$(CONFIG_READLINK) += readlink.o
MISCUTILS-$(CONFIG_STRINGS) += strings.o
MISCUTILS-$(CONFIG_TIME) += time.o
MISCUTILS-$(CONFIG_UPDATE) += update.o
diff --git a/miscutils/config.in b/miscutils/config.in
index 3dc5e2c8b..063e02b36 100644
--- a/miscutils/config.in
+++ b/miscutils/config.in
@@ -12,9 +12,7 @@ bool 'crontab' CONFIG_CRONTAB
bool 'dc' CONFIG_DC
bool 'dutmp' CONFIG_DUTMP
bool 'makedevs' CONFIG_MAKEDEVS
-bool 'mktemp' CONFIG_MKTEMP
bool 'mt' CONFIG_MT
-bool 'readlink' CONFIG_READLINK
bool 'strings' CONFIG_STRINGS
bool 'time' CONFIG_TIME
bool 'update' CONFIG_UPDATE
diff --git a/miscutils/mktemp.c b/miscutils/mktemp.c
deleted file mode 100644
index bc47d0af0..000000000
--- a/miscutils/mktemp.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/*
- * Mini mktemp implementation for busybox
- *
- *
- * Copyright (C) 2000 by Daniel Jacobowitz
- * Written by Daniel Jacobowitz <dan@debian.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
-
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include "busybox.h"
-
-extern int mktemp_main(int argc, char **argv)
-{
- if (argc != 2 && (argc != 3 || strcmp(argv[1], "-q")))
- show_usage();
- if(mkstemp(argv[argc-1]) < 0)
- return EXIT_FAILURE;
- (void) puts(argv[argc-1]);
- return EXIT_SUCCESS;
-}
diff --git a/miscutils/readlink.c b/miscutils/readlink.c
deleted file mode 100644
index da5259038..000000000
--- a/miscutils/readlink.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/*
- * Mini readlink implementation for busybox
- *
- * Copyright (C) 2000,2001 Matt Kraai <kraai@alumni.carnegiemellon.edu>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
-
-#include <errno.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include "busybox.h"
-
-int readlink_main(int argc, char **argv)
-{
- char *buf = NULL;
-
- /* no options, no getopt */
-
- if (argc != 2)
- show_usage();
-
- buf = xreadlink(argv[1]);
- if (!buf)
- return EXIT_FAILURE;
- puts(buf);
-#ifdef CONFIG_FEATURE_CLEAN_UP
- free(buf);
-#endif
-
- return EXIT_SUCCESS;
-}