Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 Regen for posix_fallocate and fdiscard
details: https://anonhg.NetBSD.org/src/rev/ddf074f79f69
branches: trunk
changeset: 338905:ddf074f79f69
user: martin <martin%NetBSD.org@localhost>
date: Tue Jun 16 10:42:13 2015 +0000
description:
Regen for posix_fallocate and fdiscard
diffstat:
sys/compat/netbsd32/netbsd32_syscall.h | 12 +-
sys/compat/netbsd32/netbsd32_syscallargs.h | 24 +-
sys/compat/netbsd32/netbsd32_syscalls.c | 10 +-
sys/compat/netbsd32/netbsd32_sysent.c | 3052 ++++++++++++++++---------
sys/compat/netbsd32/netbsd32_systrace_args.c | 70 +-
5 files changed, 2079 insertions(+), 1089 deletions(-)
diffs (truncated from 3327 to 300 lines):
diff -r 4882baaf99b6 -r ddf074f79f69 sys/compat/netbsd32/netbsd32_syscall.h
--- a/sys/compat/netbsd32/netbsd32_syscall.h Tue Jun 16 10:41:34 2015 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscall.h Tue Jun 16 10:42:13 2015 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscall.h,v 1.111 2015/03/07 16:41:53 christos Exp $ */
+/* $NetBSD: netbsd32_syscall.h,v 1.112 2015/06/16 10:42:13 martin Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.102 2015/02/25 13:16:33 christos Exp
+ * created from NetBSD: syscalls.master,v 1.103 2015/06/16 10:41:34 martin Exp
*/
#ifndef _NETBSD32_SYS_SYSCALL_H_
@@ -1248,6 +1248,12 @@
/* syscall: "netbsd32____lwp_park60" ret: "int" args: "netbsd32_clockid_t" "int" "const netbsd32_timespecp_t" "lwpid_t" "netbsd32_voidp" "netbsd32_voidp" */
#define NETBSD32_SYS_netbsd32____lwp_park60 478
-#define NETBSD32_SYS_MAXSYSCALL 479
+/* syscall: "netbsd32_posix_fallocate" ret: "int" args: "int" "int" "netbsd32_off_t" "netbsd32_off_t" */
+#define NETBSD32_SYS_netbsd32_posix_fallocate 479
+
+/* syscall: "netbsd32_fdiscard" ret: "int" args: "int" "int" "netbsd32_off_t" "netbsd32_off_t" */
+#define NETBSD32_SYS_netbsd32_fdiscard 480
+
+#define NETBSD32_SYS_MAXSYSCALL 481
#define NETBSD32_SYS_NSYSENT 512
#endif /* _NETBSD32_SYS_SYSCALL_H_ */
diff -r 4882baaf99b6 -r ddf074f79f69 sys/compat/netbsd32/netbsd32_syscallargs.h
--- a/sys/compat/netbsd32/netbsd32_syscallargs.h Tue Jun 16 10:41:34 2015 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscallargs.h Tue Jun 16 10:42:13 2015 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscallargs.h,v 1.111 2015/03/07 16:41:53 christos Exp $ */
+/* $NetBSD: netbsd32_syscallargs.h,v 1.112 2015/06/16 10:42:13 martin Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.102 2015/02/25 13:16:33 christos Exp
+ * created from NetBSD: syscalls.master,v 1.103 2015/06/16 10:41:34 martin Exp
*/
#ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@@ -2465,6 +2465,22 @@
};
check_syscall_args(netbsd32____lwp_park60)
+struct netbsd32_posix_fallocate_args {
+ syscallarg(int) fd;
+ syscallarg(int) PAD;
+ syscallarg(netbsd32_off_t) pos;
+ syscallarg(netbsd32_off_t) len;
+};
+check_syscall_args(netbsd32_posix_fallocate)
+
+struct netbsd32_fdiscard_args {
+ syscallarg(int) fd;
+ syscallarg(int) PAD;
+ syscallarg(netbsd32_off_t) pos;
+ syscallarg(netbsd32_off_t) len;
+};
+check_syscall_args(netbsd32_fdiscard)
+
/*
* System call prototypes.
*/
@@ -3276,4 +3292,8 @@
int netbsd32____lwp_park60(struct lwp *, const struct netbsd32____lwp_park60_args *, register_t *);
+int netbsd32_posix_fallocate(struct lwp *, const struct netbsd32_posix_fallocate_args *, register_t *);
+
+int netbsd32_fdiscard(struct lwp *, const struct netbsd32_fdiscard_args *, register_t *);
+
#endif /* _NETBSD32_SYS_SYSCALLARGS_H_ */
diff -r 4882baaf99b6 -r ddf074f79f69 sys/compat/netbsd32/netbsd32_syscalls.c
--- a/sys/compat/netbsd32/netbsd32_syscalls.c Tue Jun 16 10:41:34 2015 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls.c Tue Jun 16 10:42:13 2015 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls.c,v 1.110 2015/03/07 16:41:53 christos Exp $ */
+/* $NetBSD: netbsd32_syscalls.c,v 1.111 2015/06/16 10:42:13 martin Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.102 2015/02/25 13:16:33 christos Exp
+ * created from NetBSD: syscalls.master,v 1.103 2015/06/16 10:41:34 martin Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.110 2015/03/07 16:41:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.111 2015/06/16 10:42:13 martin Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -576,8 +576,8 @@
/* 476 */ "#476 (unimplemented { int | netbsd32 | | sendmmsg ( int s , struct mmsghdr * mmsg , unsigned int vlen , unsigned int flags ) ; })",
/* 477 */ "netbsd32_clock_nanosleep",
/* 478 */ "netbsd32____lwp_park60",
- /* 479 */ "# filler",
- /* 480 */ "# filler",
+ /* 479 */ "netbsd32_posix_fallocate",
+ /* 480 */ "netbsd32_fdiscard",
/* 481 */ "# filler",
/* 482 */ "# filler",
/* 483 */ "# filler",
diff -r 4882baaf99b6 -r ddf074f79f69 sys/compat/netbsd32/netbsd32_sysent.c
--- a/sys/compat/netbsd32/netbsd32_sysent.c Tue Jun 16 10:41:34 2015 +0000
+++ b/sys/compat/netbsd32/netbsd32_sysent.c Tue Jun 16 10:42:13 2015 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_sysent.c,v 1.110 2015/03/07 16:41:53 christos Exp $ */
+/* $NetBSD: netbsd32_sysent.c,v 1.111 2015/06/16 10:42:13 martin Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.102 2015/02/25 13:16:33 christos Exp
+ * created from NetBSD: syscalls.master,v 1.103 2015/06/16 10:41:34 martin Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.110 2015/03/07 16:41:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.111 2015/06/16 10:42:13 martin Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -116,1126 +116,2022 @@
#define s(type) sizeof(type)
#define n(type) (sizeof(type)/sizeof (register32_t))
-#define ns(type) n(type), s(type)
+#define ns(type) .sy_narg = n(type), .sy_argsize = s(type)
struct sysent netbsd32_sysent[] = {
- { ns(struct netbsd32_syscall_args), SYCALL_INDIRECT,
- (sy_call_t *)netbsd32_syscall, 0, 0 }, /* 0 = netbsd32_syscall */
- { ns(struct netbsd32_exit_args), 0,
- (sy_call_t *)netbsd32_exit, 0, 0 }, /* 1 = netbsd32_exit */
- { 0, 0, 0,
- (sy_call_t *)sys_fork, 0, 0 }, /* 2 = fork */
- { ns(struct netbsd32_read_args), 0,
- (sy_call_t *)netbsd32_read, 0, 0 }, /* 3 = netbsd32_read */
- { ns(struct netbsd32_write_args), 0,
- (sy_call_t *)netbsd32_write, 0, 0 }, /* 4 = netbsd32_write */
- { ns(struct netbsd32_open_args), 0,
- (sy_call_t *)netbsd32_open, 0, 0 }, /* 5 = netbsd32_open */
- { ns(struct netbsd32_close_args), 0,
- (sy_call_t *)netbsd32_close, 0, 0 }, /* 6 = netbsd32_close */
- { ns(struct compat_50_netbsd32_wait4_args), 0,
- (sy_call_t *)compat_50(netbsd32_wait4), 0, 0 },/* 7 = compat_50_netbsd32_wait4 */
- { ns(struct compat_43_netbsd32_ocreat_args), 0,
- (sy_call_t *)compat_43(netbsd32_ocreat), 0, 0 },/* 8 = compat_43_netbsd32_ocreat */
- { ns(struct netbsd32_link_args), 0,
- (sy_call_t *)netbsd32_link, 0, 0 }, /* 9 = netbsd32_link */
- { ns(struct netbsd32_unlink_args), 0,
- (sy_call_t *)netbsd32_unlink, 0, 0 }, /* 10 = netbsd32_unlink */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 11 = obsolete execv */
- { ns(struct netbsd32_chdir_args), 0,
- (sy_call_t *)netbsd32_chdir, 0, 0 }, /* 12 = netbsd32_chdir */
- { ns(struct netbsd32_fchdir_args), 0,
- (sy_call_t *)netbsd32_fchdir, 0, 0 }, /* 13 = netbsd32_fchdir */
- { ns(struct compat_50_netbsd32_mknod_args), 0,
- (sy_call_t *)compat_50(netbsd32_mknod), 0, 0 },/* 14 = compat_50_netbsd32_mknod */
- { ns(struct netbsd32_chmod_args), 0,
- (sy_call_t *)netbsd32_chmod, 0, 0 }, /* 15 = netbsd32_chmod */
- { ns(struct netbsd32_chown_args), 0,
- (sy_call_t *)netbsd32_chown, 0, 0 }, /* 16 = netbsd32_chown */
- { ns(struct netbsd32_break_args), 0,
- (sy_call_t *)netbsd32_break, 0, 0 }, /* 17 = netbsd32_break */
- { ns(struct compat_20_netbsd32_getfsstat_args), 0,
- (sy_call_t *)compat_20(netbsd32_getfsstat), 0, 0 },/* 18 = compat_20_netbsd32_getfsstat */
- { ns(struct compat_43_netbsd32_olseek_args), 0,
- (sy_call_t *)compat_43(netbsd32_olseek), 0, 0 },/* 19 = compat_43_netbsd32_olseek */
- { 0, 0, 0,
- (sy_call_t *)sys_getpid, 0, 0 }, /* 20 = getpid */
- { ns(struct netbsd32_mount_args), 0,
- (sy_call_t *)netbsd32_mount, 0, 0 }, /* 21 = netbsd32_mount */
- { ns(struct netbsd32_unmount_args), 0,
- (sy_call_t *)netbsd32_unmount, 0, 0 }, /* 22 = netbsd32_unmount */
- { ns(struct netbsd32_setuid_args), 0,
- (sy_call_t *)netbsd32_setuid, 0, 0 }, /* 23 = netbsd32_setuid */
- { 0, 0, 0,
- (sy_call_t *)sys_getuid, 0, 0 }, /* 24 = getuid */
- { 0, 0, 0,
- (sy_call_t *)sys_geteuid, 0, 0 }, /* 25 = geteuid */
- { ns(struct netbsd32_ptrace_args), 0,
- (sy_call_t *)netbsd32_ptrace, 0, 0 }, /* 26 = netbsd32_ptrace */
- { ns(struct netbsd32_recvmsg_args), 0,
- (sy_call_t *)netbsd32_recvmsg, 0, 0 }, /* 27 = netbsd32_recvmsg */
- { ns(struct netbsd32_sendmsg_args), 0,
- (sy_call_t *)netbsd32_sendmsg, 0, 0 }, /* 28 = netbsd32_sendmsg */
- { ns(struct netbsd32_recvfrom_args), 0,
- (sy_call_t *)netbsd32_recvfrom, 0, 0 }, /* 29 = netbsd32_recvfrom */
- { ns(struct netbsd32_accept_args), 0,
- (sy_call_t *)netbsd32_accept, 0, 0 }, /* 30 = netbsd32_accept */
- { ns(struct netbsd32_getpeername_args), 0,
- (sy_call_t *)netbsd32_getpeername, 0, 0 },/* 31 = netbsd32_getpeername */
- { ns(struct netbsd32_getsockname_args), 0,
- (sy_call_t *)netbsd32_getsockname, 0, 0 },/* 32 = netbsd32_getsockname */
- { ns(struct netbsd32_access_args), 0,
- (sy_call_t *)netbsd32_access, 0, 0 }, /* 33 = netbsd32_access */
- { ns(struct netbsd32_chflags_args), 0,
- (sy_call_t *)netbsd32_chflags, 0, 0 }, /* 34 = netbsd32_chflags */
- { ns(struct netbsd32_fchflags_args), 0,
- (sy_call_t *)netbsd32_fchflags, 0, 0 }, /* 35 = netbsd32_fchflags */
- { 0, 0, 0,
- (sy_call_t *)sys_sync, 0, 0 }, /* 36 = sync */
- { ns(struct netbsd32_kill_args), 0,
- (sy_call_t *)netbsd32_kill, 0, 0 }, /* 37 = netbsd32_kill */
- { ns(struct compat_43_netbsd32_stat43_args), 0,
- (sy_call_t *)compat_43(netbsd32_stat43), 0, 0 },/* 38 = compat_43_netbsd32_stat43 */
- { 0, 0, 0,
- (sy_call_t *)sys_getppid, 0, 0 }, /* 39 = getppid */
- { ns(struct compat_43_netbsd32_lstat43_args), 0,
- (sy_call_t *)compat_43(netbsd32_lstat43), 0, 0 },/* 40 = compat_43_netbsd32_lstat43 */
- { ns(struct netbsd32_dup_args), 0,
- (sy_call_t *)netbsd32_dup, 0, 0 }, /* 41 = netbsd32_dup */
- { 0, 0, 0,
- (sy_call_t *)sys_pipe, 0, 0 }, /* 42 = pipe */
- { 0, 0, 0,
- (sy_call_t *)sys_getegid, 0, 0 }, /* 43 = getegid */
- { ns(struct netbsd32_profil_args), 0,
- (sy_call_t *)netbsd32_profil, 0, 0 }, /* 44 = netbsd32_profil */
- { ns(struct netbsd32_ktrace_args), 0,
- (sy_call_t *)netbsd32_ktrace, 0, 0 }, /* 45 = netbsd32_ktrace */
- { ns(struct netbsd32_sigaction_args), 0,
- (sy_call_t *)netbsd32_sigaction, 0, 0 }, /* 46 = netbsd32_sigaction */
- { 0, 0, 0,
- (sy_call_t *)sys_getgid, 0, 0 }, /* 47 = getgid */
- { ns(struct compat_13_netbsd32_sigprocmask_args), 0,
- (sy_call_t *)compat_13(netbsd32_sigprocmask), 0, 0 },/* 48 = compat_13_sigprocmask13 */
- { ns(struct netbsd32___getlogin_args), 0,
- (sy_call_t *)netbsd32___getlogin, 0, 0 }, /* 49 = netbsd32___getlogin */
- { ns(struct netbsd32_setlogin_args), 0,
- (sy_call_t *)netbsd32_setlogin, 0, 0 }, /* 50 = netbsd32_setlogin */
- { ns(struct netbsd32_acct_args), 0,
- (sy_call_t *)netbsd32_acct, 0, 0 }, /* 51 = netbsd32_acct */
- { 0, 0, 0,
- (sy_call_t *)compat_13(sys_sigpending), 0, 0 },/* 52 = compat_13_sigpending13 */
- { ns(struct compat_13_netbsd32_sigaltstack13_args), 0,
- (sy_call_t *)compat_13(netbsd32_sigaltstack13), 0, 0 },/* 53 = compat_13_netbsd32_sigaltstack13 */
- { ns(struct netbsd32_ioctl_args), 0,
- (sy_call_t *)netbsd32_ioctl, 0, 0 }, /* 54 = netbsd32_ioctl */
- { ns(struct compat_12_netbsd32_reboot_args), 0,
- (sy_call_t *)compat_12(netbsd32_reboot), 0, 0 },/* 55 = compat_12_netbsd32_reboot */
- { ns(struct netbsd32_revoke_args), 0,
- (sy_call_t *)netbsd32_revoke, 0, 0 }, /* 56 = netbsd32_revoke */
- { ns(struct netbsd32_symlink_args), 0,
- (sy_call_t *)netbsd32_symlink, 0, 0 }, /* 57 = netbsd32_symlink */
- { ns(struct netbsd32_readlink_args), 0,
- (sy_call_t *)netbsd32_readlink, 0, 0 }, /* 58 = netbsd32_readlink */
- { ns(struct netbsd32_execve_args), 0,
- (sy_call_t *)netbsd32_execve, 0, 0 }, /* 59 = netbsd32_execve */
- { ns(struct netbsd32_umask_args), 0,
- (sy_call_t *)netbsd32_umask, 0, 0 }, /* 60 = netbsd32_umask */
- { ns(struct netbsd32_chroot_args), 0,
- (sy_call_t *)netbsd32_chroot, 0, 0 }, /* 61 = netbsd32_chroot */
- { ns(struct compat_43_netbsd32_fstat43_args), 0,
- (sy_call_t *)compat_43(netbsd32_fstat43), 0, 0 },/* 62 = compat_43_netbsd32_fstat43 */
- { ns(struct compat_43_netbsd32_ogetkerninfo_args), 0,
- (sy_call_t *)compat_43(netbsd32_ogetkerninfo), 0, 0 },/* 63 = compat_43_netbsd32_ogetkerninfo */
- { 0, 0, 0,
- (sy_call_t *)compat_43(sys_getpagesize), 0, 0 },/* 64 = compat_43_ogetpagesize */
- { ns(struct compat_12_netbsd32_msync_args), 0,
- (sy_call_t *)compat_12(netbsd32_msync), 0, 0 },/* 65 = compat_12_netbsd32_msync */
- { 0, 0, 0,
- (sy_call_t *)sys_vfork, 0, 0 }, /* 66 = vfork */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 67 = obsolete vread */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 68 = obsolete vwrite */
- { ns(struct netbsd32_sbrk_args), 0,
- (sy_call_t *)netbsd32_sbrk, 0, 0 }, /* 69 = netbsd32_sbrk */
- { ns(struct netbsd32_sstk_args), 0,
- (sy_call_t *)netbsd32_sstk, 0, 0 }, /* 70 = netbsd32_sstk */
- { ns(struct compat_43_netbsd32_ommap_args), 0,
- (sy_call_t *)compat_43(netbsd32_ommap), 0, 0 },/* 71 = compat_43_netbsd32_ommap */
- { ns(struct netbsd32_ovadvise_args), 0,
- (sy_call_t *)netbsd32_ovadvise, 0, 0 }, /* 72 = vadvise */
- { ns(struct netbsd32_munmap_args), 0,
- (sy_call_t *)netbsd32_munmap, 0, 0 }, /* 73 = netbsd32_munmap */
- { ns(struct netbsd32_mprotect_args), 0,
- (sy_call_t *)netbsd32_mprotect, 0, 0 }, /* 74 = netbsd32_mprotect */
- { ns(struct netbsd32_madvise_args), 0,
- (sy_call_t *)netbsd32_madvise, 0, 0 }, /* 75 = netbsd32_madvise */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 76 = obsolete vhangup */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 77 = obsolete vlimit */
- { ns(struct netbsd32_mincore_args), 0,
- (sy_call_t *)netbsd32_mincore, 0, 0 }, /* 78 = netbsd32_mincore */
- { ns(struct netbsd32_getgroups_args), 0,
- (sy_call_t *)netbsd32_getgroups, 0, 0 }, /* 79 = netbsd32_getgroups */
- { ns(struct netbsd32_setgroups_args), 0,
Home |
Main Index |
Thread Index |
Old Index