initial import
[ICEs.git] / bfin-get-user / foo.i
CommitLineData
45516216 1typedef long __kernel_off_t;
2typedef unsigned long __kernel_size_t;
3typedef long __kernel_ssize_t;
4typedef long long __kernel_loff_t;
5typedef __kernel_off_t off_t;
6typedef __kernel_loff_t loff_t;
7typedef __kernel_size_t size_t;
8typedef __kernel_ssize_t ssize_t;
9ssize_t sys_sendfile(int out_fd, int in_fd, off_t *offset, size_t count) {
10loff_t pos;
11off_t off;
12if (offset) {
13if (__builtin_expect(!!(({
14int _err = 0;
15typeof(*(offset)) *_p = (offset);
16if (!_access_ok((unsigned long)(_p),(sizeof(*(_p))))) {
17}
18else {
19switch (sizeof(*(_p))) {
20case 4: {
21unsigned long _tmp;
22(off) = (__typeof__(*(_p))) _tmp;
23};
24}
25}
26_err;
27}
28)), 0)) return -14;
29pos = off;
30if (__builtin_expect(!!(({
31int _err = 0;
32typeof(*(offset)) _x = (pos);
33typeof(*(offset)) *_p = (offset);
34if (!_access_ok((unsigned long)(_p),(sizeof(*(_p))))) {
35switch (sizeof (*(_p))) {
36case 4: __asm__ ("""[%1] = %0;\n\t" : :"d" (_x),"a" (((unsigned long *)(_p))) : "memory");
37}
38}
39_err;
40}
41)), 0)) return -14;
42}
43}