Technical data

Programming Features
5.4 Compaq C Run-Time Library Enhancements
With OpenVMS Version 7.3, XPG5-compliant
strptime
becomes a default
strptime
function in the Compaq C RTL. However, the previous nonpivoting
XPG4-compliant
strptime
function is retained for compatibility.
The pivoting is controlled by the DECC$XPG4_STRPTIME logical name. To use
the nonpivoting version of
strptime
, either:
Define DECC$XPG4_STRPTIME to any value before invoking the application.
OR
Call the nonpivoting
strptime
directly as the function
decc$strptime_xpg4
.
5.4.2 Limitation of Eight Nested Directory Levels Was Lifted (Alpha)
The Compaq C RTL I/O subsystem was enhanced to remove the restriction of
eight nested directory levels for an ODS-5 device. This affects Compaq C RTL
functions such as
access
,
mkdir
,
opendir
,
rmdir
, and
stat
.
5.4.3 Improved Support for Extended File Specifications (Alpha)
The following sections describe improved Compaq C RTL support for extended file
specifications.
5.4.3.1 Compaq C RTL Supports Case Preservation in File Names
Programs linked against the Compaq C Run-Time Library DECC$SHR can now
preserve the case of file names on ODS level 5 disks. This applies when creating
or reporting file names. By default, this feature is disabled. To enable this
feature, enter the following command:
$ DEFINE DECC$EFS_CASE_PRESERVE ENABLE
If file names are all in uppercase, use the following command to convert the
names to lowercase when reporting the name in UNIX style:
$ DEFINE DECC$EFS_CASE_SPECIAL ENABLE
If file names are not all in uppercase, then DEFINE DECC$EFS_CASE_SPECIAL
ENABLE preserves case.
The commands to disable the preceding logical-name settings are:
$ DEFINE DECC$EFS_CASE_PRESERVE DISABLE
$ DEFINE DECC$EFS_CASE_SPECIAL DISABLE
The setting for the DECC$EFS_CASE_SPECIAL logical name, if not set to
DISABLE, supersedes any setting for the DECC$EFS_CASE_PRESERVE logical
name.
The DECC$EFS_CASE_PRESERVE and DECC$EFS_CASE_SPECIAL logicals
are checked only once per image activation, not on a file-by-file basis.
5.4.3.2 Most C RTL Functions Now Accept Long OpenVMS File Names As Arguments (Alpha)
For OpenVMS Alpha Version 7.2, some basic Compaq C RTL I/O functions
(
creat
,
stat
, and the functions from the open family of functions) were enhanced
to accept long OpenVMS-style file names for an ODS-5 device.
For OpenVMS Alpha Version 7.3, all other Compaq C RTL functions, except
chdir
and the functions from the
exec
family of functions, were also enhanced to
accept long OpenVMS-style file names for an ODS-5 device.
Programming Features 5–3