Files
haiku-beta6/headers/private/kernel/ksyscalls.h
T

33 lines
659 B
C
Raw Normal View History

2002-07-09 12:24:59 +00:00
/*
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#ifndef _KERNEL_KSYSCALLS_H
#define _KERNEL_KSYSCALLS_H
2002-07-09 12:24:59 +00:00
2002-10-16 16:17:28 +00:00
2004-12-14 15:46:53 +00:00
#include <SupportDefs.h>
typedef struct syscall_info {
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[];
2004-12-14 15:46:53 +00:00
#ifdef __cplusplus
extern "C" {
#endif
int32 syscall_dispatcher(uint32 function, void *argBuffer, uint64 *_returnValue);
status_t generic_syscall_init(void);
#ifdef __cplusplus
}
#endif
2002-07-09 12:24:59 +00:00
#endif /* _KERNEL_KSYSCALLS_H */