From owner-svn-src-stable@FreeBSD.ORG Sat Oct 2 20:55:11 2010 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 951D51065670; Sat, 2 Oct 2010 20:55:11 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 696B28FC1D; Sat, 2 Oct 2010 20:55:11 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o92KtBSb052475; Sat, 2 Oct 2010 20:55:11 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o92KtBYV052470; Sat, 2 Oct 2010 20:55:11 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201010022055.o92KtBYV052470@svn.freebsd.org> From: Jilles Tjoelker Date: Sat, 2 Oct 2010 20:55:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r213367 - stable/8/bin/sh X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2010 20:55:11 -0000 Author: jilles Date: Sat Oct 2 20:55:11 2010 New Revision: 213367 URL: http://svn.freebsd.org/changeset/base/213367 Log: MFC r200967: sh: Add some __dead2 to indicate functions that do not return. Modified: stable/8/bin/sh/error.c stable/8/bin/sh/error.h stable/8/bin/sh/exec.h stable/8/bin/sh/trap.h Directory Properties: stable/8/bin/sh/ (props changed) Modified: stable/8/bin/sh/error.c ============================================================================== --- stable/8/bin/sh/error.c Sat Oct 2 20:39:45 2010 (r213366) +++ stable/8/bin/sh/error.c Sat Oct 2 20:55:11 2010 (r213367) @@ -67,7 +67,7 @@ volatile sig_atomic_t intpending; char *commandname; -static void exverror(int, const char *, va_list) __printf0like(2, 0); +static void exverror(int, const char *, va_list) __printf0like(2, 0) __dead2; /* * Called to raise an exception. Since C doesn't include exceptions, we Modified: stable/8/bin/sh/error.h ============================================================================== --- stable/8/bin/sh/error.h Sat Oct 2 20:39:45 2010 (r213366) +++ stable/8/bin/sh/error.h Sat Oct 2 20:55:11 2010 (r213367) @@ -76,10 +76,10 @@ extern volatile sig_atomic_t intpending; #define CLEAR_PENDING_INT intpending = 0 #define int_pending() intpending -void exraise(int); +void exraise(int) __dead2; void onint(void); -void error(const char *, ...) __printf0like(1, 2); -void exerror(int, const char *, ...) __printf0like(2, 3); +void error(const char *, ...) __printf0like(1, 2) __dead2; +void exerror(int, const char *, ...) __printf0like(2, 3) __dead2; /* Modified: stable/8/bin/sh/exec.h ============================================================================== --- stable/8/bin/sh/exec.h Sat Oct 2 20:39:45 2010 (r213366) +++ stable/8/bin/sh/exec.h Sat Oct 2 20:55:11 2010 (r213367) @@ -60,7 +60,7 @@ struct cmdentry { extern const char *pathopt; /* set by padvance */ extern int exerrno; /* last exec error */ -void shellexec(char **, char **, const char *, int); +void shellexec(char **, char **, const char *, int) __dead2; char *padvance(const char **, const char *); int hashcmd(int, char **); void find_command(const char *, struct cmdentry *, int, const char *); Modified: stable/8/bin/sh/trap.h ============================================================================== --- stable/8/bin/sh/trap.h Sat Oct 2 20:39:45 2010 (r213366) +++ stable/8/bin/sh/trap.h Sat Oct 2 20:55:11 2010 (r213367) @@ -45,4 +45,4 @@ void ignoresig(int); void onsig(int); void dotrap(void); void setinteractive(int); -void exitshell(int); +void exitshell(int) __dead2;