sync from https://github.com/ebijun/NetBSD/blob/master/Event/togetter/