Removed some type definitions from ktypes.h that are now located in OS.h.
Changed lock.h to like those changes. Moved the create_sem_etc() from the public OS.h to the private kernel only sem.h, cleaned it up a bit. gcc doesn't seem to like the "extern inlines" with -O0 -g, so I replaced an inline function in thread.h with "static inline" (which it does always like). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1376 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -13,8 +13,7 @@
|
||||
#include <thread.h>
|
||||
#include <stage2.h>
|
||||
|
||||
/* #ifdef _KERNEL_ */
|
||||
|
||||
/* user calls */
|
||||
sem_id user_create_sem(int32 count, const char *name);
|
||||
status_t user_delete_sem(sem_id id);
|
||||
status_t user_delete_sem_etc(sem_id id, status_t return_code);
|
||||
@@ -27,11 +26,10 @@ status_t user_get_sem_info(sem_id, struct sem_info *, size_t);
|
||||
status_t user_get_next_sem_info(team_id, int32 *, struct sem_info *, size_t);
|
||||
status_t user_set_sem_owner(sem_id id, team_id team);
|
||||
|
||||
/* kernel calls */
|
||||
extern sem_id create_sem_etc(int32 count, const char *name, team_id owner);
|
||||
extern status_t sem_init(kernel_args *ka);
|
||||
extern int sem_delete_owned_sems(team_id owner);
|
||||
extern status_t sem_interrupt_thread(struct thread *t);
|
||||
|
||||
status_t sem_init(kernel_args *ka);
|
||||
int sem_delete_owned_sems(team_id owner);
|
||||
status_t sem_interrupt_thread(struct thread *t);
|
||||
/* #endif */
|
||||
|
||||
#endif /* _KERNEL_SEM_H */
|
||||
|
||||
#endif /* _KERNEL_SEM_H */
|
||||
|
||||
Reference in New Issue
Block a user