Remove the pecoff system table defines, they aren't needed since the

emulation uses a user-space library and normal netbsd calls.
This commit is contained in:
dsl 2007-11-10 09:41:01 +00:00
parent 91551751e7
commit 2cabf5c1f0
11 changed files with 9 additions and 4574 deletions

View File

@ -1,13 +0,0 @@
# $NetBSD: Makefile,v 1.5 2005/12/11 12:20:23 christos Exp $
.include <bsd.sys.mk> # for HOST_SH
DEP= syscalls.conf syscalls.master ../../kern/makesyscalls.sh
OBJS= pecoff_sysent.c pecoff_syscalls.c pecoff_syscall.h pecoff_syscallargs.h
${OBJS}: ${DEP}
${HOST_SH} ../../kern/makesyscalls.sh syscalls.conf syscalls.master
all: ${OBJS}
.include <bsd.kinc.mk>

View File

@ -1,8 +1,5 @@
# $NetBSD: files.pecoff,v 1.4 2002/03/25 06:44:46 kent Exp $ # $NetBSD: files.pecoff,v 1.5 2007/11/10 09:41:02 dsl Exp $
# #
file compat/pecoff/pecoff_exec.c compat_pecoff file compat/pecoff/pecoff_exec.c compat_pecoff
file compat/pecoff/pecoff_emul.c compat_pecoff file compat/pecoff/pecoff_emul.c compat_pecoff
file compat/pecoff/pecoff_misc.c compat_pecoff
file compat/pecoff/pecoff_syscalls.c compat_pecoff
file compat/pecoff/pecoff_sysent.c compat_pecoff

View File

@ -1,4 +1,4 @@
/* $NetBSD: pecoff_emul.c,v 1.18 2007/02/19 15:10:03 cube Exp $ */ /* $NetBSD: pecoff_emul.c,v 1.19 2007/11/10 09:41:02 dsl Exp $ */
/* /*
* Copyright (c) 2000 Masaru OKI * Copyright (c) 2000 Masaru OKI
@ -37,7 +37,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pecoff_emul.c,v 1.18 2007/02/19 15:10:03 cube Exp $"); __KERNEL_RCSID(0, "$NetBSD: pecoff_emul.c,v 1.19 2007/11/10 09:41:02 dsl Exp $");
/*#define DEBUG_PECOFF*/ /*#define DEBUG_PECOFF*/
@ -64,12 +64,8 @@ __KERNEL_RCSID(0, "$NetBSD: pecoff_emul.c,v 1.18 2007/02/19 15:10:03 cube Exp $"
#include <compat/pecoff/pecoff_exec.h> #include <compat/pecoff/pecoff_exec.h>
#include <compat/pecoff/pecoff_util.h> #include <compat/pecoff/pecoff_util.h>
#include <compat/pecoff/pecoff_syscall.h>
extern struct sysent pecoff_sysent[]; extern struct sysent pecoff_sysent[];
#ifdef SYSCALL_DEBUG
extern const char * const pecoff_syscallnames[];
#endif
#ifdef COMPAT_16 #ifdef COMPAT_16
extern char sigcode[], esigcode[]; extern char sigcode[], esigcode[];
@ -86,12 +82,12 @@ const struct emul emul_pecoff = {
#ifndef __HAVE_MINIMAL_EMUL #ifndef __HAVE_MINIMAL_EMUL
EMUL_HAS_SYS___syscall, EMUL_HAS_SYS___syscall,
0, 0,
PECOFF_SYS_syscall, SYS_syscall,
PECOFF_SYS_NSYSENT, SYS_NSYSENT,
#endif #endif
pecoff_sysent, sysent,
#ifdef SYSCALL_DEBUG #ifdef SYSCALL_DEBUG
pecoff_syscallnames, syscallnames,
#else #else
NULL, NULL,
#endif #endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: pecoff_exec.c,v 1.35 2007/04/22 08:29:59 dsl Exp $ */ /* $NetBSD: pecoff_exec.c,v 1.36 2007/11/10 09:41:02 dsl Exp $ */
/* /*
* Copyright (c) 2000 Masaru OKI * Copyright (c) 2000 Masaru OKI
@ -37,7 +37,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pecoff_exec.c,v 1.35 2007/04/22 08:29:59 dsl Exp $"); __KERNEL_RCSID(0, "$NetBSD: pecoff_exec.c,v 1.36 2007/11/10 09:41:02 dsl Exp $");
/*#define DEBUG_PECOFF*/ /*#define DEBUG_PECOFF*/
@ -58,7 +58,6 @@ __KERNEL_RCSID(0, "$NetBSD: pecoff_exec.c,v 1.35 2007/04/22 08:29:59 dsl Exp $")
#include <compat/pecoff/pecoff_exec.h> #include <compat/pecoff/pecoff_exec.h>
#include <compat/pecoff/pecoff_util.h> #include <compat/pecoff/pecoff_util.h>
#include <compat/pecoff/pecoff_syscall.h>
int pecoff_signature (struct lwp *l, struct vnode *vp, int pecoff_signature (struct lwp *l, struct vnode *vp,
struct pecoff_dos_filehdr *dp); struct pecoff_dos_filehdr *dp);

View File

@ -1,61 +0,0 @@
/* $NetBSD: pecoff_misc.c,v 1.19 2007/04/23 21:22:29 dsl Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Christos Zoulas.
*
* 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.
* 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. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``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 FOUNDATION OR CONTRIBUTORS
* 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>
__KERNEL_RCSID(0, "$NetBSD: pecoff_misc.c,v 1.19 2007/04/23 21:22:29 dsl Exp $");
#if defined(_KERNEL_OPT)
#include "opt_nfsserver.h"
#include "opt_compat_netbsd.h"
#include "opt_sysv.h"
#include "opt_compat_43.h"
#include "fs_lfs.h"
#include "fs_nfs.h"
#endif
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mount.h>
#include <sys/fcntl.h>
#include <sys/proc.h>
#include <sys/syscallargs.h>
#include <compat/common/compat_util.h>
#include <compat/pecoff/pecoff_syscallargs.h>

File diff suppressed because it is too large Load Diff

View File

@ -1,752 +0,0 @@
/* $NetBSD: pecoff_syscallargs.h,v 1.31 2007/11/09 15:10:33 dsl Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.30 2007/11/09 15:05:34 dsl Exp
*/
#ifndef _PECOFF_SYS_SYSCALLARGS_H_
#define _PECOFF_SYS_SYSCALLARGS_H_
#define PECOFF_SYS_MAXSYSARGS 8
#undef syscallarg
#define syscallarg(x) \
union { \
register_t pad; \
struct { x datum; } le; \
struct { /* LINTED zero array dimension */ \
int8_t pad[ /* CONSTCOND */ \
(sizeof (register_t) < sizeof (x)) \
? 0 \
: sizeof (register_t) - sizeof (x)]; \
x datum; \
} be; \
}
#undef check_syscall_args
#define check_syscall_args(call) \
typedef char call##_check_args[sizeof (struct call##_args) \
<= PECOFF_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
struct sys_syscall_args {
syscallarg(int) code;
syscallarg(register_t) args[PECOFF_SYS_MAXSYSARGS];
};
#ifdef COMPAT_20
#else
#endif
#ifdef COMPAT_43
#else
#endif
#ifdef COMPAT_43
#else
#endif
#if defined(KTRACE) || !defined(_KERNEL)
#else
#endif
#ifdef COMPAT_43
#else
#endif
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
#else
#endif
#ifdef COMPAT_20
#else
#endif
#ifdef COMPAT_30
#else
#endif
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
#else
#endif
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
#else
#endif
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
#else
#endif
#if defined(NTP) || !defined(_KERNEL)
#else
#endif
#if defined(LFS) || !defined(_KERNEL)
#else
#endif
struct sys___syscall_args {
syscallarg(quad_t) code;
syscallarg(register_t) args[PECOFF_SYS_MAXSYSARGS];
};
#if defined(LKM) || !defined(_KERNEL)
#else /* !LKM */
#endif /* !LKM */
#if defined(SYSVSEM) || !defined(_KERNEL)
#else
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
#else
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
#else
#endif
#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
#else
#endif
#ifdef COMPAT_30
#endif
#ifdef COMPAT_30
#endif
#if defined(KTRACE) || !defined(_KERNEL)
#else
#endif
#ifdef COMPAT_16
#else
#endif
#ifdef COMPAT_16
#else
#endif
#ifdef COMPAT_30
#else
#endif
#ifdef COMPAT_20
#else
#endif
#if defined(SYSVSEM) || !defined(_KERNEL)
#else
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
#else
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
#else
#endif
#ifdef COMPAT_30
#else
#endif
#ifdef COMPAT_30
#else
#endif
/*
* System call prototypes.
*/
int sys_syscall(struct lwp *, void *, register_t *);
int sys_exit(struct lwp *, void *, register_t *);
int sys_fork(struct lwp *, void *, register_t *);
int sys_read(struct lwp *, void *, register_t *);
int sys_write(struct lwp *, void *, register_t *);
int sys_open(struct lwp *, void *, register_t *);
int sys_close(struct lwp *, void *, register_t *);
int sys_wait4(struct lwp *, void *, register_t *);
int sys_link(struct lwp *, void *, register_t *);
int sys_unlink(struct lwp *, void *, register_t *);
int sys_chdir(struct lwp *, void *, register_t *);
int sys_fchdir(struct lwp *, void *, register_t *);
int sys_mknod(struct lwp *, void *, register_t *);
int sys_chmod(struct lwp *, void *, register_t *);
int sys_chown(struct lwp *, void *, register_t *);
int sys_obreak(struct lwp *, void *, register_t *);
#ifdef COMPAT_20
int compat_20_sys_getfsstat(struct lwp *, void *, register_t *);
#else
#endif
#ifdef COMPAT_43
int sys_getpid_with_ppid(struct lwp *, void *, register_t *);
#else
int sys_getpid(struct lwp *, void *, register_t *);
#endif
int compat_40_sys_mount(struct lwp *, void *, register_t *);
int sys_unmount(struct lwp *, void *, register_t *);
int sys_setuid(struct lwp *, void *, register_t *);
#ifdef COMPAT_43
int sys_getuid_with_euid(struct lwp *, void *, register_t *);
#else
int sys_getuid(struct lwp *, void *, register_t *);
#endif
int sys_geteuid(struct lwp *, void *, register_t *);
int sys_ptrace(struct lwp *, void *, register_t *);
int sys_recvmsg(struct lwp *, void *, register_t *);
int sys_sendmsg(struct lwp *, void *, register_t *);
int sys_recvfrom(struct lwp *, void *, register_t *);
int sys_accept(struct lwp *, void *, register_t *);
int sys_getpeername(struct lwp *, void *, register_t *);
int sys_getsockname(struct lwp *, void *, register_t *);
int sys_access(struct lwp *, void *, register_t *);
int sys_chflags(struct lwp *, void *, register_t *);
int sys_fchflags(struct lwp *, void *, register_t *);
int sys_sync(struct lwp *, void *, register_t *);
int sys_kill(struct lwp *, void *, register_t *);
int sys_getppid(struct lwp *, void *, register_t *);
int sys_dup(struct lwp *, void *, register_t *);
int sys_pipe(struct lwp *, void *, register_t *);
int sys_getegid(struct lwp *, void *, register_t *);
int sys_profil(struct lwp *, void *, register_t *);
#if defined(KTRACE) || !defined(_KERNEL)
int sys_ktrace(struct lwp *, void *, register_t *);
#else
#endif
#ifdef COMPAT_43
int sys_getgid_with_egid(struct lwp *, void *, register_t *);
#else
int sys_getgid(struct lwp *, void *, register_t *);
#endif
int sys___getlogin(struct lwp *, void *, register_t *);
int sys___setlogin(struct lwp *, void *, register_t *);
int sys_acct(struct lwp *, void *, register_t *);
int sys_ioctl(struct lwp *, void *, register_t *);
int sys_revoke(struct lwp *, void *, register_t *);
int sys_symlink(struct lwp *, void *, register_t *);
int sys_readlink(struct lwp *, void *, register_t *);
int sys_execve(struct lwp *, void *, register_t *);
int sys_umask(struct lwp *, void *, register_t *);
int sys_chroot(struct lwp *, void *, register_t *);
int sys_vfork(struct lwp *, void *, register_t *);
int sys_sbrk(struct lwp *, void *, register_t *);
int sys_sstk(struct lwp *, void *, register_t *);
int sys_ovadvise(struct lwp *, void *, register_t *);
int sys_munmap(struct lwp *, void *, register_t *);
int sys_mprotect(struct lwp *, void *, register_t *);
int sys_madvise(struct lwp *, void *, register_t *);
int sys_mincore(struct lwp *, void *, register_t *);
int sys_getgroups(struct lwp *, void *, register_t *);
int sys_setgroups(struct lwp *, void *, register_t *);
int sys_getpgrp(struct lwp *, void *, register_t *);
int sys_setpgid(struct lwp *, void *, register_t *);
int sys_setitimer(struct lwp *, void *, register_t *);
int sys_getitimer(struct lwp *, void *, register_t *);
int sys_dup2(struct lwp *, void *, register_t *);
int sys_fcntl(struct lwp *, void *, register_t *);
int sys_select(struct lwp *, void *, register_t *);
int sys_fsync(struct lwp *, void *, register_t *);
int sys_setpriority(struct lwp *, void *, register_t *);
int compat_30_sys_socket(struct lwp *, void *, register_t *);
int sys_connect(struct lwp *, void *, register_t *);
int sys_getpriority(struct lwp *, void *, register_t *);
int sys_bind(struct lwp *, void *, register_t *);
int sys_setsockopt(struct lwp *, void *, register_t *);
int sys_listen(struct lwp *, void *, register_t *);
int sys_gettimeofday(struct lwp *, void *, register_t *);
int sys_getrusage(struct lwp *, void *, register_t *);
int sys_getsockopt(struct lwp *, void *, register_t *);
int sys_readv(struct lwp *, void *, register_t *);
int sys_writev(struct lwp *, void *, register_t *);
int sys_settimeofday(struct lwp *, void *, register_t *);
int sys_fchown(struct lwp *, void *, register_t *);
int sys_fchmod(struct lwp *, void *, register_t *);
int sys_setreuid(struct lwp *, void *, register_t *);
int sys_setregid(struct lwp *, void *, register_t *);
int sys_rename(struct lwp *, void *, register_t *);
int sys_flock(struct lwp *, void *, register_t *);
int sys_mkfifo(struct lwp *, void *, register_t *);
int sys_sendto(struct lwp *, void *, register_t *);
int sys_shutdown(struct lwp *, void *, register_t *);
int sys_socketpair(struct lwp *, void *, register_t *);
int sys_mkdir(struct lwp *, void *, register_t *);
int sys_rmdir(struct lwp *, void *, register_t *);
int sys_utimes(struct lwp *, void *, register_t *);
int sys_adjtime(struct lwp *, void *, register_t *);
int sys_setsid(struct lwp *, void *, register_t *);
int sys_quotactl(struct lwp *, void *, register_t *);
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
int sys_nfssvc(struct lwp *, void *, register_t *);
#else
#endif
int compat_20_sys_statfs(struct lwp *, void *, register_t *);
#ifdef COMPAT_20
int compat_20_sys_fstatfs(struct lwp *, void *, register_t *);
#else
#endif
#ifdef COMPAT_30
int compat_30_sys_getfh(struct lwp *, void *, register_t *);
#else
#endif
int sys_sysarch(struct lwp *, void *, register_t *);
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
#else
#endif
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
#else
#endif
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
#else
#endif
int sys_pread(struct lwp *, void *, register_t *);
int sys_pwrite(struct lwp *, void *, register_t *);
#if defined(NTP) || !defined(_KERNEL)
int sys_ntp_adjtime(struct lwp *, void *, register_t *);
#else
#endif
int sys_setgid(struct lwp *, void *, register_t *);
int sys_setegid(struct lwp *, void *, register_t *);
int sys_seteuid(struct lwp *, void *, register_t *);
#if defined(LFS) || !defined(_KERNEL)
int sys_lfs_bmapv(struct lwp *, void *, register_t *);
int sys_lfs_markv(struct lwp *, void *, register_t *);
int sys_lfs_segclean(struct lwp *, void *, register_t *);
int sys_lfs_segwait(struct lwp *, void *, register_t *);
#else
#endif
int sys_pathconf(struct lwp *, void *, register_t *);
int sys_fpathconf(struct lwp *, void *, register_t *);
int sys_getrlimit(struct lwp *, void *, register_t *);
int sys_setrlimit(struct lwp *, void *, register_t *);
int sys_mmap(struct lwp *, void *, register_t *);
int sys___syscall(struct lwp *, void *, register_t *);
int sys_lseek(struct lwp *, void *, register_t *);
int sys_truncate(struct lwp *, void *, register_t *);
int sys_ftruncate(struct lwp *, void *, register_t *);
int sys___sysctl(struct lwp *, void *, register_t *);
int sys_mlock(struct lwp *, void *, register_t *);
int sys_munlock(struct lwp *, void *, register_t *);
int sys_undelete(struct lwp *, void *, register_t *);
int sys_futimes(struct lwp *, void *, register_t *);
int sys_getpgid(struct lwp *, void *, register_t *);
int sys_reboot(struct lwp *, void *, register_t *);
int sys_poll(struct lwp *, void *, register_t *);
#if defined(LKM) || !defined(_KERNEL)
int sys_lkmnosys(struct lwp *, void *, register_t *);
#else /* !LKM */
#endif /* !LKM */
#if defined(SYSVSEM) || !defined(_KERNEL)
int sys_semget(struct lwp *, void *, register_t *);
int sys_semop(struct lwp *, void *, register_t *);
int sys_semconfig(struct lwp *, void *, register_t *);
#else
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
int sys_msgget(struct lwp *, void *, register_t *);
int sys_msgsnd(struct lwp *, void *, register_t *);
int sys_msgrcv(struct lwp *, void *, register_t *);
#else
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
int sys_shmat(struct lwp *, void *, register_t *);
int sys_shmdt(struct lwp *, void *, register_t *);
int sys_shmget(struct lwp *, void *, register_t *);
#else
#endif
int sys_clock_gettime(struct lwp *, void *, register_t *);
int sys_clock_settime(struct lwp *, void *, register_t *);
int sys_clock_getres(struct lwp *, void *, register_t *);
int sys_timer_create(struct lwp *, void *, register_t *);
int sys_timer_delete(struct lwp *, void *, register_t *);
int sys_timer_settime(struct lwp *, void *, register_t *);
int sys_timer_gettime(struct lwp *, void *, register_t *);
int sys_timer_getoverrun(struct lwp *, void *, register_t *);
int sys_nanosleep(struct lwp *, void *, register_t *);
int sys_fdatasync(struct lwp *, void *, register_t *);
int sys_mlockall(struct lwp *, void *, register_t *);
int sys_munlockall(struct lwp *, void *, register_t *);
int sys___sigtimedwait(struct lwp *, void *, register_t *);
#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
int sys__ksem_init(struct lwp *, void *, register_t *);
int sys__ksem_open(struct lwp *, void *, register_t *);
int sys__ksem_unlink(struct lwp *, void *, register_t *);
int sys__ksem_close(struct lwp *, void *, register_t *);
int sys__ksem_post(struct lwp *, void *, register_t *);
int sys__ksem_wait(struct lwp *, void *, register_t *);
int sys__ksem_trywait(struct lwp *, void *, register_t *);
int sys__ksem_getvalue(struct lwp *, void *, register_t *);
int sys__ksem_destroy(struct lwp *, void *, register_t *);
#else
#endif
int sys___posix_rename(struct lwp *, void *, register_t *);
int sys_swapctl(struct lwp *, void *, register_t *);
#ifdef COMPAT_30
int compat_30_sys_getdents(struct lwp *, void *, register_t *);
#endif
int sys_minherit(struct lwp *, void *, register_t *);
int sys_lchmod(struct lwp *, void *, register_t *);
int sys_lchown(struct lwp *, void *, register_t *);
int sys_lutimes(struct lwp *, void *, register_t *);
int sys___msync13(struct lwp *, void *, register_t *);
#ifdef COMPAT_30
int compat_30_sys___stat13(struct lwp *, void *, register_t *);
int compat_30_sys___fstat13(struct lwp *, void *, register_t *);
int compat_30_sys___lstat13(struct lwp *, void *, register_t *);
#endif
int sys___sigaltstack14(struct lwp *, void *, register_t *);
int sys___vfork14(struct lwp *, void *, register_t *);
int sys___posix_chown(struct lwp *, void *, register_t *);
int sys___posix_fchown(struct lwp *, void *, register_t *);
int sys___posix_lchown(struct lwp *, void *, register_t *);
int sys_getsid(struct lwp *, void *, register_t *);
int sys___clone(struct lwp *, void *, register_t *);
#if defined(KTRACE) || !defined(_KERNEL)
int sys_fktrace(struct lwp *, void *, register_t *);
#else
#endif
int sys_preadv(struct lwp *, void *, register_t *);
int sys_pwritev(struct lwp *, void *, register_t *);
#ifdef COMPAT_16
int compat_16_sys___sigaction14(struct lwp *, void *, register_t *);
#else
#endif
int sys___sigpending14(struct lwp *, void *, register_t *);
int sys___sigprocmask14(struct lwp *, void *, register_t *);
int sys___sigsuspend14(struct lwp *, void *, register_t *);
#ifdef COMPAT_16
int compat_16_sys___sigreturn14(struct lwp *, void *, register_t *);
#else
#endif
int sys___getcwd(struct lwp *, void *, register_t *);
int sys_fchroot(struct lwp *, void *, register_t *);
#ifdef COMPAT_30
int compat_30_sys_fhopen(struct lwp *, void *, register_t *);
int compat_30_sys_fhstat(struct lwp *, void *, register_t *);
#else
#endif
#ifdef COMPAT_20
int compat_20_sys_fhstatfs(struct lwp *, void *, register_t *);
#else
#endif
#if defined(SYSVSEM) || !defined(_KERNEL)
int sys_____semctl13(struct lwp *, void *, register_t *);
#else
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
int sys___msgctl13(struct lwp *, void *, register_t *);
#else
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
int sys___shmctl13(struct lwp *, void *, register_t *);
#else
#endif
int sys_lchflags(struct lwp *, void *, register_t *);
int sys_issetugid(struct lwp *, void *, register_t *);
int sys_utrace(struct lwp *, void *, register_t *);
int sys_getcontext(struct lwp *, void *, register_t *);
int sys_setcontext(struct lwp *, void *, register_t *);
int sys__lwp_create(struct lwp *, void *, register_t *);
int sys__lwp_exit(struct lwp *, void *, register_t *);
int sys__lwp_self(struct lwp *, void *, register_t *);
int sys__lwp_wait(struct lwp *, void *, register_t *);
int sys__lwp_suspend(struct lwp *, void *, register_t *);
int sys__lwp_continue(struct lwp *, void *, register_t *);
int sys__lwp_wakeup(struct lwp *, void *, register_t *);
int sys__lwp_getprivate(struct lwp *, void *, register_t *);
int sys__lwp_setprivate(struct lwp *, void *, register_t *);
int sys___sigaction_sigtramp(struct lwp *, void *, register_t *);
int sys_pmc_get_info(struct lwp *, void *, register_t *);
int sys_pmc_control(struct lwp *, void *, register_t *);
int sys_rasctl(struct lwp *, void *, register_t *);
int sys_kqueue(struct lwp *, void *, register_t *);
int sys_kevent(struct lwp *, void *, register_t *);
int sys_fsync_range(struct lwp *, void *, register_t *);
int sys_uuidgen(struct lwp *, void *, register_t *);
int sys_getvfsstat(struct lwp *, void *, register_t *);
int sys_statvfs1(struct lwp *, void *, register_t *);
int sys_fstatvfs1(struct lwp *, void *, register_t *);
#ifdef COMPAT_30
int compat_30_sys_fhstatvfs1(struct lwp *, void *, register_t *);
#else
#endif
int sys_extattrctl(struct lwp *, void *, register_t *);
int sys_extattr_set_file(struct lwp *, void *, register_t *);
int sys_extattr_get_file(struct lwp *, void *, register_t *);
int sys_extattr_delete_file(struct lwp *, void *, register_t *);
int sys_extattr_set_fd(struct lwp *, void *, register_t *);
int sys_extattr_get_fd(struct lwp *, void *, register_t *);
int sys_extattr_delete_fd(struct lwp *, void *, register_t *);
int sys_extattr_set_link(struct lwp *, void *, register_t *);
int sys_extattr_get_link(struct lwp *, void *, register_t *);
int sys_extattr_delete_link(struct lwp *, void *, register_t *);
int sys_extattr_list_fd(struct lwp *, void *, register_t *);
int sys_extattr_list_file(struct lwp *, void *, register_t *);
int sys_extattr_list_link(struct lwp *, void *, register_t *);
int sys_pselect(struct lwp *, void *, register_t *);
int sys_pollts(struct lwp *, void *, register_t *);
int sys_setxattr(struct lwp *, void *, register_t *);
int sys_lsetxattr(struct lwp *, void *, register_t *);
int sys_fsetxattr(struct lwp *, void *, register_t *);
int sys_getxattr(struct lwp *, void *, register_t *);
int sys_lgetxattr(struct lwp *, void *, register_t *);
int sys_fgetxattr(struct lwp *, void *, register_t *);
int sys_listxattr(struct lwp *, void *, register_t *);
int sys_llistxattr(struct lwp *, void *, register_t *);
int sys_flistxattr(struct lwp *, void *, register_t *);
int sys_removexattr(struct lwp *, void *, register_t *);
int sys_lremovexattr(struct lwp *, void *, register_t *);
int sys_fremovexattr(struct lwp *, void *, register_t *);
int sys___stat30(struct lwp *, void *, register_t *);
int sys___fstat30(struct lwp *, void *, register_t *);
int sys___lstat30(struct lwp *, void *, register_t *);
int sys___getdents30(struct lwp *, void *, register_t *);
int sys_posix_fadvise(struct lwp *, void *, register_t *);
#ifdef COMPAT_30
int compat_30_sys___fhstat30(struct lwp *, void *, register_t *);
#else
#endif
int sys___ntp_gettime30(struct lwp *, void *, register_t *);
int sys___socket30(struct lwp *, void *, register_t *);
int sys___getfh30(struct lwp *, void *, register_t *);
int sys___fhopen40(struct lwp *, void *, register_t *);
int sys___fhstatvfs140(struct lwp *, void *, register_t *);
#endif /* _PECOFF_SYS_SYSCALLARGS_H_ */

View File

@ -1,581 +0,0 @@
/* $NetBSD: pecoff_syscalls.c,v 1.31 2007/11/09 15:10:33 dsl Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.30 2007/11/09 15:05:34 dsl Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pecoff_syscalls.c,v 1.31 2007/11/09 15:10:33 dsl Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
#include "opt_ktrace.h"
#include "opt_nfsserver.h"
#include "opt_ntp.h"
#include "opt_compat_netbsd.h"
#include "opt_sysv.h"
#include "opt_compat_43.h"
#include "opt_posix.h"
#include "fs_lfs.h"
#include "fs_nfs.h"
#endif
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/shm.h>
#include <sys/syscallargs.h>
#include <compat/pecoff/pecoff_syscallargs.h>
#include <compat/sys/shm.h>
#endif /* _KERNEL_OPT */
const char *const pecoff_syscallnames[] = {
/* 0 */ "syscall",
/* 1 */ "exit",
/* 2 */ "fork",
/* 3 */ "read",
/* 4 */ "write",
/* 5 */ "open",
/* 6 */ "close",
/* 7 */ "wait4",
/* 8 */ "#8 (excluded { int sys_creat ( const char * path , mode_t mode ) ; } ocreat)",
/* 9 */ "link",
/* 10 */ "unlink",
/* 11 */ "#11 (obsolete execv)",
/* 12 */ "chdir",
/* 13 */ "fchdir",
/* 14 */ "mknod",
/* 15 */ "chmod",
/* 16 */ "chown",
/* 17 */ "break",
#ifdef COMPAT_20
/* 18 */ "getfsstat",
#else
/* 18 */ "#18 (excluded compat_20_sys_getfsstat)",
#endif
/* 19 */ "#19 (excluded { long sys_lseek ( int fd , long offset , int whence ) ; } olseek)",
#ifdef COMPAT_43
/* 20 */ "getpid",
#else
/* 20 */ "getpid",
#endif
/* 21 */ "mount",
/* 22 */ "unmount",
/* 23 */ "setuid",
#ifdef COMPAT_43
/* 24 */ "getuid",
#else
/* 24 */ "getuid",
#endif
/* 25 */ "geteuid",
/* 26 */ "ptrace",
/* 27 */ "recvmsg",
/* 28 */ "sendmsg",
/* 29 */ "recvfrom",
/* 30 */ "accept",
/* 31 */ "getpeername",
/* 32 */ "getsockname",
/* 33 */ "access",
/* 34 */ "chflags",
/* 35 */ "fchflags",
/* 36 */ "sync",
/* 37 */ "kill",
/* 38 */ "#38 (excluded { int compat_43_sys_stat ( const char * path , struct stat43 * ub ) ; } stat43)",
/* 39 */ "getppid",
/* 40 */ "#40 (excluded { int compat_43_sys_lstat ( const char * path , struct stat43 * ub ) ; } lstat43)",
/* 41 */ "dup",
/* 42 */ "pipe",
/* 43 */ "getegid",
/* 44 */ "profil",
#if defined(KTRACE) || !defined(_KERNEL)
/* 45 */ "ktrace",
#else
/* 45 */ "#45 (excluded ktrace)",
#endif
/* 46 */ "#46 (excluded { int sys_sigaction ( int signum , const struct sigaction13 * nsa , struct sigaction13 * osa ) ; } sigaction13)",
#ifdef COMPAT_43
/* 47 */ "getgid",
#else
/* 47 */ "getgid",
#endif
/* 48 */ "#48 (excluded { int sys_sigprocmask ( int how , int mask ) ; } sigprocmask13)",
/* 49 */ "__getlogin",
/* 50 */ "__setlogin",
/* 51 */ "acct",
/* 52 */ "#52 (excluded { int sys_sigpending ( void ) ; } sigpending13)",
/* 53 */ "#53 (excluded { int sys_sigaltstack ( const struct sigaltstack13 * nss , struct sigaltstack13 * oss ) ; } sigaltstack13)",
/* 54 */ "ioctl",
/* 55 */ "#55 (excluded { int sys_reboot ( int opt ) ; } oreboot)",
/* 56 */ "revoke",
/* 57 */ "symlink",
/* 58 */ "readlink",
/* 59 */ "execve",
/* 60 */ "umask",
/* 61 */ "chroot",
/* 62 */ "#62 (excluded { int sys_fstat ( int fd , struct stat43 * sb ) ; } fstat43)",
/* 63 */ "#63 (excluded { int sys_getkerninfo ( int op , char * where , int * size , int arg ) ; } ogetkerninfo)",
/* 64 */ "#64 (excluded { int sys_getpagesize ( void ) ; } ogetpagesize)",
/* 65 */ "#65 (excluded { int sys_msync ( void * addr , size_t len ) ; })",
/* 66 */ "vfork",
/* 67 */ "#67 (obsolete vread)",
/* 68 */ "#68 (obsolete vwrite)",
/* 69 */ "sbrk",
/* 70 */ "sstk",
/* 71 */ "#71 (excluded { int sys_mmap ( void * addr , size_t len , int prot , int flags , int fd , long pos ) ; } ommap)",
/* 72 */ "vadvise",
/* 73 */ "munmap",
/* 74 */ "mprotect",
/* 75 */ "madvise",
/* 76 */ "#76 (obsolete vhangup)",
/* 77 */ "#77 (obsolete vlimit)",
/* 78 */ "mincore",
/* 79 */ "getgroups",
/* 80 */ "setgroups",
/* 81 */ "getpgrp",
/* 82 */ "setpgid",
/* 83 */ "setitimer",
/* 84 */ "#84 (excluded { int sys_wait ( void ) ; } owait)",
/* 85 */ "#85 (excluded { int sys_swapon ( const char * name ) ; } oswapon)",
/* 86 */ "getitimer",
/* 87 */ "#87 (excluded { int sys_gethostname ( char * hostname , u_int len ) ; } ogethostname)",
/* 88 */ "#88 (excluded { int sys_sethostname ( char * hostname , u_int len ) ; } osethostname)",
/* 89 */ "#89 (excluded { int sys_getdtablesize ( void ) ; } ogetdtablesize)",
/* 90 */ "dup2",
/* 91 */ "#91 (unimplemented getdopt)",
/* 92 */ "fcntl",
/* 93 */ "select",
/* 94 */ "#94 (unimplemented setdopt)",
/* 95 */ "fsync",
/* 96 */ "setpriority",
/* 97 */ "socket",
/* 98 */ "connect",
/* 99 */ "#99 (excluded { int sys_accept ( int s , void * name , int * anamelen ) ; } oaccept)",
/* 100 */ "getpriority",
/* 101 */ "#101 (excluded { int sys_send ( int s , void * buf , int len , int flags ) ; } osend)",
/* 102 */ "#102 (excluded { int sys_recv ( int s , void * buf , int len , int flags ) ; } orecv)",
/* 103 */ "#103 (excluded { int sys_sigreturn ( struct sigcontext13 * sigcntxp ) ; } sigreturn13)",
/* 104 */ "bind",
/* 105 */ "setsockopt",
/* 106 */ "listen",
/* 107 */ "#107 (obsolete vtimes)",
/* 108 */ "#108 (excluded { int sys_sigvec ( int signum , struct sigvec * nsv , struct sigvec * osv ) ; } osigvec)",
/* 109 */ "#109 (excluded { int sys_sigblock ( int mask ) ; } osigblock)",
/* 110 */ "#110 (excluded { int sys_sigsetmask ( int mask ) ; } osigsetmask)",
/* 111 */ "#111 (excluded { int sys_sigsuspend ( int mask ) ; } sigsuspend13)",
/* 112 */ "#112 (excluded { int sys_sigstack ( struct sigstack * nss , struct sigstack * oss ) ; } osigstack)",
/* 113 */ "#113 (excluded { int sys_recvmsg ( int s , struct omsghdr * msg , int flags ) ; } orecvmsg)",
/* 114 */ "#114 (excluded { int sys_sendmsg ( int s , void * msg , int flags ) ; } osendmsg)",
/* 115 */ "#115 (obsolete vtrace)",
/* 116 */ "gettimeofday",
/* 117 */ "getrusage",
/* 118 */ "getsockopt",
/* 119 */ "#119 (obsolete resuba)",
/* 120 */ "readv",
/* 121 */ "writev",
/* 122 */ "settimeofday",
/* 123 */ "fchown",
/* 124 */ "fchmod",
/* 125 */ "#125 (excluded { int sys_recvfrom ( int s , void * buf , size_t len , int flags , void * from , int * fromlenaddr ) ; } orecvfrom)",
/* 126 */ "setreuid",
/* 127 */ "setregid",
/* 128 */ "rename",
/* 129 */ "#129 (excluded { int compat_43_sys_truncate ( const char * path , long length ) ; } otruncate)",
/* 130 */ "#130 (excluded { int sys_ftruncate ( int fd , long length ) ; } oftruncate)",
/* 131 */ "flock",
/* 132 */ "mkfifo",
/* 133 */ "sendto",
/* 134 */ "shutdown",
/* 135 */ "socketpair",
/* 136 */ "mkdir",
/* 137 */ "rmdir",
/* 138 */ "utimes",
/* 139 */ "#139 (obsolete 4.2 sigreturn)",
/* 140 */ "adjtime",
/* 141 */ "#141 (excluded { int sys_getpeername ( int fdes , void * asa , int * alen ) ; } ogetpeername)",
/* 142 */ "#142 (excluded { int32_t sys_gethostid ( void ) ; } ogethostid)",
/* 143 */ "#143 (excluded { int sys_sethostid ( int32_t hostid ) ; } osethostid)",
/* 144 */ "#144 (excluded { int sys_getrlimit ( int which , struct orlimit * rlp ) ; } ogetrlimit)",
/* 145 */ "#145 (excluded { int sys_setrlimit ( int which , const struct orlimit * rlp ) ; } osetrlimit)",
/* 146 */ "#146 (excluded { int sys_killpg ( int pgid , int signum ) ; } okillpg)",
/* 147 */ "setsid",
/* 148 */ "quotactl",
/* 149 */ "#149 (excluded { int sys_quota ( void ) ; } oquota)",
/* 150 */ "#150 (excluded { int sys_getsockname ( int fdec , void * asa , int * alen ) ; } ogetsockname)",
/* 151 */ "#151 (unimplemented)",
/* 152 */ "#152 (unimplemented)",
/* 153 */ "#153 (unimplemented)",
/* 154 */ "#154 (unimplemented)",
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
/* 155 */ "nfssvc",
#else
/* 155 */ "#155 (excluded nfssvc)",
#endif
/* 156 */ "#156 (excluded { int sys_getdirentries ( int fd , char * buf , u_int count , long * basep ) ; } ogetdirentries)",
/* 157 */ "statfs",
#ifdef COMPAT_20
/* 158 */ "fstatfs",
#else
/* 158 */ "#158 (excluded compat_20_sys_fstatfs)",
#endif
/* 159 */ "#159 (unimplemented)",
/* 160 */ "#160 (unimplemented)",
#ifdef COMPAT_30
/* 161 */ "getfh",
#else
/* 161 */ "#161 (excluded compat_30_sys_getfh)",
#endif
/* 162 */ "#162 (excluded { int sys_getdomainname ( char * domainname , int len ) ; } ogetdomainname)",
/* 163 */ "#163 (excluded { int sys_setdomainname ( char * domainname , int len ) ; } osetdomainname)",
/* 164 */ "#164 (excluded { int sys_uname ( struct outsname * name ) ; } ouname)",
/* 165 */ "sysarch",
/* 166 */ "#166 (unimplemented)",
/* 167 */ "#167 (unimplemented)",
/* 168 */ "#168 (unimplemented)",
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
/* 169 */ "#169 (excluded { int sys_semsys ( int which , int a2 , int a3 , int a4 , int a5 ) ; } osemsys)",
#else
/* 169 */ "#169 (excluded 1.0 semsys)",
#endif
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
/* 170 */ "#170 (excluded { int sys_msgsys ( int which , int a2 , int a3 , int a4 , int a5 , int a6 ) ; } omsgsys)",
#else
/* 170 */ "#170 (excluded 1.0 msgsys)",
#endif
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
/* 171 */ "#171 (excluded { int sys_shmsys ( int which , int a2 , int a3 , int a4 ) ; } oshmsys)",
#else
/* 171 */ "#171 (excluded 1.0 shmsys)",
#endif
/* 172 */ "#172 (unimplemented)",
/* 173 */ "pread",
/* 174 */ "pwrite",
/* 175 */ "#175 (unimplemented { int sys_ntp_gettime ( struct ntptimeval * ntvp ) ; })",
#if defined(NTP) || !defined(_KERNEL)
/* 176 */ "ntp_adjtime",
#else
/* 176 */ "#176 (excluded ntp_adjtime)",
#endif
/* 177 */ "#177 (unimplemented)",
/* 178 */ "#178 (unimplemented)",
/* 179 */ "#179 (unimplemented)",
/* 180 */ "#180 (unimplemented)",
/* 181 */ "setgid",
/* 182 */ "setegid",
/* 183 */ "seteuid",
#if defined(LFS) || !defined(_KERNEL)
/* 184 */ "lfs_bmapv",
/* 185 */ "lfs_markv",
/* 186 */ "lfs_segclean",
/* 187 */ "lfs_segwait",
#else
/* 184 */ "#184 (excluded lfs_bmapv)",
/* 185 */ "#185 (excluded lfs_markv)",
/* 186 */ "#186 (excluded lfs_segclean)",
/* 187 */ "#187 (excluded lfs_segwait)",
#endif
/* 188 */ "#188 (excluded { int compat_12_sys_stat ( const char * path , struct stat12 * ub ) ; } stat12)",
/* 189 */ "#189 (excluded { int sys_fstat ( int fd , struct stat12 * sb ) ; } fstat12)",
/* 190 */ "#190 (excluded { int compat_12_sys_lstat ( const char * path , struct stat12 * ub ) ; } lstat12)",
/* 191 */ "pathconf",
/* 192 */ "fpathconf",
/* 193 */ "#193 (unimplemented)",
/* 194 */ "getrlimit",
/* 195 */ "setrlimit",
/* 196 */ "#196 (excluded { int sys_getdirentries ( int fd , char * buf , u_int count , long * basep ) ; })",
/* 197 */ "mmap",
/* 198 */ "__syscall",
/* 199 */ "lseek",
/* 200 */ "truncate",
/* 201 */ "ftruncate",
/* 202 */ "__sysctl",
/* 203 */ "mlock",
/* 204 */ "munlock",
/* 205 */ "undelete",
/* 206 */ "futimes",
/* 207 */ "getpgid",
/* 208 */ "reboot",
/* 209 */ "poll",
#if defined(LKM) || !defined(_KERNEL)
/* 210 */ "lkmnosys",
/* 211 */ "lkmnosys",
/* 212 */ "lkmnosys",
/* 213 */ "lkmnosys",
/* 214 */ "lkmnosys",
/* 215 */ "lkmnosys",
/* 216 */ "lkmnosys",
/* 217 */ "lkmnosys",
/* 218 */ "lkmnosys",
/* 219 */ "lkmnosys",
#else /* !LKM */
/* 210 */ "#210 (excluded lkmnosys)",
/* 211 */ "#211 (excluded lkmnosys)",
/* 212 */ "#212 (excluded lkmnosys)",
/* 213 */ "#213 (excluded lkmnosys)",
/* 214 */ "#214 (excluded lkmnosys)",
/* 215 */ "#215 (excluded lkmnosys)",
/* 216 */ "#216 (excluded lkmnosys)",
/* 217 */ "#217 (excluded lkmnosys)",
/* 218 */ "#218 (excluded lkmnosys)",
/* 219 */ "#219 (excluded lkmnosys)",
#endif /* !LKM */
#if defined(SYSVSEM) || !defined(_KERNEL)
/* 220 */ "#220 (excluded { int sys___semctl ( int semid , int semnum , int cmd , union __semun * arg ) ; })",
/* 221 */ "semget",
/* 222 */ "semop",
/* 223 */ "semconfig",
#else
/* 220 */ "#220 (excluded compat_14_semctl)",
/* 221 */ "#221 (excluded semget)",
/* 222 */ "#222 (excluded semop)",
/* 223 */ "#223 (excluded semconfig)",
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
/* 224 */ "#224 (excluded { int sys_msgctl ( int msqid , int cmd , struct msqid_ds14 * buf ) ; })",
/* 225 */ "msgget",
/* 226 */ "msgsnd",
/* 227 */ "msgrcv",
#else
/* 224 */ "#224 (excluded compat_14_msgctl)",
/* 225 */ "#225 (excluded msgget)",
/* 226 */ "#226 (excluded msgsnd)",
/* 227 */ "#227 (excluded msgrcv)",
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
/* 228 */ "shmat",
/* 229 */ "#229 (excluded { int sys_shmctl ( int shmid , int cmd , struct shmid_ds14 * buf ) ; })",
/* 230 */ "shmdt",
/* 231 */ "shmget",
#else
/* 228 */ "#228 (excluded shmat)",
/* 229 */ "#229 (excluded compat_14_shmctl)",
/* 230 */ "#230 (excluded shmdt)",
/* 231 */ "#231 (excluded shmget)",
#endif
/* 232 */ "clock_gettime",
/* 233 */ "clock_settime",
/* 234 */ "clock_getres",
/* 235 */ "timer_create",
/* 236 */ "timer_delete",
/* 237 */ "timer_settime",
/* 238 */ "timer_gettime",
/* 239 */ "timer_getoverrun",
/* 240 */ "nanosleep",
/* 241 */ "fdatasync",
/* 242 */ "mlockall",
/* 243 */ "munlockall",
/* 244 */ "__sigtimedwait",
/* 245 */ "#245 (unimplemented sys_sigqueue)",
/* 246 */ "#246 (unimplemented)",
#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
/* 247 */ "_ksem_init",
/* 248 */ "_ksem_open",
/* 249 */ "_ksem_unlink",
/* 250 */ "_ksem_close",
/* 251 */ "_ksem_post",
/* 252 */ "_ksem_wait",
/* 253 */ "_ksem_trywait",
/* 254 */ "_ksem_getvalue",
/* 255 */ "_ksem_destroy",
/* 256 */ "#256 (unimplemented sys__ksem_timedwait)",
#else
/* 247 */ "#247 (excluded sys__ksem_init)",
/* 248 */ "#248 (excluded sys__ksem_open)",
/* 249 */ "#249 (excluded sys__ksem_unlink)",
/* 250 */ "#250 (excluded sys__ksem_close)",
/* 251 */ "#251 (excluded sys__ksem_post)",
/* 252 */ "#252 (excluded sys__ksem_wait)",
/* 253 */ "#253 (excluded sys__ksem_trywait)",
/* 254 */ "#254 (excluded sys__ksem_getvalue)",
/* 255 */ "#255 (excluded sys__ksem_destroy)",
/* 256 */ "#256 (unimplemented sys__ksem_timedwait)",
#endif
/* 257 */ "#257 (unimplemented sys_mq_open)",
/* 258 */ "#258 (unimplemented sys_mq_close)",
/* 259 */ "#259 (unimplemented sys_mq_unlink)",
/* 260 */ "#260 (unimplemented sys_mq_getattr)",
/* 261 */ "#261 (unimplemented sys_mq_setattr)",
/* 262 */ "#262 (unimplemented sys_mq_notify)",
/* 263 */ "#263 (unimplemented sys_mq_send)",
/* 264 */ "#264 (unimplemented sys_mq_receive)",
/* 265 */ "#265 (unimplemented sys_mq_timedsend)",
/* 266 */ "#266 (unimplemented sys_mq_timedreceive)",
/* 267 */ "#267 (unimplemented)",
/* 268 */ "#268 (unimplemented)",
/* 269 */ "#269 (unimplemented)",
/* 270 */ "__posix_rename",
/* 271 */ "swapctl",
#ifdef COMPAT_30
/* 272 */ "getdents",
#endif
/* 273 */ "minherit",
/* 274 */ "lchmod",
/* 275 */ "lchown",
/* 276 */ "lutimes",
/* 277 */ "__msync13",
#ifdef COMPAT_30
/* 278 */ "__stat13",
/* 279 */ "__fstat13",
/* 280 */ "__lstat13",
#endif
/* 281 */ "__sigaltstack14",
/* 282 */ "__vfork14",
/* 283 */ "__posix_chown",
/* 284 */ "__posix_fchown",
/* 285 */ "__posix_lchown",
/* 286 */ "getsid",
/* 287 */ "__clone",
#if defined(KTRACE) || !defined(_KERNEL)
/* 288 */ "fktrace",
#else
/* 288 */ "#288 (excluded ktrace)",
#endif
/* 289 */ "preadv",
/* 290 */ "pwritev",
#ifdef COMPAT_16
/* 291 */ "__sigaction14",
#else
/* 291 */ "#291 (excluded compat_16_sys___sigaction14)",
#endif
/* 292 */ "__sigpending14",
/* 293 */ "__sigprocmask14",
/* 294 */ "__sigsuspend14",
#ifdef COMPAT_16
/* 295 */ "__sigreturn14",
#else
/* 295 */ "#295 (excluded compat_16_sys___sigreturn14)",
#endif
/* 296 */ "__getcwd",
/* 297 */ "fchroot",
#ifdef COMPAT_30
/* 298 */ "fhopen",
/* 299 */ "fhstat",
#else
/* 298 */ "#298 (excluded compat_30_sys_fhopen)",
/* 299 */ "#299 (excluded compat_30_sys_fhstat)",
#endif
#ifdef COMPAT_20
/* 300 */ "fhstatfs",
#else
/* 300 */ "#300 (excluded compat_20_sys_fhstatfs)",
#endif
#if defined(SYSVSEM) || !defined(_KERNEL)
/* 301 */ "____semctl13",
#else
/* 301 */ "#301 (excluded ____semctl13)",
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
/* 302 */ "__msgctl13",
#else
/* 302 */ "#302 (excluded __msgctl13)",
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
/* 303 */ "__shmctl13",
#else
/* 303 */ "#303 (excluded __shmctl13)",
#endif
/* 304 */ "lchflags",
/* 305 */ "issetugid",
/* 306 */ "utrace",
/* 307 */ "getcontext",
/* 308 */ "setcontext",
/* 309 */ "_lwp_create",
/* 310 */ "_lwp_exit",
/* 311 */ "_lwp_self",
/* 312 */ "_lwp_wait",
/* 313 */ "_lwp_suspend",
/* 314 */ "_lwp_continue",
/* 315 */ "_lwp_wakeup",
/* 316 */ "_lwp_getprivate",
/* 317 */ "_lwp_setprivate",
/* 318 */ "#318 (unimplemented)",
/* 319 */ "#319 (unimplemented)",
/* 320 */ "#320 (unimplemented)",
/* 321 */ "#321 (unimplemented)",
/* 322 */ "#322 (unimplemented)",
/* 323 */ "#323 (unimplemented)",
/* 324 */ "#324 (unimplemented)",
/* 325 */ "#325 (unimplemented)",
/* 326 */ "#326 (unimplemented)",
/* 327 */ "#327 (unimplemented)",
/* 328 */ "#328 (unimplemented)",
/* 329 */ "#329 (unimplemented)",
/* 330 */ "#330 (obsolete sys_sa_register)",
/* 331 */ "#331 (obsolete sys_sa_stacks)",
/* 332 */ "#332 (obsolete sys_sa_enable)",
/* 333 */ "#333 (obsolete sys_sa_setconcurrency)",
/* 334 */ "#334 (obsolete sys_sa_yield)",
/* 335 */ "#335 (obsolete sys_sa_preempt)",
/* 336 */ "#336 (obsolete sys_sa_unblockyield)",
/* 337 */ "#337 (unimplemented)",
/* 338 */ "#338 (unimplemented)",
/* 339 */ "#339 (unimplemented)",
/* 340 */ "__sigaction_sigtramp",
/* 341 */ "pmc_get_info",
/* 342 */ "pmc_control",
/* 343 */ "rasctl",
/* 344 */ "kqueue",
/* 345 */ "kevent",
/* 346 */ "#346 (unimplemented sys_sched_setparam)",
/* 347 */ "#347 (unimplemented sys_sched_getparam)",
/* 348 */ "#348 (unimplemented sys_sched_setscheduler)",
/* 349 */ "#349 (unimplemented sys_sched_getscheduler)",
/* 350 */ "#350 (unimplemented sys_sched_yield)",
/* 351 */ "#351 (unimplemented sys_sched_get_priority_max)",
/* 352 */ "#352 (unimplemented sys_sched_get_priority_min)",
/* 353 */ "#353 (unimplemented sys_sched_rr_get_interval)",
/* 354 */ "fsync_range",
/* 355 */ "uuidgen",
/* 356 */ "getvfsstat",
/* 357 */ "statvfs1",
/* 358 */ "fstatvfs1",
#ifdef COMPAT_30
/* 359 */ "fhstatvfs1",
#else
/* 359 */ "#359 (excluded compat_30_sys_fhstatvfs1)",
#endif
/* 360 */ "extattrctl",
/* 361 */ "extattr_set_file",
/* 362 */ "extattr_get_file",
/* 363 */ "extattr_delete_file",
/* 364 */ "extattr_set_fd",
/* 365 */ "extattr_get_fd",
/* 366 */ "extattr_delete_fd",
/* 367 */ "extattr_set_link",
/* 368 */ "extattr_get_link",
/* 369 */ "extattr_delete_link",
/* 370 */ "extattr_list_fd",
/* 371 */ "extattr_list_file",
/* 372 */ "extattr_list_link",
/* 373 */ "pselect",
/* 374 */ "pollts",
/* 375 */ "setxattr",
/* 376 */ "lsetxattr",
/* 377 */ "fsetxattr",
/* 378 */ "getxattr",
/* 379 */ "lgetxattr",
/* 380 */ "fgetxattr",
/* 381 */ "listxattr",
/* 382 */ "llistxattr",
/* 383 */ "flistxattr",
/* 384 */ "removexattr",
/* 385 */ "lremovexattr",
/* 386 */ "fremovexattr",
/* 387 */ "__stat30",
/* 388 */ "__fstat30",
/* 389 */ "__lstat30",
/* 390 */ "__getdents30",
/* 391 */ "posix_fadvise",
#ifdef COMPAT_30
/* 392 */ "__fhstat30",
#else
/* 392 */ "#392 (excluded compat_30_sys___fhstat30)",
#endif
/* 393 */ "__ntp_gettime30",
/* 394 */ "__socket30",
/* 395 */ "__getfh30",
/* 396 */ "__fhopen40",
/* 397 */ "__fhstatvfs140",
};

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +0,0 @@
# $NetBSD: syscalls.conf,v 1.1 2002/03/18 07:11:07 oki Exp $
sysnames="pecoff_syscalls.c"
sysnumhdr="pecoff_syscall.h"
syssw="pecoff_sysent.c"
sysarghdr="pecoff_syscallargs.h"
compatopts=""
libcompatopts=""
switchname="pecoff_sysent"
namesname="pecoff_syscallnames"
constprefix="PECOFF_SYS_"
nsysent=512

View File

@ -1,848 +0,0 @@
$NetBSD: syscalls.master,v 1.30 2007/11/09 15:05:34 dsl Exp $
; based on NetBSD: syscalls.master,v 1.150 2005/11/29 22:52:02 yamt Exp
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
; NetBSD system call name/number "master" file.
; (See syscalls.conf to see what it is processed into.)
;
; Fields: number type [type-dependent ...]
; number system call number, must be in order
; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
; the compatibility options defined in syscalls.conf.
;
; An optional field, MPSAFE, after the type field, indicates that
; the system call is MP-safe.
;
; types:
; STD always included
; OBSOL obsolete, not included in system
; UNIMPL unimplemented, not included in system
; EXCL implemented, but not included in system
; NODEF included, but don't define the syscall number
; NOARGS included, but don't define the syscall args structure
; INDIR included, but don't define the syscall args structure,
; and allow it to be "really" varargs.
;
; The compat options are defined in the syscalls.conf file, and the
; compat option name is prefixed to the syscall name. Other than
; that, they're like NODEF (for 'compat' options), or STD (for
; 'libcompat' options).
;
; The type-dependent arguments are as follows:
; For STD, NODEF, NOARGS, and compat syscalls:
; { pseudo-proto } [alias]
; For other syscalls:
; [comment]
;
; #ifdef's, etc. may be included, and are copied to the output files.
; #include's are copied to the syscall names and switch definition files only.
#if defined(_KERNEL_OPT)
#include "opt_ktrace.h"
#include "opt_nfsserver.h"
#include "opt_ntp.h"
#include "opt_compat_netbsd.h"
#include "opt_sysv.h"
#include "opt_compat_43.h"
#include "opt_posix.h"
#include "fs_lfs.h"
#include "fs_nfs.h"
#endif
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/shm.h>
#include <sys/syscallargs.h>
#include <compat/pecoff/pecoff_syscallargs.h>
#include <compat/sys/shm.h>
%%
; Reserved/unimplemented system calls in the range 0-150 inclusive
; are reserved for use in future Berkeley releases.
; Additional system calls implemented in vendor and other
; redistributions should be placed in the reserved range at the end
; of the current calls.
0 INDIR { int sys_syscall(int code, \
... register_t args[PECOFF_SYS_MAXSYSARGS]); }
1 NOARGS { void sys_exit(int rval); }
2 NOARGS { int sys_fork(void); }
3 NOARGS { ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4 NOARGS { ssize_t sys_write(int fd, const void *buf, \
size_t nbyte); }
5 NOARGS { int sys_open(const char *path, \
int flags, ... mode_t mode); }
6 NOARGS { int sys_close(int fd); }
7 NOARGS { int sys_wait4(int pid, int *status, int options, \
struct rusage *rusage); }
8 EXCL { int sys_creat(const char *path, mode_t mode); } ocreat
9 NOARGS { int sys_link(const char *path, const char *link); }
10 NOARGS { int sys_unlink(const char *path); }
11 OBSOL execv
12 NOARGS { int sys_chdir(const char *path); }
13 NOARGS { int sys_fchdir(int fd); }
14 NOARGS { int sys_mknod(const char *path, mode_t mode, \
dev_t dev); }
15 NOARGS { int sys_chmod(const char *path, mode_t mode); }
16 NOARGS { int sys_chown(const char *path, uid_t uid, \
gid_t gid); }
17 NOARGS { int sys_obreak(char *nsize); } break
#ifdef COMPAT_20
18 NOARGS { int compat_20_sys_getfsstat(struct statfs12 *buf, \
long bufsize, int flags); }
#else
18 EXCL compat_20_sys_getfsstat
#endif
19 EXCL { long sys_lseek(int fd, long offset, int whence); } \
olseek
#ifdef COMPAT_43
20 NOARGS { pid_t sys_getpid_with_ppid(void); } getpid
#else
20 NOARGS MPSAFE { pid_t sys_getpid(void); }
#endif
21 NOARGS { int compat_40_sys_mount(const char *type, const char *path, \
int flags, void *data); }
22 NOARGS { int sys_unmount(const char *path, int flags); }
23 NOARGS { int sys_setuid(uid_t uid); }
#ifdef COMPAT_43
24 NOARGS { uid_t sys_getuid_with_euid(void); } getuid
#else
24 NOARGS { uid_t sys_getuid(void); }
#endif
25 NOARGS { uid_t sys_geteuid(void); }
26 NOARGS { int sys_ptrace(int req, pid_t pid, void *addr, \
int data); }
27 NOARGS { ssize_t sys_recvmsg(int s, struct msghdr *msg, \
int flags); }
28 NOARGS { ssize_t sys_sendmsg(int s, \
const struct msghdr *msg, int flags); }
29 NOARGS { ssize_t sys_recvfrom(int s, void *buf, size_t len, \
int flags, struct sockaddr *from, \
unsigned int *fromlenaddr); }
30 NOARGS { int sys_accept(int s, struct sockaddr *name, \
unsigned int *anamelen); }
31 NOARGS { int sys_getpeername(int fdes, struct sockaddr *asa, \
unsigned int *alen); }
32 NOARGS { int sys_getsockname(int fdes, struct sockaddr *asa, \
unsigned int *alen); }
33 NOARGS { int sys_access(const char *path, int flags); }
34 NOARGS { int sys_chflags(const char *path, u_long flags); }
35 NOARGS { int sys_fchflags(int fd, u_long flags); }
36 NOARGS { void sys_sync(void); }
37 NOARGS { int sys_kill(int pid, int signum); }
38 EXCL { int compat_43_sys_stat(const char *path, \
struct stat43 *ub); } stat43
39 NOARGS { pid_t sys_getppid(void); }
40 EXCL { int compat_43_sys_lstat(const char *path, \
struct stat43 *ub); } lstat43
41 NOARGS { int sys_dup(int fd); }
42 NOARGS { int sys_pipe(void); }
43 NOARGS { gid_t sys_getegid(void); }
44 NOARGS { int sys_profil(void *samples, size_t size, \
u_long offset, u_int scale); }
#if defined(KTRACE) || !defined(_KERNEL)
45 NOARGS { int sys_ktrace(const char *fname, int ops, \
int facs, int pid); }
#else
45 EXCL ktrace
#endif
46 EXCL { int sys_sigaction(int signum, \
const struct sigaction13 *nsa, \
struct sigaction13 *osa); } sigaction13
#ifdef COMPAT_43
47 NOARGS { gid_t sys_getgid_with_egid(void); } getgid
#else
47 NOARGS { gid_t sys_getgid(void); }
#endif
48 EXCL { int sys_sigprocmask(int how, \
int mask); } sigprocmask13
49 NOARGS { int sys___getlogin(char *namebuf, size_t namelen); }
50 NOARGS { int sys___setlogin(const char *namebuf); }
51 NOARGS { int sys_acct(const char *path); }
52 EXCL { int sys_sigpending(void); } sigpending13
53 EXCL { int sys_sigaltstack( \
const struct sigaltstack13 *nss, \
struct sigaltstack13 *oss); } sigaltstack13
54 NOARGS { int sys_ioctl(int fd, \
u_long com, ... void *data); }
55 EXCL { int sys_reboot(int opt); } oreboot
56 NOARGS { int sys_revoke(const char *path); }
57 NOARGS { int sys_symlink(const char *path, \
const char *link); }
58 NOARGS { ssize_t sys_readlink(const char *path, char *buf, \
size_t count); }
59 NOARGS { int sys_execve(const char *path, \
char * const *argp, char * const *envp); }
60 NOARGS { mode_t sys_umask(mode_t newmask); }
61 NOARGS { int sys_chroot(const char *path); }
62 EXCL { int sys_fstat(int fd, struct stat43 *sb); } fstat43
63 EXCL { int sys_getkerninfo(int op, char *where, int *size, \
int arg); } ogetkerninfo
64 EXCL { int sys_getpagesize(void); } ogetpagesize
65 EXCL { int sys_msync(void *addr, size_t len); }
; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
66 NOARGS { int sys_vfork(void); }
67 OBSOL vread
68 OBSOL vwrite
69 NOARGS { int sys_sbrk(intptr_t incr); }
70 NOARGS { int sys_sstk(int incr); }
71 EXCL { int sys_mmap(void *addr, size_t len, int prot, \
int flags, int fd, long pos); } ommap
72 NOARGS { int sys_ovadvise(int anom); } vadvise
73 NOARGS { int sys_munmap(void *addr, size_t len); }
74 NOARGS { int sys_mprotect(void *addr, size_t len, \
int prot); }
75 NOARGS { int sys_madvise(void *addr, size_t len, \
int behav); }
76 OBSOL vhangup
77 OBSOL vlimit
78 NOARGS { int sys_mincore(void *addr, size_t len, \
char *vec); }
79 NOARGS { int sys_getgroups(int gidsetsize, \
gid_t *gidset); }
80 NOARGS { int sys_setgroups(int gidsetsize, \
const gid_t *gidset); }
81 NOARGS { int sys_getpgrp(void); }
82 NOARGS { int sys_setpgid(int pid, int pgid); }
83 NOARGS { int sys_setitimer(int which, \
const struct itimerval *itv, \
struct itimerval *oitv); }
84 EXCL { int sys_wait(void); } owait
85 EXCL { int sys_swapon(const char *name); } oswapon
86 NOARGS { int sys_getitimer(int which, \
struct itimerval *itv); }
87 EXCL { int sys_gethostname(char *hostname, u_int len); } \
ogethostname
88 EXCL { int sys_sethostname(char *hostname, u_int len); } \
osethostname
89 EXCL { int sys_getdtablesize(void); } ogetdtablesize
90 NOARGS { int sys_dup2(int from, int to); }
91 UNIMPL getdopt
92 NOARGS { int sys_fcntl(int fd, int cmd, ... void *arg); }
93 NOARGS { int sys_select(int nd, fd_set *in, fd_set *ou, \
fd_set *ex, struct timeval *tv); }
94 UNIMPL setdopt
95 NOARGS { int sys_fsync(int fd); }
96 NOARGS { int sys_setpriority(int which, id_t who, int prio); }
97 NOARGS { int compat_30_sys_socket(int domain, int type, int protocol); }
98 NOARGS { int sys_connect(int s, const struct sockaddr *name, \
unsigned int namelen); }
99 EXCL { int sys_accept(int s, void *name, \
int *anamelen); } oaccept
100 NOARGS { int sys_getpriority(int which, id_t who); }
101 EXCL { int sys_send(int s, void *buf, int len, \
int flags); } osend
102 EXCL { int sys_recv(int s, void *buf, int len, \
int flags); } orecv
103 EXCL { int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
sigreturn13
104 NOARGS { int sys_bind(int s, const struct sockaddr *name, \
unsigned int namelen); }
105 NOARGS { int sys_setsockopt(int s, int level, int name, \
const void *val, unsigned int valsize); }
106 NOARGS { int sys_listen(int s, int backlog); }
107 OBSOL vtimes
108 EXCL { int sys_sigvec(int signum, struct sigvec *nsv, \
struct sigvec *osv); } osigvec
109 EXCL { int sys_sigblock(int mask); } osigblock
110 EXCL { int sys_sigsetmask(int mask); } osigsetmask
111 EXCL { int sys_sigsuspend(int mask); } sigsuspend13
112 EXCL { int sys_sigstack(struct sigstack *nss, \
struct sigstack *oss); } osigstack
113 EXCL { int sys_recvmsg(int s, struct omsghdr *msg, \
int flags); } orecvmsg
114 EXCL { int sys_sendmsg(int s, void *msg, int flags); } \
osendmsg
115 OBSOL vtrace
116 NOARGS { int sys_gettimeofday(struct timeval *tp, \
void *tzp); }
117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); }
118 NOARGS { int sys_getsockopt(int s, int level, int name, \
void *val, unsigned int *avalsize); }
119 OBSOL resuba
120 NOARGS { ssize_t sys_readv(int fd, \
const struct iovec *iovp, int iovcnt); }
121 NOARGS { ssize_t sys_writev(int fd, \
const struct iovec *iovp, int iovcnt); }
122 NOARGS { int sys_settimeofday(const struct timeval *tv, \
void *tzp); }
123 NOARGS { int sys_fchown(int fd, uid_t uid, gid_t gid); }
124 NOARGS { int sys_fchmod(int fd, mode_t mode); }
125 EXCL { int sys_recvfrom(int s, void *buf, size_t len, \
int flags, void *from, int *fromlenaddr); } \
orecvfrom
126 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); }
127 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); }
128 NOARGS { int sys_rename(const char *from, \
const char *to); }
129 EXCL { int compat_43_sys_truncate(const char *path, \
long length); } otruncate
130 EXCL { int sys_ftruncate(int fd, long length); } oftruncate
131 NOARGS { int sys_flock(int fd, int how); }
132 NOARGS { int sys_mkfifo(const char *path, mode_t mode); }
133 NOARGS { ssize_t sys_sendto(int s, const void *buf, \
size_t len, int flags, const struct sockaddr *to, \
unsigned int tolen); }
134 NOARGS { int sys_shutdown(int s, int how); }
135 NOARGS { int sys_socketpair(int domain, int type, \
int protocol, int *rsv); }
136 NOARGS { int sys_mkdir(const char *path, mode_t mode); }
137 NOARGS { int sys_rmdir(const char *path); }
138 NOARGS { int sys_utimes(const char *path, \
const struct timeval *tptr); }
139 OBSOL 4.2 sigreturn
140 NOARGS { int sys_adjtime(const struct timeval *delta, \
struct timeval *olddelta); }
141 EXCL { int sys_getpeername(int fdes, void *asa, \
int *alen); } ogetpeername
142 EXCL { int32_t sys_gethostid(void); } ogethostid
143 EXCL { int sys_sethostid(int32_t hostid); } osethostid
144 EXCL { int sys_getrlimit(int which, \
struct orlimit *rlp); } ogetrlimit
145 EXCL { int sys_setrlimit(int which, \
const struct orlimit *rlp); } osetrlimit
146 EXCL { int sys_killpg(int pgid, int signum); } okillpg
147 NOARGS { int sys_setsid(void); }
148 NOARGS { int sys_quotactl(const char *path, int cmd, \
int uid, void *arg); }
149 EXCL { int sys_quota(void); } oquota
150 EXCL { int sys_getsockname(int fdec, void *asa, \
int *alen); } ogetsockname
; Syscalls 151-180 inclusive are reserved for vendor-specific
; system calls. (This includes various calls added for compatibity
; with other Unix variants.)
; Some of these calls are now supported by BSD...
151 UNIMPL
152 UNIMPL
153 UNIMPL
154 UNIMPL
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
155 NOARGS { int sys_nfssvc(int flag, void *argp); }
#else
155 EXCL nfssvc
#endif
156 EXCL { int sys_getdirentries(int fd, char *buf, \
u_int count, long *basep); } ogetdirentries
157 NOARGS { int compat_20_sys_statfs(const char *path, \
struct statvfs12 *buf); }
#ifdef COMPAT_20
158 NOARGS { int compat_20_sys_fstatfs(int fd, \
struct statfs12 *buf); }
#else
158 EXCL compat_20_sys_fstatfs
#endif
159 UNIMPL
160 UNIMPL
#ifdef COMPAT_30
161 NOARGS { int compat_30_sys_getfh(const char *fname, \
struct commpat_30_fhandle *fhp); }
#else
161 EXCL compat_30_sys_getfh
#endif
162 EXCL { int sys_getdomainname(char *domainname, int len); } \
ogetdomainname
163 EXCL { int sys_setdomainname(char *domainname, int len); } \
osetdomainname
164 EXCL { int sys_uname(struct outsname *name); } ouname
165 NOARGS { int sys_sysarch(int op, void *parms); }
166 UNIMPL
167 UNIMPL
168 UNIMPL
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
169 EXCL { int sys_semsys(int which, int a2, int a3, int a4, \
int a5); } osemsys
#else
169 EXCL 1.0 semsys
#endif
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
170 EXCL { int sys_msgsys(int which, int a2, int a3, int a4, \
int a5, int a6); } omsgsys
#else
170 EXCL 1.0 msgsys
#endif
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
171 EXCL { int sys_shmsys(int which, int a2, int a3, int a4); } \
oshmsys
#else
171 EXCL 1.0 shmsys
#endif
172 UNIMPL
173 NOARGS { ssize_t sys_pread(int fd, void *buf, \
size_t nbyte, int pad, off_t offset); }
174 NOARGS { ssize_t sys_pwrite(int fd, const void *buf, \
size_t nbyte, int pad, off_t offset); }
175 UNIMPL { int sys_ntp_gettime(struct ntptimeval *ntvp); }
#if defined(NTP) || !defined(_KERNEL)
176 NOARGS { int sys_ntp_adjtime(struct timex *tp); }
#else
176 EXCL ntp_adjtime
#endif
177 UNIMPL
178 UNIMPL
179 UNIMPL
180 UNIMPL
; Syscalls 180-199 are used by/reserved for BSD
181 NOARGS { int sys_setgid(gid_t gid); }
182 NOARGS { int sys_setegid(gid_t egid); }
183 NOARGS { int sys_seteuid(uid_t euid); }
#if defined(LFS) || !defined(_KERNEL)
184 NOARGS { int sys_lfs_bmapv(fsid_t *fsidp, \
struct block_info *blkiov, int blkcnt); }
185 NOARGS { int sys_lfs_markv(fsid_t *fsidp, \
struct block_info *blkiov, int blkcnt); }
186 NOARGS { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
187 NOARGS { int sys_lfs_segwait(fsid_t *fsidp, \
struct timeval *tv); }
#else
184 EXCL lfs_bmapv
185 EXCL lfs_markv
186 EXCL lfs_segclean
187 EXCL lfs_segwait
#endif
188 EXCL { int compat_12_sys_stat(const char *path, \
struct stat12 *ub); } stat12
189 EXCL { int sys_fstat(int fd, struct stat12 *sb); } fstat12
190 EXCL { int compat_12_sys_lstat(const char *path, \
struct stat12 *ub); } lstat12
191 NOARGS { long sys_pathconf(const char *path, int name); }
192 NOARGS { long sys_fpathconf(int fd, int name); }
193 UNIMPL
194 NOARGS { int sys_getrlimit(int which, \
struct rlimit *rlp); }
195 NOARGS { int sys_setrlimit(int which, \
const struct rlimit *rlp); }
196 EXCL { int sys_getdirentries(int fd, char *buf, \
u_int count, long *basep); }
197 NOARGS { void *sys_mmap(void *addr, size_t len, int prot, \
int flags, int fd, long pad, off_t pos); }
198 INDIR { quad_t sys___syscall(quad_t code, \
... register_t args[PECOFF_SYS_MAXSYSARGS]); }
199 NOARGS { off_t sys_lseek(int fd, int pad, off_t offset, \
int whence); }
200 NOARGS { int sys_truncate(const char *path, int pad, \
off_t length); }
201 NOARGS { int sys_ftruncate(int fd, int pad, off_t length); }
202 NOARGS { int sys___sysctl(const int *name, u_int namelen, \
void *old, size_t *oldlenp, const void *new, \
size_t newlen); }
203 NOARGS { int sys_mlock(const void *addr, size_t len); }
204 NOARGS { int sys_munlock(const void *addr, size_t len); }
205 NOARGS { int sys_undelete(const char *path); }
206 NOARGS { int sys_futimes(int fd, \
const struct timeval *tptr); }
207 NOARGS { pid_t sys_getpgid(pid_t pid); }
208 NOARGS { int sys_reboot(int opt, char *bootstr); }
209 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \
int timeout); }
;
; Syscalls 210-219 are reserved for dynamically loaded syscalls
;
#if defined(LKM) || !defined(_KERNEL)
210 NODEF { int sys_lkmnosys(void); }
211 NODEF { int sys_lkmnosys(void); }
212 NODEF { int sys_lkmnosys(void); }
213 NODEF { int sys_lkmnosys(void); }
214 NODEF { int sys_lkmnosys(void); }
215 NODEF { int sys_lkmnosys(void); }
216 NODEF { int sys_lkmnosys(void); }
217 NODEF { int sys_lkmnosys(void); }
218 NODEF { int sys_lkmnosys(void); }
219 NODEF { int sys_lkmnosys(void); }
#else /* !LKM */
210 EXCL lkmnosys
211 EXCL lkmnosys
212 EXCL lkmnosys
213 EXCL lkmnosys
214 EXCL lkmnosys
215 EXCL lkmnosys
216 EXCL lkmnosys
217 EXCL lkmnosys
218 EXCL lkmnosys
219 EXCL lkmnosys
#endif /* !LKM */
; System calls 220-300 are reserved for use by NetBSD
#if defined(SYSVSEM) || !defined(_KERNEL)
220 EXCL { int sys___semctl(int semid, int semnum, int cmd, \
union __semun *arg); }
221 NOARGS { int sys_semget(key_t key, int nsems, int semflg); }
222 NOARGS { int sys_semop(int semid, struct sembuf *sops, \
size_t nsops); }
223 NOARGS { int sys_semconfig(int flag); }
#else
220 EXCL compat_14_semctl
221 EXCL semget
222 EXCL semop
223 EXCL semconfig
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
224 EXCL { int sys_msgctl(int msqid, int cmd, \
struct msqid_ds14 *buf); }
225 NOARGS { int sys_msgget(key_t key, int msgflg); }
226 NOARGS { int sys_msgsnd(int msqid, const void *msgp, \
size_t msgsz, int msgflg); }
227 NOARGS { ssize_t sys_msgrcv(int msqid, void *msgp, \
size_t msgsz, long msgtyp, int msgflg); }
#else
224 EXCL compat_14_msgctl
225 EXCL msgget
226 EXCL msgsnd
227 EXCL msgrcv
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
228 NOARGS { void *sys_shmat(int shmid, const void *shmaddr, \
int shmflg); }
229 EXCL { int sys_shmctl(int shmid, int cmd, \
struct shmid_ds14 *buf); }
230 NOARGS { int sys_shmdt(const void *shmaddr); }
231 NOARGS { int sys_shmget(key_t key, size_t size, int shmflg); }
#else
228 EXCL shmat
229 EXCL compat_14_shmctl
230 EXCL shmdt
231 EXCL shmget
#endif
232 NOARGS { int sys_clock_gettime(clockid_t clock_id, \
struct timespec *tp); }
233 NOARGS { int sys_clock_settime(clockid_t clock_id, \
const struct timespec *tp); }
234 NOARGS { int sys_clock_getres(clockid_t clock_id, \
struct timespec *tp); }
235 NOARGS { int sys_timer_create(clockid_t clock_id, \
struct sigevent *evp, timer_t *timerid); }
236 NOARGS { int sys_timer_delete(timer_t timerid); }
237 NOARGS { int sys_timer_settime(timer_t timerid, int flags, \
const struct itimerspec *value, \
struct itimerspec *ovalue); }
238 NOARGS { int sys_timer_gettime(timer_t timerid, struct \
itimerspec *value); }
239 NOARGS { int sys_timer_getoverrun(timer_t timerid); }
;
; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
;
240 NOARGS { int sys_nanosleep(const struct timespec *rqtp, \
struct timespec *rmtp); }
241 NOARGS { int sys_fdatasync(int fd); }
242 NOARGS { int sys_mlockall(int flags); }
243 NOARGS { int sys_munlockall(void); }
244 NOARGS { int sys___sigtimedwait(const sigset_t *set, \
siginfo_t *info, \
struct timespec *timeout); }
245 UNIMPL sys_sigqueue
;
; Syscall 246 is free for any use
;
246 UNIMPL
#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
247 NOARGS { int sys__ksem_init(unsigned int value, semid_t *idp); }
248 NOARGS { int sys__ksem_open(const char *name, int oflag, \
mode_t mode, unsigned int value, semid_t *idp); }
249 NOARGS { int sys__ksem_unlink(const char *name); }
250 NOARGS { int sys__ksem_close(semid_t id); }
251 NOARGS { int sys__ksem_post(semid_t id); }
252 NOARGS { int sys__ksem_wait(semid_t id); }
253 NOARGS { int sys__ksem_trywait(semid_t id); }
254 NOARGS { int sys__ksem_getvalue(semid_t id, \
unsigned int *value); }
255 NOARGS { int sys__ksem_destroy(semid_t id); }
256 UNIMPL sys__ksem_timedwait
#else
247 EXCL sys__ksem_init
248 EXCL sys__ksem_open
249 EXCL sys__ksem_unlink
250 EXCL sys__ksem_close
251 EXCL sys__ksem_post
252 EXCL sys__ksem_wait
253 EXCL sys__ksem_trywait
254 EXCL sys__ksem_getvalue
255 EXCL sys__ksem_destroy
256 UNIMPL sys__ksem_timedwait
#endif
257 UNIMPL sys_mq_open
258 UNIMPL sys_mq_close
259 UNIMPL sys_mq_unlink
260 UNIMPL sys_mq_getattr
261 UNIMPL sys_mq_setattr
262 UNIMPL sys_mq_notify
263 UNIMPL sys_mq_send
264 UNIMPL sys_mq_receive
265 UNIMPL sys_mq_timedsend
266 UNIMPL sys_mq_timedreceive
267 UNIMPL
268 UNIMPL
269 UNIMPL
270 NOARGS { int sys___posix_rename(const char *from, \
const char *to); }
271 NOARGS { int sys_swapctl(int cmd, void *arg, int misc); }
#ifdef COMPAT_30
272 NOARGS { int compat_30_sys_getdents(int fd, char *buf, size_t count); }
#endif
273 NOARGS { int sys_minherit(void *addr, size_t len, \
int inherit); }
274 NOARGS { int sys_lchmod(const char *path, mode_t mode); }
275 NOARGS { int sys_lchown(const char *path, uid_t uid, \
gid_t gid); }
276 NOARGS { int sys_lutimes(const char *path, \
const struct timeval *tptr); }
277 NOARGS { int sys___msync13(void *addr, size_t len, int flags); }
#ifdef COMPAT_30
278 NOARGS { int compat_30_sys___stat13(const char *path, \
struct stat30 *ub); }
279 NOARGS { int compat_30_sys___fstat13(int fd, struct stat30 *sb); }
280 NOARGS { int compat_30_sys___lstat13(const char *path, \
struct stat30 *ub); }
#endif
281 NOARGS { int sys___sigaltstack14( \
const struct sigaltstack *nss, \
struct sigaltstack *oss); }
282 NOARGS { int sys___vfork14(void); }
283 NOARGS { int sys___posix_chown(const char *path, \
uid_t uid, gid_t gid); }
284 NOARGS { int sys___posix_fchown(int fd, uid_t uid, \
gid_t gid); }
285 NOARGS { int sys___posix_lchown(const char *path, uid_t uid, \
gid_t gid); }
286 NOARGS { pid_t sys_getsid(pid_t pid); }
287 NOARGS { pid_t sys___clone(int flags, void *stack); }
#if defined(KTRACE) || !defined(_KERNEL)
288 NOARGS { int sys_fktrace(const int fd, int ops, \
int facs, int pid); }
#else
288 EXCL ktrace
#endif
289 NOARGS { ssize_t sys_preadv(int fd, \
const struct iovec *iovp, int iovcnt, \
int pad, off_t offset); }
290 NOARGS { ssize_t sys_pwritev(int fd, \
const struct iovec *iovp, int iovcnt, \
int pad, off_t offset); }
#ifdef COMPAT_16
291 NOARGS { int compat_16_sys___sigaction14(int signum, \
const struct sigaction *nsa, \
struct sigaction *osa); }
#else
291 EXCL compat_16_sys___sigaction14
#endif
292 NOARGS { int sys___sigpending14(sigset_t *set); }
293 NOARGS { int sys___sigprocmask14(int how, \
const sigset_t *set, \
sigset_t *oset); }
294 NOARGS { int sys___sigsuspend14(const sigset_t *set); }
#ifdef COMPAT_16
295 NOARGS { int compat_16_sys___sigreturn14(struct sigcontext *sigcntxp); }
#else
295 EXCL compat_16_sys___sigreturn14
#endif
296 NOARGS { int sys___getcwd(char *bufp, size_t length); }
297 NOARGS { int sys_fchroot(int fd); }
#ifdef COMPAT_30
298 NOARGS { int compat_30_sys_fhopen(const fhandle_t *fhp, \
int flags); }
299 NOARGS { int compat_30_sys_fhstat(const fhandle_t *fhp, \
struct stat13 *sb); }
#else
298 EXCL compat_30_sys_fhopen
299 EXCL compat_30_sys_fhstat
#endif
#ifdef COMPAT_20
300 NOARGS { int compat_20_sys_fhstatfs(const struct compat_30_fhandle *fhp, \
struct statfs12 *buf); }
#else
300 EXCL compat_20_sys_fhstatfs
#endif
#if defined(SYSVSEM) || !defined(_KERNEL)
301 NOARGS { int sys_____semctl13(int semid, int semnum, int cmd, \
... union __semun *arg); }
#else
301 EXCL ____semctl13
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
302 NOARGS { int sys___msgctl13(int msqid, int cmd, \
struct msqid_ds *buf); }
#else
302 EXCL __msgctl13
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
303 NOARGS { int sys___shmctl13(int shmid, int cmd, \
struct shmid_ds *buf); }
#else
303 EXCL __shmctl13
#endif
304 NOARGS { int sys_lchflags(const char *path, u_long flags); }
305 NOARGS { int sys_issetugid(void); }
306 NOARGS { int sys_utrace(const char *label, void *addr, \
size_t len); }
307 NOARGS { int sys_getcontext(struct __ucontext *ucp); }
308 NOARGS { int sys_setcontext(const struct __ucontext *ucp); }
309 NOARGS { int sys__lwp_create(const struct __ucontext *ucp, \
u_long flags, lwpid_t *new_lwp); }
310 NOARGS { int sys__lwp_exit(void); }
311 NOARGS { lwpid_t sys__lwp_self(void); }
312 NOARGS { int sys__lwp_wait(lwpid_t wait_for, \
lwpid_t *departed); }
313 NOARGS { int sys__lwp_suspend(lwpid_t target); }
314 NOARGS { int sys__lwp_continue(lwpid_t target); }
315 NOARGS { int sys__lwp_wakeup(lwpid_t target); }
316 NOARGS { void *sys__lwp_getprivate(void); }
317 NOARGS { void sys__lwp_setprivate(void *ptr); }
; Syscalls 318-329 reserved for remaining Solaris-compatible LWP calls.
318 UNIMPL
319 UNIMPL
320 UNIMPL
321 UNIMPL
322 UNIMPL
323 UNIMPL
324 UNIMPL
325 UNIMPL
326 UNIMPL
327 UNIMPL
328 UNIMPL
329 UNIMPL
; Scheduler activation syscalls
330 OBSOL sys_sa_register
331 OBSOL sys_sa_stacks
332 OBSOL sys_sa_enable
333 OBSOL sys_sa_setconcurrency
334 OBSOL sys_sa_yield
335 OBSOL sys_sa_preempt
336 OBSOL sys_sa_unblockyield
;
; Syscalls 337-339 are reserved for other scheduler activation syscalls.
;
337 UNIMPL
338 UNIMPL
339 UNIMPL
340 NOARGS { int sys___sigaction_sigtramp(int signum, \
const struct sigaction *nsa, \
struct sigaction *osa, \
const void *tramp, int vers); }
341 NOARGS { int sys_pmc_get_info(int ctr, int op, void *args); }
342 NOARGS { int sys_pmc_control(int ctr, int op, void *args); }
343 NOARGS { int sys_rasctl(void *addr, size_t len, int op); }
344 NOARGS { int sys_kqueue(void); }
345 NOARGS { int sys_kevent(int fd, \
const struct kevent *changelist, size_t nchanges, \
struct kevent *eventlist, size_t nevents, \
const struct timespec *timeout); }
;
; Syscalls 346-353 are reserved for the IEEE Std1003.1b scheduling syscalls
;
346 UNIMPL sys_sched_setparam
347 UNIMPL sys_sched_getparam
348 UNIMPL sys_sched_setscheduler
349 UNIMPL sys_sched_getscheduler
350 UNIMPL sys_sched_yield
351 UNIMPL sys_sched_get_priority_max
352 UNIMPL sys_sched_get_priority_min
353 UNIMPL sys_sched_rr_get_interval
354 NOARGS { int sys_fsync_range(int fd, int flags, off_t start, \
off_t length); }
355 NOARGS { int sys_uuidgen(struct uuid *store, int count); }
356 NOARGS { int sys_getvfsstat(struct statvfs *buf, \
size_t bufsize, int flags); }
357 NOARGS { int sys_statvfs1(const char *path, \
struct statvfs *buf, int flags); }
358 NOARGS { int sys_fstatvfs1(int fd, struct statvfs *buf, \
int flags); }
#ifdef COMPAT_30
359 NOARGS { int compat_30_sys_fhstatvfs1(const fhandle_t *fhp, \
struct statvfs *buf, int flags); }
#else
359 EXCL compat_30_sys_fhstatvfs1
#endif
360 NOARGS { int sys_extattrctl(const char *path, int cmd, \
const char *filename, int attrnamespace, \
const char *attrname); }
361 NOARGS { int sys_extattr_set_file(const char *path, \
int attrnamespace, const char *attrname, \
const void *data, size_t nbytes); }
362 NOARGS { ssize_t sys_extattr_get_file(const char *path, \
int attrnamespace, const char *attrname, \
void *data, size_t nbytes); }
363 NOARGS { int sys_extattr_delete_file(const char *path, \
int attrnamespace, const char *attrname); }
364 NOARGS { int sys_extattr_set_fd(int fd, \
int attrnamespace, const char *attrname, \
const void *data, size_t nbytes); }
365 NOARGS { ssize_t sys_extattr_get_fd(int fd, \
int attrnamespace, const char *attrname, \
void *data, size_t nbytes); }
366 NOARGS { int sys_extattr_delete_fd(int fd, \
int attrnamespace, const char *attrname); }
367 NOARGS { int sys_extattr_set_link(const char *path, \
int attrnamespace, const char *attrname, \
const void *data, size_t nbytes); }
368 NOARGS { ssize_t sys_extattr_get_link(const char *path, \
int attrnamespace, const char *attrname, \
void *data, size_t nbytes); }
369 NOARGS { int sys_extattr_delete_link(const char *path, \
int attrnamespace, const char *attrname); }
370 NOARGS { ssize_t sys_extattr_list_fd(int fd, \
int attrnamespace, void *data, size_t nbytes); }
371 NOARGS { ssize_t sys_extattr_list_file(const char *path, \
int attrnamespace, void *data, size_t nbytes); }
372 NOARGS { ssize_t sys_extattr_list_link(const char *path, \
int attrnamespace, void *data, size_t nbytes); }
373 NOARGS { int sys_pselect(int nd, fd_set *in, fd_set *ou, \
fd_set *ex, const struct timespec *ts, \
const sigset_t *mask); }
374 NOARGS { int sys_pollts(struct pollfd *fds, u_int nfds, \
const struct timespec *ts, const sigset_t *mask); }
375 NOARGS { int sys_setxattr(const char *path, \
const char *name, void *value, size_t size, \
int flags); }
376 NOARGS { int sys_lsetxattr(const char *path, \
const char *name, void *value, size_t size, \
int flags); }
377 NOARGS { int sys_fsetxattr(int fd, \
const char *name, void *value, size_t size, \
int flags); }
378 NOARGS { int sys_getxattr(const char *path, \
const char *name, void *value, size_t size); }
379 NOARGS { int sys_lgetxattr(const char *path, \
const char *name, void *value, size_t size); }
380 NOARGS { int sys_fgetxattr(int fd, \
const char *name, void *value, size_t size); }
381 NOARGS { int sys_listxattr(const char *path, \
char *list, size_t size); }
382 NOARGS { int sys_llistxattr(const char *path, \
char *list, size_t size); }
383 NOARGS { int sys_flistxattr(int fd, \
char *list, size_t size); }
384 NOARGS { int sys_removexattr(const char *path, \
const char *name); }
385 NOARGS { int sys_lremovexattr(const char *path, \
const char *name); }
386 NOARGS { int sys_fremovexattr(int fd, \
const char *name); }
387 NOARGS { int sys___stat30(const char *path, struct stat *ub); }
388 NOARGS { int sys___fstat30(int fd, struct stat *sb); }
389 NOARGS { int sys___lstat30(const char *path, struct stat *ub); }
390 NOARGS { int sys___getdents30(int fd, char *buf, size_t count); }
391 NOARGS { int sys_posix_fadvise(int fd, off_t offset, \
off_t len, int advice); }
#ifdef COMPAT_30
392 NOARGS { int compat_30_sys___fhstat30(const fhandle_t *fhp, \
struct stat *sb); }
#else
392 EXCL compat_30_sys___fhstat30
#endif
393 NOARGS { int sys___ntp_gettime30(struct ntptimeval *ntvp); }
394 NOARGS { int sys___socket30(int domain, int type, int protocol); }
395 NOARGS { int sys___getfh30(const char *fname, \
void *fhp, size_t *fh_size); }
396 NOARGS { int sys___fhopen40(const void *fhp, size_t fh_size,\
int flags); }
397 NOARGS { int sys___fhstatvfs140(const void *fhp, \
size_t fh_size, struct statvfs *buf, int flags); }
398 NOARGS { int sys___fhstat40(const void *fhp, \