Date: Mon, 10 Jun 1996 09:40:44 +0200 From: "Philippe Charnier" <charnier@lirmm.fr> To: current@freebsd.org Subject: enable debugging in tsort Message-ID: <199606100740.JAA22288@lirmm.lirmm.fr>
next in thread | raw e-mail | index | archive | help
Hi,
The -d option was not in man page nor in usage string.
Index: tsort.1
===================================================================
RCS file: /home2h/FreeBSD.cvsroot/src/usr.bin/tsort/tsort.1,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 tsort.1
--- tsort.1 1994/05/27 12:33:13 1.1.1.1
+++ tsort.1 1996/06/08 09:50:56
@@ -42,6 +42,7 @@
.Nd topological sort of a directed graph
.Sh SYNOPSIS
.Nm tsort
+.Op Fl d
.Op Fl l
.Op Ar file
.Sh DESCRIPTION
@@ -66,6 +67,8 @@
.Pp
The options are as follows:
.Bl -tag -width Ds
+.It Fl d
+Turn on debugging.
.It Fl l
Search for and display the longest cycle.
Can take a very long time.
Index: tsort.c
===================================================================
RCS file: /home2h/FreeBSD.cvsroot/src/usr.bin/tsort/tsort.c,v
retrieving revision 1.2
diff -u -r1.2 tsort.c
--- tsort.c 1995/05/30 06:35:36 1.2
+++ tsort.c 1996/06/08 09:55:37
@@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id$
*/
#ifndef lint
@@ -61,7 +63,7 @@
* standard output in sorted order, one per line.
*
* usage:
- * tsort [-l] [inputfile]
+ * tsort [-d][-l] [inputfile]
* If no input file is specified, standard input is read.
*
* Should be compatable with AT&T tsort HOWEVER the output is not identical
@@ -424,6 +426,6 @@
void
usage()
{
- (void)fprintf(stderr, "usage: tsort [-l] [file]\n");
+ (void)fprintf(stderr, "usage: tsort [-d][-l] [file]\n");
exit(1);
}
-------- --------
Philippe Charnier charnier@lirmm.fr
LIRMM, 161 rue Ada, 34392 Montpellier cedex 5 -- France
------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606100740.JAA22288>
