Implement streamWriteBuffer
Export streamWriteBuffer to userspace
Fix error when resolving symlinks