|
|
New Features of MPE/iX: Using the Hierarchical File System: 300 MPE/iX Computer Systems > Chapter 4 What's New for Programmers?Accessing a File by Its File Name |
|
MPE/iX intrinsics that access a file by its file name require that you pass the file name string in the formaldesignator parameter. Some of these intrinsics have additional parameters that either pass or return file name strings. Most, but not all, parameters have been enhanced to accommodate HFS syntax. The following MPE/iX intrinsics have been enhanced to accommodate a file name string that uses either MPE syntax or HFS syntax. Table 4-4 Intrinsic Parameter Enhancements
In the above intrinsics, file names specified using HFS syntax must conform to HFS syntax rules, described in Chapter 2. For additional information about these intrinsics, refer to the appropriate intrinsic descriptions located in the MPE/iX Intrinsics Reference Manual (32650-90028). The HPFOPEN intrinsic provides an optional exception to the rule for specifying file names using HFS syntax. HPFOPEN item number 41 enables you to pass a value that indicates how HPFOPEN should interpret a file name passed in item numbers 2 or 51. The following table describes item number 41: Table 4-5 HPFOPEN Item Number 41
A dot (".") is not required to indicate a relative pathname (a pathname relative to the current working directory), although it is allowed. File name strings are interpreted literally as HFS pathnames (that is, no upshifting occurs, and HFS nonalphanumeric characters are allowed). For example, if the process's current working directory pathname is /dir1/dir2/dir/ and the specified pathname is dir4/dir5/Myfile, HPFOPEN prepends the current working directory pathname to the specified pathname prior to pathname resolution and searches for the file using the pathname /dir1/dir2/dir/dir4/dir5/Myfile. For additional information, refer to the HPFOPEN intrinsic description located in the MPE/iX Instrinsics Reference Manual (32650-90028). The following MPE/iX intrinsics have not been enhanced to accommodate a file name string that uses HFS syntax. File names must be specified using only MPE syntax. Table 4-6 Restricted Intrinsics
For additional information about these intrinsics, refer to the appropriate intrinsic descriptions located in the MPE/iX Intrinsics Reference Manual (32650-90028). |
|