Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/coreutils/hostid.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/coreutils/hostid.c
r2725 r3232 9 9 10 10 /* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */ 11 12 //config:config HOSTID 13 //config: bool "hostid" 14 //config: default y 15 //config: help 16 //config: hostid prints the numeric identifier (in hexadecimal) for 17 //config: the current host. 18 19 //applet:IF_HOSTID(APPLET_NOFORK(hostid, hostid, BB_DIR_USR_BIN, BB_SUID_DROP, hostid)) 20 21 //kbuild:lib-$(CONFIG_HOSTID) += hostid.o 22 23 //usage:#define hostid_trivial_usage 24 //usage: "" 25 //usage:#define hostid_full_usage "\n\n" 26 //usage: "Print out a unique 32-bit identifier for the machine" 11 27 12 28 #include "libbb.h" … … 21 37 } 22 38 23 printf("% lx\n", gethostid());39 printf("%08lx\n", gethostid()); 24 40 25 41 return fflush_all();
Note:
See TracChangeset
for help on using the changeset viewer.