Rev 2 | Rev 80 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* |
2 | * Project: S.Ha.R.K. |
||
3 | * |
||
4 | * Coordinators: |
||
5 | * Giorgio Buttazzo <giorgio@sssup.it> |
||
6 | * Paolo Gai <pj@gandalf.sssup.it> |
||
7 | * |
||
8 | * Authors : |
||
9 | * Paolo Gai <pj@gandalf.sssup.it> |
||
10 | * Massimiliano Giorgi <massy@gandalf.sssup.it> |
||
11 | * Luca Abeni <luca@gandalf.sssup.it> |
||
12 | * (see the web pages for full authors list) |
||
13 | * |
||
14 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
15 | * |
||
16 | * http://www.sssup.it |
||
17 | * http://retis.sssup.it |
||
18 | * http://shark.sssup.it |
||
19 | */ |
||
20 | |||
21 | #ifndef __FS_SYSCALL_H |
||
22 | #define __FS_SYSCALL_H |
||
23 | |||
24 | #include <fs/types.h> |
||
25 | |||
26 | #define SYS_CALL(fun) fun() |
||
27 | #define SYS_CALL1(fun,a1) fun(a1) |
||
28 | #define SYS_CALL2(fun,a1,a2) fun((a1),(a2)) |
||
29 | #define SYS_CALL3(fun,a1,a2,a3) fun((a1),(a2),(a3)) |
||
30 | #define SYS_CALL4(fun,a1,a2,a3,a4) fun((a1),(a2),(a3),(a4)) |
||
31 | #define SYS_CALL5(fun,a1,a2,a3,a4,a5) fun((a1),(a2),(a3),(a4),(a5)) |
||
32 | |||
33 | __mode_t k_umask(__mode_t newmask); |
||
34 | __mode_t k_getumask(void); |
||
35 | int k_getcwd(char *buf, __ssize_t sz); |
||
36 | |||
37 | __ssize_t k_read(int fd, __ptr_t buf, __ssize_t nbytes); |
||
38 | __ssize_t k_write(int fd, __ptr_t buf, __ssize_t nbytes); |
||
39 | __off_t k_lseek(int fd, __off_t, int); |
||
40 | int k_close(int fd); |
||
41 | |||
42 | int k_ftruncate(int fildes, __off_t len); |
||
43 | int k_unlink(char *path); |
||
44 | |||
45 | #endif |