わけのわからない拘りが多すぎるよ

BOOL ret = FALSE;
if(name && open(name))
{
  if(read(1) && read(2))
    ret = TRUE;
  close();
}
return ret;