Fix sync_file_range on ppc/ppc64.
commit8ad81b316bc158746aee18aa7d7df44d3eb61871
authorJakub Jelinek <jakub@redhat.com>
Wed, 18 Nov 2009 02:04:51 +0000 (17 18:04 -0800)
committerUlrich Drepper <drepper@redhat.com>
Wed, 18 Nov 2009 02:04:51 +0000 (17 18:04 -0800)
tree82a21f0dc57b70505e8b3f36005d29585ce30547
parentf8c10bb45b7639ec7b6bb500a9e69b1e29d5e6f6
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.
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