svn commit: r313912 - head/sys/compat/linux

Dmitry Chagin dchagin at FreeBSD.org
Sat Feb 18 07:21:51 UTC 2017


Author: dchagin
Date: Sat Feb 18 07:21:50 2017
New Revision: 313912
URL: https://svnweb.freebsd.org/changeset/base/313912

Log:
  Finich r313684.
  
  Convert linux_recv(), linux_send() and linux_accept() system call arguments
  to the register_t type too.
  
  PR:		217161
  MFC after:	3 days
  xMFC with:	r313284,r313285,r313684

Modified:
  head/sys/compat/linux/linux_socket.c
  head/sys/compat/linux/linux_socket.h

Modified: head/sys/compat/linux/linux_socket.c
==============================================================================
--- head/sys/compat/linux/linux_socket.c	Sat Feb 18 06:18:14 2017	(r313911)
+++ head/sys/compat/linux/linux_socket.c	Sat Feb 18 07:21:50 2017	(r313912)
@@ -959,10 +959,10 @@ linux_socketpair(struct thread *td, stru
 
 #if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32))
 struct linux_send_args {
-	int s;
-	l_uintptr_t msg;
-	int len;
-	int flags;
+	register_t s;
+	register_t msg;
+	register_t len;
+	register_t flags;
 };
 
 static int
@@ -987,10 +987,10 @@ linux_send(struct thread *td, struct lin
 }
 
 struct linux_recv_args {
-	int s;
-	l_uintptr_t msg;
-	int len;
-	int flags;
+	register_t s;
+	register_t msg;
+	register_t len;
+	register_t flags;
 };
 
 static int

Modified: head/sys/compat/linux/linux_socket.h
==============================================================================
--- head/sys/compat/linux/linux_socket.h	Sat Feb 18 06:18:14 2017	(r313911)
+++ head/sys/compat/linux/linux_socket.h	Sat Feb 18 07:21:50 2017	(r313912)
@@ -143,9 +143,9 @@ struct l_ucred {
 #if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32))
 
 struct linux_accept_args {
-	int s;
-	l_uintptr_t addr;
-	l_uintptr_t namelen;
+	register_t s;
+	register_t addr;
+	register_t namelen;
 };
 
 int linux_accept(struct thread *td, struct linux_accept_args *args);


More information about the svn-src-all mailing list