Sync driver with Russ Cox impl.