From owner-svn-src-head@FreeBSD.ORG Fri Oct 31 14:47:15 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA1B91065696; Fri, 31 Oct 2008 14:47:15 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B6FBE8FC24; Fri, 31 Oct 2008 14:47:15 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9VElF0u083251; Fri, 31 Oct 2008 14:47:15 GMT (envelope-from rwatson@svn.freebsd.org) Received: (from rwatson@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9VElFtp083250; Fri, 31 Oct 2008 14:47:15 GMT (envelope-from rwatson@svn.freebsd.org) Message-Id: <200810311447.m9VElFtp083250@svn.freebsd.org> From: Robert Watson Date: Fri, 31 Oct 2008 14:47:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184509 - head/share/man/man9 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 14:47:15 -0000 Author: rwatson Date: Fri Oct 31 14:47:15 2008 New Revision: 184509 URL: http://svn.freebsd.org/changeset/base/184509 Log: In style(9) examples of err() and errx(), use sysexits(3) errors rather than returning 1. Submitted by: Bruce Cran MFC after: 3 days Modified: head/share/man/man9/style.9 Modified: head/share/man/man9/style.9 ============================================================================== --- head/share/man/man9/style.9 Fri Oct 31 14:40:21 2008 (r184508) +++ head/share/man/man9/style.9 Fri Oct 31 14:47:15 2008 (r184509) @@ -716,9 +716,9 @@ or do not roll your own. .Bd -literal if ((four = malloc(sizeof(struct foo))) == NULL) - err(1, (char *)NULL); + err(EX_OSERR, NULL); if ((six = (int *)overflow()) == NULL) - errx(1, "number overflowed"); + errx(EX_DATAERR, "number overflowed"); return (eight); } .Ed