add file opendir.c