changeset 194:30a6db5a95c2

Add comments about SUSv3 specs (or lack thereof).
author Rob Landley <rob@landley.net>
date Mon, 03 Dec 2007 20:05:57 -0600
parents 0efba0e70c43
children 9dc48c97d6f9
files toys/catv.c toys/count.c toys/dmesg.c toys/echo.c toys/false.c toys/hello.c toys/help.c toys/mdev.c toys/mke2fs.c toys/netcat.c toys/oneit.c toys/readlink.c toys/sleep.c toys/sync.c toys/touch.c toys/toysh.c toys/true.c toys/which.c toys/yes.c
diffstat 19 files changed, 41 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/toys/catv.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/catv.c	Mon Dec 03 20:05:57 2007 -0600
@@ -2,7 +2,7 @@
 /*
  * cat -v implementation for toybox
  *
- * Copyright (C) 2006 Rob Landley <rob@landley.net>
+ * Copyright (C) 2006, 2007 Rob Landley <rob@landley.net>
  */
 
 /* See "Cat -v considered harmful" at
--- a/toys/count.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/count.c	Mon Dec 03 20:05:57 2007 -0600
@@ -1,6 +1,8 @@
 /* vi: set sw=4 ts=4: */
 /*
  * count.c - Progress indicator from stdin to stdout
+ *
+ * Not in SUSv3.
  */
 
 #include "toys.h"
--- a/toys/dmesg.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/dmesg.c	Mon Dec 03 20:05:57 2007 -0600
@@ -2,7 +2,9 @@
 /*
  * dmesg.c - display/control kernel ring buffer.
  *
- * Copyright 2006 Rob Landley <rob@landley.net>
+ * Copyright 2006, 2007 Rob Landley <rob@landley.net>
+ *
+ * Not in SUSv3.
  */
 
 #include "toys.h"
--- a/toys/echo.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/echo.c	Mon Dec 03 20:05:57 2007 -0600
@@ -1,6 +1,8 @@
 /* vi: set sw=4 ts=4: */
 /*
  * echo.c - echo supporting -n and -e.
+ *
+ * See http://www.opengroup.org/onlinepubs/007904975/utilities/echo.html
  */
 
 #include "toys.h"
--- a/toys/false.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/false.c	Mon Dec 03 20:05:57 2007 -0600
@@ -1,6 +1,8 @@
 /* vi: set sw=4 ts=4: */
 /*
  * false.c - Return nonzero.
+ *
+ * See http://www.opengroup.org/onlinepubs/007904975/utilities/false.html
  */
 
 #include "toys.h"
--- a/toys/hello.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/hello.c	Mon Dec 03 20:05:57 2007 -0600
@@ -1,6 +1,8 @@
 /* vi: set sw=4 ts=4: */
 /*
  * hello.c - A hello world program.
+ *
+ * Not in SUSv3.
  */
 
 #include "toys.h"
--- a/toys/help.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/help.c	Mon Dec 03 20:05:57 2007 -0600
@@ -1,6 +1,8 @@
 /* vi: set sw=4 ts=4: */
 /*
  * help.c - Show help for toybox
+ *
+ * Not in SUSv3, but exists as a bash builtin.
  */
 
 #include "toys.h"
--- a/toys/mdev.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/mdev.c	Mon Dec 03 20:05:57 2007 -0600
@@ -2,8 +2,10 @@
  *
  * mdev - Mini udev for busybox
  *
- * Copyright 2005 Rob Landley <rob@landley.net>
+ * Copyright 2005, 2007 Rob Landley <rob@landley.net>
  * Copyright 2005 Frank Sorenson <frank@tuxrocks.com>
+ *
+ * Not in SUSv3.
  */
 
 #include "toys.h"
--- a/toys/mke2fs.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/mke2fs.c	Mon Dec 03 20:05:57 2007 -0600
@@ -2,7 +2,9 @@
  *
  * mke2fs.c - Create an ext2 filesystem image.
  *
- * Copyright 2006 Rob Landley <rob@landley.net>
+ * Copyright 2006, 2007 Rob Landley <rob@landley.net>
+ *
+ * Not in SUSv3.
  */
 
 #include "toys.h"
--- a/toys/netcat.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/netcat.c	Mon Dec 03 20:05:57 2007 -0600
@@ -2,6 +2,8 @@
 /* nc: mini-netcat - Forward stdin/stdout to a file or network connection.
  *
  * Copyright 2007 Rob Landley <rob@landley.net>
+ *
+ * Not in SUSv3.
  */
 
 #include "toys.h"
--- a/toys/oneit.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/oneit.c	Mon Dec 03 20:05:57 2007 -0600
@@ -1,6 +1,8 @@
 /* oneit.c, tiny one-process init replacement.
  *
- * Copyright 2005 by Rob Landley <rob@landley.net>.
+ * Copyright 2005, 2007 by Rob Landley <rob@landley.net>.
+ *
+ * Not in SUSv3.
  */
 
 #include "toys.h"
--- a/toys/readlink.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/readlink.c	Mon Dec 03 20:05:57 2007 -0600
@@ -1,8 +1,9 @@
 /* vi: set sw=4 ts=4: */
 /*
  * readlink.c - Return string representation of a symbolic link.
+ *
+ * Not in SUSv3.
  */
-// Note: Hardware in LINK_MAX as 127 since it was removed from glibc.
 
 #include "toys.h"
 
--- a/toys/sleep.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/sleep.c	Mon Dec 03 20:05:57 2007 -0600
@@ -1,6 +1,8 @@
 /* vi: set sw=4 ts=4: */
 /*
  * sleep.c - Wait for a number of seconds.
+ *
+ * See http://www.opengroup.org/onlinepubs/007904975/utilities/sleep.html
  */
 
 #include "toys.h"
--- a/toys/sync.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/sync.c	Mon Dec 03 20:05:57 2007 -0600
@@ -1,6 +1,8 @@
 /* vi: set sw=4 ts=4: */
 /*
  * sync.c - Write all pending data to disk.
+ *
+ * Not in SUSv3.
  */
 
 #include "toys.h"
--- a/toys/touch.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/touch.c	Mon Dec 03 20:05:57 2007 -0600
@@ -3,6 +3,8 @@
  * touch.c - Modify a file's timestamps.
  *
  * Copyright (C) 2007 Charlie Shepherd <masterdriverz@gentoo.org>
+ *
+ * See http://www.opengroup.org/onlinepubs/007904975/utilities/touch.html
  */
 
 #define _XOPEN_SOURCE 600
--- a/toys/toysh.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/toysh.c	Mon Dec 03 20:05:57 2007 -0600
@@ -6,6 +6,8 @@
  *
  * The spec for this is at:
  * http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
+ * and
+ * http://www.opengroup.org/onlinepubs/007904975/utilities/sh.html
  *
  * Although things like the bash man page are good to read too.
  */
--- a/toys/true.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/true.c	Mon Dec 03 20:05:57 2007 -0600
@@ -1,6 +1,8 @@
 /* vi: set sw=4 ts=4: */
 /*
  * true.c - Return zero.
+ *
+ * See http://www.opengroup.org/onlinepubs/007904975/utilities/true.html
  */
 
 #include "toys.h"
--- a/toys/which.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/which.c	Mon Dec 03 20:05:57 2007 -0600
@@ -3,6 +3,8 @@
  * which.c - Find executable files in $PATH.
  *
  * Copyright 2006 Rob landley <rob@landley.net>
+ *
+ * Not in SUSv3.
  */
 
 #include "toys.h"
--- a/toys/yes.c	Mon Dec 03 20:05:14 2007 -0600
+++ b/toys/yes.c	Mon Dec 03 20:05:57 2007 -0600
@@ -1,6 +1,8 @@
 /* vi: set sw=4 ts=4: */
 /*
  * yes.c - Repeatedly output a string.
+ *
+ * Not in SUSv3.
  */
 
 #include "toys.h"