[MacOS] On Mac, use the copyfile API to copy files (#9642)
commitabc66ce0e9a7bf3da11916b575327cf3f22c8a97
authorFilip Navara <filip.navara@gmail.com>
Mon, 23 Jul 2018 15:55:05 +0000 (23 17:55 +0200)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Mon, 23 Jul 2018 15:55:05 +0000 (23 11:55 -0400)
tree5cfa55bfa4961e4567c58322d1dc9d652a4a9b5e
parenteeb2802076c00209aa23a46fbf0ba6aef6f7da05
[MacOS] On Mac, use the copyfile API to copy files (#9642)

[MacOS] On Mac, use the copyfile API to copy files

Rebase of #9038 with added fix for the failing unit tests. Note that there's a race condition in the check between `source file == destination file` and the `copyfile` call, but a similar race condition already exists there in the current code except the outcome is different.
configure.ac
mono/metadata/w32file-unix.c