Subversion Repositories HelenOS-historic

Rev

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

Rev 713 Rev 954
Line 29... Line 29...
29
#ifndef __LIBC__LIBC_H__
29
#ifndef __LIBC__LIBC_H__
30
#define __LIBC__LIBC_H__
30
#define __LIBC__LIBC_H__
31
 
31
 
32
#include <types.h>
32
#include <types.h>
33
 
33
 
-
 
34
#include <kernel/syscall/syscall.h>
34
 
35
 
35
#define __SYSCALL0(id) __syscall(id, 0, 0, 0)
36
#define __SYSCALL0(id) __syscall(0, 0, 0, id)
36
#define __SYSCALL1(id, p1) __syscall(id, p1, 0, 0)
37
#define __SYSCALL1(id, p1) __syscall(p1, 0, 0, id)
37
#define __SYSCALL2(id, p1, p2) __syscall(id, p1, p2, 0)
38
#define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, id)
38
 
-
 
39
 
-
 
40
typedef enum {
-
 
41
    SYS_CTL = 0,
-
 
42
    SYS_IO  = 1
-
 
43
} syscall_t;
39
#define __SYSCALL3(id, p1, p2, p3) __syscall(p1,p2,p3,id)
44
 
-
 
45
 
40
 
46
extern void __main(void);
41
extern void __main(void);
47
extern void __exit(void);
42
extern void __exit(void);
48
extern sysarg_t __syscall(const syscall_t id, const sysarg_t p1, const sysarg_t p2, const sysarg_t p3);
43
extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2,
-
 
44
              const sysarg_t p3, const syscall_t id);
49
 
45
 
50
 
46
 
51
#endif
47
#endif