white space cleanup
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
* Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
** Distributed under the terms of the Haiku License.
|
* Distributed under the terms of the Haiku License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
|||||||
@@ -1011,7 +1011,7 @@ _user_xsi_semctl(int semaphoreID, int semaphoreNumber, int command,
|
|||||||
if (!semaphoreSet->HasPermission()) {
|
if (!semaphoreSet->HasPermission()) {
|
||||||
TRACE_ERROR(("xsi_semctl: calling process has not "
|
TRACE_ERROR(("xsi_semctl: calling process has not "
|
||||||
"permission on semaphore %d, key %d\n",
|
"permission on semaphore %d, key %d\n",
|
||||||
semaphoreSet->ID(), (int)semaphoreSet->IpcKey()));
|
semaphoreSet->ID(), (int)semaphoreSet->IpcKey()));
|
||||||
result = EACCES;
|
result = EACCES;
|
||||||
} else {
|
} else {
|
||||||
struct semid_ds sem;
|
struct semid_ds sem;
|
||||||
@@ -1034,7 +1034,7 @@ _user_xsi_semctl(int semaphoreID, int semaphoreNumber, int command,
|
|||||||
if (!semaphoreSet->HasPermission()) {
|
if (!semaphoreSet->HasPermission()) {
|
||||||
TRACE_ERROR(("xsi_semctl: calling process has not "
|
TRACE_ERROR(("xsi_semctl: calling process has not "
|
||||||
"permission on semaphore %d, key %d\n",
|
"permission on semaphore %d, key %d\n",
|
||||||
semaphoreSet->ID(), (int)semaphoreSet->IpcKey()));
|
semaphoreSet->ID(), (int)semaphoreSet->IpcKey()));
|
||||||
return EACCES;
|
return EACCES;
|
||||||
}
|
}
|
||||||
key_t key = semaphoreSet->IpcKey();
|
key_t key = semaphoreSet->IpcKey();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2002, Axel Dörfler, [email protected]. All rights reserved.
|
* Copyright 2002, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
** Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2003, Marcus Overhagen. All rights reserved.
|
* Copyright 2003, Marcus Overhagen. All rights reserved.
|
||||||
** Distributed under the terms of the Haiku License.
|
* Distributed under the terms of the Haiku License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2002, Axel Dörfler, [email protected]. All rights reserved.
|
* Copyright 2002, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
** Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ unnamed_sem_timedwait(sem_t* semaphore, const struct timespec* timeout) {
|
|||||||
if (result == 0)
|
if (result == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return _kern_mutex_sem_acquire(sem, NULL,
|
return _kern_mutex_sem_acquire(sem, NULL,
|
||||||
timeoutMicros == B_INFINITE_TIMEOUT ? 0 : B_ABSOLUTE_REAL_TIME_TIMEOUT,
|
timeoutMicros == B_INFINITE_TIMEOUT ? 0 : B_ABSOLUTE_REAL_TIME_TIMEOUT,
|
||||||
timeoutMicros);
|
timeoutMicros);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user