Subversion Repositories shark

Rev

Rev 3 | Rev 1063 | 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>
80 pj 25
#include "ll/sys/cdefs.h"
2 pj 26
 
80 pj 27
__BEGIN_DECLS
28
 
2 pj 29
#define SYS_CALL(fun)                  fun()
30
#define SYS_CALL1(fun,a1)              fun(a1)
31
#define SYS_CALL2(fun,a1,a2)           fun((a1),(a2))
32
#define SYS_CALL3(fun,a1,a2,a3)        fun((a1),(a2),(a3))
33
#define SYS_CALL4(fun,a1,a2,a3,a4)     fun((a1),(a2),(a3),(a4))
34
#define SYS_CALL5(fun,a1,a2,a3,a4,a5)  fun((a1),(a2),(a3),(a4),(a5))
35
 
36
__mode_t k_umask(__mode_t newmask);
37
__mode_t k_getumask(void);
38
int k_getcwd(char *buf, __ssize_t sz);
39
 
40
__ssize_t k_read(int fd, __ptr_t buf, __ssize_t nbytes);
41
__ssize_t k_write(int fd, __ptr_t buf, __ssize_t nbytes);
42
__off_t k_lseek(int fd, __off_t, int);
43
int k_close(int fd);
44
 
45
int k_ftruncate(int fildes, __off_t len);
46
int k_unlink(char *path);
47
 
80 pj 48
__END_DECLS
2 pj 49
#endif