7d4d6d35c0
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11340 a95241bf-73f2-0310-859d-f6bbb57e9c96
33 lines
646 B
C
Executable File
33 lines
646 B
C
Executable File
/*
|
|
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
** Distributed under the terms of the NewOS License.
|
|
*/
|
|
#ifndef _KERNEL_KSYSCALLS_H
|
|
#define _KERNEL_KSYSCALLS_H
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
typedef struct {
|
|
void *function; // pointer to the syscall function
|
|
int parameter_size; // summed up parameter size
|
|
} syscall_info;
|
|
|
|
extern const int kSyscallCount;
|
|
extern const syscall_info kSyscallInfos[];
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int32 syscall_dispatcher(uint32 function, void *argBuffer, uint64 *_returnValue);
|
|
status_t generic_syscall_init(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _KERNEL_KSYSCALLS_H */
|