svn commit: r247327 - in user/dchagin/lemul/sys: amd64/linux32 i386/linux

Dmitry Chagin dchagin at FreeBSD.org
Tue Feb 26 18:09:20 UTC 2013


Author: dchagin
Date: Tue Feb 26 18:09:17 2013
New Revision: 247327
URL: http://svnweb.freebsd.org/changeset/base/247327

Log:
  Regen for r247326.

Modified:
  user/dchagin/lemul/sys/amd64/linux32/linux32_proto.h
  user/dchagin/lemul/sys/amd64/linux32/linux32_syscall.h
  user/dchagin/lemul/sys/amd64/linux32/linux32_syscalls.c
  user/dchagin/lemul/sys/amd64/linux32/linux32_sysent.c
  user/dchagin/lemul/sys/amd64/linux32/linux32_systrace_args.c
  user/dchagin/lemul/sys/i386/linux/linux_proto.h
  user/dchagin/lemul/sys/i386/linux/linux_syscall.h
  user/dchagin/lemul/sys/i386/linux/linux_syscalls.c
  user/dchagin/lemul/sys/i386/linux/linux_sysent.c
  user/dchagin/lemul/sys/i386/linux/linux_systrace_args.c

Modified: user/dchagin/lemul/sys/amd64/linux32/linux32_proto.h
==============================================================================
--- user/dchagin/lemul/sys/amd64/linux32/linux32_proto.h	Tue Feb 26 18:07:29 2013	(r247326)
+++ user/dchagin/lemul/sys/amd64/linux32/linux32_proto.h	Tue Feb 26 18:09:17 2013	(r247327)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: user/dchagin/lemul/sys/amd64/linux32/syscalls.master 247228 2013-02-24 18:12:30Z dchagin 
+ * created from FreeBSD: user/dchagin/lemul/sys/amd64/linux32/syscalls.master 247326 2013-02-26 18:07:29Z dchagin 
  */
 
 #ifndef _LINUX_SYSPROTO_H_
@@ -1057,7 +1057,9 @@ struct linux_epoll_create1_args {
 	register_t dummy;
 };
 struct linux_dup3_args {
-	register_t dummy;
+	char oldfd_l_[PADL_(l_int)]; l_int oldfd; char oldfd_r_[PADR_(l_int)];
+	char newfd_l_[PADL_(l_int)]; l_int newfd; char newfd_r_[PADR_(l_int)];
+	char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)];
 };
 struct linux_pipe2_args {
 	char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)];

Modified: user/dchagin/lemul/sys/amd64/linux32/linux32_syscall.h
==============================================================================
--- user/dchagin/lemul/sys/amd64/linux32/linux32_syscall.h	Tue Feb 26 18:07:29 2013	(r247326)
+++ user/dchagin/lemul/sys/amd64/linux32/linux32_syscall.h	Tue Feb 26 18:09:17 2013	(r247327)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: user/dchagin/lemul/sys/amd64/linux32/syscalls.master 247228 2013-02-24 18:12:30Z dchagin 
+ * created from FreeBSD: user/dchagin/lemul/sys/amd64/linux32/syscalls.master 247326 2013-02-26 18:07:29Z dchagin 
  */
 
 #define	LINUX_SYS_linux_exit	1

Modified: user/dchagin/lemul/sys/amd64/linux32/linux32_syscalls.c
==============================================================================
--- user/dchagin/lemul/sys/amd64/linux32/linux32_syscalls.c	Tue Feb 26 18:07:29 2013	(r247326)
+++ user/dchagin/lemul/sys/amd64/linux32/linux32_syscalls.c	Tue Feb 26 18:09:17 2013	(r247327)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: user/dchagin/lemul/sys/amd64/linux32/syscalls.master 247228 2013-02-24 18:12:30Z dchagin 
+ * created from FreeBSD: user/dchagin/lemul/sys/amd64/linux32/syscalls.master 247326 2013-02-26 18:07:29Z dchagin 
  */
 
 const char *linux_syscallnames[] = {

Modified: user/dchagin/lemul/sys/amd64/linux32/linux32_sysent.c
==============================================================================
--- user/dchagin/lemul/sys/amd64/linux32/linux32_sysent.c	Tue Feb 26 18:07:29 2013	(r247326)
+++ user/dchagin/lemul/sys/amd64/linux32/linux32_sysent.c	Tue Feb 26 18:09:17 2013	(r247327)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: user/dchagin/lemul/sys/amd64/linux32/syscalls.master 247228 2013-02-24 18:12:30Z dchagin 
+ * created from FreeBSD: user/dchagin/lemul/sys/amd64/linux32/syscalls.master 247326 2013-02-26 18:07:29Z dchagin 
  */
 
 #include "opt_compat.h"
@@ -349,7 +349,7 @@ struct sysent linux_sysent[] = {
 	{ 0, (sy_call_t *)linux_signalfd4, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 327 = linux_signalfd4 */
 	{ 0, (sy_call_t *)linux_eventfd2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 328 = linux_eventfd2 */
 	{ 0, (sy_call_t *)linux_epoll_create1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 329 = linux_epoll_create1 */
-	{ 0, (sy_call_t *)linux_dup3, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 330 = linux_dup3 */
+	{ AS(linux_dup3_args), (sy_call_t *)linux_dup3, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 330 = linux_dup3 */
 	{ AS(linux_pipe2_args), (sy_call_t *)linux_pipe2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 331 = linux_pipe2 */
 	{ 0, (sy_call_t *)linux_inotify_init1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 332 = linux_inotify_init1 */
 	{ 0, (sy_call_t *)linux_preadv, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 333 = linux_preadv */

Modified: user/dchagin/lemul/sys/amd64/linux32/linux32_systrace_args.c
==============================================================================
--- user/dchagin/lemul/sys/amd64/linux32/linux32_systrace_args.c	Tue Feb 26 18:07:29 2013	(r247326)
+++ user/dchagin/lemul/sys/amd64/linux32/linux32_systrace_args.c	Tue Feb 26 18:09:17 2013	(r247327)
@@ -2174,7 +2174,11 @@ systrace_args(int sysnum, void *params, 
 	}
 	/* linux_dup3 */
 	case 330: {
-		*n_args = 0;
+		struct linux_dup3_args *p = params;
+		iarg[0] = p->oldfd; /* l_int */
+		iarg[1] = p->newfd; /* l_int */
+		iarg[2] = p->flags; /* l_int */
+		*n_args = 3;
 		break;
 	}
 	/* linux_pipe2 */
@@ -5398,6 +5402,19 @@ systrace_entry_setargdesc(int sysnum, in
 		break;
 	/* linux_dup3 */
 	case 330:
+		switch(ndx) {
+		case 0:
+			p = "l_int";
+			break;
+		case 1:
+			p = "l_int";
+			break;
+		case 2:
+			p = "l_int";
+			break;
+		default:
+			break;
+		};
 		break;
 	/* linux_pipe2 */
 	case 331:
@@ -6668,6 +6685,9 @@ systrace_return_setargdesc(int sysnum, i
 	case 329:
 	/* linux_dup3 */
 	case 330:
+		if (ndx == 0 || ndx == 1)
+			p = "int";
+		break;
 	/* linux_pipe2 */
 	case 331:
 		if (ndx == 0 || ndx == 1)

Modified: user/dchagin/lemul/sys/i386/linux/linux_proto.h
==============================================================================
--- user/dchagin/lemul/sys/i386/linux/linux_proto.h	Tue Feb 26 18:07:29 2013	(r247326)
+++ user/dchagin/lemul/sys/i386/linux/linux_proto.h	Tue Feb 26 18:09:17 2013	(r247327)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: user/dchagin/lemul/sys/i386/linux/syscalls.master 247228 2013-02-24 18:12:30Z dchagin 
+ * created from FreeBSD: user/dchagin/lemul/sys/i386/linux/syscalls.master 247326 2013-02-26 18:07:29Z dchagin 
  */
 
 #ifndef _LINUX_SYSPROTO_H_
@@ -1080,7 +1080,9 @@ struct linux_epoll_create1_args {
 	register_t dummy;
 };
 struct linux_dup3_args {
-	register_t dummy;
+	char oldfd_l_[PADL_(l_int)]; l_int oldfd; char oldfd_r_[PADR_(l_int)];
+	char newfd_l_[PADL_(l_int)]; l_int newfd; char newfd_r_[PADR_(l_int)];
+	char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)];
 };
 struct linux_pipe2_args {
 	char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)];

Modified: user/dchagin/lemul/sys/i386/linux/linux_syscall.h
==============================================================================
--- user/dchagin/lemul/sys/i386/linux/linux_syscall.h	Tue Feb 26 18:07:29 2013	(r247326)
+++ user/dchagin/lemul/sys/i386/linux/linux_syscall.h	Tue Feb 26 18:09:17 2013	(r247327)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: user/dchagin/lemul/sys/i386/linux/syscalls.master 247228 2013-02-24 18:12:30Z dchagin 
+ * created from FreeBSD: user/dchagin/lemul/sys/i386/linux/syscalls.master 247326 2013-02-26 18:07:29Z dchagin 
  */
 
 #define	LINUX_SYS_linux_exit	1

Modified: user/dchagin/lemul/sys/i386/linux/linux_syscalls.c
==============================================================================
--- user/dchagin/lemul/sys/i386/linux/linux_syscalls.c	Tue Feb 26 18:07:29 2013	(r247326)
+++ user/dchagin/lemul/sys/i386/linux/linux_syscalls.c	Tue Feb 26 18:09:17 2013	(r247327)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: user/dchagin/lemul/sys/i386/linux/syscalls.master 247228 2013-02-24 18:12:30Z dchagin 
+ * created from FreeBSD: user/dchagin/lemul/sys/i386/linux/syscalls.master 247326 2013-02-26 18:07:29Z dchagin 
  */
 
 const char *linux_syscallnames[] = {

Modified: user/dchagin/lemul/sys/i386/linux/linux_sysent.c
==============================================================================
--- user/dchagin/lemul/sys/i386/linux/linux_sysent.c	Tue Feb 26 18:07:29 2013	(r247326)
+++ user/dchagin/lemul/sys/i386/linux/linux_sysent.c	Tue Feb 26 18:09:17 2013	(r247327)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: user/dchagin/lemul/sys/i386/linux/syscalls.master 247228 2013-02-24 18:12:30Z dchagin 
+ * created from FreeBSD: user/dchagin/lemul/sys/i386/linux/syscalls.master 247326 2013-02-26 18:07:29Z dchagin 
  */
 
 #include <sys/param.h>
@@ -348,7 +348,7 @@ struct sysent linux_sysent[] = {
 	{ 0, (sy_call_t *)linux_signalfd4, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 327 = linux_signalfd4 */
 	{ 0, (sy_call_t *)linux_eventfd2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 328 = linux_eventfd2 */
 	{ 0, (sy_call_t *)linux_epoll_create1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 329 = linux_epoll_create1 */
-	{ 0, (sy_call_t *)linux_dup3, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 330 = linux_dup3 */
+	{ AS(linux_dup3_args), (sy_call_t *)linux_dup3, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 330 = linux_dup3 */
 	{ AS(linux_pipe2_args), (sy_call_t *)linux_pipe2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 331 = linux_pipe2 */
 	{ 0, (sy_call_t *)linux_inotify_init1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 332 = linux_inotify_init1 */
 	{ 0, (sy_call_t *)linux_preadv, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },	/* 333 = linux_preadv */

Modified: user/dchagin/lemul/sys/i386/linux/linux_systrace_args.c
==============================================================================
--- user/dchagin/lemul/sys/i386/linux/linux_systrace_args.c	Tue Feb 26 18:07:29 2013	(r247326)
+++ user/dchagin/lemul/sys/i386/linux/linux_systrace_args.c	Tue Feb 26 18:09:17 2013	(r247327)
@@ -2265,7 +2265,11 @@ systrace_args(int sysnum, void *params, 
 	}
 	/* linux_dup3 */
 	case 330: {
-		*n_args = 0;
+		struct linux_dup3_args *p = params;
+		iarg[0] = p->oldfd; /* l_int */
+		iarg[1] = p->newfd; /* l_int */
+		iarg[2] = p->flags; /* l_int */
+		*n_args = 3;
 		break;
 	}
 	/* linux_pipe2 */
@@ -5694,6 +5698,19 @@ systrace_entry_setargdesc(int sysnum, in
 		break;
 	/* linux_dup3 */
 	case 330:
+		switch(ndx) {
+		case 0:
+			p = "l_int";
+			break;
+		case 1:
+			p = "l_int";
+			break;
+		case 2:
+			p = "l_int";
+			break;
+		default:
+			break;
+		};
 		break;
 	/* linux_pipe2 */
 	case 331:
@@ -7026,6 +7043,9 @@ systrace_return_setargdesc(int sysnum, i
 	case 329:
 	/* linux_dup3 */
 	case 330:
+		if (ndx == 0 || ndx == 1)
+			p = "int";
+		break;
 	/* linux_pipe2 */
 	case 331:
 		if (ndx == 0 || ndx == 1)


More information about the svn-src-user mailing list