Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 May 2013 22:45:05 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250160 - in head/sys: compat/freebsd32 kern sys
Message-ID:  <201305012245.r41Mj5SE048511@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Wed May  1 22:45:04 2013
New Revision: 250160
URL: http://svnweb.freebsd.org/changeset/base/250160

Log:
  Regenerate files for pipe2().

Modified:
  head/sys/compat/freebsd32/freebsd32_proto.h
  head/sys/compat/freebsd32/freebsd32_syscall.h
  head/sys/compat/freebsd32/freebsd32_syscalls.c
  head/sys/compat/freebsd32/freebsd32_sysent.c
  head/sys/compat/freebsd32/freebsd32_systrace_args.c
  head/sys/kern/init_sysent.c
  head/sys/kern/syscalls.c
  head/sys/kern/systrace_args.c
  head/sys/sys/syscall.h
  head/sys/sys/syscall.mk
  head/sys/sys/sysproto.h

Modified: head/sys/compat/freebsd32/freebsd32_proto.h
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_proto.h	Wed May  1 22:42:42 2013	(r250159)
+++ head/sys/compat/freebsd32/freebsd32_proto.h	Wed May  1 22:45:04 2013	(r250160)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 250154 2013-05-01 20:10:21Z jilles 
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 250159 2013-05-01 22:42:42Z jilles 
  */
 
 #ifndef _FREEBSD32_SYSPROTO_H_

Modified: head/sys/compat/freebsd32/freebsd32_syscall.h
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_syscall.h	Wed May  1 22:42:42 2013	(r250159)
+++ head/sys/compat/freebsd32/freebsd32_syscall.h	Wed May  1 22:45:04 2013	(r250160)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 250154 2013-05-01 20:10:21Z jilles 
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 250159 2013-05-01 22:42:42Z jilles 
  */
 
 #define	FREEBSD32_SYS_syscall	0
@@ -439,4 +439,5 @@
 #define	FREEBSD32_SYS_connectat	539
 #define	FREEBSD32_SYS_chflagsat	540
 #define	FREEBSD32_SYS_accept4	541
-#define	FREEBSD32_SYS_MAXSYSCALL	542
+#define	FREEBSD32_SYS_pipe2	542
+#define	FREEBSD32_SYS_MAXSYSCALL	543

Modified: head/sys/compat/freebsd32/freebsd32_syscalls.c
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_syscalls.c	Wed May  1 22:42:42 2013	(r250159)
+++ head/sys/compat/freebsd32/freebsd32_syscalls.c	Wed May  1 22:45:04 2013	(r250160)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 250154 2013-05-01 20:10:21Z jilles 
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 250159 2013-05-01 22:42:42Z jilles 
  */
 
 const char *freebsd32_syscallnames[] = {
@@ -565,4 +565,5 @@ const char *freebsd32_syscallnames[] = {
 	"connectat",			/* 539 = connectat */
 	"chflagsat",			/* 540 = chflagsat */
 	"accept4",			/* 541 = accept4 */
+	"pipe2",			/* 542 = pipe2 */
 };

Modified: head/sys/compat/freebsd32/freebsd32_sysent.c
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_sysent.c	Wed May  1 22:42:42 2013	(r250159)
+++ head/sys/compat/freebsd32/freebsd32_sysent.c	Wed May  1 22:45:04 2013	(r250160)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 250154 2013-05-01 20:10:21Z jilles 
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 250159 2013-05-01 22:42:42Z jilles 
  */
 
 #include "opt_compat.h"
@@ -602,4 +602,5 @@ struct sysent freebsd32_sysent[] = {
 	{ AS(connectat_args), (sy_call_t *)sys_connectat, AUE_CONNECTAT, NULL, 0, 0, 0, SY_THR_STATIC },	/* 539 = connectat */
 	{ AS(chflagsat_args), (sy_call_t *)sys_chflagsat, AUE_CHFLAGSAT, NULL, 0, 0, 0, SY_THR_STATIC },	/* 540 = chflagsat */
 	{ AS(accept4_args), (sy_call_t *)sys_accept4, AUE_ACCEPT, NULL, 0, 0, 0, SY_THR_STATIC },	/* 541 = accept4 */
+	{ AS(pipe2_args), (sy_call_t *)sys_pipe2, AUE_PIPE, NULL, 0, 0, 0, SY_THR_STATIC },	/* 542 = pipe2 */
 };

Modified: head/sys/compat/freebsd32/freebsd32_systrace_args.c
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_systrace_args.c	Wed May  1 22:42:42 2013	(r250159)
+++ head/sys/compat/freebsd32/freebsd32_systrace_args.c	Wed May  1 22:45:04 2013	(r250160)
@@ -3170,6 +3170,14 @@ systrace_args(int sysnum, void *params, 
 		*n_args = 4;
 		break;
 	}
+	/* pipe2 */
+	case 542: {
+		struct pipe2_args *p = params;
+		uarg[0] = (intptr_t) p->fildes; /* int * */
+		iarg[1] = p->flags; /* int */
+		*n_args = 2;
+		break;
+	}
 	default:
 		*n_args = 0;
 		break;
@@ -8472,6 +8480,19 @@ systrace_entry_setargdesc(int sysnum, in
 			break;
 		};
 		break;
+	/* pipe2 */
+	case 542:
+		switch(ndx) {
+		case 0:
+			p = "int *";
+			break;
+		case 1:
+			p = "int";
+			break;
+		default:
+			break;
+		};
+		break;
 	default:
 		break;
 	};
@@ -10279,6 +10300,11 @@ systrace_return_setargdesc(int sysnum, i
 		if (ndx == 0 || ndx == 1)
 			p = "int";
 		break;
+	/* pipe2 */
+	case 542:
+		if (ndx == 0 || ndx == 1)
+			p = "int";
+		break;
 	default:
 		break;
 	};

Modified: head/sys/kern/init_sysent.c
==============================================================================
--- head/sys/kern/init_sysent.c	Wed May  1 22:42:42 2013	(r250159)
+++ head/sys/kern/init_sysent.c	Wed May  1 22:45:04 2013	(r250160)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/kern/syscalls.master 250154 2013-05-01 20:10:21Z jilles 
+ * created from FreeBSD: head/sys/kern/syscalls.master 250159 2013-05-01 22:42:42Z jilles 
  */
 
 #include "opt_compat.h"
@@ -576,4 +576,5 @@ struct sysent sysent[] = {
 	{ AS(connectat_args), (sy_call_t *)sys_connectat, AUE_CONNECTAT, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC },	/* 539 = connectat */
 	{ AS(chflagsat_args), (sy_call_t *)sys_chflagsat, AUE_CHFLAGSAT, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC },	/* 540 = chflagsat */
 	{ AS(accept4_args), (sy_call_t *)sys_accept4, AUE_ACCEPT, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC },	/* 541 = accept4 */
+	{ AS(pipe2_args), (sy_call_t *)sys_pipe2, AUE_PIPE, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC },	/* 542 = pipe2 */
 };

Modified: head/sys/kern/syscalls.c
==============================================================================
--- head/sys/kern/syscalls.c	Wed May  1 22:42:42 2013	(r250159)
+++ head/sys/kern/syscalls.c	Wed May  1 22:45:04 2013	(r250160)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/kern/syscalls.master 250154 2013-05-01 20:10:21Z jilles 
+ * created from FreeBSD: head/sys/kern/syscalls.master 250159 2013-05-01 22:42:42Z jilles 
  */
 
 const char *syscallnames[] = {
@@ -549,4 +549,5 @@ const char *syscallnames[] = {
 	"connectat",			/* 539 = connectat */
 	"chflagsat",			/* 540 = chflagsat */
 	"accept4",			/* 541 = accept4 */
+	"pipe2",			/* 542 = pipe2 */
 };

Modified: head/sys/kern/systrace_args.c
==============================================================================
--- head/sys/kern/systrace_args.c	Wed May  1 22:42:42 2013	(r250159)
+++ head/sys/kern/systrace_args.c	Wed May  1 22:45:04 2013	(r250160)
@@ -3368,6 +3368,14 @@ systrace_args(int sysnum, void *params, 
 		*n_args = 4;
 		break;
 	}
+	/* pipe2 */
+	case 542: {
+		struct pipe2_args *p = params;
+		uarg[0] = (intptr_t) p->fildes; /* int * */
+		iarg[1] = p->flags; /* int */
+		*n_args = 2;
+		break;
+	}
 	default:
 		*n_args = 0;
 		break;
@@ -8974,6 +8982,19 @@ systrace_entry_setargdesc(int sysnum, in
 			break;
 		};
 		break;
+	/* pipe2 */
+	case 542:
+		switch(ndx) {
+		case 0:
+			p = "int *";
+			break;
+		case 1:
+			p = "int";
+			break;
+		default:
+			break;
+		};
+		break;
 	default:
 		break;
 	};
@@ -10912,6 +10933,11 @@ systrace_return_setargdesc(int sysnum, i
 		if (ndx == 0 || ndx == 1)
 			p = "int";
 		break;
+	/* pipe2 */
+	case 542:
+		if (ndx == 0 || ndx == 1)
+			p = "int";
+		break;
 	default:
 		break;
 	};

Modified: head/sys/sys/syscall.h
==============================================================================
--- head/sys/sys/syscall.h	Wed May  1 22:42:42 2013	(r250159)
+++ head/sys/sys/syscall.h	Wed May  1 22:45:04 2013	(r250160)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/kern/syscalls.master 250154 2013-05-01 20:10:21Z jilles 
+ * created from FreeBSD: head/sys/kern/syscalls.master 250159 2013-05-01 22:42:42Z jilles 
  */
 
 #define	SYS_syscall	0
@@ -461,4 +461,5 @@
 #define	SYS_connectat	539
 #define	SYS_chflagsat	540
 #define	SYS_accept4	541
-#define	SYS_MAXSYSCALL	542
+#define	SYS_pipe2	542
+#define	SYS_MAXSYSCALL	543

Modified: head/sys/sys/syscall.mk
==============================================================================
--- head/sys/sys/syscall.mk	Wed May  1 22:42:42 2013	(r250159)
+++ head/sys/sys/syscall.mk	Wed May  1 22:45:04 2013	(r250160)
@@ -1,7 +1,7 @@
 # FreeBSD system call names.
 # DO NOT EDIT-- this file is automatically generated.
 # $FreeBSD$
-# created from FreeBSD: head/sys/kern/syscalls.master 250154 2013-05-01 20:10:21Z jilles 
+# created from FreeBSD: head/sys/kern/syscalls.master 250159 2013-05-01 22:42:42Z jilles 
 MIASM =  \
 	syscall.o \
 	exit.o \
@@ -409,4 +409,5 @@ MIASM =  \
 	bindat.o \
 	connectat.o \
 	chflagsat.o \
-	accept4.o
+	accept4.o \
+	pipe2.o

Modified: head/sys/sys/sysproto.h
==============================================================================
--- head/sys/sys/sysproto.h	Wed May  1 22:42:42 2013	(r250159)
+++ head/sys/sys/sysproto.h	Wed May  1 22:45:04 2013	(r250160)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/kern/syscalls.master 250154 2013-05-01 20:10:21Z jilles 
+ * created from FreeBSD: head/sys/kern/syscalls.master 250159 2013-05-01 22:42:42Z jilles 
  */
 
 #ifndef _SYS_SYSPROTO_H_
@@ -1808,6 +1808,10 @@ struct accept4_args {
 	char anamelen_l_[PADL_(__socklen_t *__restrict)]; __socklen_t *__restrict anamelen; char anamelen_r_[PADR_(__socklen_t *__restrict)];
 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
 };
+struct pipe2_args {
+	char fildes_l_[PADL_(int *)]; int * fildes; char fildes_r_[PADR_(int *)];
+	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
+};
 int	nosys(struct thread *, struct nosys_args *);
 void	sys_sys_exit(struct thread *, struct sys_exit_args *);
 int	sys_fork(struct thread *, struct fork_args *);
@@ -2199,6 +2203,7 @@ int	sys_bindat(struct thread *, struct b
 int	sys_connectat(struct thread *, struct connectat_args *);
 int	sys_chflagsat(struct thread *, struct chflagsat_args *);
 int	sys_accept4(struct thread *, struct accept4_args *);
+int	sys_pipe2(struct thread *, struct pipe2_args *);
 
 #ifdef COMPAT_43
 
@@ -2904,6 +2909,7 @@ int	freebsd7_shmctl(struct thread *, str
 #define	SYS_AUE_connectat	AUE_CONNECTAT
 #define	SYS_AUE_chflagsat	AUE_CHFLAGSAT
 #define	SYS_AUE_accept4	AUE_ACCEPT
+#define	SYS_AUE_pipe2	AUE_PIPE
 
 #undef PAD_
 #undef PADL_



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305012245.r41Mj5SE048511>