Fix sync_file_range on ppc/ppc64.
commit1bc1954c735788ae9e7f954e18cf39a22f964d06
authorJakub Jelinek <jakub@redhat.com>
Wed, 18 Nov 2009 02:04:51 +0000 (17 18:04 -0800)
committerPetr Baudis <pasky@ucw.cz>
Thu, 19 Nov 2009 22:03:21 +0000 (19 23:03 +0100)
treeff4f263f4fb525f0e1dadc320ce2755e545d938d
parent16b583ea7ec0b96c8908e6c5418836f74554329a
Fix sync_file_range on ppc/ppc64.

I've noticed that sync_file_range is a stub on ppc/ppc64.
The kernel on these arches provides sync_file_range2 syscall with swapped
parameters.
The following completely untested patch ought to fix this.
(cherry picked from commit 8ad81b316bc158746aee18aa7d7df44d3eb61871)
ChangeLog
sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c [copied from sysdeps/unix/sysv/linux/sync_file_range.c with 82% similarity]
sysdeps/unix/sysv/linux/sync_file_range.c