<unistd.h>: Add _POSIX_THREAD_ROBUST_PRIO_{INHERIT,PROTECT} definitions.
authorSascha Wildner <saw@online.de>
Tue, 5 Jan 2016 05:14:07 +0000 (06:14 +0100)
committerSascha Wildner <saw@online.de>
Tue, 5 Jan 2016 05:14:07 +0000 (06:14 +0100)
Also adjust sysconf(3) and getconf(1) accordingly.

include/unistd.h
lib/libc/gen/sysconf.c
usr.bin/getconf/sysconf.gperf

index cc4cc70..570f43f 100644 (file)
@@ -112,6 +112,8 @@ typedef     __uid_t         uid_t;
 #define        _POSIX_THREAD_PRIO_PROTECT      200112L /* [TPP] */
 #define        _POSIX_THREAD_PRIORITY_SCHEDULING 200112L
 #define        _POSIX_THREAD_PROCESS_SHARED    -1
+#define        _POSIX_THREAD_ROBUST_PRIO_INHERIT -1    /* [RPI] */
+#define        _POSIX_THREAD_ROBUST_PRIO_PROTECT -1    /* [RPP] */
 #define        _POSIX_THREAD_SAFE_FUNCTIONS    -1
 #define        _POSIX_THREAD_SPORADIC_SERVER   -1
 #define        _POSIX_THREADS                  200112L
@@ -305,6 +307,8 @@ typedef     __uid_t         uid_t;
 #define        _SC_V7_ILP32_OFFBIG     123 /* user */
 #define        _SC_V7_LP64_OFF64       124 /* user */
 #define        _SC_V7_LPBIG_OFFBIG     125 /* user */
+#define        _SC_THREAD_ROBUST_PRIO_INHERIT 126 /* user */
+#define        _SC_THREAD_ROBUST_PRIO_PROTECT 127 /* user */
 #endif
 
 /* Keys for the confstr(3) function. */
index 230cdaf..691c7de 100644 (file)
@@ -418,6 +418,10 @@ yesno:
                return (_POSIX_THREAD_PRIORITY_SCHEDULING);
        case _SC_THREAD_PROCESS_SHARED:
                return (_POSIX_THREAD_PROCESS_SHARED);
+       case _SC_THREAD_ROBUST_PRIO_INHERIT:
+               return (_POSIX_THREAD_ROBUST_PRIO_INHERIT);
+       case _SC_THREAD_ROBUST_PRIO_PROTECT:
+               return (_POSIX_THREAD_ROBUST_PRIO_PROTECT);
        case _SC_THREAD_SAFE_FUNCTIONS:
                return (_POSIX_THREAD_SAFE_FUNCTIONS);
        case _SC_THREAD_STACK_MIN:
index 8389736..dc553ce 100644 (file)
@@ -114,6 +114,8 @@ _POSIX_THREAD_PRIORITY_SCHEDULING, _SC_THREAD_PRIORITY_SCHEDULING
 _POSIX_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_INHERIT 
 _POSIX_THREAD_PRIO_PROTECT, _SC_THREAD_PRIO_PROTECT 
 _POSIX_THREAD_PROCESS_SHARED, _SC_THREAD_PROCESS_SHARED 
+_POSIX_THREAD_ROBUST_PRIO_INHERIT, _SC_THREAD_ROBUST_PRIO_INHERIT
+_POSIX_THREAD_ROBUST_PRIO_PROTECT, _SC_THREAD_ROBUST_PRIO_PROTECT
 _POSIX_THREAD_SAFE_FUNCTIONS, _SC_THREAD_SAFE_FUNCTIONS
 _POSIX_THREAD_SPORADIC_SERVER, _SC_THREAD_SPORADIC_SERVER
 _POSIX_TIMEOUTS, _SC_TIMEOUTS