rewrite fs_event_basic.ml code.