blob: 0ebc20284d42ef1d993f09f8cb860159b9d38e14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Example commands
You probably don't want to deploy any of this.
The hello.c and skeleton.c commands provide templates for new commands:
hello.c is clean and simple, skeleton.c demonstrates the option parsing
infrastructure and having multiple commands per file. When writing a new
command, copying hello.c or skeleton.c to the new name may provide a good
starting point. (The minimal staring point is toys/posix/false.c)
The demo_* commands demonstrate infrastructure, and do regression testing.
Other commands in here are obsolete versions still in some recent Linux systems
(and often still in posix), but not really useful on modern systems.
|