Technical data
Programming Release Notes
6.5 Compaq C Run-Time Library
6.5.1 The strptime Function Is Now XPG5 Compliant
V7.3
The
strptime
function has been modified to be compliant with X/Open CAE
Specification System Interfaces and Headers Issue 5 (commonly known as XPG5).
The change for XPG5 is in how the
strptime
function processes the "%y" directive
for a two-digit year within the century if no century is specified.
When a century is not specified, XPG5 requires that values for the "%y" directive
in the range of 69 through 99 refer to years in the twentieth century (1969
through 1999), while values in the range of 00 through 68 refer to years in the
twenty-first century (2000 through 2068). Essentially, for the "%y" directive,
strptime
became a "pivoting" function, with 69 being a pivoting year.
Before this change, the
strptime
function interpreted a two-digit year with no
century specified as a year in the twentieth century.
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
, do either of the following:
• Define DECC$XPG4_STRPTIME to any value before invoking the application.
• Call the nonpivoting
strptime
directly as the function
decc$strptime_xpg4
.
6.5.2 The times and clock Functions Are Now AST Reentrant
V7.3
The
times
and
clock
functions are now AST reentrant.
Before this change, the
times
and
clock
functions belonged to the class of
functions that are threadsafe but not AST reentrant. (See the section about
multithread restrictions in the Compaq C Run-Time Library Reference Manual
for OpenVMS Systems.)
6.5.3 Limitation of Eight Nested Directory Levels Is Lifted (Alpha Only)
V7.3
The Compaq C RTL I/O subsystem is 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
.
6.5.4 Long OpenVMS Style File Names Accepted as Arguments (Alpha Only)
V7.3
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, are also enhanced to
accept long OpenVMS style file names for an ODS-5 device.
6–4 Programming Release Notes










