Let's pretend we support POSIX threads.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25588 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-05-21 00:03:09 +00:00
parent 9ac19900c4
commit 3021393e36
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -36,6 +36,7 @@
#define _POSIX_SAVED_IDS 1 #define _POSIX_SAVED_IDS 1
#define _POSIX_VDISABLE ((char)-2) /* TODO: Check this! */ #define _POSIX_VDISABLE ((char)-2) /* TODO: Check this! */
#define _POSIX_SEMAPHORES (200112L) #define _POSIX_SEMAPHORES (200112L)
#define _POSIX_THREADS (200112L)
/* pathconf() constants */ /* pathconf() constants */
#define _PC_CHOWN_RESTRICTED 1 #define _PC_CHOWN_RESTRICTED 1
@@ -66,6 +67,7 @@
#define _SC_SEM_NSEMS_MAX 28 #define _SC_SEM_NSEMS_MAX 28
#define _SC_SEM_VALUE_MAX 29 #define _SC_SEM_VALUE_MAX 29
#define _SC_SEMAPHORES 30 #define _SC_SEMAPHORES 30
#define _SC_THREADS 31
/* lseek() constants */ /* lseek() constants */
#ifndef SEEK_SET #ifndef SEEK_SET
+2
View File
@@ -68,6 +68,8 @@ sysconf(int name)
return MAX_POSIX_SEM_VALUE; return MAX_POSIX_SEM_VALUE;
case _SC_SEMAPHORES: case _SC_SEMAPHORES:
return _POSIX_SEMAPHORES; return _POSIX_SEMAPHORES;
case _SC_THREADS:
return _POSIX_THREADS;
} }
return -1; return -1;