Remove the Alpha specific linuxolator files.

This commit is contained in:
Alexander Leidinger 2006-05-08 15:20:12 +00:00
parent ecad9def1d
commit 33e8449ce7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158360
13 changed files with 0 additions and 3478 deletions

View File

@ -1,15 +0,0 @@
# Makefile for syscall tables
#
# $FreeBSD$
all:
@echo "make sysent only"
sysent: linux_sysent.c linux_syscall.h linux_proto.h
linux_sysent.c linux_syscall.h linux_proto.h: ../../kern/makesyscalls.sh \
syscalls.master syscalls.conf
-mv -f linux_sysent.c linux_sysent.c.bak
-mv -f linux_syscall.h linux_syscall.h.bak
-mv -f linux_proto.h linux_proto.h.bak
sh ../../kern/makesyscalls.sh syscalls.master syscalls.conf

View File

@ -1,535 +0,0 @@
/*-
* Copyright (c) 1994-1996 Søren Schmidt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer
* in this position and unchanged.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $FreeBSD$
*/
#ifndef _ALPHA_LINUX_LINUX_H_
#define _ALPHA_LINUX_LINUX_H_
#include <alpha/linux/linux_syscall.h>
/*
* debugging support
*/
extern u_char linux_debug_map[];
#define ldebug(name) isclr(linux_debug_map, LINUX_SYS_linux_ ## name)
#define ARGS(nm, fmt) "linux(%ld): "#nm"("fmt")\n", (long)td->td_proc->p_pid
#define LMSG(fmt) "linux(%ld): "fmt"\n", (long)td->td_proc->p_pid
#ifdef MALLOC_DECLARE
MALLOC_DECLARE(M_LINUX);
#endif
#define PTRIN(v) (void *)(v)
#define PTROUT(v) (l_uintptr_t)(v)
typedef int l_int;
typedef int64_t l_long;
typedef int64_t l_longlong;
typedef short l_short;
typedef unsigned int l_uint;
typedef uint64_t l_ulong;
typedef uint64_t l_ulonglong;
typedef unsigned short l_ushort;
typedef char *l_caddr_t;
typedef l_ulong l_uintptr_t;
typedef l_long l_clock_t;
typedef l_int l_daddr_t;
typedef l_uint l_dev_t;
typedef l_uint l_gid_t;
typedef l_ushort l_gid16_t;
typedef l_uint l_ino_t;
typedef l_int l_key_t;
typedef l_long l_loff_t;
typedef l_uint l_mode_t;
typedef l_long l_off_t;
typedef l_int l_pid_t;
typedef l_ulong l_size_t;
typedef l_long l_suseconds_t;
typedef l_long l_time_t;
typedef l_uint l_uid_t;
typedef l_ushort l_uid16_t;
typedef struct {
l_int val[2];
} l_fsid_t;
typedef struct {
l_time_t tv_sec;
l_suseconds_t tv_usec;
} l_timeval;
#define l_fd_set fd_set
/*
* Miscellaneous
*/
#define LINUX_NAME_MAX 255
#define LINUX_MAX_UTSNAME 65
#define LINUX_CTL_MAXNAME 10
struct l___sysctl_args
{
l_int *name;
l_int nlen;
void *oldval;
l_size_t *oldlenp;
void *newval;
l_size_t newlen;
l_ulong __spare[4];
};
/* Scheduling policies */
#define LINUX_SCHED_OTHER 0
#define LINUX_SCHED_FIFO 1
#define LINUX_SCHED_RR 2
/* Resource limits */
#define LINUX_RLIMIT_CPU 0
#define LINUX_RLIMIT_FSIZE 1
#define LINUX_RLIMIT_DATA 2
#define LINUX_RLIMIT_STACK 3
#define LINUX_RLIMIT_CORE 4
#define LINUX_RLIMIT_RSS 5
#define LINUX_RLIMIT_AS 7 /* address space limit */
#define LINUX_RLIMIT_NPROC 8
#define LINUX_RLIMIT_NOFILE 6
#define LINUX_RLIMIT_MEMLOCK 9
#define LINUX_RLIM_NLIMITS 10
/* mmap options */
#define LINUX_MAP_SHARED 0x0001
#define LINUX_MAP_PRIVATE 0x0002
#define LINUX_MAP_ANON 0x0010
#define LINUX_MAP_FIXED 0x0100
#define LINUX_MAP_GROWSDOWN 0x1000
/*
* stat family of syscalls
*/
struct l_timespec {
l_ulong tv_sec;
};
struct l_newstat {
l_uint st_dev;
l_uint st_ino;
l_uint st_mode;
l_uint st_nlink;
l_uint st_uid;
l_uint st_gid;
l_uint st_rdev;
l_long st_size;
struct l_timespec st_atimespec;
struct l_timespec st_mtimespec;
struct l_timespec st_ctimespec;
l_uint st_blksize;
l_int st_blocks;
l_uint st_flags;
l_uint st_gen;
};
struct l_new_utsname {
char sysname[LINUX_MAX_UTSNAME];
char nodename[LINUX_MAX_UTSNAME];
char release[LINUX_MAX_UTSNAME];
char version[LINUX_MAX_UTSNAME];
char machine[LINUX_MAX_UTSNAME];
char domainname[LINUX_MAX_UTSNAME];
};
/*
* Signalling
*/
#define LINUX_SIGHUP 1
#define LINUX_SIGINT 2
#define LINUX_SIGQUIT 3
#define LINUX_SIGILL 4
#define LINUX_SIGTRAP 5
#define LINUX_SIGABRT 6
#define LINUX_SIGIOT LINUX_SIGABRT
#define LINUX_SIGBUS 7
#define LINUX_SIGFPE 8
#define LINUX_SIGKILL 9
#define LINUX_SIGUSR1 10
#define LINUX_SIGSEGV 11
#define LINUX_SIGUSR2 12
#define LINUX_SIGPIPE 13
#define LINUX_SIGALRM 14
#define LINUX_SIGTERM 15
#define LINUX_SIGSTKFLT 16
#define LINUX_SIGCHLD 17
#define LINUX_SIGCONT 18
#define LINUX_SIGSTOP 19
#define LINUX_SIGTSTP 20
#define LINUX_SIGTTIN 21
#define LINUX_SIGTTOU 22
#define LINUX_SIGURG 23
#define LINUX_SIGXCPU 24
#define LINUX_SIGXFSZ 25
#define LINUX_SIGVTALRM 26
#define LINUX_SIGPROF 27
#define LINUX_SIGWINCH 28
#define LINUX_SIGIO 29
#define LINUX_SIGPOLL LINUX_SIGIO
#define LINUX_SIGPWR 30
#define LINUX_SIGUNUSED 31
#define LINUX_SIGTBLSZ 31
#define LINUX_NSIG_WORDS 2
#define LINUX_NBPW 32
#define LINUX_NSIG (LINUX_NBPW * LINUX_NSIG_WORDS)
/* sigaction flags */
#define LINUX_SA_ONSTACK 0x00000001
#define LINUX_SA_RESTART 0x00000002
#define LINUX_SA_NOCLDSTOP 0x00000004
#define LINUX_SA_NODEFER 0x00000008
#define LINUX_SA_RESETHAND 0x00000010
#define LINUX_SA_NOCLDWAIT 0x00000020
#define LINUX_SA_SIGINFO 0x00000040
#define LINUX_SA_RESTORER 0x04000000
#define LINUX_SA_INTERRUPT 0x20000000
#define LINUX_SA_NOMASK LINUX_SA_NODEFER
#define LINUX_SA_ONESHOT LINUX_SA_RESETHAND
/* sigprocmask actions */
#define LINUX_SIG_BLOCK 0
#define LINUX_SIG_UNBLOCK 1
#define LINUX_SIG_SETMASK 2
/* sigset_t macros */
#define LINUX_SIGEMPTYSET(set) (set).__bits[0] = (set).__bits[1] = 0
#define LINUX_SIGISMEMBER(set, sig) SIGISMEMBER(set, sig)
#define LINUX_SIGADDSET(set, sig) SIGADDSET(set, sig)
#define LINUX_MINSIGSTKSZ 4096
typedef void (*l_handler_t)(l_int);
typedef l_ulong l_osigset_t;
typedef struct {
l_uint __bits[LINUX_NSIG_WORDS];
} l_sigset_t;
typedef struct {
l_handler_t lsa_handler;
l_osigset_t lsa_mask;
l_ulong lsa_flags;
void (*lsa_restorer)(void);
} l_osigaction_t;
typedef struct {
l_handler_t lsa_handler;
l_ulong lsa_flags;
void (*lsa_restorer)(void);
l_sigset_t lsa_mask;
} l_sigaction_t;
/*
* The Linux sigcontext
*/
struct l_sigcontext {
l_long sc_onstack;
l_long sc_mask;
l_long sc_pc;
l_long sc_ps;
l_long sc_regs[32];
l_long sc_ownedfp;
l_long sc_fpregs[32];
l_ulong sc_fpcr;
l_ulong sc_fp_control;
l_ulong sc_reserved1, sc_reserved2;
l_ulong sc_ssize;
char *sc_sbase;
l_ulong sc_traparg_a0;
l_ulong sc_traparg_a1;
l_ulong sc_traparg_a2;
l_ulong sc_fp_trap_pc;
l_ulong sc_fp_trigger_sum;
l_ulong sc_fp_trigger_inst;
};
/*
* We make the stack look like Linux expects it when calling a signal
* handler, but use the BSD way of calling the handler and sigreturn().
* This means that we need to pass the pointer to the handler too.
* It is appended to the frame to not interfere with the rest of it.
*/
struct l_sigframe {
l_int sf_sig;
struct l_sigcontext sf_sc;
l_handler_t sf_handler;
};
/*
* Pluggable ioctl handlers
*/
struct linux_ioctl_args;
struct thread;
typedef int linux_ioctl_function_t(struct thread *, struct linux_ioctl_args *);
struct linux_ioctl_handler {
linux_ioctl_function_t *func;
int low, high;
};
int linux_ioctl_register_handler(struct linux_ioctl_handler *h);
int linux_ioctl_unregister_handler(struct linux_ioctl_handler *h);
/*
* open/fcntl flags
*/
#define LINUX_O_RDONLY 00
#define LINUX_O_WRONLY 01
#define LINUX_O_RDWR 02
#define LINUX_O_NONBLOCK 04
#define LINUX_O_APPEND 010
#define LINUX_O_CREAT 01000
#define LINUX_O_TRUNC 02000
#define LINUX_O_EXCL 04000
#define LINUX_O_NOCTTY 010000
#define LINUX_O_NDELAY LINUX_O_NONBLOCK
#define LINUX_O_SYNC 040000
#define LINUX_FASYNC 020000
/* fcntl flags */
#define LINUX_F_DUPFD 0
#define LINUX_F_GETFD 1
#define LINUX_F_SETFD 2
#define LINUX_F_GETFL 3
#define LINUX_F_SETFL 4
#define LINUX_F_SETOWN 5
#define LINUX_F_GETOWN 6
#define LINUX_F_GETLK 7
#define LINUX_F_SETLK 8
#define LINUX_F_SETLKW 9
#define LINUX_F_SETSIG 10
#define LINUX_F_GETSIG 11
#define LINUX_F_RDLCK 1
#define LINUX_F_WRLCK 2
#define LINUX_F_UNLCK 8
/*
* mount flags
*/
#define LINUX_MS_RDONLY 0x0001
#define LINUX_MS_NOSUID 0x0002
#define LINUX_MS_NODEV 0x0004
#define LINUX_MS_NOEXEC 0x0008
#define LINUX_MS_REMOUNT 0x0020
/*
* SystemV IPC defines
*/
#define LINUX_SEMOP 1
#define LINUX_SEMGET 2
#define LINUX_SEMCTL 3
#define LINUX_MSGSND 11
#define LINUX_MSGRCV 12
#define LINUX_MSGGET 13
#define LINUX_MSGCTL 14
#define LINUX_SHMAT 21
#define LINUX_SHMDT 22
#define LINUX_SHMGET 23
#define LINUX_SHMCTL 24
#define LINUX_IPC_RMID 0
#define LINUX_IPC_SET 1
#define LINUX_IPC_STAT 2
#define LINUX_IPC_INFO 3
#define LINUX_SHM_LOCK 11
#define LINUX_SHM_UNLOCK 12
#define LINUX_SHM_STAT 13
#define LINUX_SHM_INFO 14
#define LINUX_SHM_RDONLY 0x1000
#define LINUX_SHM_RND 0x2000
#define LINUX_SHM_REMAP 0x4000
/* semctl commands */
#define LINUX_GETPID 11
#define LINUX_GETVAL 12
#define LINUX_GETALL 13
#define LINUX_GETNCNT 14
#define LINUX_GETZCNT 15
#define LINUX_SETVAL 16
#define LINUX_SETALL 17
#define LINUX_SEM_STAT 18
#define LINUX_SEM_INFO 19
union l_semun {
l_int val;
struct l_semid_ds *buf;
l_ushort *array;
struct l_seminfo *__buf;
void *__pad;
};
/*
* Socket defines
*/
#define LINUX_SOCKET 1
#define LINUX_BIND 2
#define LINUX_CONNECT 3
#define LINUX_LISTEN 4
#define LINUX_ACCEPT 5
#define LINUX_GETSOCKNAME 6
#define LINUX_GETPEERNAME 7
#define LINUX_SOCKETPAIR 8
#define LINUX_SEND 9
#define LINUX_RECV 10
#define LINUX_SENDTO 11
#define LINUX_RECVFROM 12
#define LINUX_SHUTDOWN 13
#define LINUX_SETSOCKOPT 14
#define LINUX_GETSOCKOPT 15
#define LINUX_SENDMSG 16
#define LINUX_RECVMSG 17
#define LINUX_AF_UNSPEC 0
#define LINUX_AF_UNIX 1
#define LINUX_AF_INET 2
#define LINUX_AF_AX25 3
#define LINUX_AF_IPX 4
#define LINUX_AF_APPLETALK 5
#define LINUX_AF_INET6 10
#define LINUX_SOL_SOCKET 1
#define LINUX_SOL_IP 0
#define LINUX_SOL_TCP 6
#define LINUX_SOL_UDP 17
#define LINUX_SOL_IPX 256
#define LINUX_SOL_AX25 257
#define LINUX_SO_DEBUG 1
#define LINUX_SO_REUSEADDR 2
#define LINUX_SO_TYPE 3
#define LINUX_SO_ERROR 4
#define LINUX_SO_DONTROUTE 5
#define LINUX_SO_BROADCAST 6
#define LINUX_SO_SNDBUF 7
#define LINUX_SO_RCVBUF 8
#define LINUX_SO_KEEPALIVE 9
#define LINUX_SO_OOBINLINE 10
#define LINUX_SO_NO_CHECK 11
#define LINUX_SO_PRIORITY 12
#define LINUX_SO_LINGER 13
#define LINUX_IP_TOS 1
#define LINUX_IP_TTL 2
#define LINUX_IP_HDRINCL 3
#define LINUX_IP_OPTIONS 4
#define LINUX_IP_MULTICAST_IF 32
#define LINUX_IP_MULTICAST_TTL 33
#define LINUX_IP_MULTICAST_LOOP 34
#define LINUX_IP_ADD_MEMBERSHIP 35
#define LINUX_IP_DROP_MEMBERSHIP 36
struct l_sockaddr {
l_ushort sa_family;
char sa_data[14];
};
struct l_ifmap {
l_ulong mem_start;
l_ulong mem_end;
l_ushort base_addr;
u_char irq;
u_char dma;
u_char port;
};
#define LINUX_IFHWADDRLEN 6
#define LINUX_IFNAMSIZ 16
struct l_ifreq {
union {
char ifrn_name[LINUX_IFNAMSIZ]; /* if name, e.g. "en0" */
} ifr_ifrn;
union {
struct l_sockaddr ifru_addr;
struct l_sockaddr ifru_dstaddr;
struct l_sockaddr ifru_broadaddr;
struct l_sockaddr ifru_netmask;
struct l_sockaddr ifru_hwaddr;
l_short ifru_flags[1];
l_int ifru_metric;
l_int ifru_mtu;
struct l_ifmap ifru_map;
char ifru_slave[LINUX_IFNAMSIZ];
l_caddr_t ifru_data;
} ifr_ifru;
};
#define ifr_name ifr_ifrn.ifrn_name /* interface name */
#define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */
extern char linux_sigcode[];
extern int linux_szsigcode;
extern struct sysent linux_sysent[LINUX_SYS_MAXSYSCALL];
extern struct sysentvec linux_sysvec;
extern struct sysentvec elf_linux_sysvec;
/* dummy struct definitions */
struct image_params;
struct trapframe;
/*
* poll()
*/
#define LINUX_POLLIN 0x0001
#define LINUX_POLLPRI 0x0002
#define LINUX_POLLOUT 0x0004
#define LINUX_POLLERR 0x0008
#define LINUX_POLLHUP 0x0010
#define LINUX_POLLNVAL 0x0020
#define LINUX_POLLRDNORM 0x0040
#define LINUX_POLLRDBAND 0x0080
#define LINUX_POLLWRNORM 0x0100
#define LINUX_POLLWRBAND 0x0200
#define LINUX_POLLMSG 0x0400
struct l_pollfd {
l_int fd;
l_short events;
l_short revents;
};
#endif /* !_ALPHA_LINUX_LINUX_H_ */

View File

@ -1,79 +0,0 @@
/*-
* Copyright (c) 2000 Andrew Gallatin
* Copyright (c) 1994-1995 Søren Schmidt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer
* in this position and unchanged.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
#include <alpha/linux/linux.h>
#include <alpha/linux/linux_proto.h>
#include <compat/linux/linux_util.h>
DUMMY(ptrace);
DUMMY(syslog);
DUMMY(vhangup);
DUMMY(swapoff);
DUMMY(sysinfo);
DUMMY(adjtimex);
DUMMY(create_module);
DUMMY(init_module);
DUMMY(delete_module);
DUMMY(get_kernel_syms);
DUMMY(quotactl);
DUMMY(bdflush);
DUMMY(sysfs);
DUMMY(setfsuid);
DUMMY(setfsgid);
DUMMY(query_module);
DUMMY(nfsservctl);
DUMMY(prctl);
DUMMY(rt_sigpending);
DUMMY(rt_sigtimedwait);
DUMMY(rt_sigqueueinfo);
DUMMY(capget);
DUMMY(capset);
DUMMY(sendfile);
DUMMY(getdtablesize);
DUMMY(gethostname);
DUMMY(getpagesize);
DUMMY(mincore);
DUMMY(old_adjtimex);
DUMMY(pciconfig_iobase);
DUMMY(pciconfig_read);
DUMMY(pciconfig_write);
DUMMY(pivot_root);
DUMMY(sethae);
DUMMY(sigaltstack);
DUMMY(sigpending);
DUMMY(utimes);

View File

@ -1,10 +0,0 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/assym.h>
#include <alpha/linux/linux.h>
ASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler));
ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));

View File

@ -1,133 +0,0 @@
/*-
* Copyright (c) 2002 Maxim Sobolev <sobomax@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer
* in this position and unchanged.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $FreeBSD$
*/
#ifndef _ALPHA_LINUX_LINUX_IPC64_H_
#define _ALPHA_LINUX_LINUX_IPC64_H_
/*
* The ipc64_perm structure for alpha architecture.
* Note extra padding because this structure is passed back and forth
* between kernel and user space.
*
* Pad space is left for:
* - 32-bit seq
* - 2 miscellaneous 64-bit values
*/
struct l_ipc64_perm
{
l_key_t key;
l_uid_t uid;
l_gid_t gid;
l_uid_t cuid;
l_gid_t cgid;
l_mode_t mode;
l_ushort seq;
l_ushort __pad1;
l_ulong __unused1;
l_ulong __unused2;
};
/*
* The msqid64_ds structure for alpha architecture.
* Note extra padding because this structure is passed back and forth
* between kernel and user space.
*
* Pad space is left for:
* - 2 miscellaneous 64-bit values
*/
struct l_msqid64_ds {
struct l_ipc64_perm msg_perm;
l_time_t msg_stime; /* last msgsnd time */
l_time_t msg_rtime; /* last msgrcv time */
l_time_t msg_ctime; /* last change time */
l_ulong msg_cbytes; /* current number of bytes on queue */
l_ulong msg_qnum; /* number of messages in queue */
l_ulong msg_qbytes; /* max number of bytes on queue */
l_pid_t msg_lspid; /* pid of last msgsnd */
l_pid_t msg_lrpid; /* last receive pid */
l_ulong __unused1;
l_ulong __unused2;
};
/*
* The semid64_ds structure for alpha architecture.
* Note extra padding because this structure is passed back and forth
* between kernel and user space.
*
* Pad space is left for:
* - 2 miscellaneous 64-bit values
*/
struct l_semid64_ds {
struct l_ipc64_perm sem_perm; /* permissions */
l_time_t sem_otime; /* last semop time */
l_time_t sem_ctime; /* last change time */
l_ulong sem_nsems; /* no. of semaphores in array */
l_ulong __unused1;
l_ulong __unused2;
};
/*
* The shmid64_ds structure for alpha architecture.
* Note extra padding because this structure is passed back and forth
* between kernel and user space.
*
* Pad space is left for:
* - 2 miscellaneous 64-bit values
*/
struct l_shmid64_ds {
struct l_ipc64_perm shm_perm; /* operation perms */
l_size_t shm_segsz; /* size of segment (bytes) */
l_time_t shm_atime; /* last attach time */
l_time_t shm_dtime; /* last detach time */
l_time_t shm_ctime; /* last change time */
l_pid_t shm_cpid; /* pid of creator */
l_pid_t shm_lpid; /* pid of last operator */
l_ulong shm_nattch; /* no. of current attaches */
l_ulong __unused1;
l_ulong __unused2;
};
struct l_shminfo64 {
l_ulong shmmax;
l_ulong shmmin;
l_ulong shmmni;
l_ulong shmseg;
l_ulong shmall;
l_ulong __unused1;
l_ulong __unused2;
l_ulong __unused3;
l_ulong __unused4;
};
#endif /* !_ALPHA_LINUX_LINUX_IPC64_H_ */

View File

@ -1,49 +0,0 @@
/* $FreeBSD$ */
#include <machine/asm.h>
#include <alpha/linux/linux_syscall.h>
/*
* Signal "trampoline" code. Invoked from RTE setup by sendsig().
*
* On entry, stack & registers look like:
*
* a0 signal number
* a1 pointer to siginfo_t
* a2 pointer to signal context frame (scp)
* a3 address of handler
* sp+0 saved hardware state
* .
* .
* scp+0 beginning of signal context frame
*/
/*
* System call glue.
*/
#define LINUX_SYSCALLNUM(name) \
___CONCAT(LINUX_SYS_,name)
#define LINUX_CALLSYS_NOERROR(name) \
ldiq v0, LINUX_SYSCALLNUM(name); \
call_pal PAL_OSF1_callsys
NESTED(linux_sigcode,0,0,ra,0,0)
lda sp, -16(sp) /* save the sigcontext pointer */
stq a2, 0(sp)
jsr ra, (t12) /* call the signal handler (t12==pv) */
ldq a0, 0(sp) /* get the sigcontext pointer */
lda sp, 16(sp)
/* and call sigreturn() with it. */
LINUX_CALLSYS_NOERROR(osf1_sigreturn)
mov v0, a0 /* if that failed, get error code */
LINUX_CALLSYS_NOERROR(exit) /* and call exit() with it. */
XNESTED(linux_esigcode,0)
END(linux_sigcode)
.data
EXPORT(linux_szsigcode)
.quad linux_esigcode-linux_sigcode
.text

View File

@ -1,422 +0,0 @@
/*-
* Copyright (c) 2000 Marcel Moolenaar
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer
* in this position and unchanged.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/imgact.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/mutex.h>
#include <sys/proc.h>
#include <sys/resource.h>
#include <sys/resourcevar.h>
#include <sys/syscallsubr.h>
#include <sys/sysproto.h>
#include <sys/unistd.h>
#include <machine/pcb.h>
#include <vm/vm.h>
#include <vm/pmap.h>
#include <vm/vm_map.h>
#include <alpha/linux/linux.h>
#include <alpha/linux/linux_proto.h>
#include <compat/linux/linux_signal.h>
#include <compat/linux/linux_util.h>
struct linux_select_argv {
int nfds;
fd_set *readfds;
fd_set *writefds;
fd_set *exceptfds;
struct timeval *timeout;
};
int
linux_execve(struct thread *td, struct linux_execve_args *args)
{
struct image_args eargs;
char *path;
int error;
LCONVPATHEXIST(td, args->path, &path);
#ifdef DEBUG
if (ldebug(execve))
printf(ARGS(execve, "%s"), path);
#endif
error = exec_copyin_args(&eargs, path, UIO_SYSSPACE, args->argp,
args->envp);
free(path, M_TEMP);
if (error == 0)
error = kern_execve(td, &eargs, NULL);
return (error);
}
/*
* MPSAFE
*/
int
linux_fork(struct thread *td, struct linux_fork_args *args)
{
int error;
#ifdef DEBUG
if (ldebug(fork))
printf(ARGS(fork, ""));
#endif
if ((error = fork(td, (struct fork_args *)args)) != 0)
return (error);
if (td->td_retval[1] == 1)
td->td_retval[0] = 0;
return (0);
}
/*
* MPSAFE
*/
int
linux_vfork(struct thread *td, struct linux_vfork_args *args)
{
int error;
#ifdef DEBUG
if (ldebug(vfork))
printf(ARGS(vfork, ""));
#endif
if ((error = vfork(td, (struct vfork_args *)args)) != 0)
return (error);
/* Are we the child? */
if (td->td_retval[1] == 1)
td->td_retval[0] = 0;
return (0);
}
#define CLONE_VM 0x100
#define CLONE_FS 0x200
#define CLONE_FILES 0x400
#define CLONE_SIGHAND 0x800
#define CLONE_PID 0x1000
int
linux_clone(struct thread *td, struct linux_clone_args *args)
{
int error, ff = RFPROC | RFSTOPPED;
struct proc *p2;
struct thread *td2;
int exit_signal;
#ifdef DEBUG
if (ldebug(clone)) {
printf(ARGS(clone, "flags %x, stack %p"),
(unsigned int)args->flags, args->stack);
if (args->flags & CLONE_PID)
printf(LMSG("CLONE_PID not yet supported"));
}
#endif
if (!args->stack)
return (EINVAL);
exit_signal = args->flags & 0x000000ff;
if (exit_signal >= LINUX_NSIG)
return (EINVAL);
/* if (exit_signal <= LINUX_SIGTBLSZ)
exit_signal = linux_to_bsd_signal[_SIG_IDX(exit_signal)];
*/
if (args->flags & CLONE_VM)
ff |= RFMEM;
if (args->flags & CLONE_SIGHAND)
ff |= RFSIGSHARE;
if (!(args->flags & CLONE_FILES))
ff |= RFFDG;
error = fork1(td, ff, 0, &p2);
if (error)
return (error);
PROC_LOCK(p2);
p2->p_sigparent = exit_signal;
PROC_UNLOCK(p2);
td2 = FIRST_THREAD_IN_PROC(p2);
td2->td_pcb->pcb_hw.apcb_usp = (unsigned long)args->stack;
#ifdef DEBUG
if (ldebug(clone))
printf(LMSG("clone: successful rfork to %ld, stack %p sig = %d"),
(long)p2->p_pid, args->stack, exit_signal);
#endif
/*
* Make this runnable after we are finished with it.
*/
mtx_lock_spin(&sched_lock);
TD_SET_CAN_RUN(td2);
setrunqueue(td2, SRQ_BORING);
mtx_unlock_spin(&sched_lock);
td->td_retval[0] = p2->p_pid;
td->td_retval[1] = 0;
return (0);
}
#define STACK_SIZE (2 * 1024 * 1024)
#define GUARD_SIZE (4 * PAGE_SIZE)
int
linux_mmap(struct thread *td, struct linux_mmap_args *linux_args)
{
struct mmap_args /* {
caddr_t addr;
size_t len;
int prot;
int flags;
int fd;
long pad;
off_t pos;
} */ bsd_args;
int error;
#ifdef DEBUG
if (ldebug(mmap))
printf(ARGS(mmap, "%p, 0x%lx, 0x%lx, 0x%lx, 0x%lx, 0x%lx"),
(void *)linux_args->addr, linux_args->len,
linux_args->prot, linux_args->flags, linux_args->fd,
linux_args->pos);
#endif
bsd_args.prot = linux_args->prot | PROT_READ; /* always required */
bsd_args.flags = 0;
if (linux_args->flags & LINUX_MAP_SHARED)
bsd_args.flags |= MAP_SHARED;
if (linux_args->flags & LINUX_MAP_PRIVATE)
bsd_args.flags |= MAP_PRIVATE;
if (linux_args->flags & LINUX_MAP_FIXED){
bsd_args.flags |= MAP_FIXED;
bsd_args.pos = trunc_page(linux_args->pos);
} else {
bsd_args.pos = linux_args->pos;
}
if (linux_args->flags & LINUX_MAP_ANON)
bsd_args.flags |= MAP_ANON;
if (linux_args->flags & LINUX_MAP_GROWSDOWN) {
bsd_args.flags |= MAP_STACK;
/* The linux MAP_GROWSDOWN option does not limit auto
* growth of the region. Linux mmap with this option
* takes as addr the inital BOS, and as len, the initial
* region size. It can then grow down from addr without
* limit. However, linux threads has an implicit internal
* limit to stack size of STACK_SIZE. Its just not
* enforced explicitly in linux. But, here we impose
* a limit of (STACK_SIZE - GUARD_SIZE) on the stack
* region, since we can do this with our mmap.
*
* Our mmap with MAP_STACK takes addr as the maximum
* downsize limit on BOS, and as len the max size of
* the region. It them maps the top SGROWSIZ bytes,
* and autgrows the region down, up to the limit
* in addr.
*
* If we don't use the MAP_STACK option, the effect
* of this code is to allocate a stack region of a
* fixed size of (STACK_SIZE - GUARD_SIZE).
*/
/* This gives us TOS */
bsd_args.addr = (caddr_t)(linux_args->addr + linux_args->len);
/* This gives us our maximum stack size */
if (linux_args->len > STACK_SIZE - GUARD_SIZE)
bsd_args.len = linux_args->len;
else
bsd_args.len = STACK_SIZE - GUARD_SIZE;
/* This gives us a new BOS. If we're using VM_STACK, then
* mmap will just map the top SGROWSIZ bytes, and let
* the stack grow down to the limit at BOS. If we're
* not using VM_STACK we map the full stack, since we
* don't have a way to autogrow it.
*/
bsd_args.addr -= bsd_args.len;
bsd_args.addr = (caddr_t)round_page(bsd_args.addr); /* XXXX */
} else {
bsd_args.addr = (caddr_t)linux_args->addr;
bsd_args.len = linux_args->len;
}
bsd_args.fd = linux_args->fd;
if(linux_args->fd == 0)
bsd_args.fd = -1;
bsd_args.pad = 0;
#ifdef DEBUG
if (ldebug(mmap))
printf(ARGS(mmap, "%p, 0x%lx, 0x%x, 0x%x, 0x%x, 0x%lx"),
(void *)bsd_args.addr,
bsd_args.len,
bsd_args.prot,
bsd_args.flags,
bsd_args.fd,
bsd_args.pos);
#endif
if (bsd_args.addr == 0)
bsd_args.addr = (caddr_t)0x40000000UL;
error = mmap(td, &bsd_args);
#ifdef DEBUG
if (ldebug(mmap))
printf(LMSG("mmap returns %d, 0x%lx"), error, td->td_retval[0]);
#endif
return (error);
}
int
linux_rt_sigsuspend(td, uap)
struct thread *td;
struct linux_rt_sigsuspend_args *uap;
{
int error;
l_sigset_t lmask;
sigset_t bmask;
#ifdef DEBUG
if (ldebug(rt_sigsuspend))
printf(ARGS(rt_sigsuspend, "%p, %zd"),
(void *)uap->newset, uap->sigsetsize);
#endif
if (uap->sigsetsize != sizeof(l_sigset_t))
return (EINVAL);
error = copyin(uap->newset, &lmask, sizeof(l_sigset_t));
if (error)
return (error);
linux_to_bsd_sigset(&lmask, &bmask);
return (kern_sigsuspend(td, bmask));
}
int
linux_mprotect(td, uap)
struct thread *td;
struct linux_mprotect_args *uap;
{
#ifdef DEBUG
if (ldebug(mprotect))
printf(ARGS(mprotect, "%p, 0x%zx, 0x%lx"),
(void *)uap->addr, uap->len, uap->prot);
#endif
return (mprotect(td, (void *)uap));
}
int
linux_munmap(td, uap)
struct thread *td;
struct linux_munmap_args *uap;
{
#ifdef DEBUG
if (ldebug(munmap))
printf(ARGS(munmap, "%p, 0x%lx"),
(void *)uap->addr, uap->len);
#endif
return (munmap(td, (void *)uap));
}
static unsigned int linux_to_bsd_resource[LINUX_RLIM_NLIMITS] = {
RLIMIT_CPU, RLIMIT_FSIZE, RLIMIT_DATA, RLIMIT_STACK,
RLIMIT_CORE, RLIMIT_RSS, RLIMIT_NOFILE, -1,
RLIMIT_NPROC, RLIMIT_MEMLOCK
};
int
linux_setrlimit(td, uap)
struct thread *td;
struct linux_setrlimit_args *uap;
{
struct rlimit rlim;
u_int which;
int error;
#ifdef DEBUG
if (ldebug(setrlimit))
printf(ARGS(setrlimit, "%d, %p"),
uap->resource, (void *)uap->rlim);
#endif
if (uap->resource >= LINUX_RLIM_NLIMITS)
return EINVAL;
which = linux_to_bsd_resource[uap->resource];
if (which == -1)
return EINVAL;
if ((error =
copyin(uap->rlim, &rlim, sizeof (struct rlimit))))
return (error);
return (kern_setrlimit(td, which, &rlim));
}
int
linux_getrlimit(td, uap)
struct thread *td;
struct linux_getrlimit_args *uap;
{
struct rlimit rlim;
u_int which;
int error;
#ifdef DEBUG
if (ldebug(getrlimit))
printf(ARGS(getrlimit, "%d, %p"),
uap->resource, (void *)uap->rlim);
#endif
if (uap->resource >= LINUX_RLIM_NLIMITS)
return EINVAL;
which = linux_to_bsd_resource[uap->resource];
if (which == -1)
return EINVAL;
PROC_LOCK(td->td_proc);
lim_rlimit(td->td_proc, which, &rlim);
PROC_UNLOCK(td->td_proc);
error = copyout(&rlim, uap->rlim, sizeof (struct rlimit));
return (error);
}

View File

@ -1,781 +0,0 @@
/*
* System call prototypes.
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: src/sys/alpha/linux/syscalls.master,v 1.69 2006/03/20 19:46:56 netchild Exp
*/
#ifndef _LINUX_SYSPROTO_H_
#define _LINUX_SYSPROTO_H_
#include <sys/signal.h>
#include <sys/acl.h>
#include <sys/thr.h>
#include <sys/umtx.h>
#include <posix4/_semaphore.h>
#include <sys/ucontext.h>
struct proc;
struct thread;
#define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
0 : sizeof(register_t) - sizeof(t))
#if BYTE_ORDER == LITTLE_ENDIAN
#define PADL_(t) 0
#define PADR_(t) PAD_(t)
#else
#define PADL_(t) PAD_(t)
#define PADR_(t) 0
#endif
#define nosys linux_nosys
struct linux_fork_args {
register_t dummy;
};
struct osf1_wait4_args {
char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
char rusage_l_[PADL_(struct osf1_rusage *)]; struct osf1_rusage * rusage; char rusage_r_[PADR_(struct osf1_rusage *)];
};
struct linux_link_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char to_l_[PADL_(char *)]; char * to; char to_r_[PADR_(char *)];
};
struct linux_unlink_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
};
struct linux_chdir_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
};
struct linux_mknod_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char mode_l_[PADL_(l_int)]; l_int mode; char mode_r_[PADR_(l_int)];
char dev_l_[PADL_(l_dev_t)]; l_dev_t dev; char dev_r_[PADR_(l_dev_t)];
};
struct linux_chmod_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char mode_l_[PADL_(l_mode_t)]; l_mode_t mode; char mode_r_[PADR_(l_mode_t)];
};
struct linux_chown_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char uid_l_[PADL_(l_uid_t)]; l_uid_t uid; char uid_r_[PADR_(l_uid_t)];
char gid_l_[PADL_(l_gid_t)]; l_gid_t gid; char gid_r_[PADR_(l_gid_t)];
};
struct linux_brk_args {
char dsend_l_[PADL_(l_ulong)]; l_ulong dsend; char dsend_r_[PADR_(l_ulong)];
};
struct linux_lseek_args {
char fdes_l_[PADL_(l_uint)]; l_uint fdes; char fdes_r_[PADR_(l_uint)];
char off_l_[PADL_(l_off_t)]; l_off_t off; char off_r_[PADR_(l_off_t)];
char whence_l_[PADL_(l_int)]; l_int whence; char whence_r_[PADR_(l_int)];
};
struct linux_umount_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)];
};
struct linux_ptrace_args {
register_t dummy;
};
struct linux_access_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)];
};
struct linux_kill_args {
char pid_l_[PADL_(l_int)]; l_int pid; char pid_r_[PADR_(l_int)];
char signum_l_[PADL_(l_int)]; l_int signum; char signum_r_[PADR_(l_int)];
};
struct linux_open_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)];
char mode_l_[PADL_(l_int)]; l_int mode; char mode_r_[PADR_(l_int)];
};
struct osf1_sigprocmask_args {
char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
char mask_l_[PADL_(u_long)]; u_long mask; char mask_r_[PADR_(u_long)];
};
struct linux_sigpending_args {
register_t dummy;
};
struct linux_ioctl_args {
char fd_l_[PADL_(l_uint)]; l_uint fd; char fd_r_[PADR_(l_uint)];
char cmd_l_[PADL_(l_uint)]; l_uint cmd; char cmd_r_[PADR_(l_uint)];
char arg_l_[PADL_(l_ulong)]; l_ulong arg; char arg_r_[PADR_(l_ulong)];
};
struct linux_symlink_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char to_l_[PADL_(char *)]; char * to; char to_r_[PADR_(char *)];
};
struct linux_readlink_args {
char name_l_[PADL_(char *)]; char * name; char name_r_[PADR_(char *)];
char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
char count_l_[PADL_(l_int)]; l_int count; char count_r_[PADR_(l_int)];
};
struct linux_execve_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char argp_l_[PADL_(char **)]; char ** argp; char argp_r_[PADR_(char **)];
char envp_l_[PADL_(char **)]; char ** envp; char envp_r_[PADR_(char **)];
};
struct linux_getpagesize_args {
register_t dummy;
};
struct linux_vfork_args {
register_t dummy;
};
struct linux_newstat_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char buf_l_[PADL_(struct l_newstat *)]; struct l_newstat * buf; char buf_r_[PADR_(struct l_newstat *)];
};
struct linux_newlstat_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char buf_l_[PADL_(struct l_newstat *)]; struct l_newstat * buf; char buf_r_[PADR_(struct l_newstat *)];
};
struct linux_mmap_args {
char addr_l_[PADL_(l_ulong)]; l_ulong addr; char addr_r_[PADR_(l_ulong)];
char len_l_[PADL_(l_ulong)]; l_ulong len; char len_r_[PADR_(l_ulong)];
char prot_l_[PADL_(l_ulong)]; l_ulong prot; char prot_r_[PADR_(l_ulong)];
char flags_l_[PADL_(l_ulong)]; l_ulong flags; char flags_r_[PADR_(l_ulong)];
char fd_l_[PADL_(l_ulong)]; l_ulong fd; char fd_r_[PADR_(l_ulong)];
char pos_l_[PADL_(l_ulong)]; l_ulong pos; char pos_r_[PADR_(l_ulong)];
};
struct linux_munmap_args {
char addr_l_[PADL_(l_ulong)]; l_ulong addr; char addr_r_[PADR_(l_ulong)];
char len_l_[PADL_(l_size_t)]; l_size_t len; char len_r_[PADR_(l_size_t)];
};
struct linux_mprotect_args {
char addr_l_[PADL_(l_ulong)]; l_ulong addr; char addr_r_[PADR_(l_ulong)];
char len_l_[PADL_(l_size_t)]; l_size_t len; char len_r_[PADR_(l_size_t)];
char prot_l_[PADL_(l_ulong)]; l_ulong prot; char prot_r_[PADR_(l_ulong)];
};
struct linux_vhangup_args {
register_t dummy;
};
struct linux_setgroups_args {
char gidsetsize_l_[PADL_(l_int)]; l_int gidsetsize; char gidsetsize_r_[PADR_(l_int)];
char grouplist_l_[PADL_(l_gid_t *)]; l_gid_t * grouplist; char grouplist_r_[PADR_(l_gid_t *)];
};
struct linux_getgroups_args {
char gidsetsize_l_[PADL_(l_int)]; l_int gidsetsize; char gidsetsize_r_[PADR_(l_int)];
char grouplist_l_[PADL_(l_gid_t *)]; l_gid_t * grouplist; char grouplist_r_[PADR_(l_gid_t *)];
};
struct osf1_setitimer_args {
char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
char itv_l_[PADL_(struct itimerval *)]; struct itimerval * itv; char itv_r_[PADR_(struct itimerval *)];
char oitv_l_[PADL_(struct itimerval *)]; struct itimerval * oitv; char oitv_r_[PADR_(struct itimerval *)];
};
struct linux_gethostname_args {
register_t dummy;
};
struct linux_sethostname_args {
char hostname_l_[PADL_(char *)]; char * hostname; char hostname_r_[PADR_(char *)];
char len_l_[PADL_(u_int)]; u_int len; char len_r_[PADR_(u_int)];
};
struct linux_getdtablesize_args {
register_t dummy;
};
struct linux_newfstat_args {
char fd_l_[PADL_(l_uint)]; l_uint fd; char fd_r_[PADR_(l_uint)];
char buf_l_[PADL_(struct l_newstat *)]; struct l_newstat * buf; char buf_r_[PADR_(struct l_newstat *)];
};
struct linux_fcntl_args {
char fd_l_[PADL_(l_uint)]; l_uint fd; char fd_r_[PADR_(l_uint)];
char cmd_l_[PADL_(l_uint)]; l_uint cmd; char cmd_r_[PADR_(l_uint)];
char arg_l_[PADL_(l_ulong)]; l_ulong arg; char arg_r_[PADR_(l_ulong)];
};
struct osf1_select_args {
char nd_l_[PADL_(u_int)]; u_int nd; char nd_r_[PADR_(u_int)];
char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
char tv_l_[PADL_(struct timeval *)]; struct timeval * tv; char tv_r_[PADR_(struct timeval *)];
};
struct osf1_socket_args {
char domain_l_[PADL_(int)]; int domain; char domain_r_[PADR_(int)];
char type_l_[PADL_(int)]; int type; char type_r_[PADR_(int)];
char protocol_l_[PADL_(int)]; int protocol; char protocol_r_[PADR_(int)];
};
struct linux_connect_args {
char s_l_[PADL_(l_int)]; l_int s; char s_r_[PADR_(l_int)];
char name_l_[PADL_(struct l_sockaddr *)]; struct l_sockaddr * name; char name_r_[PADR_(struct l_sockaddr *)];
char namelen_l_[PADL_(l_int)]; l_int namelen; char namelen_r_[PADR_(l_int)];
};
struct linux_accept_args {
char s_l_[PADL_(l_int)]; l_int s; char s_r_[PADR_(l_int)];
char args_l_[PADL_(struct linux_accept_args *)]; struct linux_accept_args * args; char args_r_[PADR_(struct linux_accept_args *)];
};
struct linux_getpriority_args {
char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
};
struct linux_send_args {
char s_l_[PADL_(l_int)]; l_int s; char s_r_[PADR_(l_int)];
char args_l_[PADL_(struct linux_send_args *)]; struct linux_send_args * args; char args_r_[PADR_(struct linux_send_args *)];
};
struct linux_recv_args {
char s_l_[PADL_(l_int)]; l_int s; char s_r_[PADR_(l_int)];
char args_l_[PADL_(struct linux_recv_args *)]; struct linux_recv_args * args; char args_r_[PADR_(struct linux_recv_args *)];
};
struct osf1_sigreturn_args {
char sigcntxp_l_[PADL_(struct osigcontext *)]; struct osigcontext * sigcntxp; char sigcntxp_r_[PADR_(struct osigcontext *)];
};
struct osf1_sigsuspend_args {
char ss_l_[PADL_(unsigned long)]; unsigned long ss; char ss_r_[PADR_(unsigned long)];
};
struct linux_recvmsg_args {
register_t dummy;
};
struct linux_sendmsg_args {
register_t dummy;
};
struct osf1_gettimeofday_args {
char tp_l_[PADL_(struct timeval *)]; struct timeval * tp; char tp_r_[PADR_(struct timeval *)];
char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
};
struct osf1_getrusage_args {
char who_l_[PADL_(long)]; long who; char who_r_[PADR_(long)];
char rusage_l_[PADL_(void *)]; void * rusage; char rusage_r_[PADR_(void *)];
};
struct linux_recvfrom_args {
char s_l_[PADL_(l_int)]; l_int s; char s_r_[PADR_(l_int)];
char args_l_[PADL_(struct linux_recvfrom_args *)]; struct linux_recvfrom_args * args; char args_r_[PADR_(struct linux_recvfrom_args *)];
};
struct linux_rename_args {
char from_l_[PADL_(char *)]; char * from; char from_r_[PADR_(char *)];
char to_l_[PADL_(char *)]; char * to; char to_r_[PADR_(char *)];
};
struct linux_truncate_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char length_l_[PADL_(l_ulong)]; l_ulong length; char length_r_[PADR_(l_ulong)];
};
struct linux_ftruncate_args {
char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
char length_l_[PADL_(long)]; long length; char length_r_[PADR_(long)];
};
struct osf1_sendto_args {
char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
char buf_l_[PADL_(caddr_t)]; caddr_t buf; char buf_r_[PADR_(caddr_t)];
char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
char to_l_[PADL_(struct sockaddr *)]; struct sockaddr * to; char to_r_[PADR_(struct sockaddr *)];
char tolen_l_[PADL_(int)]; int tolen; char tolen_r_[PADR_(int)];
};
struct linux_socketpair_args {
register_t dummy;
};
struct linux_mkdir_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char mode_l_[PADL_(l_int)]; l_int mode; char mode_r_[PADR_(l_int)];
};
struct linux_rmdir_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
};
struct linux_getpeername_args {
char s_l_[PADL_(l_int)]; l_int s; char s_r_[PADR_(l_int)];
char args_l_[PADL_(struct linux_getpeername_args *)]; struct linux_getpeername_args * args; char args_r_[PADR_(struct linux_getpeername_args *)];
};
struct linux_getrlimit_args {
char resource_l_[PADL_(l_uint)]; l_uint resource; char resource_r_[PADR_(l_uint)];
char rlim_l_[PADL_(struct l_rlimit *)]; struct l_rlimit * rlim; char rlim_r_[PADR_(struct l_rlimit *)];
};
struct linux_setrlimit_args {
char resource_l_[PADL_(l_uint)]; l_uint resource; char resource_r_[PADR_(l_uint)];
char rlim_l_[PADL_(struct l_rlimit *)]; struct l_rlimit * rlim; char rlim_r_[PADR_(struct l_rlimit *)];
};
struct linux_quotactl_args {
register_t dummy;
};
struct linux_getsockname_args {
char s_l_[PADL_(l_int)]; l_int s; char s_r_[PADR_(l_int)];
char args_l_[PADL_(struct linux_getsockname_args *)]; struct linux_getsockname_args * args; char args_r_[PADR_(struct linux_getsockname_args *)];
};
struct osf1_sigaction_args {
char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
char nsa_l_[PADL_(struct osf1_sigaction *)]; struct osf1_sigaction * nsa; char nsa_r_[PADR_(struct osf1_sigaction *)];
char osa_l_[PADL_(struct osf1_sigaction *)]; struct osf1_sigaction * osa; char osa_r_[PADR_(struct osf1_sigaction *)];
};
struct linux_msgctl_args {
char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)];
char cmd_l_[PADL_(l_int)]; l_int cmd; char cmd_r_[PADR_(l_int)];
char buf_l_[PADL_(struct l_msqid_ds *)]; struct l_msqid_ds * buf; char buf_r_[PADR_(struct l_msqid_ds *)];
};
struct linux_msgget_args {
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
char msgflg_l_[PADL_(l_int)]; l_int msgflg; char msgflg_r_[PADR_(l_int)];
};
struct linux_msgrcv_args {
char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)];
char msgp_l_[PADL_(struct l_msgbuf *)]; struct l_msgbuf * msgp; char msgp_r_[PADR_(struct l_msgbuf *)];
char msgsz_l_[PADL_(l_size_t)]; l_size_t msgsz; char msgsz_r_[PADR_(l_size_t)];
char msgtyp_l_[PADL_(l_long)]; l_long msgtyp; char msgtyp_r_[PADR_(l_long)];
char msgflg_l_[PADL_(l_int)]; l_int msgflg; char msgflg_r_[PADR_(l_int)];
};
struct linux_msgsnd_args {
char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)];
char msgp_l_[PADL_(struct l_msgbuf *)]; struct l_msgbuf * msgp; char msgp_r_[PADR_(struct l_msgbuf *)];
char msgsz_l_[PADL_(l_size_t)]; l_size_t msgsz; char msgsz_r_[PADR_(l_size_t)];
char msgflg_l_[PADL_(l_int)]; l_int msgflg; char msgflg_r_[PADR_(l_int)];
};
struct linux_semctl_args {
char semid_l_[PADL_(l_int)]; l_int semid; char semid_r_[PADR_(l_int)];
char semnum_l_[PADL_(l_int)]; l_int semnum; char semnum_r_[PADR_(l_int)];
char cmd_l_[PADL_(l_int)]; l_int cmd; char cmd_r_[PADR_(l_int)];
char arg_l_[PADL_(union l_semun)]; union l_semun arg; char arg_r_[PADR_(union l_semun)];
};
struct linux_semget_args {
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
char nsems_l_[PADL_(l_int)]; l_int nsems; char nsems_r_[PADR_(l_int)];
char semflg_l_[PADL_(l_int)]; l_int semflg; char semflg_r_[PADR_(l_int)];
};
struct linux_semop_args {
char semid_l_[PADL_(l_int)]; l_int semid; char semid_r_[PADR_(l_int)];
char tsops_l_[PADL_(struct l_sembuf *)]; struct l_sembuf * tsops; char tsops_r_[PADR_(struct l_sembuf *)];
char nsops_l_[PADL_(l_uint)]; l_uint nsops; char nsops_r_[PADR_(l_uint)];
};
struct linux_lchown_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char uid_l_[PADL_(l_uid_t)]; l_uid_t uid; char uid_r_[PADR_(l_uid_t)];
char gid_l_[PADL_(l_gid_t)]; l_gid_t gid; char gid_r_[PADR_(l_gid_t)];
};
struct linux_shmat_args {
char shmid_l_[PADL_(l_int)]; l_int shmid; char shmid_r_[PADR_(l_int)];
char shmaddr_l_[PADL_(char *)]; char * shmaddr; char shmaddr_r_[PADR_(char *)];
char shmflg_l_[PADL_(l_int)]; l_int shmflg; char shmflg_r_[PADR_(l_int)];
};
struct linux_shmctl_args {
char shmid_l_[PADL_(l_int)]; l_int shmid; char shmid_r_[PADR_(l_int)];
char cmd_l_[PADL_(l_int)]; l_int cmd; char cmd_r_[PADR_(l_int)];
char buf_l_[PADL_(struct l_shmid_ds *)]; struct l_shmid_ds * buf; char buf_r_[PADR_(struct l_shmid_ds *)];
};
struct linux_shmdt_args {
char shmaddr_l_[PADL_(char *)]; char * shmaddr; char shmaddr_r_[PADR_(char *)];
};
struct linux_shmget_args {
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
char size_l_[PADL_(l_size_t)]; l_size_t size; char size_r_[PADR_(l_size_t)];
char shmflg_l_[PADL_(l_int)]; l_int shmflg; char shmflg_r_[PADR_(l_int)];
};
struct linux_msync_args {
char addr_l_[PADL_(l_ulong)]; l_ulong addr; char addr_r_[PADR_(l_ulong)];
char len_l_[PADL_(l_size_t)]; l_size_t len; char len_r_[PADR_(l_size_t)];
char fl_l_[PADL_(l_int)]; l_int fl; char fl_r_[PADR_(l_int)];
};
struct linux_getsid_args {
char pid_l_[PADL_(l_pid_t)]; l_pid_t pid; char pid_r_[PADR_(l_pid_t)];
};
struct linux_sigaltstack_args {
register_t dummy;
};
struct osf1_sysinfo_args {
char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
char count_l_[PADL_(long)]; long count; char count_r_[PADR_(long)];
};
struct linux_sysfs_args {
char option_l_[PADL_(l_int)]; l_int option; char option_r_[PADR_(l_int)];
char arg1_l_[PADL_(l_ulong)]; l_ulong arg1; char arg1_r_[PADR_(l_ulong)];
char arg2_l_[PADL_(l_ulong)]; l_ulong arg2; char arg2_r_[PADR_(l_ulong)];
};
struct osf1_getsysinfo_args {
char op_l_[PADL_(u_long)]; u_long op; char op_r_[PADR_(u_long)];
char buffer_l_[PADL_(caddr_t)]; caddr_t buffer; char buffer_r_[PADR_(caddr_t)];
char nbytes_l_[PADL_(u_long)]; u_long nbytes; char nbytes_r_[PADR_(u_long)];
char arg_l_[PADL_(caddr_t)]; caddr_t arg; char arg_r_[PADR_(caddr_t)];
char flag_l_[PADL_(u_long)]; u_long flag; char flag_r_[PADR_(u_long)];
};
struct osf1_setsysinfo_args {
char op_l_[PADL_(u_long)]; u_long op; char op_r_[PADR_(u_long)];
char buffer_l_[PADL_(caddr_t)]; caddr_t buffer; char buffer_r_[PADR_(caddr_t)];
char nbytes_l_[PADL_(u_long)]; u_long nbytes; char nbytes_r_[PADR_(u_long)];
char arg_l_[PADL_(caddr_t)]; caddr_t arg; char arg_r_[PADR_(caddr_t)];
char flag_l_[PADL_(u_long)]; u_long flag; char flag_r_[PADR_(u_long)];
};
struct linux_bdflush_args {
register_t dummy;
};
struct linux_sethae_args {
register_t dummy;
};
struct linux_mount_args {
char specialfile_l_[PADL_(char *)]; char * specialfile; char specialfile_r_[PADR_(char *)];
char dir_l_[PADL_(char *)]; char * dir; char dir_r_[PADR_(char *)];
char filesystemtype_l_[PADL_(char *)]; char * filesystemtype; char filesystemtype_r_[PADR_(char *)];
char rwflag_l_[PADL_(l_ulong)]; l_ulong rwflag; char rwflag_r_[PADR_(l_ulong)];
char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
};
struct linux_old_adjtimex_args {
register_t dummy;
};
struct linux_swapoff_args {
register_t dummy;
};
struct linux_getdents_args {
char fd_l_[PADL_(l_uint)]; l_uint fd; char fd_r_[PADR_(l_uint)];
char dent_l_[PADL_(void *)]; void * dent; char dent_r_[PADR_(void *)];
char count_l_[PADL_(l_uint)]; l_uint count; char count_r_[PADR_(l_uint)];
};
struct linux_create_module_args {
register_t dummy;
};
struct linux_init_module_args {
register_t dummy;
};
struct linux_delete_module_args {
register_t dummy;
};
struct linux_get_kernel_syms_args {
register_t dummy;
};
struct linux_syslog_args {
char type_l_[PADL_(l_int)]; l_int type; char type_r_[PADR_(l_int)];
char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
char len_l_[PADL_(l_int)]; l_int len; char len_r_[PADR_(l_int)];
};
struct linux_reboot_args {
char magic1_l_[PADL_(l_int)]; l_int magic1; char magic1_r_[PADR_(l_int)];
char magic2_l_[PADL_(l_int)]; l_int magic2; char magic2_r_[PADR_(l_int)];
char cmd_l_[PADL_(l_uint)]; l_uint cmd; char cmd_r_[PADR_(l_uint)];
char arg_l_[PADL_(void *)]; void * arg; char arg_r_[PADR_(void *)];
};
struct linux_clone_args {
char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)];
char stack_l_[PADL_(void *)]; void * stack; char stack_r_[PADR_(void *)];
};
struct linux_uselib_args {
char library_l_[PADL_(char *)]; char * library; char library_r_[PADR_(char *)];
};
struct linux_sysinfo_args {
register_t dummy;
};
struct linux_sysctl_args {
char args_l_[PADL_(struct l___sysctl_args *)]; struct l___sysctl_args * args; char args_r_[PADR_(struct l___sysctl_args *)];
};
struct linux_oldumount_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
};
struct linux_times_args {
char buf_l_[PADL_(struct l_times_argv *)]; struct l_times_argv * buf; char buf_r_[PADR_(struct l_times_argv *)];
};
struct linux_personality_args {
char per_l_[PADL_(l_ulong)]; l_ulong per; char per_r_[PADR_(l_ulong)];
};
struct linux_setfsuid_args {
char uid_l_[PADL_(l_uid_t)]; l_uid_t uid; char uid_r_[PADR_(l_uid_t)];
};
struct linux_setfsgid_args {
char gid_l_[PADL_(l_gid_t)]; l_gid_t gid; char gid_r_[PADR_(l_gid_t)];
};
struct linux_ustat_args {
char dev_l_[PADL_(l_dev_t)]; l_dev_t dev; char dev_r_[PADR_(l_dev_t)];
char ubuf_l_[PADL_(struct l_ustat *)]; struct l_ustat * ubuf; char ubuf_r_[PADR_(struct l_ustat *)];
};
struct linux_statfs_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
char buf_l_[PADL_(struct l_statfs_buf *)]; struct l_statfs_buf * buf; char buf_r_[PADR_(struct l_statfs_buf *)];
};
struct linux_fstatfs_args {
char fd_l_[PADL_(l_uint)]; l_uint fd; char fd_r_[PADR_(l_uint)];
char buf_l_[PADL_(struct l_statfs_buf *)]; struct l_statfs_buf * buf; char buf_r_[PADR_(struct l_statfs_buf *)];
};
struct linux_sched_setscheduler_args {
char pid_l_[PADL_(l_pid_t)]; l_pid_t pid; char pid_r_[PADR_(l_pid_t)];
char policy_l_[PADL_(l_int)]; l_int policy; char policy_r_[PADR_(l_int)];
char param_l_[PADL_(struct l_sched_param *)]; struct l_sched_param * param; char param_r_[PADR_(struct l_sched_param *)];
};
struct linux_sched_getscheduler_args {
char pid_l_[PADL_(l_pid_t)]; l_pid_t pid; char pid_r_[PADR_(l_pid_t)];
};
struct linux_sched_get_priority_max_args {
char policy_l_[PADL_(l_int)]; l_int policy; char policy_r_[PADR_(l_int)];
};
struct linux_sched_get_priority_min_args {
char policy_l_[PADL_(l_int)]; l_int policy; char policy_r_[PADR_(l_int)];
};
struct linux_newuname_args {
char buf_l_[PADL_(struct l_newuname_t *)]; struct l_newuname_t * buf; char buf_r_[PADR_(struct l_newuname_t *)];
};
struct linux_mremap_args {
char addr_l_[PADL_(l_ulong)]; l_ulong addr; char addr_r_[PADR_(l_ulong)];
char old_len_l_[PADL_(l_ulong)]; l_ulong old_len; char old_len_r_[PADR_(l_ulong)];
char new_len_l_[PADL_(l_ulong)]; l_ulong new_len; char new_len_r_[PADR_(l_ulong)];
char flags_l_[PADL_(l_ulong)]; l_ulong flags; char flags_r_[PADR_(l_ulong)];
char new_addr_l_[PADL_(l_ulong)]; l_ulong new_addr; char new_addr_r_[PADR_(l_ulong)];
};
struct linux_nfsservctl_args {
register_t dummy;
};
struct linux_pciconfig_read_args {
register_t dummy;
};
struct linux_pciconfig_write_args {
register_t dummy;
};
struct linux_query_module_args {
register_t dummy;
};
struct linux_prctl_args {
register_t dummy;
};
struct linux_pread_args {
char fd_l_[PADL_(l_uint)]; l_uint fd; char fd_r_[PADR_(l_uint)];
char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
char nbyte_l_[PADL_(l_size_t)]; l_size_t nbyte; char nbyte_r_[PADR_(l_size_t)];
char offset_l_[PADL_(l_loff_t)]; l_loff_t offset; char offset_r_[PADR_(l_loff_t)];
};
struct linux_pwrite_args {
char fd_l_[PADL_(l_uint)]; l_uint fd; char fd_r_[PADR_(l_uint)];
char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
char nbyte_l_[PADL_(l_size_t)]; l_size_t nbyte; char nbyte_r_[PADR_(l_size_t)];
char offset_l_[PADL_(l_loff_t)]; l_loff_t offset; char offset_r_[PADR_(l_loff_t)];
};
struct linux_rt_sigreturn_args {
register_t dummy;
};
struct linux_rt_sigaction_args {
char sig_l_[PADL_(l_int)]; l_int sig; char sig_r_[PADR_(l_int)];
char act_l_[PADL_(l_sigaction_t *)]; l_sigaction_t * act; char act_r_[PADR_(l_sigaction_t *)];
char oact_l_[PADL_(l_sigaction_t *)]; l_sigaction_t * oact; char oact_r_[PADR_(l_sigaction_t *)];
char sigsetsize_l_[PADL_(l_size_t)]; l_size_t sigsetsize; char sigsetsize_r_[PADR_(l_size_t)];
};
struct linux_rt_sigprocmask_args {
char how_l_[PADL_(l_int)]; l_int how; char how_r_[PADR_(l_int)];
char mask_l_[PADL_(l_sigset_t *)]; l_sigset_t * mask; char mask_r_[PADR_(l_sigset_t *)];
char omask_l_[PADL_(l_sigset_t *)]; l_sigset_t * omask; char omask_r_[PADR_(l_sigset_t *)];
char sigsetsize_l_[PADL_(l_size_t)]; l_size_t sigsetsize; char sigsetsize_r_[PADR_(l_size_t)];
};
struct linux_rt_sigpending_args {
register_t dummy;
};
struct linux_rt_sigtimedwait_args {
register_t dummy;
};
struct linux_rt_sigqueueinfo_args {
register_t dummy;
};
struct linux_rt_sigsuspend_args {
char newset_l_[PADL_(l_sigset_t *)]; l_sigset_t * newset; char newset_r_[PADR_(l_sigset_t *)];
char sigsetsize_l_[PADL_(l_size_t)]; l_size_t sigsetsize; char sigsetsize_r_[PADR_(l_size_t)];
};
struct linux_select_args {
char nfds_l_[PADL_(l_int)]; l_int nfds; char nfds_r_[PADR_(l_int)];
char readfds_l_[PADL_(l_fd_set *)]; l_fd_set * readfds; char readfds_r_[PADR_(l_fd_set *)];
char writefds_l_[PADL_(l_fd_set *)]; l_fd_set * writefds; char writefds_r_[PADR_(l_fd_set *)];
char exceptfds_l_[PADL_(l_fd_set *)]; l_fd_set * exceptfds; char exceptfds_r_[PADR_(l_fd_set *)];
char timeout_l_[PADL_(struct l_timeval *)]; struct l_timeval * timeout; char timeout_r_[PADR_(struct l_timeval *)];
};
struct linux_getitimer_args {
char which_l_[PADL_(l_int)]; l_int which; char which_r_[PADR_(l_int)];
char itv_l_[PADL_(struct l_itimerval *)]; struct l_itimerval * itv; char itv_r_[PADR_(struct l_itimerval *)];
};
struct linux_setitimer_args {
char which_l_[PADL_(l_int)]; l_int which; char which_r_[PADR_(l_int)];
char itv_l_[PADL_(struct l_itimerval *)]; struct l_itimerval * itv; char itv_r_[PADR_(struct l_itimerval *)];
char oitv_l_[PADL_(struct l_itimerval *)]; struct l_itimerval * oitv; char oitv_r_[PADR_(struct l_itimerval *)];
};
struct linux_utimes_args {
char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)];
char times_l_[PADL_(struct l_timeval *)]; struct l_timeval * times; char times_r_[PADR_(struct l_timeval *)];
};
struct linux_wait4_args {
char pid_l_[PADL_(l_pid_t)]; l_pid_t pid; char pid_r_[PADR_(l_pid_t)];
char status_l_[PADL_(l_uint *)]; l_uint * status; char status_r_[PADR_(l_uint *)];
char options_l_[PADL_(l_int)]; l_int options; char options_r_[PADR_(l_int)];
char rusage_l_[PADL_(struct l_rusage *)]; struct l_rusage * rusage; char rusage_r_[PADR_(struct l_rusage *)];
};
struct linux_adjtimex_args {
register_t dummy;
};
struct linux_getcwd_args {
char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
char bufsize_l_[PADL_(l_ulong)]; l_ulong bufsize; char bufsize_r_[PADR_(l_ulong)];
};
struct linux_capget_args {
register_t dummy;
};
struct linux_capset_args {
register_t dummy;
};
struct linux_sendfile_args {
register_t dummy;
};
struct linux_pivot_root_args {
char new_root_l_[PADL_(char *)]; char * new_root; char new_root_r_[PADR_(char *)];
char put_old_l_[PADL_(char *)]; char * put_old; char put_old_r_[PADR_(char *)];
};
struct linux_mincore_args {
char start_l_[PADL_(l_ulong)]; l_ulong start; char start_r_[PADR_(l_ulong)];
char len_l_[PADL_(l_size_t)]; l_size_t len; char len_r_[PADR_(l_size_t)];
char vec_l_[PADL_(u_char *)]; u_char * vec; char vec_r_[PADR_(u_char *)];
};
struct linux_pciconfig_iobase_args {
register_t dummy;
};
struct linux_getdents64_args {
char fd_l_[PADL_(l_uint)]; l_uint fd; char fd_r_[PADR_(l_uint)];
char dirent_l_[PADL_(void *)]; void * dirent; char dirent_r_[PADR_(void *)];
char count_l_[PADL_(l_uint)]; l_uint count; char count_r_[PADR_(l_uint)];
};
#define nosys linux_nosys
int linux_fork(struct thread *, struct linux_fork_args *);
int osf1_wait4(struct thread *, struct osf1_wait4_args *);
int linux_link(struct thread *, struct linux_link_args *);
int linux_unlink(struct thread *, struct linux_unlink_args *);
int linux_chdir(struct thread *, struct linux_chdir_args *);
int linux_mknod(struct thread *, struct linux_mknod_args *);
int linux_chmod(struct thread *, struct linux_chmod_args *);
int linux_chown(struct thread *, struct linux_chown_args *);
int linux_brk(struct thread *, struct linux_brk_args *);
int linux_lseek(struct thread *, struct linux_lseek_args *);
int linux_umount(struct thread *, struct linux_umount_args *);
int linux_ptrace(struct thread *, struct linux_ptrace_args *);
int linux_access(struct thread *, struct linux_access_args *);
int linux_kill(struct thread *, struct linux_kill_args *);
int linux_open(struct thread *, struct linux_open_args *);
int osf1_sigprocmask(struct thread *, struct osf1_sigprocmask_args *);
int linux_sigpending(struct thread *, struct linux_sigpending_args *);
int linux_ioctl(struct thread *, struct linux_ioctl_args *);
int linux_symlink(struct thread *, struct linux_symlink_args *);
int linux_readlink(struct thread *, struct linux_readlink_args *);
int linux_execve(struct thread *, struct linux_execve_args *);
int linux_getpagesize(struct thread *, struct linux_getpagesize_args *);
int linux_vfork(struct thread *, struct linux_vfork_args *);
int linux_newstat(struct thread *, struct linux_newstat_args *);
int linux_newlstat(struct thread *, struct linux_newlstat_args *);
int linux_mmap(struct thread *, struct linux_mmap_args *);
int linux_munmap(struct thread *, struct linux_munmap_args *);
int linux_mprotect(struct thread *, struct linux_mprotect_args *);
int linux_vhangup(struct thread *, struct linux_vhangup_args *);
int linux_setgroups(struct thread *, struct linux_setgroups_args *);
int linux_getgroups(struct thread *, struct linux_getgroups_args *);
int osf1_setitimer(struct thread *, struct osf1_setitimer_args *);
int linux_gethostname(struct thread *, struct linux_gethostname_args *);
int linux_sethostname(struct thread *, struct linux_sethostname_args *);
int linux_getdtablesize(struct thread *, struct linux_getdtablesize_args *);
int linux_newfstat(struct thread *, struct linux_newfstat_args *);
int linux_fcntl(struct thread *, struct linux_fcntl_args *);
int osf1_select(struct thread *, struct osf1_select_args *);
int osf1_socket(struct thread *, struct osf1_socket_args *);
int linux_connect(struct thread *, struct linux_connect_args *);
int linux_accept(struct thread *, struct linux_accept_args *);
int linux_getpriority(struct thread *, struct linux_getpriority_args *);
int linux_send(struct thread *, struct linux_send_args *);
int linux_recv(struct thread *, struct linux_recv_args *);
int osf1_sigreturn(struct thread *, struct osf1_sigreturn_args *);
int osf1_sigsuspend(struct thread *, struct osf1_sigsuspend_args *);
int linux_recvmsg(struct thread *, struct linux_recvmsg_args *);
int linux_sendmsg(struct thread *, struct linux_sendmsg_args *);
int osf1_gettimeofday(struct thread *, struct osf1_gettimeofday_args *);
int osf1_getrusage(struct thread *, struct osf1_getrusage_args *);
int linux_recvfrom(struct thread *, struct linux_recvfrom_args *);
int linux_rename(struct thread *, struct linux_rename_args *);
int linux_truncate(struct thread *, struct linux_truncate_args *);
int linux_ftruncate(struct thread *, struct linux_ftruncate_args *);
int osf1_sendto(struct thread *, struct osf1_sendto_args *);
int linux_socketpair(struct thread *, struct linux_socketpair_args *);
int linux_mkdir(struct thread *, struct linux_mkdir_args *);
int linux_rmdir(struct thread *, struct linux_rmdir_args *);
int linux_getpeername(struct thread *, struct linux_getpeername_args *);
int linux_getrlimit(struct thread *, struct linux_getrlimit_args *);
int linux_setrlimit(struct thread *, struct linux_setrlimit_args *);
int linux_quotactl(struct thread *, struct linux_quotactl_args *);
int linux_getsockname(struct thread *, struct linux_getsockname_args *);
int osf1_sigaction(struct thread *, struct osf1_sigaction_args *);
int linux_msgctl(struct thread *, struct linux_msgctl_args *);
int linux_msgget(struct thread *, struct linux_msgget_args *);
int linux_msgrcv(struct thread *, struct linux_msgrcv_args *);
int linux_msgsnd(struct thread *, struct linux_msgsnd_args *);
int linux_semctl(struct thread *, struct linux_semctl_args *);
int linux_semget(struct thread *, struct linux_semget_args *);
int linux_semop(struct thread *, struct linux_semop_args *);
int linux_lchown(struct thread *, struct linux_lchown_args *);
int linux_shmat(struct thread *, struct linux_shmat_args *);
int linux_shmctl(struct thread *, struct linux_shmctl_args *);
int linux_shmdt(struct thread *, struct linux_shmdt_args *);
int linux_shmget(struct thread *, struct linux_shmget_args *);
int linux_msync(struct thread *, struct linux_msync_args *);
int linux_getsid(struct thread *, struct linux_getsid_args *);
int linux_sigaltstack(struct thread *, struct linux_sigaltstack_args *);
int osf1_sysinfo(struct thread *, struct osf1_sysinfo_args *);
int linux_sysfs(struct thread *, struct linux_sysfs_args *);
int osf1_getsysinfo(struct thread *, struct osf1_getsysinfo_args *);
int osf1_setsysinfo(struct thread *, struct osf1_setsysinfo_args *);
int linux_bdflush(struct thread *, struct linux_bdflush_args *);
int linux_sethae(struct thread *, struct linux_sethae_args *);
int linux_mount(struct thread *, struct linux_mount_args *);
int linux_old_adjtimex(struct thread *, struct linux_old_adjtimex_args *);
int linux_swapoff(struct thread *, struct linux_swapoff_args *);
int linux_getdents(struct thread *, struct linux_getdents_args *);
int linux_create_module(struct thread *, struct linux_create_module_args *);
int linux_init_module(struct thread *, struct linux_init_module_args *);
int linux_delete_module(struct thread *, struct linux_delete_module_args *);
int linux_get_kernel_syms(struct thread *, struct linux_get_kernel_syms_args *);
int linux_syslog(struct thread *, struct linux_syslog_args *);
int linux_reboot(struct thread *, struct linux_reboot_args *);
int linux_clone(struct thread *, struct linux_clone_args *);
int linux_uselib(struct thread *, struct linux_uselib_args *);
int linux_sysinfo(struct thread *, struct linux_sysinfo_args *);
int linux_sysctl(struct thread *, struct linux_sysctl_args *);
int linux_oldumount(struct thread *, struct linux_oldumount_args *);
int linux_times(struct thread *, struct linux_times_args *);
int linux_personality(struct thread *, struct linux_personality_args *);
int linux_setfsuid(struct thread *, struct linux_setfsuid_args *);
int linux_setfsgid(struct thread *, struct linux_setfsgid_args *);
int linux_ustat(struct thread *, struct linux_ustat_args *);
int linux_statfs(struct thread *, struct linux_statfs_args *);
int linux_fstatfs(struct thread *, struct linux_fstatfs_args *);
int linux_sched_setscheduler(struct thread *, struct linux_sched_setscheduler_args *);
int linux_sched_getscheduler(struct thread *, struct linux_sched_getscheduler_args *);
int linux_sched_get_priority_max(struct thread *, struct linux_sched_get_priority_max_args *);
int linux_sched_get_priority_min(struct thread *, struct linux_sched_get_priority_min_args *);
int linux_newuname(struct thread *, struct linux_newuname_args *);
int linux_mremap(struct thread *, struct linux_mremap_args *);
int linux_nfsservctl(struct thread *, struct linux_nfsservctl_args *);
int linux_pciconfig_read(struct thread *, struct linux_pciconfig_read_args *);
int linux_pciconfig_write(struct thread *, struct linux_pciconfig_write_args *);
int linux_query_module(struct thread *, struct linux_query_module_args *);
int linux_prctl(struct thread *, struct linux_prctl_args *);
int linux_pread(struct thread *, struct linux_pread_args *);
int linux_pwrite(struct thread *, struct linux_pwrite_args *);
int linux_rt_sigreturn(struct thread *, struct linux_rt_sigreturn_args *);
int linux_rt_sigaction(struct thread *, struct linux_rt_sigaction_args *);
int linux_rt_sigprocmask(struct thread *, struct linux_rt_sigprocmask_args *);
int linux_rt_sigpending(struct thread *, struct linux_rt_sigpending_args *);
int linux_rt_sigtimedwait(struct thread *, struct linux_rt_sigtimedwait_args *);
int linux_rt_sigqueueinfo(struct thread *, struct linux_rt_sigqueueinfo_args *);
int linux_rt_sigsuspend(struct thread *, struct linux_rt_sigsuspend_args *);
int linux_select(struct thread *, struct linux_select_args *);
int linux_getitimer(struct thread *, struct linux_getitimer_args *);
int linux_setitimer(struct thread *, struct linux_setitimer_args *);
int linux_utimes(struct thread *, struct linux_utimes_args *);
int linux_wait4(struct thread *, struct linux_wait4_args *);
int linux_adjtimex(struct thread *, struct linux_adjtimex_args *);
int linux_getcwd(struct thread *, struct linux_getcwd_args *);
int linux_capget(struct thread *, struct linux_capget_args *);
int linux_capset(struct thread *, struct linux_capset_args *);
int linux_sendfile(struct thread *, struct linux_sendfile_args *);
int linux_pivot_root(struct thread *, struct linux_pivot_root_args *);
int linux_mincore(struct thread *, struct linux_mincore_args *);
int linux_pciconfig_iobase(struct thread *, struct linux_pciconfig_iobase_args *);
int linux_getdents64(struct thread *, struct linux_getdents64_args *);
#ifdef COMPAT_43
#define nosys linux_nosys
#endif /* COMPAT_43 */
#ifdef COMPAT_FREEBSD4
#define nosys linux_nosys
#endif /* COMPAT_FREEBSD4 */
#undef PAD_
#undef PADL_
#undef PADR_
#endif /* !_LINUX_SYSPROTO_H_ */

View File

@ -1,206 +0,0 @@
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: src/sys/alpha/linux/syscalls.master,v 1.69 2006/03/20 19:46:56 netchild Exp
*/
#define LINUX_SYS_exit 1
#define LINUX_SYS_linux_fork 2
#define LINUX_SYS_read 3
#define LINUX_SYS_write 4
#define LINUX_SYS_close 6
#define LINUX_SYS_osf1_wait4 7
#define LINUX_SYS_linux_link 9
#define LINUX_SYS_linux_unlink 10
#define LINUX_SYS_linux_chdir 12
#define LINUX_SYS_fchdir 13
#define LINUX_SYS_linux_mknod 14
#define LINUX_SYS_linux_chmod 15
#define LINUX_SYS_linux_chown 16
#define LINUX_SYS_linux_brk 17
#define LINUX_SYS_linux_lseek 19
#define LINUX_SYS_getpid 20
#define LINUX_SYS_linux_umount 22
#define LINUX_SYS_setuid 23
#define LINUX_SYS_getuid 24
#define LINUX_SYS_linux_ptrace 26
#define LINUX_SYS_linux_access 33
#define LINUX_SYS_sync 36
#define LINUX_SYS_linux_kill 37
#define LINUX_SYS_setpgid 39
#define LINUX_SYS_dup 41
#define LINUX_SYS_pipe 42
#define LINUX_SYS_linux_open 45
#define LINUX_SYS_getgid 47
#define LINUX_SYS_osf1_sigprocmask 48
#define LINUX_SYS_acct 51
#define LINUX_SYS_linux_sigpending 52
#define LINUX_SYS_linux_ioctl 54
#define LINUX_SYS_linux_symlink 57
#define LINUX_SYS_linux_readlink 58
#define LINUX_SYS_linux_execve 59
#define LINUX_SYS_umask 60
#define LINUX_SYS_chroot 61
#define LINUX_SYS_getpgrp 63
#define LINUX_SYS_linux_getpagesize 64
#define LINUX_SYS_linux_vfork 66
#define LINUX_SYS_linux_newstat 67
#define LINUX_SYS_linux_newlstat 68
#define LINUX_SYS_linux_mmap 71
#define LINUX_SYS_linux_munmap 73
#define LINUX_SYS_linux_mprotect 74
#define LINUX_SYS_madvise 75
#define LINUX_SYS_linux_vhangup 76
#define LINUX_SYS_linux_setgroups 79
#define LINUX_SYS_linux_getgroups 80
#define LINUX_SYS_osf1_setitimer 83
#define LINUX_SYS_linux_gethostname 87
#define LINUX_SYS_linux_sethostname 88
#define LINUX_SYS_linux_getdtablesize 89
#define LINUX_SYS_dup2 90
#define LINUX_SYS_linux_newfstat 91
#define LINUX_SYS_linux_fcntl 92
#define LINUX_SYS_osf1_select 93
#define LINUX_SYS_poll 94
#define LINUX_SYS_fsync 95
#define LINUX_SYS_setpriority 96
#define LINUX_SYS_osf1_socket 97
#define LINUX_SYS_linux_connect 98
#define LINUX_SYS_linux_accept 99
#define LINUX_SYS_linux_getpriority 100
#define LINUX_SYS_linux_send 101
#define LINUX_SYS_linux_recv 102
#define LINUX_SYS_osf1_sigreturn 103
#define LINUX_SYS_bind 104
#define LINUX_SYS_setsockopt 105
#define LINUX_SYS_listen 106
#define LINUX_SYS_osf1_sigsuspend 111
#define LINUX_SYS_linux_recvmsg 113
#define LINUX_SYS_linux_sendmsg 114
#define LINUX_SYS_osf1_gettimeofday 116
#define LINUX_SYS_osf1_getrusage 117
#define LINUX_SYS_getsockopt 118
#define LINUX_SYS_readv 120
#define LINUX_SYS_writev 121
#define LINUX_SYS_fchown 123
#define LINUX_SYS_fchmod 124
#define LINUX_SYS_linux_recvfrom 125
#define LINUX_SYS_setreuid 126
#define LINUX_SYS_setregid 127
#define LINUX_SYS_linux_rename 128
#define LINUX_SYS_linux_truncate 129
#define LINUX_SYS_linux_ftruncate 130
#define LINUX_SYS_flock 131
#define LINUX_SYS_setgid 132
#define LINUX_SYS_osf1_sendto 133
#define LINUX_SYS_shutdown 134
#define LINUX_SYS_linux_socketpair 135
#define LINUX_SYS_linux_mkdir 136
#define LINUX_SYS_linux_rmdir 137
#define LINUX_SYS_utimes 138
#define LINUX_SYS_linux_getpeername 141
#define LINUX_SYS_linux_getrlimit 144
#define LINUX_SYS_linux_setrlimit 145
#define LINUX_SYS_setsid 147
#define LINUX_SYS_linux_quotactl 148
#define LINUX_SYS_linux_getsockname 150
#define LINUX_SYS_osf1_sigaction 156
#define LINUX_SYS_setdomainname 166
#define LINUX_SYS_linux_msgctl 200
#define LINUX_SYS_linux_msgget 201
#define LINUX_SYS_linux_msgrcv 202
#define LINUX_SYS_linux_msgsnd 203
#define LINUX_SYS_linux_semctl 204
#define LINUX_SYS_linux_semget 205
#define LINUX_SYS_linux_semop 206
#define LINUX_SYS_linux_lchown 208
#define LINUX_SYS_linux_shmat 209
#define LINUX_SYS_linux_shmctl 210
#define LINUX_SYS_linux_shmdt 211
#define LINUX_SYS_linux_shmget 212
#define LINUX_SYS_linux_msync 217
#define LINUX_SYS_getpgid 233
#define LINUX_SYS_linux_getsid 234
#define LINUX_SYS_linux_sigaltstack 235
#define LINUX_SYS_osf1_sysinfo 241
#define LINUX_SYS_linux_sysfs 254
#define LINUX_SYS_osf1_getsysinfo 256
#define LINUX_SYS_osf1_setsysinfo 257
#define LINUX_SYS_linux_bdflush 300
#define LINUX_SYS_linux_sethae 301
#define LINUX_SYS_linux_mount 302
#define LINUX_SYS_linux_old_adjtimex 303
#define LINUX_SYS_linux_swapoff 304
#define LINUX_SYS_linux_getdents 305
#define LINUX_SYS_linux_create_module 306
#define LINUX_SYS_linux_init_module 307
#define LINUX_SYS_linux_delete_module 308
#define LINUX_SYS_linux_get_kernel_syms 309
#define LINUX_SYS_linux_syslog 310
#define LINUX_SYS_linux_reboot 311
#define LINUX_SYS_linux_clone 312
#define LINUX_SYS_linux_uselib 313
#define LINUX_SYS_mlock 314
#define LINUX_SYS_munlock 315
#define LINUX_SYS_mlockall 316
#define LINUX_SYS_munlockall 317
#define LINUX_SYS_linux_sysinfo 318
#define LINUX_SYS_linux_sysctl 319
#define LINUX_SYS_linux_oldumount 321
#define LINUX_SYS_swapon 322
#define LINUX_SYS_linux_times 323
#define LINUX_SYS_linux_personality 324
#define LINUX_SYS_linux_setfsuid 325
#define LINUX_SYS_linux_setfsgid 326
#define LINUX_SYS_linux_ustat 327
#define LINUX_SYS_linux_statfs 328
#define LINUX_SYS_linux_fstatfs 329
#define LINUX_SYS_sched_setparam 330
#define LINUX_SYS_sched_getparam 331
#define LINUX_SYS_linux_sched_setscheduler 332
#define LINUX_SYS_linux_sched_getscheduler 333
#define LINUX_SYS_sched_yield 334
#define LINUX_SYS_linux_sched_get_priority_max 335
#define LINUX_SYS_linux_sched_get_priority_min 336
#define LINUX_SYS_sched_rr_get_interval 337
#define LINUX_SYS_linux_newuname 339
#define LINUX_SYS_nanosleep 340
#define LINUX_SYS_linux_mremap 341
#define LINUX_SYS_linux_nfsservctl 342
#define LINUX_SYS_setresuid 343
#define LINUX_SYS_getresuid 344
#define LINUX_SYS_linux_pciconfig_read 345
#define LINUX_SYS_linux_pciconfig_write 346
#define LINUX_SYS_linux_query_module 347
#define LINUX_SYS_linux_prctl 348
#define LINUX_SYS_linux_pread 349
#define LINUX_SYS_linux_pwrite 350
#define LINUX_SYS_linux_rt_sigreturn 351
#define LINUX_SYS_linux_rt_sigaction 352
#define LINUX_SYS_linux_rt_sigprocmask 353
#define LINUX_SYS_linux_rt_sigpending 354
#define LINUX_SYS_linux_rt_sigtimedwait 355
#define LINUX_SYS_linux_rt_sigqueueinfo 356
#define LINUX_SYS_linux_rt_sigsuspend 357
#define LINUX_SYS_linux_select 358
#define LINUX_SYS_gettimeofday 359
#define LINUX_SYS_settimeofday 360
#define LINUX_SYS_linux_getitimer 361
#define LINUX_SYS_linux_setitimer 362
#define LINUX_SYS_linux_utimes 363
#define LINUX_SYS_getrusage 364
#define LINUX_SYS_linux_wait4 365
#define LINUX_SYS_linux_adjtimex 366
#define LINUX_SYS_linux_getcwd 367
#define LINUX_SYS_linux_capget 368
#define LINUX_SYS_linux_capset 369
#define LINUX_SYS_linux_sendfile 370
#define LINUX_SYS_setresgid 371
#define LINUX_SYS_getresgid 372
#define LINUX_SYS_linux_pivot_root 374
#define LINUX_SYS_linux_mincore 375
#define LINUX_SYS_linux_pciconfig_iobase 376
#define LINUX_SYS_linux_getdents64 377
#define LINUX_SYS_MAXSYSCALL 378

View File

@ -1,400 +0,0 @@
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: src/sys/alpha/linux/syscalls.master,v 1.69 2006/03/20 19:46:56 netchild Exp
*/
#include <bsm/audit_kevents.h>
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
#include <compat/linux/linux_sysproto.h>
#include <alpha/linux/linux.h>
#include <alpha/linux/linux_proto.h>
#define AS(name) (sizeof(struct name) / sizeof(register_t))
/* The casts are bogus but will do for now. */
struct sysent linux_sysent[] = {
#define nosys linux_nosys
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 0 = */
{ SYF_MPSAFE | AS(sys_exit_args), (sy_call_t *)sys_exit, AUE_EXIT }, /* 1 = exit */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_fork, AUE_FORK }, /* 2 = linux_fork */
{ SYF_MPSAFE | AS(read_args), (sy_call_t *)read, AUE_READ }, /* 3 = read */
{ SYF_MPSAFE | AS(write_args), (sy_call_t *)write, AUE_WRITE }, /* 4 = write */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 5 = */
{ SYF_MPSAFE | AS(close_args), (sy_call_t *)close, AUE_CLOSE }, /* 6 = close */
{ SYF_MPSAFE | AS(osf1_wait4_args), (sy_call_t *)osf1_wait4, AUE_WAIT4 }, /* 7 = osf1_wait4 */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 8 = */
{ SYF_MPSAFE | AS(linux_link_args), (sy_call_t *)linux_link, AUE_LINK }, /* 9 = linux_link */
{ SYF_MPSAFE | AS(linux_unlink_args), (sy_call_t *)linux_unlink, AUE_UNLINK }, /* 10 = linux_unlink */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 11 = */
{ SYF_MPSAFE | AS(linux_chdir_args), (sy_call_t *)linux_chdir, AUE_CHDIR }, /* 12 = linux_chdir */
{ SYF_MPSAFE | AS(fchdir_args), (sy_call_t *)fchdir, AUE_FCHDIR }, /* 13 = fchdir */
{ SYF_MPSAFE | AS(linux_mknod_args), (sy_call_t *)linux_mknod, AUE_MKNOD }, /* 14 = linux_mknod */
{ SYF_MPSAFE | AS(linux_chmod_args), (sy_call_t *)linux_chmod, AUE_CHMOD }, /* 15 = linux_chmod */
{ SYF_MPSAFE | AS(linux_chown_args), (sy_call_t *)linux_chown, AUE_CHOWN }, /* 16 = linux_chown */
{ AS(linux_brk_args), (sy_call_t *)linux_brk, AUE_NULL }, /* 17 = linux_brk */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 18 = */
{ SYF_MPSAFE | AS(linux_lseek_args), (sy_call_t *)linux_lseek, AUE_LSEEK }, /* 19 = linux_lseek */
{ SYF_MPSAFE | 0, (sy_call_t *)getpid, AUE_GETPID }, /* 20 = getpid */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 21 = osf1_mount */
{ AS(linux_umount_args), (sy_call_t *)linux_umount, AUE_UNMOUNT }, /* 22 = linux_umount */
{ SYF_MPSAFE | AS(setuid_args), (sy_call_t *)setuid, AUE_SETUID }, /* 23 = setuid */
{ SYF_MPSAFE | 0, (sy_call_t *)getuid, AUE_GETUID }, /* 24 = getuid */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 25 = */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_ptrace, AUE_PTRACE }, /* 26 = linux_ptrace */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 27 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 28 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 29 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 30 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 31 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 32 = */
{ SYF_MPSAFE | AS(linux_access_args), (sy_call_t *)linux_access, AUE_ACCESS }, /* 33 = linux_access */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 34 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 35 = */
{ SYF_MPSAFE | 0, (sy_call_t *)sync, AUE_SYNC }, /* 36 = sync */
{ SYF_MPSAFE | AS(linux_kill_args), (sy_call_t *)linux_kill, AUE_KILL }, /* 37 = linux_kill */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 38 = */
{ SYF_MPSAFE | AS(setpgid_args), (sy_call_t *)setpgid, AUE_SETPGRP }, /* 39 = setpgid */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 40 = */
{ SYF_MPSAFE | AS(dup_args), (sy_call_t *)dup, AUE_DUP }, /* 41 = dup */
{ SYF_MPSAFE | 0, (sy_call_t *)pipe, AUE_PIPE }, /* 42 = pipe */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 43 = osf_set_program_attributes */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 44 = */
{ SYF_MPSAFE | AS(linux_open_args), (sy_call_t *)linux_open, AUE_OPEN_RWTC }, /* 45 = linux_open */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 46 = */
{ SYF_MPSAFE | 0, (sy_call_t *)getgid, AUE_GETGID }, /* 47 = getgid */
{ SYF_MPSAFE | AS(osf1_sigprocmask_args), (sy_call_t *)osf1_sigprocmask, AUE_SIGPROCMASK }, /* 48 = osf1_sigprocmask */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 49 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 50 = */
{ SYF_MPSAFE | AS(acct_args), (sy_call_t *)acct, AUE_ACCT }, /* 51 = acct */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_sigpending, AUE_SIGPENDING }, /* 52 = linux_sigpending */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 53 = */
{ AS(linux_ioctl_args), (sy_call_t *)linux_ioctl, AUE_IOCTL }, /* 54 = linux_ioctl */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 55 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 56 = */
{ SYF_MPSAFE | AS(linux_symlink_args), (sy_call_t *)linux_symlink, AUE_SYMLINK }, /* 57 = linux_symlink */
{ SYF_MPSAFE | AS(linux_readlink_args), (sy_call_t *)linux_readlink, AUE_READLINK }, /* 58 = linux_readlink */
{ SYF_MPSAFE | AS(linux_execve_args), (sy_call_t *)linux_execve, AUE_EXECVE }, /* 59 = linux_execve */
{ SYF_MPSAFE | AS(umask_args), (sy_call_t *)umask, AUE_UMASK }, /* 60 = umask */
{ SYF_MPSAFE | AS(chroot_args), (sy_call_t *)chroot, AUE_CHROOT }, /* 61 = chroot */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 62 = */
{ SYF_MPSAFE | 0, (sy_call_t *)getpgrp, AUE_GETPGRP }, /* 63 = getpgrp */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_getpagesize, AUE_O_GETPAGESIZE }, /* 64 = linux_getpagesize */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 65 = */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_vfork, AUE_VFORK }, /* 66 = linux_vfork */
{ SYF_MPSAFE | AS(linux_newstat_args), (sy_call_t *)linux_newstat, AUE_STAT }, /* 67 = linux_newstat */
{ SYF_MPSAFE | AS(linux_newlstat_args), (sy_call_t *)linux_newlstat, AUE_LSTAT }, /* 68 = linux_newlstat */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 69 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 70 = */
{ SYF_MPSAFE | AS(linux_mmap_args), (sy_call_t *)linux_mmap, AUE_MMAP }, /* 71 = linux_mmap */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 72 = */
{ SYF_MPSAFE | AS(linux_munmap_args), (sy_call_t *)linux_munmap, AUE_MUNMAP }, /* 73 = linux_munmap */
{ SYF_MPSAFE | AS(linux_mprotect_args), (sy_call_t *)linux_mprotect, AUE_MPROTECT }, /* 74 = linux_mprotect */
{ SYF_MPSAFE | AS(madvise_args), (sy_call_t *)madvise, AUE_MADVISE }, /* 75 = madvise */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_vhangup, AUE_O_VHANGUP }, /* 76 = linux_vhangup */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 77 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 78 = */
{ SYF_MPSAFE | AS(linux_setgroups_args), (sy_call_t *)linux_setgroups, AUE_SETGROUPS }, /* 79 = linux_setgroups */
{ SYF_MPSAFE | AS(linux_getgroups_args), (sy_call_t *)linux_getgroups, AUE_GETGROUPS }, /* 80 = linux_getgroups */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 81 = */
{ SYF_MPSAFE | AS(setpgid_args), (sy_call_t *)setpgid, AUE_NULL }, /* 82 = setpgid */
{ SYF_MPSAFE | AS(osf1_setitimer_args), (sy_call_t *)osf1_setitimer, AUE_SETITIMER }, /* 83 = osf1_setitimer */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 84 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 85 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 86 = osf_getitimer */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_gethostname, AUE_SYSCTL }, /* 87 = linux_gethostname */
{ SYF_MPSAFE | AS(linux_sethostname_args), (sy_call_t *)linux_sethostname, AUE_SYSCTL }, /* 88 = linux_sethostname */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_getdtablesize, AUE_GETDTABLESIZE }, /* 89 = linux_getdtablesize */
{ SYF_MPSAFE | AS(dup2_args), (sy_call_t *)dup2, AUE_DUP2 }, /* 90 = dup2 */
{ SYF_MPSAFE | AS(linux_newfstat_args), (sy_call_t *)linux_newfstat, AUE_FSTAT }, /* 91 = linux_newfstat */
{ SYF_MPSAFE | AS(linux_fcntl_args), (sy_call_t *)linux_fcntl, AUE_FCNTL }, /* 92 = linux_fcntl */
{ SYF_MPSAFE | AS(osf1_select_args), (sy_call_t *)osf1_select, AUE_SELECT }, /* 93 = osf1_select */
{ SYF_MPSAFE | AS(poll_args), (sy_call_t *)poll, AUE_POLL }, /* 94 = poll */
{ SYF_MPSAFE | AS(fsync_args), (sy_call_t *)fsync, AUE_FSYNC }, /* 95 = fsync */
{ SYF_MPSAFE | AS(setpriority_args), (sy_call_t *)setpriority, AUE_SETPRIORITY }, /* 96 = setpriority */
{ SYF_MPSAFE | AS(osf1_socket_args), (sy_call_t *)osf1_socket, AUE_SOCKET }, /* 97 = osf1_socket */
{ SYF_MPSAFE | AS(linux_connect_args), (sy_call_t *)linux_connect, AUE_CONNECT }, /* 98 = linux_connect */
{ SYF_MPSAFE | AS(linux_accept_args), (sy_call_t *)linux_accept, AUE_ACCEPT }, /* 99 = linux_accept */
{ SYF_MPSAFE | AS(linux_getpriority_args), (sy_call_t *)linux_getpriority, AUE_GETPRIORITY }, /* 100 = linux_getpriority */
{ SYF_MPSAFE | AS(linux_send_args), (sy_call_t *)linux_send, AUE_SEND }, /* 101 = linux_send */
{ SYF_MPSAFE | AS(linux_recv_args), (sy_call_t *)linux_recv, AUE_RECV }, /* 102 = linux_recv */
{ SYF_MPSAFE | AS(osf1_sigreturn_args), (sy_call_t *)osf1_sigreturn, AUE_NULL }, /* 103 = osf1_sigreturn */
{ SYF_MPSAFE | AS(bind_args), (sy_call_t *)bind, AUE_BIND }, /* 104 = bind */
{ SYF_MPSAFE | AS(setsockopt_args), (sy_call_t *)setsockopt, AUE_SETSOCKOPT }, /* 105 = setsockopt */
{ SYF_MPSAFE | AS(listen_args), (sy_call_t *)listen, AUE_LISTEN }, /* 106 = listen */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 107 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 108 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 109 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 110 = */
{ SYF_MPSAFE | AS(osf1_sigsuspend_args), (sy_call_t *)osf1_sigsuspend, AUE_NULL }, /* 111 = osf1_sigsuspend */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 112 = osf_sigstack */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_recvmsg, AUE_RECVMSG }, /* 113 = linux_recvmsg */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_sendmsg, AUE_SENDMSG }, /* 114 = linux_sendmsg */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 115 = */
{ SYF_MPSAFE | AS(osf1_gettimeofday_args), (sy_call_t *)osf1_gettimeofday, AUE_NULL }, /* 116 = osf1_gettimeofday */
{ SYF_MPSAFE | AS(osf1_getrusage_args), (sy_call_t *)osf1_getrusage, AUE_GETRUSAGE }, /* 117 = osf1_getrusage */
{ SYF_MPSAFE | AS(getsockopt_args), (sy_call_t *)getsockopt, AUE_GETSOCKOPT }, /* 118 = getsockopt */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 119 = */
{ SYF_MPSAFE | AS(readv_args), (sy_call_t *)readv, AUE_READV }, /* 120 = readv */
{ SYF_MPSAFE | AS(writev_args), (sy_call_t *)writev, AUE_WRITEV }, /* 121 = writev */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 122 = osf_settimeofday */
{ AS(fchown_args), (sy_call_t *)fchown, AUE_FCHOWN }, /* 123 = fchown */
{ AS(fchmod_args), (sy_call_t *)fchmod, AUE_FCHMOD }, /* 124 = fchmod */
{ SYF_MPSAFE | AS(linux_recvfrom_args), (sy_call_t *)linux_recvfrom, AUE_RECVFROM }, /* 125 = linux_recvfrom */
{ SYF_MPSAFE | AS(setreuid_args), (sy_call_t *)setreuid, AUE_SETREUID }, /* 126 = setreuid */
{ SYF_MPSAFE | AS(setregid_args), (sy_call_t *)setregid, AUE_SETREGID }, /* 127 = setregid */
{ SYF_MPSAFE | AS(linux_rename_args), (sy_call_t *)linux_rename, AUE_RENAME }, /* 128 = linux_rename */
{ SYF_MPSAFE | AS(linux_truncate_args), (sy_call_t *)linux_truncate, AUE_TRUNCATE }, /* 129 = linux_truncate */
{ SYF_MPSAFE | AS(linux_ftruncate_args), (sy_call_t *)linux_ftruncate, AUE_FTRUNCATE }, /* 130 = linux_ftruncate */
{ SYF_MPSAFE | AS(flock_args), (sy_call_t *)flock, AUE_FLOCK }, /* 131 = flock */
{ SYF_MPSAFE | AS(setgid_args), (sy_call_t *)setgid, AUE_SETGID }, /* 132 = setgid */
{ SYF_MPSAFE | AS(osf1_sendto_args), (sy_call_t *)osf1_sendto, AUE_SENDTO }, /* 133 = osf1_sendto */
{ SYF_MPSAFE | AS(shutdown_args), (sy_call_t *)shutdown, AUE_SHUTDOWN }, /* 134 = shutdown */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_socketpair, AUE_SOCKETPAIR }, /* 135 = linux_socketpair */
{ SYF_MPSAFE | AS(linux_mkdir_args), (sy_call_t *)linux_mkdir, AUE_MKDIR }, /* 136 = linux_mkdir */
{ SYF_MPSAFE | AS(linux_rmdir_args), (sy_call_t *)linux_rmdir, AUE_RMDIR }, /* 137 = linux_rmdir */
{ SYF_MPSAFE | AS(utimes_args), (sy_call_t *)utimes, AUE_UTIMES }, /* 138 = utimes */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 139 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 140 = */
{ SYF_MPSAFE | AS(linux_getpeername_args), (sy_call_t *)linux_getpeername, AUE_GETPEERNAME }, /* 141 = linux_getpeername */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 142 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 143 = */
{ SYF_MPSAFE | AS(linux_getrlimit_args), (sy_call_t *)linux_getrlimit, AUE_GETRLIMIT }, /* 144 = linux_getrlimit */
{ SYF_MPSAFE | AS(linux_setrlimit_args), (sy_call_t *)linux_setrlimit, AUE_SETRLIMIT }, /* 145 = linux_setrlimit */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 146 = */
{ SYF_MPSAFE | 0, (sy_call_t *)setsid, AUE_SETSID }, /* 147 = setsid */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_quotactl, AUE_QUOTACTL }, /* 148 = linux_quotactl */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 149 = */
{ SYF_MPSAFE | AS(linux_getsockname_args), (sy_call_t *)linux_getsockname, AUE_GETSOCKNAME }, /* 150 = linux_getsockname */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 151 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 152 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 153 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 154 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 155 = */
{ SYF_MPSAFE | AS(osf1_sigaction_args), (sy_call_t *)osf1_sigaction, AUE_NULL }, /* 156 = osf1_sigaction */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 157 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 158 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 159 = osf_getdirentries */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 160 = osf_statfs */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 161 = osf_fstatfs */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 162 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 163 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 164 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 165 = osf_getdomainname */
{ SYF_MPSAFE | AS(setdomainname_args), (sy_call_t *)setdomainname, AUE_SYSCTL }, /* 166 = setdomainname */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 167 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 168 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 169 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 170 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 171 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 172 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 173 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 174 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 175 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 176 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 177 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 178 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 179 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 180 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 181 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 182 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 183 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 184 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 185 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 186 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 187 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 188 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 189 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 190 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 191 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 192 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 193 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 194 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 195 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 196 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 197 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 198 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 199 = osf_swapon */
{ SYF_MPSAFE | AS(linux_msgctl_args), (sy_call_t *)linux_msgctl, AUE_MSGCTL }, /* 200 = linux_msgctl */
{ SYF_MPSAFE | AS(linux_msgget_args), (sy_call_t *)linux_msgget, AUE_MSGGET }, /* 201 = linux_msgget */
{ SYF_MPSAFE | AS(linux_msgrcv_args), (sy_call_t *)linux_msgrcv, AUE_MSGRCV }, /* 202 = linux_msgrcv */
{ SYF_MPSAFE | AS(linux_msgsnd_args), (sy_call_t *)linux_msgsnd, AUE_MSGSND }, /* 203 = linux_msgsnd */
{ AS(linux_semctl_args), (sy_call_t *)linux_semctl, AUE_SEMCTL }, /* 204 = linux_semctl */
{ SYF_MPSAFE | AS(linux_semget_args), (sy_call_t *)linux_semget, AUE_SEMGET }, /* 205 = linux_semget */
{ SYF_MPSAFE | AS(linux_semop_args), (sy_call_t *)linux_semop, AUE_SEMOP }, /* 206 = linux_semop */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 207 = osf_utsname */
{ SYF_MPSAFE | AS(linux_lchown_args), (sy_call_t *)linux_lchown, AUE_LCHOWN }, /* 208 = linux_lchown */
{ SYF_MPSAFE | AS(linux_shmat_args), (sy_call_t *)linux_shmat, AUE_SHMAT }, /* 209 = linux_shmat */
{ SYF_MPSAFE | AS(linux_shmctl_args), (sy_call_t *)linux_shmctl, AUE_SHMCTL }, /* 210 = linux_shmctl */
{ SYF_MPSAFE | AS(linux_shmdt_args), (sy_call_t *)linux_shmdt, AUE_SHMDT }, /* 211 = linux_shmdt */
{ SYF_MPSAFE | AS(linux_shmget_args), (sy_call_t *)linux_shmget, AUE_SHMGET }, /* 212 = linux_shmget */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 213 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 214 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 215 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 216 = */
{ SYF_MPSAFE | AS(linux_msync_args), (sy_call_t *)linux_msync, AUE_MSYNC }, /* 217 = linux_msync */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 218 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 219 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 220 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 221 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 222 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 223 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 224 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 225 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 226 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 227 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 228 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 229 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 230 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 231 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 232 = */
{ SYF_MPSAFE | AS(getpgid_args), (sy_call_t *)getpgid, AUE_GETPPID }, /* 233 = getpgid */
{ SYF_MPSAFE | AS(linux_getsid_args), (sy_call_t *)linux_getsid, AUE_GETSID }, /* 234 = linux_getsid */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_sigaltstack, AUE_NULL }, /* 235 = linux_sigaltstack */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 236 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 237 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 238 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 239 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 240 = */
{ SYF_MPSAFE | AS(osf1_sysinfo_args), (sy_call_t *)osf1_sysinfo, AUE_NULL }, /* 241 = osf1_sysinfo */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 242 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 243 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 244 = osf_proplist_syscall */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 245 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 246 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 247 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 248 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 249 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 250 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 251 = osf_usleep_thread */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 252 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 253 = */
{ SYF_MPSAFE | AS(linux_sysfs_args), (sy_call_t *)linux_sysfs, AUE_NULL }, /* 254 = linux_sysfs */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 255 = */
{ SYF_MPSAFE | AS(osf1_getsysinfo_args), (sy_call_t *)osf1_getsysinfo, AUE_NULL }, /* 256 = osf1_getsysinfo */
{ SYF_MPSAFE | AS(osf1_setsysinfo_args), (sy_call_t *)osf1_setsysinfo, AUE_NULL }, /* 257 = osf1_setsysinfo */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 258 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 259 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 260 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 261 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 262 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 263 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 264 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 265 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 266 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 267 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 268 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 269 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 270 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 271 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 272 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 273 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 274 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 275 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 276 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 277 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 278 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 279 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 280 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 281 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 282 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 283 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 284 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 285 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 286 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 287 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 288 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 289 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 290 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 291 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 292 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 293 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 294 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 295 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 296 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 297 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 298 = */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 299 = */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_bdflush, AUE_BDFLUSH }, /* 300 = linux_bdflush */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_sethae, AUE_NULL }, /* 301 = linux_sethae */
{ AS(linux_mount_args), (sy_call_t *)linux_mount, AUE_MOUNT }, /* 302 = linux_mount */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_old_adjtimex, AUE_ADJTIME }, /* 303 = linux_old_adjtimex */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_swapoff, AUE_SWAPOFF }, /* 304 = linux_swapoff */
{ AS(linux_getdents_args), (sy_call_t *)linux_getdents, AUE_O_GETDENTS }, /* 305 = linux_getdents */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_create_module, AUE_NULL }, /* 306 = linux_create_module */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_init_module, AUE_NULL }, /* 307 = linux_init_module */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_delete_module, AUE_NULL }, /* 308 = linux_delete_module */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_get_kernel_syms, AUE_NULL }, /* 309 = linux_get_kernel_syms */
{ SYF_MPSAFE | AS(linux_syslog_args), (sy_call_t *)linux_syslog, AUE_NULL }, /* 310 = linux_syslog */
{ SYF_MPSAFE | AS(linux_reboot_args), (sy_call_t *)linux_reboot, AUE_REBOOT }, /* 311 = linux_reboot */
{ SYF_MPSAFE | AS(linux_clone_args), (sy_call_t *)linux_clone, AUE_RFORK }, /* 312 = linux_clone */
{ AS(linux_uselib_args), (sy_call_t *)linux_uselib, AUE_USELIB }, /* 313 = linux_uselib */
{ SYF_MPSAFE | AS(mlock_args), (sy_call_t *)mlock, AUE_MLOCK }, /* 314 = mlock */
{ SYF_MPSAFE | AS(munlock_args), (sy_call_t *)munlock, AUE_MUNLOCK }, /* 315 = munlock */
{ SYF_MPSAFE | AS(mlockall_args), (sy_call_t *)mlockall, AUE_MLOCKALL }, /* 316 = mlockall */
{ SYF_MPSAFE | 0, (sy_call_t *)munlockall, AUE_MUNLOCKALL }, /* 317 = munlockall */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_sysinfo, AUE_NULL }, /* 318 = linux_sysinfo */
{ SYF_MPSAFE | AS(linux_sysctl_args), (sy_call_t *)linux_sysctl, AUE_SYSCTL }, /* 319 = linux_sysctl */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 320 = sys_idle */
{ AS(linux_oldumount_args), (sy_call_t *)linux_oldumount, AUE_UMOUNT }, /* 321 = linux_oldumount */
{ SYF_MPSAFE | AS(swapon_args), (sy_call_t *)swapon, AUE_SWAPON }, /* 322 = swapon */
{ SYF_MPSAFE | AS(linux_times_args), (sy_call_t *)linux_times, AUE_NULL }, /* 323 = linux_times */
{ SYF_MPSAFE | AS(linux_personality_args), (sy_call_t *)linux_personality, AUE_PERSONALITY }, /* 324 = linux_personality */
{ SYF_MPSAFE | AS(linux_setfsuid_args), (sy_call_t *)linux_setfsuid, AUE_SETFSUID }, /* 325 = linux_setfsuid */
{ SYF_MPSAFE | AS(linux_setfsgid_args), (sy_call_t *)linux_setfsgid, AUE_SETFSGID }, /* 326 = linux_setfsgid */
{ SYF_MPSAFE | AS(linux_ustat_args), (sy_call_t *)linux_ustat, AUE_NULL }, /* 327 = linux_ustat */
{ SYF_MPSAFE | AS(linux_statfs_args), (sy_call_t *)linux_statfs, AUE_STATFS }, /* 328 = linux_statfs */
{ SYF_MPSAFE | AS(linux_fstatfs_args), (sy_call_t *)linux_fstatfs, AUE_FSTATFS }, /* 329 = linux_fstatfs */
{ SYF_MPSAFE | AS(sched_setparam_args), (sy_call_t *)sched_setparam, AUE_SCHED_SETPARAM }, /* 330 = sched_setparam */
{ SYF_MPSAFE | AS(sched_getparam_args), (sy_call_t *)sched_getparam, AUE_SCHED_GETPARAM }, /* 331 = sched_getparam */
{ SYF_MPSAFE | AS(linux_sched_setscheduler_args), (sy_call_t *)linux_sched_setscheduler, AUE_SCHED_SETSCHEDULER }, /* 332 = linux_sched_setscheduler */
{ SYF_MPSAFE | AS(linux_sched_getscheduler_args), (sy_call_t *)linux_sched_getscheduler, AUE_SCHED_GETSCHEDULER }, /* 333 = linux_sched_getscheduler */
{ SYF_MPSAFE | 0, (sy_call_t *)sched_yield, AUE_NULL }, /* 334 = sched_yield */
{ SYF_MPSAFE | AS(linux_sched_get_priority_max_args), (sy_call_t *)linux_sched_get_priority_max, AUE_SCHED_GET_PRIORITY_MAX }, /* 335 = linux_sched_get_priority_max */
{ SYF_MPSAFE | AS(linux_sched_get_priority_min_args), (sy_call_t *)linux_sched_get_priority_min, AUE_SCHED_GET_PRIORITY_MIN }, /* 336 = linux_sched_get_priority_min */
{ SYF_MPSAFE | AS(sched_rr_get_interval_args), (sy_call_t *)sched_rr_get_interval, AUE_SCHED_RR_GET_INTERVAL }, /* 337 = sched_rr_get_interval */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 338 = sys_afs_syscall */
{ SYF_MPSAFE | AS(linux_newuname_args), (sy_call_t *)linux_newuname, AUE_NULL }, /* 339 = linux_newuname */
{ SYF_MPSAFE | AS(nanosleep_args), (sy_call_t *)nanosleep, AUE_NULL }, /* 340 = nanosleep */
{ SYF_MPSAFE | AS(linux_mremap_args), (sy_call_t *)linux_mremap, AUE_NULL }, /* 341 = linux_mremap */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_nfsservctl, AUE_NULL }, /* 342 = linux_nfsservctl */
{ SYF_MPSAFE | AS(setresuid_args), (sy_call_t *)setresuid, AUE_SETRESUID }, /* 343 = setresuid */
{ SYF_MPSAFE | AS(getresuid_args), (sy_call_t *)getresuid, AUE_GETRESUID }, /* 344 = getresuid */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_pciconfig_read, AUE_NULL }, /* 345 = linux_pciconfig_read */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_pciconfig_write, AUE_NULL }, /* 346 = linux_pciconfig_write */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_query_module, AUE_NULL }, /* 347 = linux_query_module */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_prctl, AUE_PRCTL }, /* 348 = linux_prctl */
{ SYF_MPSAFE | AS(linux_pread_args), (sy_call_t *)linux_pread, AUE_PREAD }, /* 349 = linux_pread */
{ SYF_MPSAFE | AS(linux_pwrite_args), (sy_call_t *)linux_pwrite, AUE_PWRITE }, /* 350 = linux_pwrite */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_rt_sigreturn, AUE_NULL }, /* 351 = linux_rt_sigreturn */
{ SYF_MPSAFE | AS(linux_rt_sigaction_args), (sy_call_t *)linux_rt_sigaction, AUE_NULL }, /* 352 = linux_rt_sigaction */
{ SYF_MPSAFE | AS(linux_rt_sigprocmask_args), (sy_call_t *)linux_rt_sigprocmask, AUE_NULL }, /* 353 = linux_rt_sigprocmask */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_rt_sigpending, AUE_NULL }, /* 354 = linux_rt_sigpending */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_rt_sigtimedwait, AUE_NULL }, /* 355 = linux_rt_sigtimedwait */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_rt_sigqueueinfo, AUE_NULL }, /* 356 = linux_rt_sigqueueinfo */
{ SYF_MPSAFE | AS(linux_rt_sigsuspend_args), (sy_call_t *)linux_rt_sigsuspend, AUE_NULL }, /* 357 = linux_rt_sigsuspend */
{ SYF_MPSAFE | AS(linux_select_args), (sy_call_t *)linux_select, AUE_SELECT }, /* 358 = linux_select */
{ SYF_MPSAFE | AS(gettimeofday_args), (sy_call_t *)gettimeofday, AUE_NULL }, /* 359 = gettimeofday */
{ SYF_MPSAFE | AS(settimeofday_args), (sy_call_t *)settimeofday, AUE_SETTIMEOFDAY }, /* 360 = settimeofday */
{ SYF_MPSAFE | AS(linux_getitimer_args), (sy_call_t *)linux_getitimer, AUE_GETITIMER }, /* 361 = linux_getitimer */
{ SYF_MPSAFE | AS(linux_setitimer_args), (sy_call_t *)linux_setitimer, AUE_SETITIMER }, /* 362 = linux_setitimer */
{ SYF_MPSAFE | AS(linux_utimes_args), (sy_call_t *)linux_utimes, AUE_UTIMES }, /* 363 = linux_utimes */
{ SYF_MPSAFE | AS(getrusage_args), (sy_call_t *)getrusage, AUE_GETRUSAGE }, /* 364 = getrusage */
{ SYF_MPSAFE | AS(linux_wait4_args), (sy_call_t *)linux_wait4, AUE_WAIT4 }, /* 365 = linux_wait4 */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_adjtimex, AUE_ADJTIME }, /* 366 = linux_adjtimex */
{ SYF_MPSAFE | AS(linux_getcwd_args), (sy_call_t *)linux_getcwd, AUE_GETCWD }, /* 367 = linux_getcwd */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_capget, AUE_CAPGET }, /* 368 = linux_capget */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_capset, AUE_CAPSET }, /* 369 = linux_capset */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_sendfile, AUE_SENDFILE }, /* 370 = linux_sendfile */
{ SYF_MPSAFE | AS(setresgid_args), (sy_call_t *)setresgid, AUE_SETRESGID }, /* 371 = setresgid */
{ SYF_MPSAFE | AS(getresgid_args), (sy_call_t *)getresgid, AUE_GETRESGID }, /* 372 = getresgid */
{ 0, (sy_call_t *)nosys, AUE_NULL }, /* 373 = sys_dipc */
{ SYF_MPSAFE | AS(linux_pivot_root_args), (sy_call_t *)linux_pivot_root, AUE_PIVOT_ROOT }, /* 374 = linux_pivot_root */
{ SYF_MPSAFE | AS(linux_mincore_args), (sy_call_t *)linux_mincore, AUE_MINCORE }, /* 375 = linux_mincore */
{ SYF_MPSAFE | 0, (sy_call_t *)linux_pciconfig_iobase, AUE_NULL }, /* 376 = linux_pciconfig_iobase */
{ AS(linux_getdents64_args), (sy_call_t *)linux_getdents64, AUE_O_GETDENTS }, /* 377 = linux_getdents64 */
};

View File

@ -1,288 +0,0 @@
/*-
* Copyright (c) 1994-1996 Søren Schmidt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer
* in this position and unchanged.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/exec.h>
#include <sys/imgact.h>
#include <sys/imgact_aout.h>
#include <sys/imgact_elf.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/module.h>
#include <sys/mutex.h>
#include <sys/proc.h>
#include <sys/signalvar.h>
#include <sys/sysent.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_page.h>
#include <vm/vm_extern.h>
#include <machine/cpu.h>
#include <machine/md_var.h>
#include <alpha/linux/linux.h>
#include <alpha/linux/linux_proto.h>
#include <compat/linux/linux_mib.h>
#include <compat/linux/linux_util.h>
#undef szsigcode
MODULE_VERSION(linux, 1);
MALLOC_DEFINE(M_LINUX, "linux", "Linux mode structures");
#if BYTE_ORDER == LITTLE_ENDIAN
#define SHELLMAGIC 0x2123 /* #! */
#else
#define SHELLMAGIC 0x2321
#endif
SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler);
SET_DECLARE(linux_device_handler_set, struct linux_device_handler);
void osendsig(sig_t catcher, ksiginfo_t *kp, sigset_t *mask);
static int elf_linux_fixup(register_t **stack_base,
struct image_params *iparams);
static int exec_linux_imgact_try(struct image_params *iparams);
static int
elf_linux_fixup(register_t **stack_base, struct image_params *imgp)
{
Elf64_Auxargs *args;
register_t *pos;
KASSERT(curthread->td_proc == imgp->proc &&
(curthread->td_proc->p_flag & P_SA) == 0,
("unsafe elf_linux_fixup(), should be curproc"));
args = (Elf64_Auxargs *)imgp->auxargs;
pos = *stack_base + (imgp->args->argc + imgp->args->envc + 2);
if (args->trace)
AUXARGS_ENTRY(pos, AT_DEBUG, 1);
if (args->execfd != -1)
AUXARGS_ENTRY(pos, AT_EXECFD, args->execfd);
AUXARGS_ENTRY(pos, AT_PHDR, args->phdr);
AUXARGS_ENTRY(pos, AT_PHENT, args->phent);
AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum);
AUXARGS_ENTRY(pos, AT_PAGESZ, args->pagesz);
AUXARGS_ENTRY(pos, AT_FLAGS, args->flags);
AUXARGS_ENTRY(pos, AT_ENTRY, args->entry);
AUXARGS_ENTRY(pos, AT_BASE, args->base);
AUXARGS_ENTRY(pos, AT_UID, imgp->proc->p_ucred->cr_ruid);
AUXARGS_ENTRY(pos, AT_EUID, imgp->proc->p_ucred->cr_svuid);
AUXARGS_ENTRY(pos, AT_GID, imgp->proc->p_ucred->cr_rgid);
AUXARGS_ENTRY(pos, AT_EGID, imgp->proc->p_ucred->cr_svgid);
AUXARGS_ENTRY(pos, AT_NULL, 0);
free(imgp->auxargs, M_TEMP);
imgp->auxargs = NULL;
(*stack_base)--;
**stack_base = (register_t)imgp->args->argc;
return 0;
}
/*
* If a linux binary is exec'ing something, try this image activator
* first. We override standard shell script execution in order to
* be able to modify the interpreter path. We only do this if a linux
* binary is doing the exec, so we do not create an EXEC module for it.
*/
static int
exec_linux_imgact_try(imgp)
struct image_params *imgp;
{
const char *head;
int error;
head = (const char *)imgp->image_header;
error = -1;
/*
* The interpreter for shell scripts run from a linux binary needs
* to be located in /compat/linux if possible in order to recursively
* maintain linux path emulation.
*/
if (((const short *)head)[0] == SHELLMAGIC) {
/*
* Run our normal shell image activator. If it succeeds
* attempt to use the alternate path for the interpreter. If
* an alternate path is found, use our stringspace to store it.
*/
if ((error = exec_shell_imgact(imgp)) == 0) {
char *rpath = NULL;
linux_emul_convpath(FIRST_THREAD_IN_PROC(imgp->proc),
imgp->interpreter_name, UIO_SYSSPACE, &rpath, 0);
if (rpath != imgp->interpreter_name) {
int len = strlen(rpath) + 1;
if (len <= MAXSHELLCMDLEN) {
memcpy(imgp->interpreter_name, rpath,
len);
}
free(rpath, M_TEMP);
}
}
}
return(error);
}
/*
* To maintain OSF/1 compat, linux uses BSD signals & errnos on their
* alpha port. This greatly simplfies things for us.
*/
struct sysentvec elf_linux_sysvec = {
LINUX_SYS_MAXSYSCALL,
linux_sysent,
0,
0,
NULL,
0,
NULL,
NULL,
elf_linux_fixup,
osendsig,
linux_sigcode,
&linux_szsigcode,
NULL,
"Linux ELF",
elf64_coredump,
exec_linux_imgact_try,
LINUX_MINSIGSTKSZ,
PAGE_SIZE,
VM_MIN_ADDRESS,
VM_MAXUSER_ADDRESS,
USRSTACK,
PS_STRINGS,
VM_PROT_ALL,
exec_copyout_strings,
exec_setregs,
NULL
};
static Elf64_Brandinfo linux_brand = {
ELFOSABI_LINUX,
EM_ALPHA,
"Linux",
"/compat/linux",
"/lib/ld-linux.so.1",
&elf_linux_sysvec,
NULL,
BI_CAN_EXEC_DYN,
};
static Elf64_Brandinfo linux_glibc2brand = {
ELFOSABI_LINUX,
EM_ALPHA,
"Linux",
"/compat/linux",
"/lib/ld-linux.so.2",
&elf_linux_sysvec,
NULL,
BI_CAN_EXEC_DYN,
};
Elf64_Brandinfo *linux_brandlist[] = {
&linux_brand,
&linux_glibc2brand,
NULL
};
static int
linux_elf_modevent(module_t mod, int type, void *data)
{
Elf64_Brandinfo **brandinfo;
int error;
struct linux_ioctl_handler **lihp;
struct linux_device_handler **ldhp;
error = 0;
switch(type) {
case MOD_LOAD:
for (brandinfo = &linux_brandlist[0]; *brandinfo != NULL;
++brandinfo)
if (elf64_insert_brand_entry(*brandinfo) < 0)
error = EINVAL;
if (error == 0) {
SET_FOREACH(lihp, linux_ioctl_handler_set)
linux_ioctl_register_handler(*lihp);
SET_FOREACH(ldhp, linux_device_handler_set)
linux_device_register_handler(*ldhp);
if (bootverbose)
printf("Linux ELF exec handler installed\n");
} else
printf("cannot insert Linux ELF brand handler\n");
break;
case MOD_UNLOAD:
for (brandinfo = &linux_brandlist[0]; *brandinfo != NULL;
++brandinfo)
if (elf64_brand_inuse(*brandinfo))
error = EBUSY;
if (error == 0) {
for (brandinfo = &linux_brandlist[0];
*brandinfo != NULL; ++brandinfo)
if (elf64_remove_brand_entry(*brandinfo) < 0)
error = EINVAL;
}
if (error == 0) {
SET_FOREACH(lihp, linux_ioctl_handler_set)
linux_ioctl_unregister_handler(*lihp);
SET_FOREACH(ldhp, linux_device_handler_set)
linux_device_unregister_handler(*ldhp);
if (bootverbose)
printf("Linux ELF exec handler removed\n");
} else
printf("Could not deinstall ELF interpreter entry\n");
break;
default:
return (EOPNOTSUPP);
break;
}
return error;
}
static moduledata_t linux_elf_mod = {
"linuxelf",
linux_elf_modevent,
0
};
DUMMY(rt_sigreturn);
MODULE_DEPEND(linux, osf1, 1, 1, 1);
DECLARE_MODULE(linuxelf, linux_elf_mod, SI_SUB_EXEC, SI_ORDER_ANY);

View File

@ -1,11 +0,0 @@
# $FreeBSD$
sysnames="/dev/null"
sysproto="linux_proto.h"
sysproto_h=_LINUX_SYSPROTO_H_
syshdr="linux_syscall.h"
syssw="linux_sysent.c"
sysmk="/dev/null"
syscallprefix="LINUX_SYS_"
switchname="linux_sysent"
namesname="linux_syscallnames"
sysvec="\n"

View File

@ -1,549 +0,0 @@
$FreeBSD$
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
; System call name/number master file (or rather, slave, from LINUX).
; Processed to created linux_sysent.c, linux_syscalls.c and linux_syscall.h.
; Columns: number audit type nargs name alt{name,tag,rtyp}/comments
; number system call number, must be in order
; audit the audit event associated with the system call
; A value of AUE_NULL means no auditing, but it also means that
; there is no audit event for the call at this time. For the
; case where the event exists, but we don't want auditing, the
; event should be #defined to AUE_NULL in audit_kevents.h.
; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, NOPROTO
; name psuedo-prototype of syscall routine
; If one of the following alts is different, then all appear:
; altname name of system call if different
; alttag name of args struct tag if different from [o]`name'"_args"
; altrtyp return type if not int (bogus - syscalls always return int)
; for UNIMPL/OBSOL, name continues with comments
; types:
; STD always included
; NOARGS same as STD except do not create structure in sys/sysproto.h
; NODEF ??
; NOPROTO same as STD except do not create structure or function in
; sys/sysproto.h
; OBSOL obsolete, not included in system, only specifies name
; UNIMPL not implemented, placeholder only
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
#include <compat/linux/linux_sysproto.h>
#include <alpha/linux/linux.h>
#include <alpha/linux/linux_proto.h>
; Isn't pretty, but there seems to be no other way to trap nosys
#define nosys linux_nosys
; #ifdef's, etc. may be included, and are copied to the output files.
0 AUE_NULL UNIMPL
1 AUE_EXIT MNOPROTO { void sys_exit(int rval); } exit \
sys_exit_args void
2 AUE_FORK MSTD { int linux_fork(void); }
3 AUE_READ MNOPROTO { int read(int fd, char *buf, \
u_int nbyte); }
4 AUE_WRITE MNOPROTO { int write(int fd, char *buf, \
u_int nbyte); }
5 AUE_NULL UNIMPL
6 AUE_CLOSE MNOPROTO { int close(int fd); }
7 AUE_WAIT4 MSTD { int osf1_wait4(int pid, int *status, \
int options, \
struct osf1_rusage *rusage); }
8 AUE_NULL UNIMPL
9 AUE_LINK MSTD { int linux_link(char *path, char *to); }
10 AUE_UNLINK MSTD { int linux_unlink(char *path); }
11 AUE_NULL UNIMPL
12 AUE_CHDIR MSTD { int linux_chdir(char *path); }
13 AUE_FCHDIR MNOPROTO { int fchdir(int fd); }
14 AUE_MKNOD MSTD { int linux_mknod(char *path, l_int mode, \
l_dev_t dev); }
15 AUE_CHMOD MSTD { int linux_chmod(char *path, \
l_mode_t mode); }
16 AUE_CHOWN MSTD { int linux_chown(char *path, l_uid_t uid, \
l_gid_t gid); }
17 AUE_NULL STD { int linux_brk(l_ulong dsend); }
18 AUE_NULL UNIMPL
19 AUE_LSEEK MSTD { int linux_lseek(l_uint fdes, l_off_t off, \
l_int whence); }
20 AUE_GETPID MNOPROTO { int getpid(void); }
21 AUE_MOUNT UNIMPL osf1_mount
22 AUE_UNMOUNT STD { int linux_umount(char *path, l_int flags); }
23 AUE_SETUID MNOPROTO { int setuid(uid_t uid); }
24 AUE_GETUID MNOPROTO { int getuid(void); }
25 AUE_NULL UNIMPL
26 AUE_PTRACE MSTD { int linux_ptrace(void); }
27 AUE_NULL UNIMPL
28 AUE_NULL UNIMPL
29 AUE_NULL UNIMPL
30 AUE_NULL UNIMPL
31 AUE_NULL UNIMPL
32 AUE_NULL UNIMPL
33 AUE_ACCESS MSTD { int linux_access(char *path, l_int flags); }
34 AUE_NULL UNIMPL
35 AUE_NULL UNIMPL
36 AUE_SYNC MNOPROTO { int sync(void); }
37 AUE_KILL MSTD { int linux_kill(l_int pid, l_int signum); }
38 AUE_NULL UNIMPL
39 AUE_SETPGRP MNOPROTO { int setpgid(int pid, int pgid); }
40 AUE_NULL UNIMPL
41 AUE_DUP MNOPROTO { int dup(u_int fd); }
42 AUE_PIPE MNOPROTO { int pipe(void); }
43 AUE_NULL UNIMPL osf_set_program_attributes
44 AUE_NULL UNIMPL
45 AUE_OPEN_RWTC MSTD { int linux_open(char *path, l_int flags, \
l_int mode); }
46 AUE_NULL UNIMPL
47 AUE_GETGID MNOPROTO { int getgid(void); }
48 AUE_SIGPROCMASK MSTD { int osf1_sigprocmask(int how, \
u_long mask); }
49 AUE_NULL UNIMPL
50 AUE_NULL UNIMPL
51 AUE_ACCT MNOPROTO { int acct(char *path); }
52 AUE_SIGPENDING MSTD { int linux_sigpending(void); }
53 AUE_NULL UNIMPL
54 AUE_IOCTL STD { int linux_ioctl(l_uint fd, l_uint cmd, \
l_ulong arg); }
55 AUE_NULL UNIMPL
56 AUE_NULL UNIMPL
57 AUE_SYMLINK MSTD { int linux_symlink(char *path, char *to); }
58 AUE_READLINK MSTD { int linux_readlink(char *name, char *buf, \
l_int count); }
59 AUE_EXECVE MSTD { int linux_execve(char *path, char **argp, \
char **envp); }
60 AUE_UMASK MNOPROTO { int umask(int newmask); }
61 AUE_CHROOT MNOPROTO { int chroot(char *path); }
62 AUE_NULL UNIMPL
63 AUE_GETPGRP MNOPROTO { int getpgrp(void); }
64 AUE_O_GETPAGESIZE MSTD { int linux_getpagesize(void); }
65 AUE_NULL UNIMPL
66 AUE_VFORK MSTD { int linux_vfork(void); }
67 AUE_STAT MSTD { int linux_newstat(char *path, \
struct l_newstat *buf); }
68 AUE_LSTAT MSTD { int linux_newlstat(char *path, \
struct l_newstat *buf); }
69 AUE_NULL UNIMPL
70 AUE_NULL UNIMPL
71 AUE_MMAP MSTD { int linux_mmap(l_ulong addr, l_ulong len, \
l_ulong prot, l_ulong flags, l_ulong fd, \
l_ulong pos); }
72 AUE_NULL UNIMPL
73 AUE_MUNMAP MSTD { int linux_munmap(l_ulong addr, \
l_size_t len); }
74 AUE_MPROTECT MSTD { int linux_mprotect(l_ulong addr, \
l_size_t len, l_ulong prot); }
75 AUE_MADVISE MNOPROTO { int madvise(void *addr, \
size_t len, int behav); }
76 AUE_O_VHANGUP MSTD { int linux_vhangup(void); }
77 AUE_NULL UNIMPL
78 AUE_NULL UNIMPL
79 AUE_SETGROUPS MSTD { int linux_setgroups(l_int gidsetsize, \
l_gid_t *grouplist); }
80 AUE_GETGROUPS MSTD { int linux_getgroups(l_int gidsetsize, \
l_gid_t *grouplist); }
81 AUE_NULL UNIMPL
82 AUE_SETPGRP MNODEF setpgid setpgid setpgid_args int
83 AUE_SETITIMER MSTD { int osf1_setitimer(u_int which, \
struct itimerval *itv, \
struct itimerval *oitv); }
84 AUE_NULL UNIMPL
85 AUE_NULL UNIMPL
86 AUE_GETITIMER UNIMPL osf_getitimer
87 AUE_SYSCTL MSTD { int linux_gethostname(void); }
88 AUE_SYSCTL MSTD { int linux_sethostname(char *hostname, u_int len); }
89 AUE_GETDTABLESIZE MSTD { int linux_getdtablesize(void); }
90 AUE_DUP2 MNOPROTO { int dup2(u_int from, u_int to); }
91 AUE_FSTAT MSTD { int linux_newfstat(l_uint fd, \
struct l_newstat *buf); }
92 AUE_FCNTL MSTD { int linux_fcntl(l_uint fd, l_uint cmd, \
l_ulong arg); }
93 AUE_SELECT MSTD { int osf1_select(u_int nd, fd_set *in, \
fd_set *ou, fd_set *ex, \
struct timeval *tv); }
94 AUE_POLL MNOPROTO { int poll(struct pollfd*, unsigned int \
nfds, long timeout); }
95 AUE_FSYNC MNOPROTO { int fsync(int fd); }
96 AUE_SETPRIORITY MNOPROTO { int setpriority(int which, \
int who, int prio); }
97 AUE_SOCKET MSTD { int osf1_socket(int domain, int type, \
int protocol); }
98 AUE_CONNECT MSTD { int linux_connect(l_int s, \
struct l_sockaddr *name, l_int namelen); }
99 AUE_ACCEPT MSTD { int linux_accept(l_int s, \
struct linux_accept_args *args); }
100 AUE_GETPRIORITY MSTD { int linux_getpriority(int which, int who); }
101 AUE_SEND MSTD { int linux_send(l_int s, \
struct linux_send_args *args); }
102 AUE_RECV MSTD { int linux_recv(l_int s, \
struct linux_recv_args *args); }
103 AUE_NULL MSTD { int osf1_sigreturn( \
struct osigcontext *sigcntxp); }
104 AUE_BIND MNOPROTO { int bind(int s, caddr_t name, \
int namelen); }
105 AUE_SETSOCKOPT MNOPROTO { int setsockopt(int s, int level, int name, \
caddr_t val, int valsize); }
106 AUE_LISTEN MNOPROTO { int listen(int s, int backlog); }
107 AUE_NULL UNIMPL
108 AUE_NULL UNIMPL
109 AUE_NULL UNIMPL
110 AUE_NULL UNIMPL
111 AUE_NULL MSTD { int osf1_sigsuspend(unsigned long ss); }
112 AUE_NULL UNIMPL osf_sigstack
113 AUE_RECVMSG MSTD { int linux_recvmsg(void); }
114 AUE_SENDMSG MSTD { int linux_sendmsg(void); }
115 AUE_NULL UNIMPL
116 AUE_NULL MSTD { int osf1_gettimeofday( \
struct timeval *tp, \
struct timezone *tzp); }
117 AUE_GETRUSAGE MSTD { int osf1_getrusage(long who, \
void *rusage); }
118 AUE_GETSOCKOPT MNOPROTO { int getsockopt(int s, int level, int name, \
caddr_t val, int *avalsize); }
119 AUE_NULL UNIMPL
120 AUE_READV MNOPROTO { int readv(int fd, struct iovec *iovp, \
u_int iovcnt); }
121 AUE_WRITEV MNOPROTO { int writev(int fd, struct iovec *iovp, \
u_int iovcnt); }
122 AUE_SETTIMEOFDAY UNIMPL osf_settimeofday
123 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); }
124 AUE_FCHMOD NOPROTO { int fchmod(int fd, int mode); }
125 AUE_RECVFROM MSTD { int linux_recvfrom(l_int s, \
struct linux_recvfrom_args *args); }
126 AUE_SETREUID MNOPROTO { int setreuid(int ruid, int euid); }
127 AUE_SETREGID MNOPROTO { int setregid(int rgid, int egid); }
128 AUE_RENAME MSTD { int linux_rename(char *from, char *to); }
129 AUE_TRUNCATE MSTD { int linux_truncate(char *path, \
l_ulong length); }
130 AUE_FTRUNCATE MSTD { int linux_ftruncate(int fd, long length); }
131 AUE_FLOCK MNOPROTO { int flock(int fd, int how); }
132 AUE_SETGID MNOPROTO { int setgid(gid_t gid); }
133 AUE_SENDTO MSTD { int osf1_sendto(int s, caddr_t buf, \
size_t len, int flags, \
struct sockaddr *to, int tolen); }
134 AUE_SHUTDOWN MNOPROTO { int shutdown(int s, int how); }
135 AUE_SOCKETPAIR MSTD { int linux_socketpair(void); }
136 AUE_MKDIR MSTD { int linux_mkdir(char *path, l_int mode); }
137 AUE_RMDIR MSTD { int linux_rmdir(char *path); }
138 AUE_UTIMES MNOPROTO { int utimes(char *path, \
struct timeval *tptr); }
139 AUE_NULL UNIMPL
140 AUE_NULL UNIMPL
141 AUE_GETPEERNAME MSTD { int linux_getpeername(l_int s, \
struct linux_getpeername_args *args); }
142 AUE_NULL UNIMPL
143 AUE_NULL UNIMPL
144 AUE_GETRLIMIT MSTD { int linux_getrlimit(l_uint resource, \
struct l_rlimit *rlim); }
145 AUE_SETRLIMIT MSTD { int linux_setrlimit(l_uint resource, \
struct l_rlimit *rlim); }
146 AUE_NULL UNIMPL
147 AUE_SETSID MNOPROTO { int setsid(void); }
148 AUE_QUOTACTL MSTD { int linux_quotactl(void); }
149 AUE_NULL UNIMPL
150 AUE_GETSOCKNAME MSTD { int linux_getsockname(l_int s, \
struct linux_getsockname_args *args);}
151 AUE_NULL UNIMPL
152 AUE_NULL UNIMPL
153 AUE_NULL UNIMPL
154 AUE_NULL UNIMPL
155 AUE_NULL UNIMPL
156 AUE_NULL MSTD { int osf1_sigaction(int sig, \
struct osf1_sigaction *nsa, \
struct osf1_sigaction *osa); }
157 AUE_NULL UNIMPL
158 AUE_NULL UNIMPL
159 AUE_GETDIRENTRIES UNIMPL osf_getdirentries
160 AUE_STATFS UNIMPL osf_statfs
161 AUE_FSTATFS UNIMPL osf_fstatfs
162 AUE_NULL UNIMPL
163 AUE_NULL UNIMPL
164 AUE_NULL UNIMPL
165 AUE_SYSCTL UNIMPL osf_getdomainname
166 AUE_SYSCTL MNOPROTO { int setdomainname( \
char *name, int len); }
167 AUE_NULL UNIMPL
168 AUE_NULL UNIMPL
169 AUE_NULL UNIMPL
170 AUE_NULL UNIMPL
171 AUE_NULL UNIMPL
172 AUE_NULL UNIMPL
173 AUE_NULL UNIMPL
174 AUE_NULL UNIMPL
175 AUE_NULL UNIMPL
176 AUE_NULL UNIMPL
177 AUE_NULL UNIMPL
178 AUE_NULL UNIMPL
179 AUE_NULL UNIMPL
180 AUE_NULL UNIMPL
181 AUE_NULL UNIMPL
182 AUE_NULL UNIMPL
183 AUE_NULL UNIMPL
184 AUE_NULL UNIMPL
185 AUE_NULL UNIMPL
186 AUE_NULL UNIMPL
187 AUE_NULL UNIMPL
188 AUE_NULL UNIMPL
189 AUE_NULL UNIMPL
190 AUE_NULL UNIMPL
191 AUE_NULL UNIMPL
192 AUE_NULL UNIMPL
193 AUE_NULL UNIMPL
194 AUE_NULL UNIMPL
195 AUE_NULL UNIMPL
196 AUE_NULL UNIMPL
197 AUE_NULL UNIMPL
198 AUE_NULL UNIMPL
199 AUE_SWAPON UNIMPL osf_swapon
200 AUE_MSGCTL MSTD { int linux_msgctl(l_int msqid, l_int cmd, \
struct l_msqid_ds *buf); }
201 AUE_MSGGET MSTD { int linux_msgget(l_key_t key, \
l_int msgflg); }
202 AUE_MSGRCV MSTD { int linux_msgrcv(l_int msqid, \
struct l_msgbuf *msgp, l_size_t msgsz, \
l_long msgtyp, l_int msgflg); }
203 AUE_MSGSND MSTD { int linux_msgsnd(l_int msqid, \
struct l_msgbuf *msgp, l_size_t msgsz, \
l_int msgflg); }
204 AUE_SEMCTL STD { int linux_semctl(l_int semid, \
l_int semnum, l_int cmd, \
union l_semun arg); }
205 AUE_SEMGET MSTD { int linux_semget(l_key_t key, l_int nsems, \
l_int semflg); }
206 AUE_SEMOP MSTD { int linux_semop(l_int semid, \
struct l_sembuf *tsops, l_uint nsops); }
207 AUE_NULL UNIMPL osf_utsname
208 AUE_LCHOWN MSTD { int linux_lchown(char *path, l_uid_t uid, \
l_gid_t gid); }
209 AUE_SHMAT MSTD { int linux_shmat(l_int shmid, \
char *shmaddr, l_int shmflg); }
210 AUE_SHMCTL MSTD { int linux_shmctl(l_int shmid, l_int cmd, \
struct l_shmid_ds *buf); }
211 AUE_SHMDT MSTD { int linux_shmdt(char *shmaddr); }
212 AUE_SHMGET MSTD { int linux_shmget(l_key_t key, \
l_size_t size, l_int shmflg); }
213 AUE_NULL UNIMPL
214 AUE_NULL UNIMPL
215 AUE_NULL UNIMPL
216 AUE_NULL UNIMPL
217 AUE_MSYNC MSTD { int linux_msync(l_ulong addr, \
l_size_t len, l_int fl); }
218 AUE_NULL UNIMPL
219 AUE_NULL UNIMPL
220 AUE_NULL UNIMPL
221 AUE_NULL UNIMPL
222 AUE_NULL UNIMPL
223 AUE_NULL UNIMPL
224 AUE_NULL UNIMPL
225 AUE_NULL UNIMPL
226 AUE_NULL UNIMPL
227 AUE_NULL UNIMPL
228 AUE_NULL UNIMPL
229 AUE_NULL UNIMPL
230 AUE_NULL UNIMPL
231 AUE_NULL UNIMPL
232 AUE_NULL UNIMPL
233 AUE_GETPPID MNOPROTO { int getpgid(int pid); }
234 AUE_GETSID MSTD { int linux_getsid(l_pid_t pid); }
235 AUE_NULL MSTD { int linux_sigaltstack(void); }
236 AUE_NULL UNIMPL
237 AUE_NULL UNIMPL
238 AUE_NULL UNIMPL
239 AUE_NULL UNIMPL
240 AUE_NULL UNIMPL
241 AUE_NULL MSTD { int osf1_sysinfo(int cmd, char *buf, \
long count); }
242 AUE_NULL UNIMPL
243 AUE_NULL UNIMPL
244 AUE_NULL UNIMPL osf_proplist_syscall
245 AUE_NULL UNIMPL
246 AUE_NULL UNIMPL
247 AUE_NULL UNIMPL
248 AUE_NULL UNIMPL
249 AUE_NULL UNIMPL
250 AUE_NULL UNIMPL
251 AUE_NULL UNIMPL osf_usleep_thread
252 AUE_NULL UNIMPL
253 AUE_NULL UNIMPL
254 AUE_NULL MSTD { int linux_sysfs(l_int option, \
l_ulong arg1, l_ulong arg2); }
255 AUE_NULL UNIMPL
256 AUE_NULL MSTD { int osf1_getsysinfo(u_long op, \
caddr_t buffer, u_long nbytes, \
caddr_t arg, u_long flag); }
257 AUE_NULL MSTD { int osf1_setsysinfo(u_long op, \
caddr_t buffer, u_long nbytes, \
caddr_t arg, u_long flag); }
258 AUE_NULL UNIMPL
259 AUE_NULL UNIMPL
260 AUE_NULL UNIMPL
261 AUE_NULL UNIMPL
262 AUE_NULL UNIMPL
263 AUE_NULL UNIMPL
264 AUE_NULL UNIMPL
265 AUE_NULL UNIMPL
266 AUE_NULL UNIMPL
267 AUE_NULL UNIMPL
268 AUE_NULL UNIMPL
269 AUE_NULL UNIMPL
270 AUE_NULL UNIMPL
271 AUE_NULL UNIMPL
272 AUE_NULL UNIMPL
273 AUE_NULL UNIMPL
274 AUE_NULL UNIMPL
275 AUE_NULL UNIMPL
276 AUE_NULL UNIMPL
277 AUE_NULL UNIMPL
278 AUE_NULL UNIMPL
279 AUE_NULL UNIMPL
280 AUE_NULL UNIMPL
281 AUE_NULL UNIMPL
282 AUE_NULL UNIMPL
283 AUE_NULL UNIMPL
284 AUE_NULL UNIMPL
285 AUE_NULL UNIMPL
286 AUE_NULL UNIMPL
287 AUE_NULL UNIMPL
288 AUE_NULL UNIMPL
289 AUE_NULL UNIMPL
290 AUE_NULL UNIMPL
291 AUE_NULL UNIMPL
292 AUE_NULL UNIMPL
293 AUE_NULL UNIMPL
294 AUE_NULL UNIMPL
295 AUE_NULL UNIMPL
296 AUE_NULL UNIMPL
297 AUE_NULL UNIMPL
298 AUE_NULL UNIMPL
299 AUE_NULL UNIMPL
300 AUE_BDFLUSH MSTD { int linux_bdflush(void); }
301 AUE_NULL MSTD { int linux_sethae(void); }
302 AUE_MOUNT STD { int linux_mount(char *specialfile, \
char *dir, char *filesystemtype, \
l_ulong rwflag, void *data); }
303 AUE_ADJTIME MSTD { int linux_old_adjtimex(void); }
304 AUE_SWAPOFF MSTD { int linux_swapoff(void); }
305 AUE_O_GETDENTS STD { int linux_getdents(l_uint fd, void *dent, \
l_uint count); }
306 AUE_NULL MSTD { int linux_create_module(void); }
307 AUE_NULL MSTD { int linux_init_module(void); }
308 AUE_NULL MSTD { int linux_delete_module(void); }
309 AUE_NULL MSTD { int linux_get_kernel_syms(void); }
310 AUE_NULL MSTD { int linux_syslog(l_int type, char *buf, \
l_int len); }
311 AUE_REBOOT MSTD { int linux_reboot(l_int magic1, \
l_int magic2, l_uint cmd, void *arg); }
312 AUE_RFORK MSTD { int linux_clone(l_int flags, void *stack); }
313 AUE_USELIB STD { int linux_uselib(char *library); }
314 AUE_MLOCK MNOPROTO { int mlock(const void *addr, \
size_t len); }
315 AUE_MUNLOCK MNOPROTO { int munlock(const void *addr, \
size_t len); }
316 AUE_MLOCKALL MNOPROTO { int mlockall(int how); }
317 AUE_MUNLOCKALL MNOPROTO { int munlockall(void); }
318 AUE_NULL MSTD { int linux_sysinfo(void); }
319 AUE_SYSCTL MSTD { int linux_sysctl( \
struct l___sysctl_args *args); }
320 AUE_NULL UNIMPL sys_idle
321 AUE_UMOUNT STD { int linux_oldumount(char *path); }
322 AUE_SWAPON MNOPROTO { int swapon(char *name); }
323 AUE_NULL MSTD { int linux_times(struct l_times_argv *buf); }
324 AUE_PERSONALITY MSTD { int linux_personality(l_ulong per); }
325 AUE_SETFSUID MSTD { int linux_setfsuid(l_uid_t uid); }
326 AUE_SETFSGID MSTD { int linux_setfsgid(l_gid_t gid); }
327 AUE_NULL MSTD { int linux_ustat(l_dev_t dev, \
struct l_ustat *ubuf); }
328 AUE_STATFS MSTD { int linux_statfs(char *path, \
struct l_statfs_buf *buf); }
329 AUE_FSTATFS MSTD { int linux_fstatfs(l_uint fd, \
struct l_statfs_buf *buf); }
330 AUE_SCHED_SETPARAM MNOPROTO { int sched_setparam(pid_t pid, \
const struct sched_param *param); }
331 AUE_SCHED_GETPARAM MNOPROTO { int sched_getparam(pid_t pid, \
struct sched_param *param); }
332 AUE_SCHED_SETSCHEDULER MSTD { int linux_sched_setscheduler(l_pid_t pid, \
l_int policy, \
struct l_sched_param *param); }
333 AUE_SCHED_GETSCHEDULER MSTD { int linux_sched_getscheduler(l_pid_t pid); }
334 AUE_NULL MNOPROTO { int sched_yield(void); }
335 AUE_SCHED_GET_PRIORITY_MAX MSTD { int linux_sched_get_priority_max( \
l_int policy); }
336 AUE_SCHED_GET_PRIORITY_MIN MSTD { int linux_sched_get_priority_min( \
l_int policy); }
337 AUE_SCHED_RR_GET_INTERVAL MNOPROTO { int sched_rr_get_interval (pid_t pid, \
struct timespec *interval); }
338 AUE_NULL UNIMPL sys_afs_syscall
339 AUE_NULL MSTD { int linux_newuname( \
struct l_newuname_t *buf); }
340 AUE_NULL MNOPROTO { int nanosleep( \
const struct timespec *rqtp, \
struct timespec *rmtp); }
341 AUE_NULL MSTD { int linux_mremap(l_ulong addr, \
l_ulong old_len, l_ulong new_len, \
l_ulong flags, l_ulong new_addr); }
342 AUE_NULL MSTD { int linux_nfsservctl(void); }
343 AUE_SETRESUID MNOPROTO { int setresuid(uid_t ruid, \
uid_t euid, uid_t suid); }
344 AUE_GETRESUID MNOPROTO { int getresuid(uid_t *ruid, \
uid_t *euid, uid_t *suid); }
345 AUE_NULL MSTD { int linux_pciconfig_read(void); }
346 AUE_NULL MSTD { int linux_pciconfig_write(void); }
347 AUE_NULL MSTD { int linux_query_module(void); }
348 AUE_PRCTL MSTD { int linux_prctl(void); }
349 AUE_PREAD MSTD { int linux_pread(l_uint fd, char *buf, \
l_size_t nbyte, l_loff_t offset); }
350 AUE_PWRITE MSTD { int linux_pwrite(l_uint fd, char *buf, \
l_size_t nbyte, l_loff_t offset); }
351 AUE_NULL MSTD { int linux_rt_sigreturn(void); }
352 AUE_NULL MSTD { int linux_rt_sigaction(l_int sig, \
l_sigaction_t *act, l_sigaction_t *oact, \
l_size_t sigsetsize); }
353 AUE_NULL MSTD { int linux_rt_sigprocmask(l_int how, \
l_sigset_t *mask, l_sigset_t *omask, \
l_size_t sigsetsize); }
354 AUE_NULL MSTD { int linux_rt_sigpending(void); }
355 AUE_NULL MSTD { int linux_rt_sigtimedwait(void); }
356 AUE_NULL MSTD { int linux_rt_sigqueueinfo(void); }
357 AUE_NULL MSTD { int linux_rt_sigsuspend(l_sigset_t \
*newset, l_size_t sigsetsize); }
358 AUE_SELECT MSTD { int linux_select(l_int nfds, \
l_fd_set *readfds, l_fd_set *writefds, \
l_fd_set *exceptfds, \
struct l_timeval *timeout); }
359 AUE_NULL MNOPROTO { int gettimeofday( \
struct timeval *tp, \
struct timezone *tzp); }
360 AUE_SETTIMEOFDAY MNOPROTO { int settimeofday( \
struct timeval *tp, \
struct timezone *tzp); }
361 AUE_GETITIMER MSTD { int linux_getitimer(l_int which, \
struct l_itimerval *itv); }
362 AUE_SETITIMER MSTD { int linux_setitimer(l_int which, \
struct l_itimerval *itv, \
struct l_itimerval *oitv); }
363 AUE_UTIMES MSTD { int linux_utimes(char *fname, \
struct l_timeval *times); }
364 AUE_GETRUSAGE MNOPROTO { int getrusage(int who, \
struct rusage *rusage); }
365 AUE_WAIT4 MSTD { int linux_wait4(l_pid_t pid, \
l_uint *status, l_int options, \
struct l_rusage *rusage); }
366 AUE_ADJTIME MSTD { int linux_adjtimex(void); }
367 AUE_GETCWD MSTD { int linux_getcwd(char *buf, \
l_ulong bufsize); }
368 AUE_CAPGET MSTD { int linux_capget(void); }
369 AUE_CAPSET MSTD { int linux_capset(void); }
370 AUE_SENDFILE MSTD { int linux_sendfile(void); }
371 AUE_SETRESGID MNOPROTO { int setresgid(gid_t rgid, \
gid_t egid, gid_t sgid); }
372 AUE_GETRESGID MNOPROTO { int getresgid(gid_t *rgid, \
gid_t *egid, gid_t *sgid); }
373 AUE_NULL UNIMPL sys_dipc
374 AUE_PIVOT_ROOT MSTD { int linux_pivot_root(char *new_root, \
char *put_old); }
375 AUE_MINCORE MSTD { int linux_mincore(l_ulong start, \
l_size_t len, u_char *vec); }
376 AUE_NULL MSTD { int linux_pciconfig_iobase(void); }
377 AUE_O_GETDENTS STD { int linux_getdents64(l_uint fd, void *dirent, l_uint count); }