aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/hostid.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-07-24 19:55:15 -0500
committerRob Landley <rob@landley.net>2015-07-24 19:55:15 -0500
commitb9fb3067822c0a347905db81af0496743733fad5 (patch)
tree80955af49cfd7ff8ac75072201cf52234d1594b6 /toys/pending/hostid.c
parent441d1cedfb8dbe2c720bee791b5240829a5e54f9 (diff)
downloadtoybox-b9fb3067822c0a347905db81af0496743733fad5.tar.gz
Promote hostid.
Diffstat (limited to 'toys/pending/hostid.c')
-rw-r--r--toys/pending/hostid.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/toys/pending/hostid.c b/toys/pending/hostid.c
deleted file mode 100644
index feef61bf..00000000
--- a/toys/pending/hostid.c
+++ /dev/null
@@ -1,23 +0,0 @@
-/* hostid.c - Print the numeric identifier for the current host.
- *
- * Copyright 2015 Ranjan Kumar <ranjankumar.bth@gmail.com>
- *
- * No Standard.
-
-USE_HOSTID(NEWTOY(hostid, ">0", TOYFLAG_USR|TOYFLAG_BIN))
-
-config HOSTID
- bool "hostid"
- default n
- help
- usage: hostid
-
- Print the numeric identifier for the current host.
-*/
-#define FOR_hostid
-#include "toys.h"
-
-void hostid_main(void)
-{
- xprintf("%08lx\n", gethostid());
-}