abfd->iostream = (char *) fopen (abfd->filename, FOPEN_WUB);
abfd->iostream = (PTR) fopen (abfd->filename, FOPEN_WUB);
bfd_open_file (abfd)     bfd *abfd;{  abfd->cacheable = true;	/* Allow it to be closed later. */  if (open_files >= BFD_CACHE_MAX_OPEN)    {      if (! close_one ())	return NULL;    }  switch (abfd->direction)    {    case read_direction:    case no_direction:      abfd->iostream = (char *) fopen (abfd->filename, FOPEN_RB);      break;    case both_direction:    case write_direction:      if (abfd->opened_once == true)	{	  abfd->iostream = (char *) fopen (abfd->filename, FOPEN_RUB);	  if (abfd->iostream == NULL)	    abfd->iostream = (char *) fopen (abfd->filename, FOPEN_WUB);	}      else	{	  /*open for creat */	  abfd->iostream = (char *) fopen (abfd->filename, FOPEN_WB);	  abfd->opened_once = true;	}      break;    }  if (abfd->iostream != NULL)    {      if (! bfd_cache_init (abfd))	return NULL;    }  return (FILE *) abfd->iostream;}