Removed <syscalls.h>' dependency to <semaphore.h> by giving the sem_t
structure a name. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26015 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
37deb72914
commit
a2cf1d70ef
@ -10,7 +10,7 @@
|
||||
#include <time.h>
|
||||
|
||||
|
||||
typedef struct {
|
||||
typedef struct _sem_t {
|
||||
int32_t id;
|
||||
int32_t _padding[3];
|
||||
} sem_t;
|
||||
|
@ -11,7 +11,6 @@
|
||||
#include <OS.h>
|
||||
#include <DiskDeviceDefs.h>
|
||||
|
||||
#include <semaphore.h>
|
||||
#include <signal.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
@ -30,6 +29,7 @@ struct pollfd;
|
||||
struct rlimit;
|
||||
struct sigaction;
|
||||
struct stat;
|
||||
struct _sem_t;
|
||||
|
||||
struct disk_device_job_progress_info;
|
||||
struct partitionable_space_data;
|
||||
@ -80,9 +80,9 @@ extern status_t _kern_set_sem_owner(sem_id id, team_id proc);
|
||||
/* POSIX realtime sem syscalls */
|
||||
extern status_t _kern_realtime_sem_open(const char* name,
|
||||
int openFlagsOrShared, mode_t mode, uint32 semCount,
|
||||
sem_t* userSem, sem_t** _usedUserSem);
|
||||
struct _sem_t* userSem, struct _sem_t** _usedUserSem);
|
||||
extern status_t _kern_realtime_sem_close(sem_id semID,
|
||||
sem_t** _deleteUserSem);
|
||||
struct _sem_t** _deleteUserSem);
|
||||
extern status_t _kern_realtime_sem_unlink(const char* name);
|
||||
|
||||
extern status_t _kern_realtime_sem_get_value(sem_id semID, int* value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user