From afb4bb9e5060e02f8bf12fdf9e71eb46c73d789a Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 17 Feb 2018 13:03:33 -0600 Subject: Add RFC link to the examples. --- toys/example/hello.c | 5 +++-- toys/example/skeleton.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'toys') 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) -- cgit v1.2.3