From owner-freebsd-current Mon Jun 10 00:40:52 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA26748 for current-outgoing; Mon, 10 Jun 1996 00:40:52 -0700 (PDT) Received: from lirmm.lirmm.fr (lirmm.lirmm.fr [193.49.104.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA26724 for ; Mon, 10 Jun 1996 00:40:49 -0700 (PDT) Received: from lirmm.fr (baobab.lirmm.fr [193.49.106.14]) by lirmm.lirmm.fr (8.7.1/8.6.4) with ESMTP id JAA22288 for ; Mon, 10 Jun 1996 09:40:48 +0200 (MET DST) Message-Id: <199606100740.JAA22288@lirmm.lirmm.fr> To: current@freebsd.org Subject: enable debugging in tsort Date: Mon, 10 Jun 1996 09:40:44 +0200 From: "Philippe Charnier" Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 ------------------------------------------------------------------------