From owner-cvs-all@FreeBSD.ORG Thu May 12 18:57:38 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 851FF16A4CE; Thu, 12 May 2005 18:57:38 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BE9E43D7D; Thu, 12 May 2005 18:57:38 +0000 (GMT) (envelope-from jmallett@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j4CIvcZ4096038; Thu, 12 May 2005 18:57:38 GMT (envelope-from jmallett@repoman.freebsd.org) Received: (from jmallett@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j4CIvccJ096037; Thu, 12 May 2005 18:57:38 GMT (envelope-from jmallett) Message-Id: <200505121857.j4CIvccJ096037@repoman.freebsd.org> From: Juli Mallett Date: Thu, 12 May 2005 18:57:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/what what.1 what.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 18:57:38 -0000 jmallett 2005-05-12 18:57:38 UTC FreeBSD src repository Modified files: usr.bin/what what.1 what.c Log: Add a flag (-q) which prints no header for the file and which doesn't indent the match text; it also doesn't warn() for files which can't be opened. Remove global variables. Use bool. fopen(3) the files instead of freopen(3)ing stdin. Revision Changes Path 1.18 +8 -1 src/usr.bin/what/what.1 1.11 +53 -32 src/usr.bin/what/what.c