[haiku-commits] haiku: hrev49936 - headers/posix src/system/libroot/posix/unistd

  • From: waddlesplash@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 21 Dec 2015 18:17:51 +0100 (CET)

hrev49936 adds 1 changeset to branch 'master'
old head: 7aebec8db1a6f231a2a93ec82872afadb8ed3879
new head: 6984b8554c94a34d375e221eb08d094c28599c8b
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=6984b8554c94+%5E7aebec8db1a6

----------------------------------------------------------------------------

6984b8554c94: Revert "libroot: Undefine constants for unsupported POSIX
features"

This reverts commit 7aebec8db1a6f231a2a93ec82872afadb8ed3879.
As per the discussion on the mailing list.

[ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision: hrev49936
Commit: 6984b8554c94a34d375e221eb08d094c28599c8b
URL: http://cgit.haiku-os.org/haiku/commit/?id=6984b8554c94
Author: Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date: Mon Dec 21 17:16:33 2015 UTC

----------------------------------------------------------------------------

2 files changed, 4 insertions(+), 6 deletions(-)
headers/posix/unistd.h | 4 ++--
src/system/libroot/posix/unistd/conf.cpp | 6 ++----

----------------------------------------------------------------------------

diff --git a/headers/posix/unistd.h b/headers/posix/unistd.h
index 4de488a..9c8fc77 100644
--- a/headers/posix/unistd.h
+++ b/headers/posix/unistd.h
@@ -43,9 +43,9 @@
#define _POSIX_THREADS (200112L)
#define _POSIX_MAPPED_FILES (200809L)
#define _POSIX_THREAD_PROCESS_SHARED (200809L)
-#undef _POSIX_THREAD_ATTR_STACKADDR /* currently unsupported */
+#define _POSIX_THREAD_ATTR_STACKADDR (-1) /* currently
unsupported */
#define _POSIX_THREAD_ATTR_STACKSIZE (200809L)
-#undef _POSIX_THREAD_PRIORITY_SCHEDULING /* currently unsupported */
+#define _POSIX_THREAD_PRIORITY_SCHEDULING (-1) /* currently
unsupported */
#define _POSIX_REALTIME_SIGNALS (200809L)
#define _POSIX_MEMORY_PROTECTION (200809L)
#define _POSIX_MONOTONIC_CLOCK (200809L)
diff --git a/src/system/libroot/posix/unistd/conf.cpp
b/src/system/libroot/posix/unistd/conf.cpp
index a572892..5ae51e9 100644
--- a/src/system/libroot/posix/unistd/conf.cpp
+++ b/src/system/libroot/posix/unistd/conf.cpp
@@ -156,13 +156,11 @@ __sysconf(int name)
case _SC_THREAD_STACK_MIN:
return MIN_USER_STACK_SIZE;
case _SC_THREAD_ATTR_STACKADDR:
- return -1;
- // currently unsupported
+ return _POSIX_THREAD_ATTR_STACKADDR;
case _SC_THREAD_ATTR_STACKSIZE:
return _POSIX_THREAD_ATTR_STACKSIZE;
case _SC_THREAD_PRIORITY_SCHEDULING:
- return -1;
- // currently unsupported
+ return _POSIX_THREAD_PRIORITY_SCHEDULING;
case _SC_REALTIME_SIGNALS:
return _POSIX_REALTIME_SIGNALS;
case _SC_MEMORY_PROTECTION:


Other related posts:

  • » [haiku-commits] haiku: hrev49936 - headers/posix src/system/libroot/posix/unistd - waddlesplash