[Simh] re. still unable to specify disks larger than 2 GB

Galen Tackett gtackett at yahoo.com
Mon Sep 19 14:11:55 EDT 2005


On Sep 19, 2005, at 12:22 PM, -demijohn- wrote:

> ...
> From what I can see, these sections of code (in sim_fio.c) are 
> relevant:
>
>              /* Optimized file open */
>
>              FILE *sim_fopen (char *file, char *mode)
>              {
>              #if defined (VMS)
>                  return fopen (file, mode, "ALQ=32", "DEQ=4096",
>                         "MBF=6", "MBC=127", "FOP=cbt,tef",
> "ROP=rah,wbh", "CTX=stm");
>    ->       #elif defined (USE_INT64) && defined (USE_ADDR64) && 
> defined (linux)
>    ->              return fopen64 (file, mode);
>              #else
>                    return fopen (file, mode);
>              #endif
> }
>
> The use of the VMS flag above has me puzzled .. I'm not sure if that 
> was defined
> or what it implies .. I'm trying to build the VAX/VMS emulator
> obviously ... if VMS
> is defined looks like it would prevent the fopen64 routine from being 
> called.
> (I'm probably way off :)
>
This VMS-conditionalized code will be compiled if you are using an 
OpenVMS system to compile simh. So don't worry about the VMS part. It 
won't affect you if you compile on linux.

Galen




More information about the Simh mailing list