GNU sync implementation
Merge pull request #250 from xanderfomin/sync

GNU sync implementation