diff options
author | Rob Landley <rob@landley.net> | 2016-12-26 12:10:29 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-12-26 12:10:29 -0600 |
commit | 6bce3be4a3fcb1c3b01d86ffaec2b605c692822d (patch) | |
tree | f3ff81a799d1b35e7772c6fa38e6b9a19ccb9f51 /toys/other | |
parent | 8efb96070d6d09434dee2208f0dea6a4aac8b5b8 (diff) | |
download | toybox-6bce3be4a3fcb1c3b01d86ffaec2b605c692822d.tar.gz |
Move hostid to toys/example and have it "default n".
A "globally unique 32 bit number" is a concept the Linux world has outgrown.
Diffstat (limited to 'toys/other')
-rw-r--r-- | toys/other/hostid.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/toys/other/hostid.c b/toys/other/hostid.c deleted file mode 100644 index 883ac3ca..00000000 --- a/toys/other/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 y - 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()); -} |