Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2019 13:30:43 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r355752 - in head/sys: amd64/linux amd64/linux32 arm/linux arm64/linux i386/linux
Message-ID:  <201912141330.xBEDUhu7006467@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Sat Dec 14 13:30:43 2019
New Revision: 355752
URL: https://svnweb.freebsd.org/changeset/base/355752

Log:
  Fix definitions for linuxulator's sync_file_range(2).
  
  Reviewed by:	brooks, emaste
  MFC after:	2 weeks
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D22371

Modified:
  head/sys/amd64/linux/syscalls.master
  head/sys/amd64/linux32/syscalls.master
  head/sys/arm/linux/syscalls.master
  head/sys/arm64/linux/syscalls.master
  head/sys/i386/linux/syscalls.master

Modified: head/sys/amd64/linux/syscalls.master
==============================================================================
--- head/sys/amd64/linux/syscalls.master	Sat Dec 14 10:58:06 2019	(r355751)
+++ head/sys/amd64/linux/syscalls.master	Sat Dec 14 13:30:43 2019	(r355752)
@@ -467,7 +467,8 @@
 				    struct linux_robust_list_head **head, l_size_t *len); }
 275	AUE_NULL	STD	{ int linux_splice(void); }
 276	AUE_NULL	STD	{ int linux_tee(void); }
-277	AUE_NULL	STD	{ int linux_sync_file_range(void); }
+277	AUE_NULL	STD	{ int linux_sync_file_range(l_int fd, l_loff_t offset,
+				    l_loff_t nbytes, unsigned int flags); }
 278	AUE_NULL	STD	{ int linux_vmsplice(void); }
 279	AUE_NULL	STD	{ int linux_move_pages(void); }
 280	AUE_FUTIMESAT	STD	{ int linux_utimensat(l_int dfd, const char *pathname, \

Modified: head/sys/amd64/linux32/syscalls.master
==============================================================================
--- head/sys/amd64/linux32/syscalls.master	Sat Dec 14 10:58:06 2019	(r355751)
+++ head/sys/amd64/linux32/syscalls.master	Sat Dec 14 13:30:43 2019	(r355752)
@@ -524,7 +524,8 @@
 312	AUE_NULL	STD	{ int linux_get_robust_list(l_int pid, \
 				    struct linux_robust_list_head **head, l_size_t *len); }
 313	AUE_NULL	STD	{ int linux_splice(void); }
-314	AUE_NULL	STD	{ int linux_sync_file_range(void); }
+314	AUE_NULL	STD	{ int linux_sync_file_range(l_int fd, l_loff_t offset,
+				    l_loff_t nbytes, unsigned int flags); }
 315	AUE_NULL	STD	{ int linux_tee(void); }
 316	AUE_NULL	STD	{ int linux_vmsplice(void); }
 ; Linux 2.6.18:

Modified: head/sys/arm/linux/syscalls.master
==============================================================================
--- head/sys/arm/linux/syscalls.master	Sat Dec 14 10:58:06 2019	(r355751)
+++ head/sys/arm/linux/syscalls.master	Sat Dec 14 13:30:43 2019	(r355752)
@@ -1692,7 +1692,12 @@
 		int linux_splice(void);
 	}
 341	AUE_NULL	STD	{
-		int linux_sync_file_range(void);
+		int linux_sync_file_range(
+		    l_int fd,
+		    l_loff_t offset,
+		    l_loff_t nbytes,
+		    unsigned int flags
+		);
 	}
 342	AUE_NULL	STD	{
 		int linux_tee(void);

Modified: head/sys/arm64/linux/syscalls.master
==============================================================================
--- head/sys/arm64/linux/syscalls.master	Sat Dec 14 10:58:06 2019	(r355751)
+++ head/sys/arm64/linux/syscalls.master	Sat Dec 14 13:30:43 2019	(r355752)
@@ -450,7 +450,12 @@
 		    l_uint fd);
 	}
 84	AUE_NULL	STD	{
-		int linux_sync_file_range(void);
+		int linux_sync_file_range(
+		    l_int fd,
+		    l_loff_t offset,
+		    l_loff_t nbytes,
+		    unsigned int flags
+		);
 	}
 85	AUE_NULL	STD	{
 		int linux_timerfd_create(

Modified: head/sys/i386/linux/syscalls.master
==============================================================================
--- head/sys/i386/linux/syscalls.master	Sat Dec 14 10:58:06 2019	(r355751)
+++ head/sys/i386/linux/syscalls.master	Sat Dec 14 13:30:43 2019	(r355752)
@@ -533,7 +533,8 @@
 312	AUE_NULL	STD	{ int linux_get_robust_list(l_int pid, \
 				    struct linux_robust_list_head **head, l_size_t *len); }
 313	AUE_NULL	STD	{ int linux_splice(void); }
-314	AUE_NULL	STD	{ int linux_sync_file_range(void); }
+314	AUE_NULL	STD	{ int linux_sync_file_range(l_int fd, l_loff_t offset,
+				    l_loff_t nbytes, unsigned int flags); }
 315	AUE_NULL	STD	{ int linux_tee(void); }
 316	AUE_NULL	STD	{ int linux_vmsplice(void); }
 ; Linux 2.6.18:



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