add Ctl/Mktemp/Fopen/Fclose and example_ctl