Received: by mail.netbsd.org (Postfix, from userid 605) id 57E4A8600F; Sun, 24 Apr 2016 19:48:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D86278600E for ; Sun, 24 Apr 2016 19:48:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id mviFn8mZn1Pq for ; Sun, 24 Apr 2016 19:48:30 +0000 (UTC) Received: from cvs.NetBSD.org (unknown [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 6212784CE7 for ; Sun, 24 Apr 2016 19:48:30 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 53179FBBA; Sun, 24 Apr 2016 19:48:30 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 24 Apr 2016 19:48:30 +0000 From: "David A. Holland" Subject: CVS commit: src To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20160424194830.53179FBBA@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "David A. Holland" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: dholland Date: Sun Apr 24 19:48:30 UTC 2016 Modified Files: src/distrib/sets/lists/comp: mi src/include: semaphore.h src/sys/kern: uipc_sem.c src/sys/sys: Makefile Added Files: src/sys/sys: semaphore.h Log Message: Define SEM_VALUE_MAX in only one place. Adding a whole extra header file just for this is not the optimal solution... but stuffing it in with anything else exposes things that otherwise wouldn't be. Nothing in userland should use directly, and if some foolish third-party software should decide to do so anyway in spite of the instructions to the contrary I will ruthlessly break it later when the big kernel includes cleanup finally happens. Reported by Kamil Rytarowski, and, as it turns out, also by Klaus Heinz in 2008. To generate a diff of this commit: cvs rdiff -u -r1.2031 -r1.2032 src/distrib/sets/lists/comp/mi cvs rdiff -u -r1.4 -r1.5 src/include/semaphore.h cvs rdiff -u -r1.44 -r1.45 src/sys/kern/uipc_sem.c cvs rdiff -u -r1.158 -r1.159 src/sys/sys/Makefile cvs rdiff -u -r0 -r1.1 src/sys/sys/semaphore.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.