libnative/io: datasync() wrongly called fsync().
liblibc and libnative: send() should use const buffers.
auto merge of #17497 : nodakai/rust/libnative-misc-fixes, r=alexcrichton

libnative/io: datasync() wrongly called fsync().
liblibc and libnative: send() should use const buffers.