This commit is contained in:
pooka 2003-09-18 14:50:07 +00:00
parent 3e2a629fec
commit ec398e6f4d
4 changed files with 107 additions and 13 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: freebsd_syscall.h,v 1.50 2003/01/18 23:30:59 thorpej Exp $ */
/* $NetBSD: freebsd_syscall.h,v 1.51 2003/09/18 14:50:07 pooka Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.40 2003/01/18 07:33:16 thorpej Exp
* created from NetBSD: syscalls.master,v 1.41 2003/09/18 14:44:09 pooka Exp
*/
/* syscall: "syscall" ret: "int" args: */
@ -140,10 +140,13 @@
/* syscall: "profil" ret: "int" args: "caddr_t" "u_int" "u_int" "u_int" */
#define FREEBSD_SYS_profil 44
#ifdef KTRACE
/* syscall: "ktrace" ret: "int" args: "char *" "int" "int" "int" */
#define FREEBSD_SYS_ktrace 45
#else
/* 45 is excluded ktrace */
#endif
/* syscall: "sigaction" ret: "int" args: "int" "const struct sigaction13 *" "struct sigaction13 *" */
#define FREEBSD_SYS_sigaction 46
@ -335,10 +338,13 @@
/* syscall: "osendmsg" ret: "int" args: "int" "caddr_t" "int" */
#define FREEBSD_SYS_osendmsg 114
#ifdef TRACE
/* syscall: "vtrace" ret: "int" args: "int" "int" */
#define FREEBSD_SYS_vtrace 115
#else
/* 115 is obsolete vtrace */
#endif
/* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
#define FREEBSD_SYS_gettimeofday 116
@ -440,9 +446,12 @@
/* syscall: "ogetsockname" ret: "int" args: "int" "caddr_t" "int *" */
#define FREEBSD_SYS_ogetsockname 150
#if defined(NFS) || defined(NFSSERVER)
/* syscall: "nfssvc" ret: "int" args: "int" "caddr_t" */
#define FREEBSD_SYS_nfssvc 155
#else
#endif
/* syscall: "ogetdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
#define FREEBSD_SYS_ogetdirentries 156
@ -452,9 +461,12 @@
/* syscall: "fstatfs" ret: "int" args: "int" "struct statfs *" */
#define FREEBSD_SYS_fstatfs 158
#ifdef NFS
/* syscall: "getfh" ret: "int" args: "const char *" "fhandle_t *" */
#define FREEBSD_SYS_getfh 161
#else
#endif
/* syscall: "getdomainname" ret: "int" args: "char *" "int" */
#define FREEBSD_SYS_getdomainname 162
@ -470,25 +482,37 @@
/* syscall: "rtprio" ret: "int" args: "int" "pid_t" "struct freebsd_rtprio *" */
#define FREEBSD_SYS_rtprio 166
#if defined(SYSVSEM) && !defined(_LP64)
/* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */
#define FREEBSD_SYS_semsys 169
#else
#endif
#if defined(SYSVMSG) && !defined(_LP64)
/* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
#define FREEBSD_SYS_msgsys 170
#else
#endif
#if defined(SYSVSHM) && !defined(_LP64)
/* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
#define FREEBSD_SYS_shmsys 171
#else
#endif
/* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */
#define FREEBSD_SYS_pread 173
/* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */
#define FREEBSD_SYS_pwrite 174
#ifdef NTP
/* syscall: "freebsd_ntp_adjtime" ret: "int" args: "struct freebsd_timex *" */
#define FREEBSD_SYS_freebsd_ntp_adjtime 176
#else
/* 176 is excluded ntp_adjtime */
#endif
/* syscall: "setgid" ret: "int" args: "gid_t" */
#define FREEBSD_SYS_setgid 181
@ -498,6 +522,7 @@
/* syscall: "seteuid" ret: "int" args: "uid_t" */
#define FREEBSD_SYS_seteuid 183
#ifdef LFS
/* syscall: "lfs_bmapv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */
#define FREEBSD_SYS_lfs_bmapv 184
@ -510,6 +535,8 @@
/* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */
#define FREEBSD_SYS_lfs_segwait 187
#else
#endif
/* syscall: "stat" ret: "int" args: "const char *" "struct stat12 *" */
#define FREEBSD_SYS_stat 188
@ -558,21 +585,28 @@
/* syscall: "munlock" ret: "int" args: "caddr_t" "size_t" */
#define FREEBSD_SYS_munlock 204
#ifdef FREEBSD_BASED_ON_44LITE_R2
/* syscall: "undelete" ret: "int" args: "char *" */
#define FREEBSD_SYS_undelete 205
#else
#endif
/* syscall: "futimes" ret: "int" args: "int" "const struct timeval *" */
#define FREEBSD_SYS_futimes 206
/* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
#define FREEBSD_SYS_getpgid 207
#if 0
/* syscall: "reboot" ret: "int" args: "int" "char *" */
#define FREEBSD_SYS_reboot 208
#else
#endif
/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
#define FREEBSD_SYS_poll 209
#ifdef SYSVSEM
/* syscall: "__semctl" ret: "int" args: "int" "int" "int" "union __semun *" */
#define FREEBSD_SYS___semctl 220
@ -585,6 +619,9 @@
/* syscall: "semconfig" ret: "int" args: "int" */
#define FREEBSD_SYS_semconfig 223
#else
#endif
#ifdef SYSVMSG
/* syscall: "msgctl" ret: "int" args: "int" "int" "struct msqid14_ds *" */
#define FREEBSD_SYS_msgctl 224
@ -597,6 +634,9 @@
/* syscall: "msgrcv" ret: "int" args: "int" "void *" "size_t" "long" "int" */
#define FREEBSD_SYS_msgrcv 227
#else
#endif
#ifdef SYSVSHM
/* syscall: "shmat" ret: "int" args: "int" "void *" "int" */
#define FREEBSD_SYS_shmat 228
@ -609,6 +649,8 @@
/* syscall: "shmget" ret: "int" args: "key_t" "int" "int" */
#define FREEBSD_SYS_shmget 231
#else
#endif
/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec *" */
#define FREEBSD_SYS_clock_gettime 232

View File

@ -1,10 +1,10 @@
/* $NetBSD: freebsd_syscallargs.h,v 1.52 2003/01/18 23:30:59 thorpej Exp $ */
/* $NetBSD: freebsd_syscallargs.h,v 1.53 2003/09/18 14:50:08 pooka Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.40 2003/01/18 07:33:16 thorpej Exp
* created from NetBSD: syscalls.master,v 1.41 2003/09/18 14:44:09 pooka Exp
*/
#ifndef _FREEBSD_SYS__SYSCALLARGS_H_
@ -106,6 +106,9 @@ struct compat_43_freebsd_sys_lstat_args {
syscallarg(const char *) path;
syscallarg(struct stat43 *) ub;
};
#ifdef KTRACE
#else
#endif
struct freebsd_sys_ioctl_args {
syscallarg(int) fd;
@ -147,6 +150,9 @@ struct freebsd_sys_msync_args {
struct freebsd_sys_sigreturn_args {
syscallarg(struct freebsd_sigcontext *) scp;
};
#ifdef TRACE
#else
#endif
struct freebsd_sys_rename_args {
syscallarg(const char *) from;
@ -171,22 +177,29 @@ struct freebsd_sys_mkdir_args {
struct freebsd_sys_rmdir_args {
syscallarg(const char *) path;
};
#if defined(NFS) || defined(NFSSERVER)
#else
#endif
struct freebsd_sys_statfs_args {
syscallarg(const char *) path;
syscallarg(struct statfs *) buf;
};
#ifdef NFS
struct freebsd_sys_getfh_args {
syscallarg(const char *) fname;
syscallarg(fhandle_t *) fhp;
};
#else
#endif
struct freebsd_sys_rtprio_args {
syscallarg(int) function;
syscallarg(pid_t) pid;
syscallarg(struct freebsd_rtprio *) rtp;
};
#if defined(SYSVSEM) && !defined(_LP64)
struct freebsd_sys_semsys_args {
syscallarg(int) which;
@ -195,6 +208,9 @@ struct freebsd_sys_semsys_args {
syscallarg(int) a4;
syscallarg(int) a5;
};
#else
#endif
#if defined(SYSVMSG) && !defined(_LP64)
struct freebsd_sys_msgsys_args {
syscallarg(int) which;
@ -204,6 +220,9 @@ struct freebsd_sys_msgsys_args {
syscallarg(int) a5;
syscallarg(int) a6;
};
#else
#endif
#if defined(SYSVSHM) && !defined(_LP64)
struct freebsd_sys_shmsys_args {
syscallarg(int) which;
@ -211,10 +230,18 @@ struct freebsd_sys_shmsys_args {
syscallarg(int) a3;
syscallarg(int) a4;
};
#else
#endif
#ifdef NTP
struct freebsd_ntp_adjtime_args {
syscallarg(struct freebsd_timex *) tp;
};
#else
#endif
#ifdef LFS
#else
#endif
struct freebsd_sys_stat_args {
syscallarg(const char *) path;
@ -231,15 +258,40 @@ struct freebsd_sys_pathconf_args {
syscallarg(int) name;
};
struct freebsd_sys_mmap_args {
syscallarg(caddr_t) addr;
syscallarg(size_t) len;
syscallarg(int) prot;
syscallarg(int) flags;
syscallarg(int) fd;
syscallarg(long) pad;
syscallarg(off_t) pos;
};
struct freebsd_sys_truncate_args {
syscallarg(const char *) path;
syscallarg(int) pad;
syscallarg(off_t) length;
};
#ifdef FREEBSD_BASED_ON_44LITE_R2
struct freebsd_sys_undelete_args {
syscallarg(char *) path;
};
#else
#endif
#if 0
#else
#endif
#ifdef SYSVSEM
#else
#endif
#ifdef SYSVMSG
#else
#endif
#ifdef SYSVSHM
#else
#endif
struct freebsd_sys_rfork_args {
syscallarg(int) flags;
@ -493,7 +545,7 @@ 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 compat_12_sys_getdirentries(struct lwp *, void *, register_t *);
int sys_mmap(struct lwp *, void *, register_t *);
int freebsd_sys_mmap(struct lwp *, void *, register_t *);
int sys_nosys(struct lwp *, void *, register_t *);
int sys_lseek(struct lwp *, void *, register_t *);
int freebsd_sys_truncate(struct lwp *, void *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: freebsd_syscalls.c,v 1.50 2003/01/18 23:31:00 thorpej Exp $ */
/* $NetBSD: freebsd_syscalls.c,v 1.51 2003/09/18 14:50:09 pooka Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.40 2003/01/18 07:33:16 thorpej Exp
* created from NetBSD: syscalls.master,v 1.41 2003/09/18 14:44:09 pooka Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: freebsd_syscalls.c,v 1.50 2003/01/18 23:31:00 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: freebsd_syscalls.c,v 1.51 2003/09/18 14:50:09 pooka Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)

View File

@ -1,14 +1,14 @@
/* $NetBSD: freebsd_sysent.c,v 1.52 2003/01/18 23:31:00 thorpej Exp $ */
/* $NetBSD: freebsd_sysent.c,v 1.53 2003/09/18 14:50:09 pooka Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.40 2003/01/18 07:33:16 thorpej Exp
* created from NetBSD: syscalls.master,v 1.41 2003/09/18 14:44:09 pooka Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: freebsd_sysent.c,v 1.52 2003/01/18 23:31:00 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: freebsd_sysent.c,v 1.53 2003/09/18 14:50:09 pooka Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ktrace.h"
@ -476,8 +476,8 @@ struct sysent freebsd_sysent[] = {
sys_setrlimit }, /* 195 = setrlimit */
{ 4, s(struct compat_12_sys_getdirentries_args), 0,
compat_12_sys_getdirentries }, /* 196 = getdirentries */
{ 7, s(struct sys_mmap_args), 0,
sys_mmap }, /* 197 = mmap */
{ 7, s(struct freebsd_sys_mmap_args), 0,
freebsd_sys_mmap }, /* 197 = mmap */
{ 0, 0, 0,
sys_nosys }, /* 198 = __syscall */
{ 4, s(struct sys_lseek_args), 0,