report presence of ADV and MSG options in unistd.h and sysconf
authorRich Felker <dalias@aerifal.cx>
Sat, 27 Jul 2013 03:07:54 +0000 (23:07 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 27 Jul 2013 03:07:54 +0000 (23:07 -0400)
include/unistd.h
src/conf/sysconf.c

index ee22b21b0d78d48dd88cced4d2ec5a37297cad84..151a6ce95f411579a0e7a47199bf6868e3e906a9 100644 (file)
@@ -201,6 +201,7 @@ void syncfs(int);
 #define _POSIX_VERSION          200809L
 #define _POSIX2_VERSION         _POSIX_VERSION
 
+#define _POSIX_ADVISORY_INFO    _POSIX_VERSION
 #define _POSIX_CHOWN_RESTRICTED 1
 #define _POSIX_IPV6             _POSIX_VERSION
 #define _POSIX_JOB_CONTROL      1
@@ -208,6 +209,7 @@ void syncfs(int);
 #define _POSIX_MEMLOCK          _POSIX_VERSION
 #define _POSIX_MEMLOCK_RANGE    _POSIX_VERSION
 #define _POSIX_MEMORY_PROTECTION _POSIX_VERSION
+#define _POSIX_MESSAGE_PASSING  _POSIX_VERSION
 #define _POSIX_FSYNC            _POSIX_VERSION
 #define _POSIX_NO_TRUNC         1
 #define _POSIX_RAW_SOCKETS      _POSIX_VERSION
index 1f66031a804c830f1608740ed8c32d7570334094..b2e94e522e29467b0babf34203f08ea7683fdca2 100644 (file)
@@ -32,7 +32,7 @@ long sysconf(int name)
                [_SC_MEMLOCK] = VER,
                [_SC_MEMLOCK_RANGE] = VER,
                [_SC_MEMORY_PROTECTION] = VER,
-               [_SC_MESSAGE_PASSING] = -1,
+               [_SC_MESSAGE_PASSING] = VER,
                [_SC_SEMAPHORES] = VER,
                [_SC_SHARED_MEMORY_OBJECTS] = -1,
                [_SC_AIO_LISTIO_MAX] = -1,
@@ -144,7 +144,7 @@ long sysconf(int name)
                [_SC_XOPEN_LEGACY] = -1,
                [_SC_XOPEN_REALTIME] = -1,
                [_SC_XOPEN_REALTIME_THREADS] = -1,
-               [_SC_ADVISORY_INFO] = -1,
+               [_SC_ADVISORY_INFO] = VER,
                [_SC_BARRIERS] = VER,
                [_SC_BASE] = -1,
                [_SC_C_LANG_SUPPORT] = -1,