Prevent clashes with non-POSIX macros that are (or were?) still part of some standard and are defined in our headers.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36063 a95241bf-73f2-0310-859d-f6bbb57e9c96
Prevent unused variable errors in case CLOCK_REALTIME is not defined.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36065 a95241bf-73f2-0310-859d-f6bbb57e9c96
SEM_VALUE_MAX is not POSIX. Use sysconf(_SC_SEM_VALUE_MAX) instead.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36067 a95241bf-73f2-0310-859d-f6bbb57e9c96
pthread_exit() cannot return, but the "noreturn" attribute is really a compiler feature (which we haven't set yet). So return some dummy value.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36068 a95241bf-73f2-0310-859d-f6bbb57e9c96
SEM_VALUE_MAX is not POSIX. Use sysconf(_SC_SEM_VALUE_MAX) instead.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36070 a95241bf-73f2-0310-859d-f6bbb57e9c96
Fixed incorrect assumption that pid_t is int.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36071 a95241bf-73f2-0310-859d-f6bbb57e9c96
Be more generous with the semaphore name array size. Large enough PIDs would lead to overwriting its bounds.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36084 a95241bf-73f2-0310-859d-f6bbb57e9c96
* More generous buffer sizes for the semaphore and shared memory object names. * The result shared memory was mapped PROT_WRITE only, but since the variable in it is used with the increment operator, it needs PROT_READ, too.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36089 a95241bf-73f2-0310-859d-f6bbb57e9c96
* Fixed more incorrect occurrences of the pid_t == int assumption. * Automatic whitespace cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36090 a95241bf-73f2-0310-859d-f6bbb57e9c96