Fixed some header issues (mostly int, status_t).

Replaced <types.h> with <sys/types.h> because that's what those headers
were looking for.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1118 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2002-09-23 02:31:05 +00:00
parent b005dbe305
commit 085320eab2
4 changed files with 9 additions and 8 deletions

View File

@ -1,7 +1,7 @@
#ifndef _DRIVERS_DRIVERS_H #ifndef _DRIVERS_DRIVERS_H
#define _DRIVERS_DRIVERS_H #define _DRIVERS_DRIVERS_H
#include <types.h> #include <sys/types.h>
#include <defines.h> #include <defines.h>
#include <sys/uio.h> #include <sys/uio.h>

View File

@ -351,9 +351,9 @@ typedef int32 (*thread_func) (void *);
* @note the maximum length of name is B_OS_NAME_LENGTH characters * @note the maximum length of name is B_OS_NAME_LENGTH characters
*/ */
thread_id spawn_thread (thread_func, const char *, int32, void *); thread_id spawn_thread (thread_func, const char *, int32, void *);
int kill_thread(thread_id thread); status_t kill_thread(thread_id thread);
int resume_thread(thread_id thread); status_t resume_thread(thread_id thread);
int suspend_thread(thread_id thread); status_t suspend_thread(thread_id thread);
thread_id find_thread(const char *); thread_id find_thread(const char *);

View File

@ -8,7 +8,6 @@
/* this file shouldn't be in the public folder! */ /* this file shouldn't be in the public folder! */
#include <ktypes.h> #include <ktypes.h>
#include <types.h>
#include <defines.h> #include <defines.h>
#include <resource.h> #include <resource.h>
#include <vfs_types.h> #include <vfs_types.h>
@ -33,9 +32,9 @@ int sys_snooze(bigtime_t time);
sem_id sys_create_sem(int count, const char *name); sem_id sys_create_sem(int count, const char *name);
int sys_delete_sem(sem_id id); int sys_delete_sem(sem_id id);
int sys_acquire_sem(sem_id id); int sys_acquire_sem(sem_id id);
int sys_acquire_sem_etc(sem_id id, int count, int flags, bigtime_t timeout); int sys_acquire_sem_etc(sem_id id, uint32 count, uint32 flags, bigtime_t timeout);
int sys_release_sem(sem_id id); int sys_release_sem(sem_id id);
int sys_release_sem_etc(sem_id id, int count, int flags); int sys_release_sem_etc(sem_id id, uint32 count, uint32 flags);
int sys_sem_get_count(sem_id id, int32* thread_count); int sys_sem_get_count(sem_id id, int32* thread_count);
int sys_get_sem_info(sem_id, struct sem_info *, size_t); int sys_get_sem_info(sem_id, struct sem_info *, size_t);
int sys_get_next_sem_info(team_id, uint32 *, struct sem_info *, size_t); int sys_get_next_sem_info(team_id, uint32 *, struct sem_info *, size_t);
@ -44,7 +43,7 @@ int sys_set_sem_owner(sem_id id, team_id proc);
void sys_exit(int retcode); void sys_exit(int retcode);
team_id sys_create_team(const char *path, const char *name, char **args, int argc, char **envp, int envc, int priority); team_id sys_create_team(const char *path, const char *name, char **args, int argc, char **envp, int envc, int priority);
thread_id sys_spawn_thread(int (*func)(void*), const char *, int, void *); thread_id sys_spawn_thread(int32 (*func)(void*), const char *, int32, void *);
thread_id sys_get_current_thread_id(void); thread_id sys_get_current_thread_id(void);
int sys_suspend_thread(thread_id tid); int sys_suspend_thread(thread_id tid);
int sys_resume_thread(thread_id tid); int sys_resume_thread(thread_id tid);

View File

@ -1,6 +1,8 @@
#ifndef _PUBLIC_KERNEL_VM_TYPES_H #ifndef _PUBLIC_KERNEL_VM_TYPES_H
#define _PUBLIC_KERNEL_VM_TYPES_H #define _PUBLIC_KERNEL_VM_TYPES_H
// ToDo: this file shouldn't be in the public folder
#include <kernel.h> #include <kernel.h>
#include <stage2.h> #include <stage2.h>
#include <defines.h> #include <defines.h>