Subversion Repositories shark

Rev

Rev 1618 | 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
 */
1063 tullio 20
 
21
/*
22
 * This program is free software; you can redistribute it and/or modify
23
 * it under the terms of the GNU General Public License as published by
24
 * the Free Software Foundation; either version 2 of the License, or
25
 * (at your option) any later version.
26
 *
27
 * This program is distributed in the hope that it will be useful,
28
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30
 * GNU General Public License for more details.
31
 *
32
 * You should have received a copy of the GNU General Public License
33
 * along with this program; if not, write to the Free Software
34
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
35
 *
36
 */
2 pj 37
 
1063 tullio 38
 
2 pj 39
#ifndef __FS_SYSCALL_H
40
#define __FS_SYSCALL_H
41
 
42
#include <fs/types.h>
1621 fabio 43
#include <arch/sys/cdefs.h>
2 pj 44
 
80 pj 45
__BEGIN_DECLS
46
 
2 pj 47
#define SYS_CALL(fun)                  fun()
48
#define SYS_CALL1(fun,a1)              fun(a1)
49
#define SYS_CALL2(fun,a1,a2)           fun((a1),(a2))
50
#define SYS_CALL3(fun,a1,a2,a3)        fun((a1),(a2),(a3))
51
#define SYS_CALL4(fun,a1,a2,a3,a4)     fun((a1),(a2),(a3),(a4))
52
#define SYS_CALL5(fun,a1,a2,a3,a4,a5)  fun((a1),(a2),(a3),(a4),(a5))
53
 
54
__mode_t k_umask(__mode_t newmask);
55
__mode_t k_getumask(void);
56
int k_getcwd(char *buf, __ssize_t sz);
57
 
58
__ssize_t k_read(int fd, __ptr_t buf, __ssize_t nbytes);
59
__ssize_t k_write(int fd, __ptr_t buf, __ssize_t nbytes);
60
__off_t k_lseek(int fd, __off_t, int);
61
int k_close(int fd);
62
 
63
int k_ftruncate(int fildes, __off_t len);
64
int k_unlink(char *path);
65
 
80 pj 66
__END_DECLS
2 pj 67
#endif