summaryrefslogtreecommitdiffstats
path: root/toolbox/rmdir.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-07-22 17:20:15 -0700
committerElliott Hughes <enh@google.com>2014-07-24 17:20:51 -0700
commitfd4c6b0a3a25921a9fe24691a695d715aecb6afe (patch)
treeb98f7721d38ac93dec6c1a4138843ecee01d991e /toolbox/rmdir.c
parent2fd1fec6197e0ede7a404e106e3dc6ce226dca58 (diff)
downloadsystem_core-fd4c6b0a3a25921a9fe24691a695d715aecb6afe.zip
system_core-fd4c6b0a3a25921a9fe24691a695d715aecb6afe.tar.gz
system_core-fd4c6b0a3a25921a9fe24691a695d715aecb6afe.tar.bz2
Refresh toolbox.
Use more upstream NetBSD, and update those things that were already NetBSD. Note that unlike bionic, the upstream-netbsd directory isn't pristine; we have changes marked by __ANDROID__. Bug: 16493461 Change-Id: I99762bfe02caa0945ea4a184670888a4b5435a1d
Diffstat (limited to 'toolbox/rmdir.c')
-rw-r--r--toolbox/rmdir.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/toolbox/rmdir.c b/toolbox/rmdir.c
deleted file mode 100644
index 749fec8..0000000
--- a/toolbox/rmdir.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-
-static int usage()
-{
- fprintf(stderr,"rmdir <directory>\n");
- return -1;
-}
-
-int rmdir_main(int argc, char *argv[])
-{
- int ret;
- if(argc < 2) return usage();
-
- while(argc > 1) {
- argc--;
- argv++;
- ret = rmdir(argv[0]);
- if(ret < 0) {
- fprintf(stderr, "rmdir failed for %s, %s\n", argv[0], strerror(errno));
- return ret;
- }
- }
-
- return 0;
-}