77 #include <linux/errno.h>
79 #include <linux/fcntl.h>
80 #include <linux/eventpoll.h>
81 #include <linux/sem.h>
82 #include <linux/socket.h>
83 #include <linux/net.h>
84 #include <linux/ipc.h>
86 #include <linux/slab.h>
137 tmp.st_mtime_nsec = stat->
mtime.tv_nsec;
150 error = cp_oldabi_stat64(&stat, statbuf);
160 error = cp_oldabi_stat64(&stat, statbuf);
170 error = cp_oldabi_stat64(&stat, statbuf);
185 return cp_oldabi_stat64(&stat, statbuf);
202 unsigned long local_arg =
arg;
212 kernel.l_type =
user.l_type;
213 kernel.l_whence =
user.l_whence;
214 kernel.l_start =
user.l_start;
215 kernel.l_len =
user.l_len;
216 kernel.l_pid =
user.l_pid;
217 local_arg = (
unsigned long)&kernel;
222 ret = sys_fcntl64(fd, cmd, local_arg);
227 user.l_type = kernel.l_type;
228 user.l_whence = kernel.l_whence;
229 user.l_start = kernel.l_start;
230 user.l_len = kernel.l_len;
231 user.l_pid = kernel.l_pid;
272 int maxevents,
int timeout)
288 for (i = 0; i <
ret; i++) {
307 const struct timespec __user *timeout)
314 if (nsops < 1 || nsops >
SEMOPM)
320 for (i = 0; i < nsops; i++) {
329 timeout = &local_timeout;
350 void __user *
ptr,
long fifth)
352 switch (call & 0xffff) {
363 return sys_ipc(call, first, second, third, ptr, fifth);
370 if (addrlen == 112 &&
371 get_user(sa_family, &addr->sa_family) == 0 &&
380 if (addrlen == 112 &&
381 get_user(sa_family, &addr->sa_family) == 0 &&
388 size_t len,
unsigned flags,
393 if (addrlen == 112 &&
394 get_user(sa_family, &addr->sa_family) == 0 &&
397 return sys_sendto(fd, buff, len, flags, addr, addrlen);
406 get_user(msg_namelen, &msg->msg_namelen) == 0 &&
407 msg_namelen == 112 &&
408 get_user(addr, &msg->msg_name) == 0 &&