git: Remove <sys/semaphore.h> so that we have <semaphore.h> only.
Sascha Wildner
swildner at crater.dragonflybsd.org
Fri Feb 22 13:17:41 PST 2019
commit 94f033080d9908e85ed47be58578262fa244ce16
Author: Sascha Wildner <saw at online.de>
Date: Fri Feb 22 22:16:09 2019 +0100
Remove <sys/semaphore.h> so that we have <semaphore.h> only.
There is no point for us to go through the kernel for getting at
SEM_VALUE_MAX from sysconf(3), so return it directly and remove
the associated p1003_1b.sem_value_max sysctl.
Beyond that, the kernel didn't need this header. I've found no
ports that need it, either.
For safety, bump __DragonFly_version anyway.
Summary of changes:
Makefile_upgrade.inc | 1 +
include/Makefile | 5 +++--
{sys/sys => include}/semaphore.h | 6 +-----
lib/libc/gen/sysconf.c | 7 +++----
lib/libc_r/test/sem_d.c | 4 +---
lib/libc_r/uthread/uthread_sem.c | 3 +--
lib/libthread_xu/thread/thr_sem.c | 2 +-
sys/kern/kern_p1003_1b.c | 2 --
sys/kern/kern_posix4_mib.c | 2 --
sys/sys/param.h | 3 ++-
sys/sys/sysctl.h | 4 ++--
11 files changed, 15 insertions(+), 24 deletions(-)
rename {sys/sys => include}/semaphore.h (99%)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/94f033080d9908e85ed47be58578262fa244ce16
--
DragonFly BSD source repository
More information about the Commits
mailing list