file access, but not applicable to MVS:
_fstat
_access
_chmod
_futime (sets modification time for an open file)
_stat
_umask
_utime (sets file modification time for a filename)
file access:
_creat (see: fopen and/or _open
for more information on creating sequential files)
temporary file access: (due to dcb requirements, use fopen and/or
_open)
_mktemp
_rmtmp
_tempnam
tmpfile
tmpnam
DSN filenames starting with "&&" are created when opened for the first time, and deleted when the JCC compiled program ends. 1000 temporary files may be created in this way per JCC program, although only 256 files may be open at the same time. Once a "//DSN:&&DSNAME" temporary file has been created, it may be opened and closed as many times as needed by the running program. Unlike JCL, use the same filename to (re)access the same temporary file.
To use a temporary file with another program in the same address-space, you may obtain the internal DD name used for the temp file with the int __get_tmpddn (char * tmpnam, char * ddn9) function. tmpnam would be "&&DSNAME" and ddn9 would be your char array (of length 9) to accept the resulting unpadded null-terminated ddname string. The function returns 1 when a name was copied into your buffer, and 0 on failure to locate the file.
locale-specific functions:
strcoll
stricoll
strncoll
strnicoll
strxfrm
time variables/functions:
daylight
_ftime
_timezone
_tzname
_tzset