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:
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to