Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/coreutils/hostid.c

    r2725 r3232  
    99
    1010/* 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"
    1127
    1228#include "libbb.h"
     
    2137    }
    2238
    23     printf("%lx\n", gethostid());
     39    printf("%08lx\n", gethostid());
    2440
    2541    return fflush_all();
Note: See TracChangeset for help on using the changeset viewer.