aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-02-17 13:03:33 -0600
committerRob Landley <rob@landley.net>2018-02-17 13:03:33 -0600
commitafb4bb9e5060e02f8bf12fdf9e71eb46c73d789a (patch)
tree69c912a051740e82de35755a21aa6ee85318a6f3 /toys
parent9a2c9da7cf72d3ad246f62840dcf9506f5926506 (diff)
downloadtoybox-afb4bb9e5060e02f8bf12fdf9e71eb46c73d789a.tar.gz
Add RFC link to the examples.
Diffstat (limited to 'toys')
-rw-r--r--toys/example/hello.c5
-rw-r--r--toys/example/skeleton.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/toys/example/hello.c b/toys/example/hello.c
index 3b7d27b6..4cd5d13a 100644
--- a/toys/example/hello.c
+++ b/toys/example/hello.c
@@ -4,6 +4,7 @@
*
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/
* See http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/cmdbehav.html
+ * See https://www.ietf.org/rfc/rfc3.txt
USE_HELLO(NEWTOY(hello, 0, TOYFLAG_USR|TOYFLAG_BIN))
@@ -11,9 +12,9 @@ config HELLO
bool "hello"
default n
help
- usage: hello [-s]
+ usage: hello
- A hello world program. You don't need this.
+ A hello world program.
Mostly used as a simple template for adding new commands.
Occasionally nice to smoketest kernel booting via "init=/usr/bin/hello".
diff --git a/toys/example/skeleton.c b/toys/example/skeleton.c
index ee67b58f..666e804a 100644
--- a/toys/example/skeleton.c
+++ b/toys/example/skeleton.c
@@ -5,6 +5,7 @@
*
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/
* See http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/cmdbehav.html
+ * See https://www.ietf.org/rfc/rfc3.txt
// Accept many different kinds of command line argument (see top of lib/args.c)
// Demonstrate two commands in the same file (see www/documentation.html)