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 <sys/semaphore.h> 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.