• Home
Name Date Size #Lines LOC

..--

READMED03-May-2024915 2415

demo_many_options.cD03-May-2024551 236

demo_number.cD03-May-2024895 4216

demo_scankey.cD03-May-20242 KiB7749

demo_utf8towc.cD03-May-2024864 4121

hello.cD03-May-2024889 3910

hostid.cD03-May-2024579 276

logpath.cD03-May-20242 KiB7846

skeleton.cD03-May-20243.3 KiB10647

README

1Example commands
2
3You probably don't want to deploy any of this.
4
5The hello.c and skeleton.c commands provide templates for new commands. When
6writing a new command, copying hello.c or skeleton.c to the new name may provide
7a good starting point. (The minimal staring point is toys/posix/false.c)
8
9  - hello.c is clean and simple, and an easy way to check the behavior of
10    toybox library functions running in command context.
11
12  - skeleton.c demonstrates the option parsing infrastructure and having
13    multiple commands per file.
14
15Some of the commands in here are test infrastructure:
16
17  - logpath.c is optionally used by mkroot.sh and scripts/record-commands
18
19  - demo_* demonstrates infrastructure, allowing tests/demo_*.test to
20    regression test library functions directly.
21
22hostid.c is an obsolete command still in posix and present on some recent
23Linux systems, but not really useful on modern systems.
24