Subversion Repositories HelenOS-historic

Rev

Rev 678 | Rev 955 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 678 Rev 712
Line 27... Line 27...
27
 */
27
 */
28
 
28
 
29
#ifndef __SYSCALL_H__
29
#ifndef __SYSCALL_H__
30
#define __SYSCALL_H__
30
#define __SYSCALL_H__
31
 
31
 
-
 
32
#include <typedefs.h>
-
 
33
 
32
typedef enum {
34
typedef enum {
33
    SYS_CTL = 0,
35
    SYS_CTL = 0,
34
    SYS_IO  = 1,
36
    SYS_IO  = 1,
35
    SYSCALL_END
37
    SYSCALL_END
36
} syscall_t;
38
} syscall_t;
37
 
39
 
38
typedef int (*syshandler_t)();
40
typedef int (*syshandler_t)();
39
 
41
 
40
extern int sys_ctl(void);
42
extern int sys_ctl(void);
41
extern int sys_io(void);
43
extern int sys_io(int fd, const void *buf, size_t count);
42
 
44
 
43
extern syshandler_t syscall_table[SYSCALL_END];
45
extern syshandler_t syscall_table[SYSCALL_END];
44
 
46
 
45
#endif
47
#endif