add get_flag.c, example for fcntl()