Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/arch Regenerate these files after adding pi...
details: https://anonhg.NetBSD.org/src/rev/43e026d3b643
branches: trunk
changeset: 764293:43e026d3b643
user: he <he%NetBSD.org@localhost>
date: Fri Apr 15 13:07:37 2011 +0000
description:
Regenerate these files after adding pipe2() and dup3().
diffstat:
sys/compat/linux/arch/alpha/linux_syscall.h | 8 +-
sys/compat/linux/arch/alpha/linux_syscallargs.h | 21 ++-
sys/compat/linux/arch/alpha/linux_syscalls.c | 26 ++-
sys/compat/linux/arch/alpha/linux_sysent.c | 12 +-
sys/compat/linux/arch/arm/linux_syscall.h | 8 +-
sys/compat/linux/arch/arm/linux_syscallargs.h | 21 ++-
sys/compat/linux/arch/arm/linux_syscalls.c | 130 ++++++++++++++-
sys/compat/linux/arch/arm/linux_sysent.c | 12 +-
sys/compat/linux/arch/m68k/linux_syscall.h | 8 +-
sys/compat/linux/arch/m68k/linux_syscallargs.h | 21 ++-
sys/compat/linux/arch/m68k/linux_syscalls.c | 183 +++++++++++++++++++-
sys/compat/linux/arch/m68k/linux_sysent.c | 12 +-
sys/compat/linux/arch/mips/linux_syscall.h | 8 +-
sys/compat/linux/arch/mips/linux_syscallargs.h | 19 ++-
sys/compat/linux/arch/mips/linux_syscalls.c | 8 +-
sys/compat/linux/arch/mips/linux_sysent.c | 12 +-
sys/compat/linux/arch/powerpc/linux_syscall.h | 8 +-
sys/compat/linux/arch/powerpc/linux_syscallargs.h | 21 ++-
sys/compat/linux/arch/powerpc/linux_syscalls.c | 197 +++++++++++++++++++++-
sys/compat/linux/arch/powerpc/linux_sysent.c | 12 +-
20 files changed, 683 insertions(+), 64 deletions(-)
diffs (truncated from 1168 to 300 lines):
diff -r 12e51606ae31 -r 43e026d3b643 sys/compat/linux/arch/alpha/linux_syscall.h
--- a/sys/compat/linux/arch/alpha/linux_syscall.h Fri Apr 15 13:04:52 2011 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscall.h Fri Apr 15 13:07:37 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.h,v 1.78 2010/07/07 01:31:51 chs Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.79 2011/04/15 13:07:37 he Exp $ */
/*
* System call numbers.
@@ -594,6 +594,12 @@
/* syscall: "get_robust_list" ret: "int" args: "int" "struct linux_robust_list_head **" "size_t *" */
#define LINUX_SYS_get_robust_list 467
+/* syscall: "dup3" ret: "int" args: "int" "int" "int" */
+#define LINUX_SYS_dup3 487
+
+/* syscall: "pipe2" ret: "int" args: "int *" "int" */
+#define LINUX_SYS_pipe2 488
+
#define LINUX_SYS_MAXSYSCALL 494
#define LINUX_SYS_NSYSENT 512
#endif /* _LINUX_SYS_SYSCALL_H_ */
diff -r 12e51606ae31 -r 43e026d3b643 sys/compat/linux/arch/alpha/linux_syscallargs.h
--- a/sys/compat/linux/arch/alpha/linux_syscallargs.h Fri Apr 15 13:04:52 2011 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h Fri Apr 15 13:07:37 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscallargs.h,v 1.77 2010/07/07 01:31:51 chs Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.78 2011/04/15 13:07:37 he Exp $ */
/*
* System call argument lists.
@@ -27,7 +27,7 @@
}
#undef check_syscall_args
-#define check_syscall_args(call) \
+#define check_syscall_args(call) /*LINTED*/ \
typedef char call##_check_args[sizeof (struct call##_args) \
<= LINUX_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
@@ -976,6 +976,19 @@
};
check_syscall_args(linux_sys_get_robust_list)
+struct linux_sys_dup3_args {
+ syscallarg(int) from;
+ syscallarg(int) to;
+ syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_dup3)
+
+struct linux_sys_pipe2_args {
+ syscallarg(int *) pfds;
+ syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_pipe2)
+
/*
* System call prototypes.
*/
@@ -1402,4 +1415,8 @@
int linux_sys_get_robust_list(struct lwp *, const struct linux_sys_get_robust_list_args *, register_t *);
+int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *);
+
+int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *);
+
#endif /* _LINUX_SYS_SYSCALLARGS_H_ */
diff -r 12e51606ae31 -r 43e026d3b643 sys/compat/linux/arch/alpha/linux_syscalls.c
--- a/sys/compat/linux/arch/alpha/linux_syscalls.c Fri Apr 15 13:04:52 2011 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscalls.c Fri Apr 15 13:07:37 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscalls.c,v 1.79 2010/07/07 01:31:51 chs Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.80 2011/04/15 13:07:37 he Exp $ */
/*
* System call names.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.79 2010/07/07 01:31:51 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.80 2011/04/15 13:07:37 he Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -543,11 +543,29 @@
/* 484 */ "#484 (unimplemented signalfd4)",
/* 485 */ "#485 (unimplemented eventfd2)",
/* 486 */ "#486 (unimplemented epoll_create1)",
- /* 487 */ "#487 (unimplemented dup3)",
- /* 488 */ "#488 (unimplemented pipe2)",
+ /* 487 */ "dup3",
+ /* 488 */ "pipe2",
/* 489 */ "#489 (unimplemented inotify_init1)",
/* 490 */ "#490 (unimplemented preadv)",
/* 491 */ "#491 (unimplemented pwritev)",
/* 492 */ "#492 (unimplemented rt_tgsigqueueinfo)",
/* 493 */ "#493 (unimplemented perf_counter_open)",
+ /* 494 */ "# filler",
+ /* 495 */ "# filler",
+ /* 496 */ "# filler",
+ /* 497 */ "# filler",
+ /* 498 */ "# filler",
+ /* 499 */ "# filler",
+ /* 500 */ "# filler",
+ /* 501 */ "# filler",
+ /* 502 */ "# filler",
+ /* 503 */ "# filler",
+ /* 504 */ "# filler",
+ /* 505 */ "# filler",
+ /* 506 */ "# filler",
+ /* 507 */ "# filler",
+ /* 508 */ "# filler",
+ /* 509 */ "# filler",
+ /* 510 */ "# filler",
+ /* 511 */ "# filler",
};
diff -r 12e51606ae31 -r 43e026d3b643 sys/compat/linux/arch/alpha/linux_sysent.c
--- a/sys/compat/linux/arch/alpha/linux_sysent.c Fri Apr 15 13:04:52 2011 +0000
+++ b/sys/compat/linux/arch/alpha/linux_sysent.c Fri Apr 15 13:07:37 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sysent.c,v 1.78 2010/07/07 01:31:51 chs Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.79 2011/04/15 13:07:37 he Exp $ */
/*
* System call switch table.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.78 2010/07/07 01:31:51 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.79 2011/04/15 13:07:37 he Exp $");
#if defined(_KERNEL_OPT)
#include "opt_sysv.h"
@@ -1044,10 +1044,10 @@
linux_sys_nosys }, /* 485 = unimplemented eventfd2 */
{ 0, 0, 0,
linux_sys_nosys }, /* 486 = unimplemented epoll_create1 */
- { 0, 0, 0,
- linux_sys_nosys }, /* 487 = unimplemented dup3 */
- { 0, 0, 0,
- linux_sys_nosys }, /* 488 = unimplemented pipe2 */
+ { ns(struct linux_sys_dup3_args), 0,
+ (sy_call_t *)linux_sys_dup3 }, /* 487 = dup3 */
+ { ns(struct linux_sys_pipe2_args), 0,
+ (sy_call_t *)linux_sys_pipe2 }, /* 488 = pipe2 */
{ 0, 0, 0,
linux_sys_nosys }, /* 489 = unimplemented inotify_init1 */
{ 0, 0, 0,
diff -r 12e51606ae31 -r 43e026d3b643 sys/compat/linux/arch/arm/linux_syscall.h
--- a/sys/compat/linux/arch/arm/linux_syscall.h Fri Apr 15 13:04:52 2011 +0000
+++ b/sys/compat/linux/arch/arm/linux_syscall.h Fri Apr 15 13:07:37 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.h,v 1.47 2010/07/07 01:31:52 chs Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.48 2011/04/15 13:07:37 he Exp $ */
/*
* System call numbers.
@@ -649,6 +649,12 @@
/* syscall: "get_robust_list" ret: "int" args: "int" "struct linux_robust_list_head **" "size_t *" */
#define LINUX_SYS_get_robust_list 339
+/* syscall: "dup3" ret: "int" args: "int" "int" "int" */
+#define LINUX_SYS_dup3 358
+
+/* syscall: "pipe2" ret: "int" args: "int *" "int" */
+#define LINUX_SYS_pipe2 359
+
/* syscall: "breakpoint" ret: "int" args: */
#define LINUX_SYS_breakpoint 385
diff -r 12e51606ae31 -r 43e026d3b643 sys/compat/linux/arch/arm/linux_syscallargs.h
--- a/sys/compat/linux/arch/arm/linux_syscallargs.h Fri Apr 15 13:04:52 2011 +0000
+++ b/sys/compat/linux/arch/arm/linux_syscallargs.h Fri Apr 15 13:07:37 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscallargs.h,v 1.47 2010/07/07 01:31:52 chs Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.48 2011/04/15 13:07:37 he Exp $ */
/*
* System call argument lists.
@@ -27,7 +27,7 @@
}
#undef check_syscall_args
-#define check_syscall_args(call) \
+#define check_syscall_args(call) /*LINTED*/ \
typedef char call##_check_args[sizeof (struct call##_args) \
<= LINUX_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
@@ -964,6 +964,19 @@
};
check_syscall_args(linux_sys_get_robust_list)
+struct linux_sys_dup3_args {
+ syscallarg(int) from;
+ syscallarg(int) to;
+ syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_dup3)
+
+struct linux_sys_pipe2_args {
+ syscallarg(int *) pfds;
+ syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_pipe2)
+
struct linux_sys_cacheflush_args {
syscallarg(uintptr_t) from;
syscallarg(intptr_t) to;
@@ -1382,6 +1395,10 @@
int linux_sys_get_robust_list(struct lwp *, const struct linux_sys_get_robust_list_args *, register_t *);
+int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *);
+
+int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *);
+
int linux_sys_breakpoint(struct lwp *, const void *, register_t *);
int linux_sys_cacheflush(struct lwp *, const struct linux_sys_cacheflush_args *, register_t *);
diff -r 12e51606ae31 -r 43e026d3b643 sys/compat/linux/arch/arm/linux_syscalls.c
--- a/sys/compat/linux/arch/arm/linux_syscalls.c Fri Apr 15 13:04:52 2011 +0000
+++ b/sys/compat/linux/arch/arm/linux_syscalls.c Fri Apr 15 13:07:37 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscalls.c,v 1.47 2010/07/07 01:31:52 chs Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.48 2011/04/15 13:07:37 he Exp $ */
/*
* System call names.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.47 2010/07/07 01:31:52 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.48 2011/04/15 13:07:37 he Exp $");
#if defined(_KERNEL_OPT)
#include <sys/param.h>
@@ -391,8 +391,8 @@
/* 355 */ "#355 (unimplemented signalfd4)",
/* 356 */ "#356 (unimplemented eventfd2)",
/* 357 */ "#357 (unimplemented epoll_create1)",
- /* 358 */ "#358 (unimplemented dup3)",
- /* 359 */ "#359 (unimplemented pipe2)",
+ /* 358 */ "dup3",
+ /* 359 */ "pipe2",
/* 360 */ "#360 (unimplemented inotify_init1)",
/* 361 */ "#361 (unimplemented preadv)",
/* 362 */ "#362 (unimplemented pwritev)",
@@ -423,4 +423,126 @@
/* 387 */ "#387 (unimplemented usr26)",
/* 388 */ "#388 (unimplemented usr32)",
/* 389 */ "set_tls",
+ /* 390 */ "# filler",
+ /* 391 */ "# filler",
+ /* 392 */ "# filler",
+ /* 393 */ "# filler",
+ /* 394 */ "# filler",
+ /* 395 */ "# filler",
+ /* 396 */ "# filler",
+ /* 397 */ "# filler",
+ /* 398 */ "# filler",
+ /* 399 */ "# filler",
+ /* 400 */ "# filler",
+ /* 401 */ "# filler",
+ /* 402 */ "# filler",
+ /* 403 */ "# filler",
+ /* 404 */ "# filler",
+ /* 405 */ "# filler",
+ /* 406 */ "# filler",
+ /* 407 */ "# filler",
+ /* 408 */ "# filler",
+ /* 409 */ "# filler",
+ /* 410 */ "# filler",
+ /* 411 */ "# filler",
+ /* 412 */ "# filler",
+ /* 413 */ "# filler",
+ /* 414 */ "# filler",
+ /* 415 */ "# filler",
+ /* 416 */ "# filler",
+ /* 417 */ "# filler",
+ /* 418 */ "# filler",
+ /* 419 */ "# filler",
+ /* 420 */ "# filler",
+ /* 421 */ "# filler",
+ /* 422 */ "# filler",
+ /* 423 */ "# filler",
+ /* 424 */ "# filler",
+ /* 425 */ "# filler",
+ /* 426 */ "# filler",
+ /* 427 */ "# filler",
+ /* 428 */ "# filler",
+ /* 429 */ "# filler",
+ /* 430 */ "# filler",
+ /* 431 */ "# filler",
+ /* 432 */ "# filler",
+ /* 433 */ "# filler",
Home |
Main Index |
Thread Index |
Old Index