Logical Names
The following logical names may need to be defined in order for your application to run after you
have built it with the OpenVMS Porting Library.
The default logical name prefix is "VMS_". You can change this
when you build the Porting Library. See Build Options for more information.
VMS_DEBUG_STAT
Used in STAT_JACKET.C
If defined, enables logging code in the stat
routines. The
default is off, and the logging code is only built in DEBUG versions of the
Porting Library.
VMS_FILENAME_CONTROLS
Used in FILESYSTEM_PARSING.C
Allows you to control many aspects of how filenames are parsed before they
are handed to routines such as open
and stat
.
For more information, see
SYS$SYSROOT:[SYSHLP.JAVA]JAVA$FILENAME_CONTROLS.COM on any Alpha
Version 7.1 or later system. This is the same code that is used by Java.
VMS_FILE_OPEN_MODE
Used in OPEN_JACKET.C
Affects how a file is opened. The default is to always use
"shr=get,put"
. Other modes are available.
Usually the open
jacket routine will call umask
before opening a file in order to get the requested protection set correctly.
The umask
call can be disabled by adding 10 to the value of this
logical.
VMS_NULL_DL_NAME
Used in DL.C
The name of the shareable image to be loaded when dlopen
is
passed NULL as the file name.
There is no default. If you want to specify a value so that
dlopen(NULL,mode)
will succeed, use something similar to
SYS$SHARE:CMA$TIS_SHR.EXE or SYS$SHARE:DECC$CRTL.EXE (or any image that you
know will always be loaded for your application).
VMS_POLL_TIMER_MIN
VMS_POLL_TIMER_MAX
VMS_POLL_TIMER_DELTA
Used in POLL_JACKET.C
In order to support event flags in the poll code, the code has to
periodically check the event flags to see if any are set. These logicals
control the frequency at which the flags are checked.
The defaults are:
- VMS_POLL_TIMER_MIN = 10 millisecs
- VMS_POLL_TIMER_DELTA = 1 millisecs
- VMS_POLL_TIMER_MAX = 200 millisecs
The poll timer is a sliding timer. It begins at VMS_POLL_TIMER_MIN,
and increases by VMS_POLL_TIMER_DELTA for each poll operation. The
timer is never allowed to exceed VMS_POLL_TIMER_MAX. As soon as any
activity is seen, the timer resets to the start value.
VMS_STAT_DEVICE_ROOTS
Used in OPENDIR_JACKET.C
Usually the Porting Library's
stat
code will not stat
a device root
directory ([000000]) because performing a stat
on certain device
roots
can be very slow. (For example, an infoserved device can take 15-20 seconds to
respond.) The information returned can usually be guessed.
Define this logical (to any value) if you wish root directories to be
stat'd
.
The default is off.
VMS_TRACE_FILENAMES
Used in VMS_JACKETS.H and many C files.
Many of the jacket routines such as open
, stat
,
and dlsym
have tracing functionality. This is very useful.
The default is off. To enable tracing, define
VMS_TRACE_FILENAMES to any value.