svn commit: r311646 - head/sys/sys

Konstantin Belousov kib at FreeBSD.org
Sat Jan 7 12:24:46 UTC 2017


Author: kib
Date: Sat Jan  7 12:24:45 2017
New Revision: 311646
URL: https://svnweb.freebsd.org/changeset/base/311646

Log:
  Define _POSIX_PRIORITY_SCHEDULING as 0.
  
  sched_*(2) syscalls might be not available at runtime.  Defining this
  constant as zero directs POSIX-compliant code to call sysconf(3) to
  detect the feature at runtime, and forces libc sysconf(3) to ask
  kernel.
  
  Noted by:	ngie
  Reviewed by:	jilles, ngie
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week
  Differential revision:	https://reviews.freebsd.org/D9055

Modified:
  head/sys/sys/unistd.h

Modified: head/sys/sys/unistd.h
==============================================================================
--- head/sys/sys/unistd.h	Sat Jan  7 12:04:30 2017	(r311645)
+++ head/sys/sys/unistd.h	Sat Jan  7 12:24:45 2017	(r311646)
@@ -65,7 +65,7 @@
 #define	_POSIX_MONOTONIC_CLOCK		200112L
 #define	_POSIX_NO_TRUNC			1
 #define	_POSIX_PRIORITIZED_IO		(-1)
-#define	_POSIX_PRIORITY_SCHEDULING	200112L
+#define	_POSIX_PRIORITY_SCHEDULING	0
 #define	_POSIX_RAW_SOCKETS		200112L
 #define	_POSIX_REALTIME_SIGNALS		200112L
 #define	_POSIX_SEMAPHORES		200112L


More information about the svn-src-all mailing list