summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-04-01 11:16:53 +0000
committerkib <kib@FreeBSD.org>2011-04-01 11:16:53 +0000
commite452eed194a7d6a608b59c5646b7b82ecfa967ac (patch)
tree1622428aaf76cf6f73990d28bf57a04543ec243d /sys/compat
parent7c2eaa21fe792c26e223a2f36a4f5c00fdaf52d8 (diff)
downloadFreeBSD-src-e452eed194a7d6a608b59c5646b7b82ecfa967ac.zip
FreeBSD-src-e452eed194a7d6a608b59c5646b7b82ecfa967ac.tar.gz
Regen
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/freebsd32/freebsd32_proto.h38
-rw-r--r--sys/compat/freebsd32/freebsd32_syscall.h12
-rw-r--r--sys/compat/freebsd32/freebsd32_syscalls.c14
-rw-r--r--sys/compat/freebsd32/freebsd32_sysent.c14
4 files changed, 58 insertions, 20 deletions
diff --git a/sys/compat/freebsd32/freebsd32_proto.h b/sys/compat/freebsd32/freebsd32_proto.h
index 981efd5..c7c6717 100644
--- a/sys/compat/freebsd32/freebsd32_proto.h
+++ b/sys/compat/freebsd32/freebsd32_proto.h
@@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 220163 2011-03-30 17:48:15Z trasz
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 220238 2011-04-01 11:16:29Z kib
*/
#ifndef _FREEBSD32_SYSPROTO_H_
@@ -682,6 +682,14 @@ int freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *);
#if !defined(PAD64_REQUIRED) && defined(__powerpc__)
#define PAD64_REQUIRED
#endif
+struct ofreebsd32_stat_args {
+ char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
+ char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
+};
+struct ofreebsd32_lstat_args {
+ char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
+ char ub_l_[PADL_(struct ostat *)]; struct ostat * ub; char ub_r_[PADR_(struct ostat *)];
+};
struct ofreebsd32_sigaction_args {
char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)];
@@ -691,6 +699,16 @@ struct ofreebsd32_sigprocmask_args {
char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
char mask_l_[PADL_(osigset_t)]; osigset_t mask; char mask_r_[PADR_(osigset_t)];
};
+struct ofreebsd32_fstat_args {
+ char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
+ char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
+};
+struct ofreebsd32_getpagesize_args {
+ char dummy_l_[PADL_(int32_t)]; int32_t dummy; char dummy_r_[PADR_(int32_t)];
+};
+struct ofreebsd32_sigreturn_args {
+ char sigcntxp_l_[PADL_(struct ia32_sigcontext3 *)]; struct ia32_sigcontext3 * sigcntxp; char sigcntxp_r_[PADR_(struct ia32_sigcontext3 *)];
+};
struct ofreebsd32_sigvec_args {
char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)];
@@ -709,20 +727,32 @@ struct ofreebsd32_sigstack_args {
char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)];
char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)];
};
+struct ofreebsd32_getdirentries_args {
+ char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
+ char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
+ char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
+ char basep_l_[PADL_(uint32_t *)]; uint32_t * basep; char basep_r_[PADR_(uint32_t *)];
+};
#ifdef PAD64_REQUIRED
#else
#endif
#ifdef PAD64_REQUIRED
#else
#endif
+int ofreebsd32_stat(struct thread *, struct ofreebsd32_stat_args *);
+int ofreebsd32_lstat(struct thread *, struct ofreebsd32_lstat_args *);
int ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *);
int ofreebsd32_sigprocmask(struct thread *, struct ofreebsd32_sigprocmask_args *);
int ofreebsd32_sigpending(struct thread *, struct ofreebsd32_sigpending_args *);
+int ofreebsd32_fstat(struct thread *, struct ofreebsd32_fstat_args *);
+int ofreebsd32_getpagesize(struct thread *, struct ofreebsd32_getpagesize_args *);
+int ofreebsd32_sigreturn(struct thread *, struct ofreebsd32_sigreturn_args *);
int ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *);
int ofreebsd32_sigblock(struct thread *, struct ofreebsd32_sigblock_args *);
int ofreebsd32_sigsetmask(struct thread *, struct ofreebsd32_sigsetmask_args *);
int ofreebsd32_sigsuspend(struct thread *, struct ofreebsd32_sigsuspend_args *);
int ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *);
+int ofreebsd32_getdirentries(struct thread *, struct ofreebsd32_getdirentries_args *);
#endif /* COMPAT_43 */
@@ -888,15 +918,20 @@ int freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_
#define FREEBSD32_SYS_AUE_freebsd32_recvmsg AUE_RECVMSG
#define FREEBSD32_SYS_AUE_freebsd32_sendmsg AUE_SENDMSG
#define FREEBSD32_SYS_AUE_freebsd32_recvfrom AUE_RECVFROM
+#define FREEBSD32_SYS_AUE_ofreebsd32_stat AUE_STAT
+#define FREEBSD32_SYS_AUE_ofreebsd32_lstat AUE_LSTAT
#define FREEBSD32_SYS_AUE_ofreebsd32_sigaction AUE_SIGACTION
#define FREEBSD32_SYS_AUE_ofreebsd32_sigprocmask AUE_SIGPROCMASK
#define FREEBSD32_SYS_AUE_ofreebsd32_sigpending AUE_SIGPENDING
#define FREEBSD32_SYS_AUE_freebsd32_sigaltstack AUE_SIGALTSTACK
#define FREEBSD32_SYS_AUE_freebsd32_ioctl AUE_NULL
#define FREEBSD32_SYS_AUE_freebsd32_execve AUE_EXECVE
+#define FREEBSD32_SYS_AUE_ofreebsd32_fstat AUE_FSTAT
+#define FREEBSD32_SYS_AUE_ofreebsd32_getpagesize AUE_NULL
#define FREEBSD32_SYS_AUE_freebsd32_setitimer AUE_SETITIMER
#define FREEBSD32_SYS_AUE_freebsd32_getitimer AUE_GETITIMER
#define FREEBSD32_SYS_AUE_freebsd32_select AUE_SELECT
+#define FREEBSD32_SYS_AUE_ofreebsd32_sigreturn AUE_NULL
#define FREEBSD32_SYS_AUE_ofreebsd32_sigvec AUE_O_SIGVEC
#define FREEBSD32_SYS_AUE_ofreebsd32_sigblock AUE_O_SIGBLOCK
#define FREEBSD32_SYS_AUE_ofreebsd32_sigsetmask AUE_O_SIGSETMASK
@@ -909,6 +944,7 @@ int freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_
#define FREEBSD32_SYS_AUE_freebsd32_settimeofday AUE_SETTIMEOFDAY
#define FREEBSD32_SYS_AUE_freebsd32_utimes AUE_UTIMES
#define FREEBSD32_SYS_AUE_freebsd32_adjtime AUE_ADJTIME
+#define FREEBSD32_SYS_AUE_ofreebsd32_getdirentries AUE_GETDIRENTRIES
#define FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs AUE_STATFS
#define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs AUE_FSTATFS
#define FREEBSD32_SYS_AUE_freebsd32_sysarch AUE_SYSARCH
diff --git a/sys/compat/freebsd32/freebsd32_syscall.h b/sys/compat/freebsd32/freebsd32_syscall.h
index 4c6e9d7..e9b1d31 100644
--- a/sys/compat/freebsd32/freebsd32_syscall.h
+++ b/sys/compat/freebsd32/freebsd32_syscall.h
@@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 220163 2011-03-30 17:48:15Z trasz
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 220238 2011-04-01 11:16:29Z kib
*/
#define FREEBSD32_SYS_syscall 0
@@ -44,7 +44,9 @@
#define FREEBSD32_SYS_fchflags 35
#define FREEBSD32_SYS_sync 36
#define FREEBSD32_SYS_kill 37
+ /* 38 is old freebsd32_stat */
#define FREEBSD32_SYS_getppid 39
+ /* 40 is old freebsd32_lstat */
#define FREEBSD32_SYS_dup 41
#define FREEBSD32_SYS_pipe 42
#define FREEBSD32_SYS_getegid 43
@@ -66,9 +68,9 @@
#define FREEBSD32_SYS_freebsd32_execve 59
#define FREEBSD32_SYS_umask 60
#define FREEBSD32_SYS_chroot 61
- /* 62 is obsolete ofstat */
+ /* 62 is old freebsd32_fstat */
/* 63 is obsolete ogetkerninfo */
- /* 64 is obsolete ogetpagesize */
+ /* 64 is old freebsd32_getpagesize */
#define FREEBSD32_SYS_msync 65
#define FREEBSD32_SYS_vfork 66
/* 67 is obsolete vread */
@@ -105,7 +107,7 @@
#define FREEBSD32_SYS_getpriority 100
/* 101 is obsolete osend */
/* 102 is obsolete orecv */
- /* 103 is obsolete osigreturn */
+ /* 103 is old freebsd32_sigreturn */
#define FREEBSD32_SYS_bind 104
#define FREEBSD32_SYS_setsockopt 105
#define FREEBSD32_SYS_listen 106
@@ -152,7 +154,7 @@
#define FREEBSD32_SYS_quotactl 148
/* 149 is obsolete oquota */
/* 150 is obsolete ogetsockname */
- /* 156 is obsolete ogetdirentries */
+ /* 156 is old freebsd32_getdirentries */
#define FREEBSD32_SYS_freebsd4_freebsd32_statfs 157
#define FREEBSD32_SYS_freebsd4_freebsd32_fstatfs 158
#define FREEBSD32_SYS_getfh 161
diff --git a/sys/compat/freebsd32/freebsd32_syscalls.c b/sys/compat/freebsd32/freebsd32_syscalls.c
index e2acc7a..02adf8a 100644
--- a/sys/compat/freebsd32/freebsd32_syscalls.c
+++ b/sys/compat/freebsd32/freebsd32_syscalls.c
@@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 220163 2011-03-30 17:48:15Z trasz
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 220238 2011-04-01 11:16:29Z kib
*/
const char *freebsd32_syscallnames[] = {
@@ -48,9 +48,9 @@ const char *freebsd32_syscallnames[] = {
"fchflags", /* 35 = fchflags */
"sync", /* 36 = sync */
"kill", /* 37 = kill */
- "#38", /* 38 = ostat */
+ "compat.freebsd32_stat", /* 38 = old freebsd32_stat */
"getppid", /* 39 = getppid */
- "#40", /* 40 = olstat */
+ "compat.freebsd32_lstat", /* 40 = old freebsd32_lstat */
"dup", /* 41 = dup */
"pipe", /* 42 = pipe */
"getegid", /* 43 = getegid */
@@ -72,9 +72,9 @@ const char *freebsd32_syscallnames[] = {
"freebsd32_execve", /* 59 = freebsd32_execve */
"umask", /* 60 = umask */
"chroot", /* 61 = chroot */
- "obs_ofstat", /* 62 = obsolete ofstat */
+ "compat.freebsd32_fstat", /* 62 = old freebsd32_fstat */
"obs_ogetkerninfo", /* 63 = obsolete ogetkerninfo */
- "obs_ogetpagesize", /* 64 = obsolete ogetpagesize */
+ "compat.freebsd32_getpagesize", /* 64 = old freebsd32_getpagesize */
"msync", /* 65 = msync */
"vfork", /* 66 = vfork */
"obs_vread", /* 67 = obsolete vread */
@@ -113,7 +113,7 @@ const char *freebsd32_syscallnames[] = {
"getpriority", /* 100 = getpriority */
"obs_osend", /* 101 = obsolete osend */
"obs_orecv", /* 102 = obsolete orecv */
- "obs_osigreturn", /* 103 = obsolete osigreturn */
+ "compat.freebsd32_sigreturn", /* 103 = old freebsd32_sigreturn */
"bind", /* 104 = bind */
"setsockopt", /* 105 = setsockopt */
"listen", /* 106 = listen */
@@ -166,7 +166,7 @@ const char *freebsd32_syscallnames[] = {
"#153", /* 153 = asyncdaemon */
"#154", /* 154 = nlm_syscall */
"#155", /* 155 = nfssvc */
- "obs_ogetdirentries", /* 156 = obsolete ogetdirentries */
+ "compat.freebsd32_getdirentries", /* 156 = old freebsd32_getdirentries */
"compat4.freebsd32_statfs", /* 157 = freebsd4 freebsd32_statfs */
"compat4.freebsd32_fstatfs", /* 158 = freebsd4 freebsd32_fstatfs */
"#159", /* 159 = nosys */
diff --git a/sys/compat/freebsd32/freebsd32_sysent.c b/sys/compat/freebsd32/freebsd32_sysent.c
index 5e05d6b..e1e3762 100644
--- a/sys/compat/freebsd32/freebsd32_sysent.c
+++ b/sys/compat/freebsd32/freebsd32_sysent.c
@@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 220163 2011-03-30 17:48:15Z trasz
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 220238 2011-04-01 11:16:29Z kib
*/
#include "opt_compat.h"
@@ -85,9 +85,9 @@ struct sysent freebsd32_sysent[] = {
{ AS(fchflags_args), (sy_call_t *)fchflags, AUE_FCHFLAGS, NULL, 0, 0, 0, SY_THR_STATIC }, /* 35 = fchflags */
{ 0, (sy_call_t *)sync, AUE_SYNC, NULL, 0, 0, 0, SY_THR_STATIC }, /* 36 = sync */
{ AS(kill_args), (sy_call_t *)kill, AUE_KILL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 37 = kill */
- { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 38 = ostat */
+ { compat(AS(ofreebsd32_stat_args),freebsd32_stat), AUE_STAT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 38 = old freebsd32_stat */
{ 0, (sy_call_t *)getppid, AUE_GETPPID, NULL, 0, 0, 0, SY_THR_STATIC }, /* 39 = getppid */
- { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 40 = olstat */
+ { compat(AS(ofreebsd32_lstat_args),freebsd32_lstat), AUE_LSTAT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 40 = old freebsd32_lstat */
{ AS(dup_args), (sy_call_t *)dup, AUE_DUP, NULL, 0, 0, 0, SY_THR_STATIC }, /* 41 = dup */
{ 0, (sy_call_t *)pipe, AUE_PIPE, NULL, 0, 0, 0, SY_THR_STATIC }, /* 42 = pipe */
{ 0, (sy_call_t *)getegid, AUE_GETEGID, NULL, 0, 0, 0, SY_THR_STATIC }, /* 43 = getegid */
@@ -109,9 +109,9 @@ struct sysent freebsd32_sysent[] = {
{ AS(freebsd32_execve_args), (sy_call_t *)freebsd32_execve, AUE_EXECVE, NULL, 0, 0, 0, SY_THR_STATIC }, /* 59 = freebsd32_execve */
{ AS(umask_args), (sy_call_t *)umask, AUE_UMASK, NULL, 0, 0, 0, SY_THR_STATIC }, /* 60 = umask */
{ AS(chroot_args), (sy_call_t *)chroot, AUE_CHROOT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 61 = chroot */
- { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 62 = obsolete ofstat */
+ { compat(AS(ofreebsd32_fstat_args),freebsd32_fstat), AUE_FSTAT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 62 = old freebsd32_fstat */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 63 = obsolete ogetkerninfo */
- { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 64 = obsolete ogetpagesize */
+ { compat(AS(ofreebsd32_getpagesize_args),freebsd32_getpagesize), AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 64 = old freebsd32_getpagesize */
{ AS(msync_args), (sy_call_t *)msync, AUE_MSYNC, NULL, 0, 0, 0, SY_THR_STATIC }, /* 65 = msync */
{ 0, (sy_call_t *)vfork, AUE_VFORK, NULL, 0, 0, 0, SY_THR_STATIC }, /* 66 = vfork */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 67 = obsolete vread */
@@ -150,7 +150,7 @@ struct sysent freebsd32_sysent[] = {
{ AS(getpriority_args), (sy_call_t *)getpriority, AUE_GETPRIORITY, NULL, 0, 0, 0, SY_THR_STATIC }, /* 100 = getpriority */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 101 = obsolete osend */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 102 = obsolete orecv */
- { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 103 = obsolete osigreturn */
+ { compat(AS(ofreebsd32_sigreturn_args),freebsd32_sigreturn), AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 103 = old freebsd32_sigreturn */
{ AS(bind_args), (sy_call_t *)bind, AUE_BIND, NULL, 0, 0, 0, SY_THR_STATIC }, /* 104 = bind */
{ AS(setsockopt_args), (sy_call_t *)setsockopt, AUE_SETSOCKOPT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 105 = setsockopt */
{ AS(listen_args), (sy_call_t *)listen, AUE_LISTEN, NULL, 0, 0, 0, SY_THR_STATIC }, /* 106 = listen */
@@ -203,7 +203,7 @@ struct sysent freebsd32_sysent[] = {
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 153 = asyncdaemon */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 154 = nlm_syscall */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 155 = nfssvc */
- { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 156 = obsolete ogetdirentries */
+ { compat(AS(ofreebsd32_getdirentries_args),freebsd32_getdirentries), AUE_GETDIRENTRIES, NULL, 0, 0, 0, SY_THR_STATIC }, /* 156 = old freebsd32_getdirentries */
{ compat4(AS(freebsd4_freebsd32_statfs_args),freebsd32_statfs), AUE_STATFS, NULL, 0, 0, 0, SY_THR_STATIC }, /* 157 = freebsd4 freebsd32_statfs */
{ compat4(AS(freebsd4_freebsd32_fstatfs_args),freebsd32_fstatfs), AUE_FSTATFS, NULL, 0, 0, 0, SY_THR_STATIC }, /* 158 = freebsd4 freebsd32_fstatfs */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 159 = nosys */
OpenPOWER on IntegriCloud