]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/i386/linux/linux_dummy.c
Implement prlimit64() system call.
[FreeBSD/FreeBSD.git] / sys / i386 / linux / linux_dummy.c
1 /*-
2  * Copyright (c) 1994-1995 Søren Schmidt
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer 
10  *    in this position and unchanged.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in the
13  *    documentation and/or other materials provided with the distribution.
14  * 3. The name of the author may not be used to endorse or promote products
15  *    derived from this software without specific prior written permission
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28
29 #include <sys/cdefs.h>
30 __FBSDID("$FreeBSD$");
31
32 #include "opt_compat.h"
33
34 #include <sys/param.h>
35 #include <sys/kernel.h>
36 #include <sys/sdt.h>
37 #include <sys/systm.h>
38 #include <sys/proc.h>
39
40 #include <i386/linux/linux.h>
41 #include <i386/linux/linux_proto.h>
42 #include <compat/linux/linux_dtrace.h>
43 #include <compat/linux/linux_util.h>
44
45 /* DTrace init */
46 LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
47
48 DUMMY(stime);
49 DUMMY(fstat);
50 DUMMY(olduname);
51 DUMMY(syslog);
52 DUMMY(uname);
53 DUMMY(vhangup);
54 DUMMY(vm86old);
55 DUMMY(swapoff);
56 DUMMY(adjtimex);
57 DUMMY(create_module);
58 DUMMY(init_module);
59 DUMMY(delete_module);
60 DUMMY(get_kernel_syms);
61 DUMMY(quotactl);
62 DUMMY(bdflush);
63 DUMMY(sysfs);
64 DUMMY(vm86);
65 DUMMY(query_module);
66 DUMMY(nfsservctl);
67 DUMMY(sendfile);                /* different semantics */
68 DUMMY(setfsuid);
69 DUMMY(setfsgid);
70 DUMMY(pivot_root);
71 DUMMY(mincore);
72 DUMMY(lookup_dcookie);
73 DUMMY(epoll_create);
74 DUMMY(epoll_ctl);
75 DUMMY(epoll_wait);
76 DUMMY(remap_file_pages);
77 DUMMY(fstatfs64);
78 DUMMY(mbind);
79 DUMMY(get_mempolicy);
80 DUMMY(set_mempolicy);
81 DUMMY(kexec_load);
82 /* linux 2.6.11: */
83 DUMMY(add_key);
84 DUMMY(request_key);
85 DUMMY(keyctl);
86 /* linux 2.6.13: */
87 DUMMY(ioprio_set);
88 DUMMY(ioprio_get);
89 DUMMY(inotify_init);
90 DUMMY(inotify_add_watch);
91 DUMMY(inotify_rm_watch);
92 /* linux 2.6.16: */
93 DUMMY(migrate_pages);
94 DUMMY(pselect6);
95 DUMMY(ppoll);
96 DUMMY(unshare);
97 /* linux 2.6.17: */
98 DUMMY(splice);
99 DUMMY(sync_file_range);
100 DUMMY(tee);
101 DUMMY(vmsplice);
102 /* linux 2.6.18: */
103 DUMMY(move_pages);
104 /* linux 2.6.19: */
105 DUMMY(getcpu);
106 DUMMY(epoll_pwait);
107 /* linux 2.6.22: */
108 DUMMY(utimensat);
109 DUMMY(signalfd);
110 DUMMY(timerfd_create);
111 DUMMY(eventfd);
112 /* linux 2.6.23: */
113 DUMMY(fallocate);
114 /* linux 2.6.25: */
115 DUMMY(timerfd_settime);
116 DUMMY(timerfd_gettime);
117 /* linux 2.6.27: */
118 DUMMY(signalfd4);
119 DUMMY(eventfd2);
120 DUMMY(epoll_create1);
121 DUMMY(inotify_init1);
122 /* linux 2.6.30: */
123 DUMMY(preadv);
124 DUMMY(pwritev);
125 /* linux 2.6.31 */
126 DUMMY(rt_tsigqueueinfo);
127 DUMMY(perf_event_open);
128 /* linux 2.6.33: */
129 DUMMY(recvmmsg);
130 DUMMY(fanotify_init);
131 DUMMY(fanotify_mark);
132 /* later: */
133 DUMMY(name_to_handle_at);
134 DUMMY(open_by_handle_at);
135 DUMMY(clock_adjtime);
136 DUMMY(syncfs);
137 DUMMY(sendmmsg);
138 DUMMY(setns);
139 DUMMY(process_vm_readv);
140 DUMMY(process_vm_writev);
141
142 #define DUMMY_XATTR(s)                                          \
143 int                                                             \
144 linux_ ## s ## xattr(                                           \
145     struct thread *td, struct linux_ ## s ## xattr_args *arg)   \
146 {                                                               \
147                                                                 \
148         return (ENOATTR);                                       \
149 }
150 DUMMY_XATTR(set);
151 DUMMY_XATTR(lset);
152 DUMMY_XATTR(fset);
153 DUMMY_XATTR(get);
154 DUMMY_XATTR(lget);
155 DUMMY_XATTR(fget);
156 DUMMY_XATTR(list);
157 DUMMY_XATTR(llist);
158 DUMMY_XATTR(flist);
159 DUMMY_XATTR(remove);
160 DUMMY_XATTR(lremove);
161 DUMMY_XATTR(fremove);