This source file includes following definitions.
- SYSCALL_DEFINE1
- SYSCALL_DEFINE5
- SYSCALL_DEFINE1
- SYSCALL_DEFINE0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #include <linux/errno.h>
16 #include <linux/sched.h>
17 #include <linux/mm.h>
18 #include <linux/fs.h>
19 #include <linux/smp.h>
20 #include <linux/sem.h>
21 #include <linux/msg.h>
22 #include <linux/shm.h>
23 #include <linux/stat.h>
24 #include <linux/syscalls.h>
25 #include <linux/mman.h>
26 #include <linux/file.h>
27 #include <linux/utsname.h>
28 #include <linux/personality.h>
29 #include <linux/unistd.h>
30 #include <linux/ipc.h>
31 #include <linux/uaccess.h>
32 #include "entry.h"
33
34
35
36
37
38
39
40 struct s390_mmap_arg_struct {
41 unsigned long addr;
42 unsigned long len;
43 unsigned long prot;
44 unsigned long flags;
45 unsigned long fd;
46 unsigned long offset;
47 };
48
49 SYSCALL_DEFINE1(mmap2, struct s390_mmap_arg_struct __user *, arg)
50 {
51 struct s390_mmap_arg_struct a;
52 int error = -EFAULT;
53
54 if (copy_from_user(&a, arg, sizeof(a)))
55 goto out;
56 error = ksys_mmap_pgoff(a.addr, a.len, a.prot, a.flags, a.fd, a.offset);
57 out:
58 return error;
59 }
60
61 #ifdef CONFIG_SYSVIPC
62
63
64
65 SYSCALL_DEFINE5(s390_ipc, uint, call, int, first, unsigned long, second,
66 unsigned long, third, void __user *, ptr)
67 {
68 if (call >> 16)
69 return -EINVAL;
70
71
72
73
74
75
76
77
78 return ksys_ipc(call, first, second, third, ptr, third);
79 }
80 #endif
81
82 SYSCALL_DEFINE1(s390_personality, unsigned int, personality)
83 {
84 unsigned int ret = current->personality;
85
86 if (personality(current->personality) == PER_LINUX32 &&
87 personality(personality) == PER_LINUX)
88 personality |= PER_LINUX32;
89
90 if (personality != 0xffffffff)
91 set_personality(personality);
92
93 if (personality(ret) == PER_LINUX32)
94 ret &= ~PER_LINUX32;
95
96 return ret;
97 }
98
99 SYSCALL_DEFINE0(ni_syscall)
100 {
101 return -ENOSYS;
102 }