diff options
| author | Osama Abdelkader via busybox <busybox@busybox.net> | 2026-01-31 14:02:28 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2026-02-01 11:41:08 +0100 |
| commit | 405afbd5518910149496ec97257b8402e7e647f6 (patch) | |
| tree | 76ffe4d0cb6bf3dcaeec2655d077e944675b94d1 /miscutils | |
| parent | 2bfe3753d9f02ac01bf245610b4c39da727e2489 (diff) | |
| download | busybox-w32-405afbd5518910149496ec97257b8402e7e647f6.tar.gz busybox-w32-405afbd5518910149496ec97257b8402e7e647f6.tar.bz2 busybox-w32-405afbd5518910149496ec97257b8402e7e647f6.zip | |
util-linux: add minimal uuidgen implementation
Add a simple uuidgen utility that generates RFC 4122 compliant
UUIDs (version 4, random). Uses the existing generate_uuid()
function from libbb and volume_id_set_uuid() for formatting.
Implementation suggested by Ulli.
Features:
- Generates standard format UUIDs: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- RFC 4122 version 4 compliant
- Minimal implementation (~1.1 kb)
- NOFORK applet for efficiency
- Uses existing volume_id infrastructure for UUID formatting
function old new delta
uuidgen_main - 71 +71
applet_names 2862 2870 +8
.rodata 107010 107016 +6
applet_main 1648 1652 +4
applet_suid 103 104 +1
applet_install_loc 206 207 +1
applet_flags 103 104 +1
packed_usage 35952 35941 -11
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 6/1 up/down: 92/-11) Total: 81 bytes
Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
0 files changed, 0 insertions, 0 deletions
